hoeditor-web 3.0.41 → 3.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hoeditor.css +1 -407
- package/lib/hoeditor.umd.js +119 -114
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -52906,6 +52906,8 @@ var HOEditorFactorys = __webpack_require__(74089);
|
|
|
52906
52906
|
var BaseNode = __webpack_require__(62358);
|
|
52907
52907
|
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawCombineNode.ts
|
|
52908
52908
|
var DrawCombineNode = __webpack_require__(66114);
|
|
52909
|
+
// EXTERNAL MODULE: ./src/editor/events/NodeNeedModifyEvent.ts
|
|
52910
|
+
var NodeNeedModifyEvent = __webpack_require__(76830);
|
|
52909
52911
|
;// CONCATENATED MODULE: ./src/editor/draw/drawNode/DrawJumpButton.ts
|
|
52910
52912
|
|
|
52911
52913
|
|
|
@@ -52916,11 +52918,12 @@ var DrawCombineNode = __webpack_require__(66114);
|
|
|
52916
52918
|
|
|
52917
52919
|
|
|
52918
52920
|
|
|
52921
|
+
|
|
52919
52922
|
/*
|
|
52920
52923
|
* @Author: liyanan 2441631434@qq.com
|
|
52921
52924
|
* @Date: 2023-03-17 14:19:29
|
|
52922
52925
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
52923
|
-
* @LastEditTime: 2023-03-
|
|
52926
|
+
* @LastEditTime: 2023-03-29 18:05:05
|
|
52924
52927
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawJumpButton.ts
|
|
52925
52928
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
52926
52929
|
*/
|
|
@@ -52953,10 +52956,11 @@ var DrawJumpButton = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
52953
52956
|
}, {
|
|
52954
52957
|
key: "drawJumpButton",
|
|
52955
52958
|
value: function drawJumpButton() {
|
|
52959
|
+
var drawNode = this;
|
|
52956
52960
|
// 创建按钮形状
|
|
52957
52961
|
var buttonShape = new createjs.Shape();
|
|
52958
52962
|
buttonShape.name = "buttonShape";
|
|
52959
|
-
buttonShape.graphics.beginFill("#A9A7AB").drawRoundRect(0, 5, this.dWidth, this.dHeight, 4);
|
|
52963
|
+
buttonShape.graphics.clear().beginFill("#A9A7AB").drawRoundRect(0, 5, this.dWidth, this.dHeight, 4);
|
|
52960
52964
|
// 创建按钮文本
|
|
52961
52965
|
var buttonText = new createjs.Text(this.buttonName, "12px SimSun", "#000000");
|
|
52962
52966
|
buttonText.textAlign = "left";
|
|
@@ -52964,12 +52968,12 @@ var DrawJumpButton = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
52964
52968
|
buttonText.x = (this._dText.getMeasuredWidth() - buttonText.getMeasuredWidth()) / 2;
|
|
52965
52969
|
buttonText.y = this.dHeight - 1;
|
|
52966
52970
|
buttonText.name = "buttonText";
|
|
52971
|
+
buttonText.setBounds(0, 0, 0, 0);
|
|
52967
52972
|
// 创建按钮容器
|
|
52968
52973
|
var button = new createjs.Container();
|
|
52969
52974
|
button.x = 0;
|
|
52970
52975
|
button.y = -this.dHeight;
|
|
52971
52976
|
button.addChild(buttonShape, buttonText);
|
|
52972
|
-
var drawNode = this;
|
|
52973
52977
|
var font = buttonText.font;
|
|
52974
52978
|
button.addEventListener("mousedown", function () {
|
|
52975
52979
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(drawNode._hoEditorFactoryID);
|
|
@@ -52977,6 +52981,9 @@ var DrawJumpButton = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
52977
52981
|
if (dArea) {
|
|
52978
52982
|
button.children[1].font = "bold " + font;
|
|
52979
52983
|
hoEditorFactory.drawPageTree.updateDrawPage(dArea.index);
|
|
52984
|
+
var startPos = hoEditorFactory.drawTree.selectRange.spStart;
|
|
52985
|
+
var nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(drawNode.node, 'leftClick', startPos.page ? startPos.page.pageIndex : 0);
|
|
52986
|
+
hoEditorFactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
|
|
52980
52987
|
}
|
|
52981
52988
|
});
|
|
52982
52989
|
// button.addEventListener("mouseover", function () {
|
|
@@ -60043,7 +60050,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60043
60050
|
var cTime = cDate.getTime();
|
|
60044
60051
|
var subTime = ((cTime - rTime + 1) / (1000 * 3600 * 24)).toString();
|
|
60045
60052
|
var dayData = subTime.split('.');
|
|
60046
|
-
var day = dayData[0]
|
|
60053
|
+
var day = dayData[0];
|
|
60047
60054
|
return day;
|
|
60048
60055
|
}
|
|
60049
60056
|
}
|
|
@@ -70884,38 +70891,23 @@ var DrawCombineNode = /*#__PURE__*/function (_DrawContainer) {
|
|
|
70884
70891
|
_this2._event = new createjs.Shape();
|
|
70885
70892
|
_this2._event.name = 'event';
|
|
70886
70893
|
_this2._event.graphics.clear();
|
|
70887
|
-
// this._event.graphics.beginFill('#0F0')
|
|
70888
|
-
// .drawRect(0, -r.height * 1.5, r.width + 2, r.height * 1.5).closePath();
|
|
70889
70894
|
_this2._event.graphics.beginFill('#FFFFFF').drawRect(0, -r.height, r.width + 2, r.height).closePath();
|
|
70890
|
-
// console.log(0, -r.height, r.width + 2, r.height);
|
|
70891
70895
|
_this2._event.alpha = 0.01;
|
|
70892
70896
|
_this2.addChild(_this2._event);
|
|
70893
70897
|
_this2.on('mouseover', function (e) {
|
|
70894
70898
|
hoEditorFactory.nodeMouseMove.setNode(_this2._node, _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_7__/* .DmouseEventType.detOver */ .p.detOver);
|
|
70895
|
-
//hoEditorFactory.docTree.mouseEvent(new DmouseEvent(this._node, DmouseEventType.detOver))
|
|
70896
70899
|
});
|
|
70897
|
-
|
|
70898
70900
|
_this2.on('mouseout', function (e) {
|
|
70899
70901
|
hoEditorFactory.nodeMouseMove.setNode(_this2._node, _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_7__/* .DmouseEventType.detOut */ .p.detOut);
|
|
70900
|
-
//hoEditorFactory.docTree.mouseEvent(new DmouseEvent(this.node, DmouseEventType.detOut))
|
|
70901
70902
|
});
|
|
70902
|
-
|
|
70903
70903
|
_this2.on('click', function (e) {
|
|
70904
70904
|
if (e.nativeEvent.button === 0) {
|
|
70905
70905
|
hoEditorFactory.nodeMouseMove.NodeClick(_this2._node, _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_7__/* .DmouseEventType.detClick */ .p.detClick);
|
|
70906
|
-
//hoEditorFactory.docTree.mouseEvent(new DmouseEvent(this.node, DmouseEventType.detClick))
|
|
70907
70906
|
}
|
|
70908
70907
|
});
|
|
70909
|
-
// this.on('click', (e) => {
|
|
70910
|
-
// hoEditorFactory.docTree.mouseEvent(new DmouseEvent(this.node, DmouseEventType.detClick))
|
|
70911
|
-
// })
|
|
70912
|
-
// this.on('dblclick', (e) => {
|
|
70913
|
-
// hoEditorFactory.docTree.mouseEvent(new DmouseEvent(this.node, DmouseEventType.detDblclick))
|
|
70914
|
-
// })
|
|
70915
70908
|
}
|
|
70916
70909
|
});
|
|
70917
70910
|
} else {
|
|
70918
|
-
//if (this.node instanceof RadioAndCheckBoxNode) {
|
|
70919
70911
|
this.on('added', function (e1) {
|
|
70920
70912
|
if (!_this2._event) {
|
|
70921
70913
|
var r = _this2.getBounds();
|
|
@@ -70934,13 +70926,6 @@ var DrawCombineNode = /*#__PURE__*/function (_DrawContainer) {
|
|
|
70934
70926
|
hoEditorFactory.nodeMouseMove.setNode(_this2.node, _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_7__/* .DmouseEventType.detOut */ .p.detOut);
|
|
70935
70927
|
});
|
|
70936
70928
|
}
|
|
70937
|
-
// if(this.node && this.node.drawNodes && this.node.drawNodes[0]) {
|
|
70938
|
-
// const paragraphNode = hoEditorFactory.drawTree.getDrawLineByDNode(this._node.drawNodes[0])?.paragraphNode;
|
|
70939
|
-
// const customProperty = paragraphNode && paragraphNode.customProperty;
|
|
70940
|
-
// if(['男', '女'].includes(customProperty.sex) || (customProperty.age && customProperty.age.select == '隐藏')) {
|
|
70941
|
-
// console.log({...paragraphNode.customProperty})
|
|
70942
|
-
// }
|
|
70943
|
-
// }
|
|
70944
70929
|
_this2.on('click', function (e) {
|
|
70945
70930
|
if (e.nativeEvent.button === 0) {
|
|
70946
70931
|
hoEditorFactory.nodeMouseMove.NodeClick(_this2._node, _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_7__/* .DmouseEventType.detClick */ .p.detClick);
|
|
@@ -70950,7 +70935,6 @@ var DrawCombineNode = /*#__PURE__*/function (_DrawContainer) {
|
|
|
70950
70935
|
_this2._event.alpha = 0.01;
|
|
70951
70936
|
}
|
|
70952
70937
|
});
|
|
70953
|
-
//}
|
|
70954
70938
|
}
|
|
70955
70939
|
}
|
|
70956
70940
|
}
|
|
@@ -232013,8 +231997,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
232013
231997
|
var es_number_constructor = __webpack_require__(9653);
|
|
232014
231998
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
232015
231999
|
var es_json_stringify = __webpack_require__(38862);
|
|
232016
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=
|
|
232017
|
-
var
|
|
232000
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=2f0d52fa&
|
|
232001
|
+
var HoDocvue_type_template_id_2f0d52fa_render = function render() {
|
|
232018
232002
|
var _vm = this,
|
|
232019
232003
|
_c = _vm._self._c;
|
|
232020
232004
|
return _c('div', {
|
|
@@ -232159,7 +232143,7 @@ var HoDocvue_type_template_id_41bb5f98_render = function render() {
|
|
|
232159
232143
|
}
|
|
232160
232144
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
232161
232145
|
};
|
|
232162
|
-
var
|
|
232146
|
+
var HoDocvue_type_template_id_2f0d52fa_staticRenderFns = [];
|
|
232163
232147
|
|
|
232164
232148
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
232165
232149
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -232169,8 +232153,8 @@ var es_string_includes = __webpack_require__(32023);
|
|
|
232169
232153
|
var es_array_sort = __webpack_require__(2707);
|
|
232170
232154
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
232171
232155
|
var es_string_replace = __webpack_require__(15306);
|
|
232172
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoPage.vue?vue&type=template&id=
|
|
232173
|
-
var
|
|
232156
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoPage.vue?vue&type=template&id=59b9f9ce&scoped=true&
|
|
232157
|
+
var HoPagevue_type_template_id_59b9f9ce_scoped_true_render = function render() {
|
|
232174
232158
|
var _vm = this,
|
|
232175
232159
|
_c = _vm._self._c;
|
|
232176
232160
|
return _c('div', {
|
|
@@ -232234,7 +232218,7 @@ var HoPagevue_type_template_id_5ed62e92_scoped_true_render = function render() {
|
|
|
232234
232218
|
}], null, true)
|
|
232235
232219
|
}) : _vm._e()], 2);
|
|
232236
232220
|
};
|
|
232237
|
-
var
|
|
232221
|
+
var HoPagevue_type_template_id_59b9f9ce_scoped_true_staticRenderFns = [];
|
|
232238
232222
|
|
|
232239
232223
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js
|
|
232240
232224
|
var regeneratorRuntime = __webpack_require__(80543);
|
|
@@ -232682,7 +232666,8 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
232682
232666
|
if (!hoeditorfactory.canvasListNode) {
|
|
232683
232667
|
hoeditorfactory.canvasListNode = document.querySelector(".ho-editor-list");
|
|
232684
232668
|
}
|
|
232685
|
-
hoeditorfactory.
|
|
232669
|
+
hoeditorfactory.moveYParams.startY = aevent.stageY + this._pageIndex * hoeditorfactory.pageProperty.heightPixes;
|
|
232670
|
+
hoeditorfactory.moveYParams.moveHeight = 0;
|
|
232686
232671
|
if (aevent.currentTarget === this.stage) {
|
|
232687
232672
|
var _hoeditorfactory$draw;
|
|
232688
232673
|
if (aevent.nativeEvent.button === 0) {
|
|
@@ -232821,20 +232806,28 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
232821
232806
|
}
|
|
232822
232807
|
var endPos = hoeditorfactory.drawTree.getStagePosition(dPage, dPage.activeDrawRect, aevent.stageX, aevent.stageY);
|
|
232823
232808
|
if (endPos) {
|
|
232824
|
-
|
|
232825
|
-
|
|
232826
|
-
|
|
232827
|
-
|
|
232828
|
-
|
|
232829
|
-
|
|
232830
|
-
|
|
232831
|
-
//
|
|
232832
|
-
// if
|
|
232833
|
-
//
|
|
232834
|
-
//
|
|
232835
|
-
//
|
|
232836
|
-
//
|
|
232809
|
+
// const result = Math.abs(aevent.stageY + hoeditorfactory.moveYParams.startY) < (hoeditorfactory.pageProperty.heightPixes + 20) * hoeditorfactory.drawTree.drawPages.length;
|
|
232810
|
+
// console.log(Math.abs(aevent.stageY + hoeditorfactory.moveYParams.startY), (hoeditorfactory.pageProperty.heightPixes + 20) * hoeditorfactory.drawTree.drawPages.length);
|
|
232811
|
+
// if (result && hoeditorfactory.moveYParams.startY && hoeditorfactory.canvasListNode) {
|
|
232812
|
+
// const height = aevent.stageY + y - hoeditorfactory.moveYParams.startY;
|
|
232813
|
+
// if(height > 0) {
|
|
232814
|
+
// if (Math.abs(height) - hoeditorfactory.moveYParams.moveHeight > 0) {
|
|
232815
|
+
// hoeditorfactory.canvasListNode.scrollTop += 13;
|
|
232816
|
+
// console.log("初始 ↓ 一直向 ↓");
|
|
232817
|
+
// } else if(Math.abs(height) - hoeditorfactory.moveYParams.moveHeight < 0) {
|
|
232818
|
+
// console.log("初始 ↓ 中间转 ↑", Math.abs(height) - hoeditorfactory.moveYParams.moveHeight, height, hoeditorfactory.moveYParams.moveHeight);
|
|
232819
|
+
// hoeditorfactory.canvasListNode.scrollTop -= 13;
|
|
232820
|
+
// }
|
|
232821
|
+
// } else if(height < 0) {
|
|
232822
|
+
// if (Math.abs(height) - hoeditorfactory.moveYParams.moveHeight > 0) {
|
|
232823
|
+
// console.log("初始 ↑ 一直向 ↑")
|
|
232824
|
+
// hoeditorfactory.canvasListNode.scrollTop -= 13;
|
|
232825
|
+
// } else if(Math.abs(height) - hoeditorfactory.moveYParams.moveHeight < 0) {
|
|
232826
|
+
// console.log("初始 ↑ 中间转 ↓", Math.abs(height) - hoeditorfactory.moveYParams.moveHeight, height, hoeditorfactory.moveYParams.moveHeight)
|
|
232827
|
+
// hoeditorfactory.canvasListNode.scrollTop += 13;
|
|
232828
|
+
// }
|
|
232837
232829
|
// }
|
|
232830
|
+
// hoeditorfactory.moveYParams.moveHeight = Math.abs(height);
|
|
232838
232831
|
// }
|
|
232839
232832
|
hoeditorfactory.docTree.curDomRange.endPath = endPos.path;
|
|
232840
232833
|
hoeditorfactory.drawTree.selectRange.spEnd = endPos;
|
|
@@ -232875,7 +232868,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
232875
232868
|
hoeditorfactory.drawTree.selectRange.beginRangeSelect = false;
|
|
232876
232869
|
if (startPos) {
|
|
232877
232870
|
var np = hoeditorfactory.docTree.findNodePositionByPath(startPos.path);
|
|
232878
|
-
if (np && np.node) {
|
|
232871
|
+
if (np && np.node && np.node.nodeType !== BaseNode/* NodeType.ntJumpButton */.Jq.ntJumpButton) {
|
|
232879
232872
|
var buttonCount = parseInt(aevent.nativeEvent.button);
|
|
232880
232873
|
var clickType = buttonCount === 0 ? 'leftclick' : buttonCount === 2 ? 'rightclick' : 'centerclick';
|
|
232881
232874
|
var nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, clickType, startPos.page ? startPos.page.pageIndex : this._pageIndex);
|
|
@@ -233455,7 +233448,10 @@ var AiModels_component = (0,componentNormalizer/* default */.Z)(
|
|
|
233455
233448
|
* canvasRightClick
|
|
233456
233449
|
*/
|
|
233457
233450
|
canvasRightClick: function canvasRightClick(e) {
|
|
233458
|
-
this
|
|
233451
|
+
var _this2 = this;
|
|
233452
|
+
this.$nextTick(function () {
|
|
233453
|
+
_this2.$emit('canvasRightClick', e);
|
|
233454
|
+
});
|
|
233459
233455
|
},
|
|
233460
233456
|
canvasKeydown: function canvasKeydown(e) {
|
|
233461
233457
|
this.$emit('canvasKeydown', e);
|
|
@@ -233468,10 +233464,10 @@ var AiModels_component = (0,componentNormalizer/* default */.Z)(
|
|
|
233468
233464
|
});
|
|
233469
233465
|
;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=script&lang=js&
|
|
233470
233466
|
/* harmony default export */ var components_HoPagevue_type_script_lang_js_ = (HoPagevue_type_script_lang_js_);
|
|
233471
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoPage.vue?vue&type=style&index=0&id=
|
|
233467
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoPage.vue?vue&type=style&index=0&id=59b9f9ce&prod&scoped=true&lang=css&
|
|
233472
233468
|
// extracted by mini-css-extract-plugin
|
|
233473
233469
|
|
|
233474
|
-
;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=style&index=0&id=
|
|
233470
|
+
;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=style&index=0&id=59b9f9ce&prod&scoped=true&lang=css&
|
|
233475
233471
|
|
|
233476
233472
|
;// CONCATENATED MODULE: ./src/components/HoPage.vue
|
|
233477
233473
|
|
|
@@ -233484,11 +233480,11 @@ var AiModels_component = (0,componentNormalizer/* default */.Z)(
|
|
|
233484
233480
|
|
|
233485
233481
|
var HoPage_component = (0,componentNormalizer/* default */.Z)(
|
|
233486
233482
|
components_HoPagevue_type_script_lang_js_,
|
|
233487
|
-
|
|
233488
|
-
|
|
233483
|
+
HoPagevue_type_template_id_59b9f9ce_scoped_true_render,
|
|
233484
|
+
HoPagevue_type_template_id_59b9f9ce_scoped_true_staticRenderFns,
|
|
233489
233485
|
false,
|
|
233490
233486
|
null,
|
|
233491
|
-
"
|
|
233487
|
+
"59b9f9ce",
|
|
233492
233488
|
null
|
|
233493
233489
|
|
|
233494
233490
|
)
|
|
@@ -235374,7 +235370,7 @@ var ParagraphNode = __webpack_require__(67945);
|
|
|
235374
235370
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
|
|
235375
235371
|
var MarkNode = __webpack_require__(57727);
|
|
235376
235372
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
235377
|
-
/* harmony default export */ var version = ('3.0.
|
|
235373
|
+
/* harmony default export */ var version = ('3.0.43');
|
|
235378
235374
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
235379
235375
|
var PoperTipText = __webpack_require__(15845);
|
|
235380
235376
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -235739,8 +235735,8 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
235739
235735
|
});
|
|
235740
235736
|
}
|
|
235741
235737
|
}
|
|
235742
|
-
} else if (e.clickType === 'rightClick'
|
|
235743
|
-
|
|
235738
|
+
} else if (e.clickType === 'rightClick') {
|
|
235739
|
+
// this.mouseRightClickEvent(node)
|
|
235744
235740
|
}
|
|
235745
235741
|
}
|
|
235746
235742
|
return true;
|
|
@@ -236005,49 +236001,54 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
236005
236001
|
* 先关闭一次 再延迟打开 触发弹出层动画
|
|
236006
236002
|
*/
|
|
236007
236003
|
mouseRightClickEvent: function mouseRightClickEvent(e) {
|
|
236008
|
-
var
|
|
236009
|
-
|
|
236010
|
-
var rightPosition = {
|
|
236011
|
-
clientX: e.clientX || e.pageX,
|
|
236012
|
-
clientY: e.clientY || e.pageY
|
|
236013
|
-
};
|
|
236014
|
-
var startPos = hoEditorFactory.drawTree.selectRange.spStart;
|
|
236015
|
-
var path = hoEditorFactory.vueController.getCaretPosition();
|
|
236016
|
-
var node = (_hoEditorFactory$vueC2 = hoEditorFactory.vueController.findNodebyPath(path)) === null || _hoEditorFactory$vueC2 === void 0 ? void 0 : _hoEditorFactory$vueC2.node;
|
|
236017
|
-
if (startPos) {
|
|
236004
|
+
var _this6 = this;
|
|
236005
|
+
this.$nextTick(function () {
|
|
236018
236006
|
var _hoEditorFactory$docT;
|
|
236019
|
-
var
|
|
236020
|
-
|
|
236021
|
-
|
|
236022
|
-
|
|
236023
|
-
|
|
236024
|
-
|
|
236025
|
-
|
|
236026
|
-
|
|
236027
|
-
|
|
236028
|
-
|
|
236029
|
-
|
|
236030
|
-
|
|
236031
|
-
|
|
236032
|
-
|
|
236033
|
-
|
|
236034
|
-
|
|
236035
|
-
|
|
236007
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(_this6.hoEditorId);
|
|
236008
|
+
var rightPosition = {
|
|
236009
|
+
clientX: e.clientX || e.pageX,
|
|
236010
|
+
clientY: e.clientY || e.pageY
|
|
236011
|
+
};
|
|
236012
|
+
var startPos = hoEditorFactory.drawTree.selectRange.spStart;
|
|
236013
|
+
var node = (_hoEditorFactory$docT = hoEditorFactory.docTree.findNodePositionByPath(startPos.path)) === null || _hoEditorFactory$docT === void 0 ? void 0 : _hoEditorFactory$docT.node;
|
|
236014
|
+
// const path = hoEditorFactory.vueController.getCaretPosition();
|
|
236015
|
+
// let node = hoEditorFactory.vueController.findNodebyPath(path)?.node;
|
|
236016
|
+
|
|
236017
|
+
// if (startPos) {
|
|
236018
|
+
// const npNode = hoEditorFactory.docTree.findNodePositionByPath(startPos.path)?.node;
|
|
236019
|
+
// if (npNode instanceof SignNode) {
|
|
236020
|
+
// node = npNode;
|
|
236021
|
+
// }
|
|
236022
|
+
// }
|
|
236023
|
+
|
|
236024
|
+
// psDesign, // 设计状态
|
|
236025
|
+
// psEdit, // 编辑状态
|
|
236026
|
+
// psPreview, // 打印预览
|
|
236027
|
+
// psPrint, // 打印
|
|
236028
|
+
// psReview, // 审阅
|
|
236029
|
+
// psReadOnly, // 预览
|
|
236030
|
+
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psDesign */.Dh.psDesign && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psEdit */.Dh.psEdit) {
|
|
236031
|
+
_this6.isCreateRightMenuModal = true;
|
|
236032
|
+
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psReview */.Dh.psReview) {
|
|
236033
|
+
if (node instanceof SignNode/* SignNode */.N && node.number > 0) {
|
|
236034
|
+
_this6.showDeleteSignMenu = true;
|
|
236035
|
+
_this6.hoEditorProvider.setRightClickNodeValue(node);
|
|
236036
|
+
} else {
|
|
236037
|
+
_this6.showDeleteSignMenu = false;
|
|
236038
|
+
}
|
|
236036
236039
|
} else {
|
|
236037
|
-
|
|
236040
|
+
_this6.isHideComments = hoEditorFactory.isHideComments;
|
|
236041
|
+
_this6.showCommentsBtn = true;
|
|
236038
236042
|
}
|
|
236039
|
-
|
|
236040
|
-
|
|
236041
|
-
this.showCommentsBtn = true;
|
|
236043
|
+
(0,plugins_util/* createRightMenu */.GN)(rightPosition.clientX, rightPosition.clientY, _this6.$refs.rightMenuModal);
|
|
236044
|
+
return;
|
|
236042
236045
|
}
|
|
236043
|
-
(
|
|
236044
|
-
|
|
236045
|
-
|
|
236046
|
-
|
|
236047
|
-
|
|
236048
|
-
}
|
|
236049
|
-
hoEditorFactory.drawTree.selectRange.beginRangeSelect = false;
|
|
236050
|
-
this.$emit('rightClickEventIn', rightPosition);
|
|
236046
|
+
if (node && node !== null && node instanceof BaseNode/* BaseNode */.Hd) {
|
|
236047
|
+
_this6.hoEditorProvider.setRightClickNodeValue(node);
|
|
236048
|
+
}
|
|
236049
|
+
hoEditorFactory.drawTree.selectRange.beginRangeSelect = false;
|
|
236050
|
+
_this6.$emit('rightClickEventIn', rightPosition);
|
|
236051
|
+
});
|
|
236051
236052
|
},
|
|
236052
236053
|
/**
|
|
236053
236054
|
* 打开和隐藏批注
|
|
@@ -236081,10 +236082,10 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
236081
236082
|
});
|
|
236082
236083
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
236083
236084
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
236084
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
236085
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=2f0d52fa&prod&lang=scss&
|
|
236085
236086
|
// extracted by mini-css-extract-plugin
|
|
236086
236087
|
|
|
236087
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
236088
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=2f0d52fa&prod&lang=scss&
|
|
236088
236089
|
|
|
236089
236090
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
236090
236091
|
|
|
@@ -236097,8 +236098,8 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
236097
236098
|
|
|
236098
236099
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
236099
236100
|
components_HoDocvue_type_script_lang_js_,
|
|
236100
|
-
|
|
236101
|
-
|
|
236101
|
+
HoDocvue_type_template_id_2f0d52fa_render,
|
|
236102
|
+
HoDocvue_type_template_id_2f0d52fa_staticRenderFns,
|
|
236102
236103
|
false,
|
|
236103
236104
|
null,
|
|
236104
236105
|
null,
|
|
@@ -254467,7 +254468,10 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
254467
254468
|
(0,esm_defineProperty/* default */.Z)(this, "_printSilently", false);
|
|
254468
254469
|
(0,esm_defineProperty/* default */.Z)(this, "_limitCharNumber", 0);
|
|
254469
254470
|
(0,esm_defineProperty/* default */.Z)(this, "_reviewJson", void 0);
|
|
254470
|
-
(0,esm_defineProperty/* default */.Z)(this, "
|
|
254471
|
+
(0,esm_defineProperty/* default */.Z)(this, "_moveYParams", {
|
|
254472
|
+
startY: 0,
|
|
254473
|
+
moveHeight: 0
|
|
254474
|
+
});
|
|
254471
254475
|
(0,esm_defineProperty/* default */.Z)(this, "_canvasListNode", void 0);
|
|
254472
254476
|
this._hoEditorFactoryId = id;
|
|
254473
254477
|
}
|
|
@@ -255269,13 +255273,13 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
255269
255273
|
}
|
|
255270
255274
|
}
|
|
255271
255275
|
}, {
|
|
255272
|
-
key: "
|
|
255276
|
+
key: "moveYParams",
|
|
255273
255277
|
get: function get() {
|
|
255274
|
-
return this.
|
|
255278
|
+
return this._moveYParams;
|
|
255275
255279
|
},
|
|
255276
255280
|
set: function set(value) {
|
|
255277
|
-
if (value && this.
|
|
255278
|
-
this.
|
|
255281
|
+
if (value && this._moveYParams !== value) {
|
|
255282
|
+
this._moveYParams = value;
|
|
255279
255283
|
}
|
|
255280
255284
|
}
|
|
255281
255285
|
}, {
|
|
@@ -263323,18 +263327,19 @@ var HoRightMenu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
263323
263327
|
}
|
|
263324
263328
|
},
|
|
263325
263329
|
getCurrentSelectNode: function getCurrentSelectNode() {
|
|
263326
|
-
var _hoEditorFactory$
|
|
263330
|
+
var _hoEditorFactory$docT;
|
|
263327
263331
|
var value;
|
|
263328
263332
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.activeDocId);
|
|
263329
|
-
|
|
263333
|
+
// let node = hoEditorFactory.vueController.findNodebyPath(this.domRange.endPath)?.node;
|
|
263334
|
+
|
|
263330
263335
|
var startPos = hoEditorFactory.drawTree.selectRange.spStart;
|
|
263331
|
-
|
|
263332
|
-
|
|
263333
|
-
|
|
263334
|
-
|
|
263335
|
-
|
|
263336
|
-
|
|
263337
|
-
}
|
|
263336
|
+
var node = (_hoEditorFactory$docT = hoEditorFactory.docTree.findNodePositionByPath(startPos.path)) === null || _hoEditorFactory$docT === void 0 ? void 0 : _hoEditorFactory$docT.node;
|
|
263337
|
+
// if (startPos) {
|
|
263338
|
+
// const npNode = hoEditorFactory.docTree.findNodePositionByPath(startPos.path)?.node;
|
|
263339
|
+
// if (npNode instanceof SignNode && npNode.type == 3) {
|
|
263340
|
+
// node = npNode;
|
|
263341
|
+
// }
|
|
263342
|
+
// }
|
|
263338
263343
|
if (node instanceof MarkNode/* MarkNode */.j || node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
263339
263344
|
var parentNode = node.parentNode;
|
|
263340
263345
|
if (parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|