hoeditor-web 3.0.42 → 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.umd.js +42 -54
- package/lib/hoeditor.umd.min.js +3 -3
- 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_44fd6504_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);
|
|
@@ -232822,25 +232806,29 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
232822
232806
|
}
|
|
232823
232807
|
var endPos = hoeditorfactory.drawTree.getStagePosition(dPage, dPage.activeDrawRect, aevent.stageX, aevent.stageY);
|
|
232824
232808
|
if (endPos) {
|
|
232825
|
-
|
|
232809
|
+
// const result = Math.abs(aevent.stageY + hoeditorfactory.moveYParams.startY) < (hoeditorfactory.pageProperty.heightPixes + 20) * hoeditorfactory.drawTree.drawPages.length;
|
|
232826
232810
|
// console.log(Math.abs(aevent.stageY + hoeditorfactory.moveYParams.startY), (hoeditorfactory.pageProperty.heightPixes + 20) * hoeditorfactory.drawTree.drawPages.length);
|
|
232827
|
-
if (result && hoeditorfactory.moveYParams.startY && hoeditorfactory.canvasListNode) {
|
|
232828
|
-
|
|
232829
|
-
|
|
232830
|
-
|
|
232831
|
-
|
|
232832
|
-
|
|
232833
|
-
|
|
232834
|
-
|
|
232835
|
-
|
|
232836
|
-
|
|
232837
|
-
|
|
232838
|
-
|
|
232839
|
-
|
|
232840
|
-
|
|
232841
|
-
|
|
232842
|
-
|
|
232843
|
-
|
|
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
|
+
// }
|
|
232829
|
+
// }
|
|
232830
|
+
// hoeditorfactory.moveYParams.moveHeight = Math.abs(height);
|
|
232831
|
+
// }
|
|
232844
232832
|
hoeditorfactory.docTree.curDomRange.endPath = endPos.path;
|
|
232845
232833
|
hoeditorfactory.drawTree.selectRange.spEnd = endPos;
|
|
232846
232834
|
if (endPos.path != '') {
|
|
@@ -232880,7 +232868,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
232880
232868
|
hoeditorfactory.drawTree.selectRange.beginRangeSelect = false;
|
|
232881
232869
|
if (startPos) {
|
|
232882
232870
|
var np = hoeditorfactory.docTree.findNodePositionByPath(startPos.path);
|
|
232883
|
-
if (np && np.node) {
|
|
232871
|
+
if (np && np.node && np.node.nodeType !== BaseNode/* NodeType.ntJumpButton */.Jq.ntJumpButton) {
|
|
232884
232872
|
var buttonCount = parseInt(aevent.nativeEvent.button);
|
|
232885
232873
|
var clickType = buttonCount === 0 ? 'leftclick' : buttonCount === 2 ? 'rightclick' : 'centerclick';
|
|
232886
232874
|
var nodeNeedModifyEvent = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, clickType, startPos.page ? startPos.page.pageIndex : this._pageIndex);
|
|
@@ -235382,7 +235370,7 @@ var ParagraphNode = __webpack_require__(67945);
|
|
|
235382
235370
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
|
|
235383
235371
|
var MarkNode = __webpack_require__(57727);
|
|
235384
235372
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
235385
|
-
/* harmony default export */ var version = ('3.0.
|
|
235373
|
+
/* harmony default export */ var version = ('3.0.43');
|
|
235386
235374
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
235387
235375
|
var PoperTipText = __webpack_require__(15845);
|
|
235388
235376
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -236094,10 +236082,10 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
236094
236082
|
});
|
|
236095
236083
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
236096
236084
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
236097
|
-
;// 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&
|
|
236098
236086
|
// extracted by mini-css-extract-plugin
|
|
236099
236087
|
|
|
236100
|
-
;// 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&
|
|
236101
236089
|
|
|
236102
236090
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
236103
236091
|
|
|
@@ -236110,8 +236098,8 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
236110
236098
|
|
|
236111
236099
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
236112
236100
|
components_HoDocvue_type_script_lang_js_,
|
|
236113
|
-
|
|
236114
|
-
|
|
236101
|
+
HoDocvue_type_template_id_2f0d52fa_render,
|
|
236102
|
+
HoDocvue_type_template_id_2f0d52fa_staticRenderFns,
|
|
236115
236103
|
false,
|
|
236116
236104
|
null,
|
|
236117
236105
|
null,
|