hoeditor-web 3.0.41 → 3.0.42
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 +103 -86
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -232013,8 +232013,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
232013
232013
|
var es_number_constructor = __webpack_require__(9653);
|
|
232014
232014
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
232015
232015
|
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
|
|
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=44fd6504&
|
|
232017
|
+
var HoDocvue_type_template_id_44fd6504_render = function render() {
|
|
232018
232018
|
var _vm = this,
|
|
232019
232019
|
_c = _vm._self._c;
|
|
232020
232020
|
return _c('div', {
|
|
@@ -232159,7 +232159,7 @@ var HoDocvue_type_template_id_41bb5f98_render = function render() {
|
|
|
232159
232159
|
}
|
|
232160
232160
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
232161
232161
|
};
|
|
232162
|
-
var
|
|
232162
|
+
var HoDocvue_type_template_id_44fd6504_staticRenderFns = [];
|
|
232163
232163
|
|
|
232164
232164
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
232165
232165
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -232169,8 +232169,8 @@ var es_string_includes = __webpack_require__(32023);
|
|
|
232169
232169
|
var es_array_sort = __webpack_require__(2707);
|
|
232170
232170
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
232171
232171
|
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
|
|
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=59b9f9ce&scoped=true&
|
|
232173
|
+
var HoPagevue_type_template_id_59b9f9ce_scoped_true_render = function render() {
|
|
232174
232174
|
var _vm = this,
|
|
232175
232175
|
_c = _vm._self._c;
|
|
232176
232176
|
return _c('div', {
|
|
@@ -232234,7 +232234,7 @@ var HoPagevue_type_template_id_5ed62e92_scoped_true_render = function render() {
|
|
|
232234
232234
|
}], null, true)
|
|
232235
232235
|
}) : _vm._e()], 2);
|
|
232236
232236
|
};
|
|
232237
|
-
var
|
|
232237
|
+
var HoPagevue_type_template_id_59b9f9ce_scoped_true_staticRenderFns = [];
|
|
232238
232238
|
|
|
232239
232239
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js
|
|
232240
232240
|
var regeneratorRuntime = __webpack_require__(80543);
|
|
@@ -232682,7 +232682,8 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
232682
232682
|
if (!hoeditorfactory.canvasListNode) {
|
|
232683
232683
|
hoeditorfactory.canvasListNode = document.querySelector(".ho-editor-list");
|
|
232684
232684
|
}
|
|
232685
|
-
hoeditorfactory.
|
|
232685
|
+
hoeditorfactory.moveYParams.startY = aevent.stageY + this._pageIndex * hoeditorfactory.pageProperty.heightPixes;
|
|
232686
|
+
hoeditorfactory.moveYParams.moveHeight = 0;
|
|
232686
232687
|
if (aevent.currentTarget === this.stage) {
|
|
232687
232688
|
var _hoeditorfactory$draw;
|
|
232688
232689
|
if (aevent.nativeEvent.button === 0) {
|
|
@@ -232821,21 +232822,25 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
232821
232822
|
}
|
|
232822
232823
|
var endPos = hoeditorfactory.drawTree.getStagePosition(dPage, dPage.activeDrawRect, aevent.stageX, aevent.stageY);
|
|
232823
232824
|
if (endPos) {
|
|
232824
|
-
|
|
232825
|
-
|
|
232826
|
-
|
|
232827
|
-
|
|
232828
|
-
|
|
232825
|
+
var result = Math.abs(aevent.stageY + hoeditorfactory.moveYParams.startY) < (hoeditorfactory.pageProperty.heightPixes + 20) * hoeditorfactory.drawTree.drawPages.length;
|
|
232826
|
+
// 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
|
+
var height = aevent.stageY + y - hoeditorfactory.moveYParams.startY;
|
|
232829
|
+
if (height > 0) {
|
|
232830
|
+
if (Math.abs(height) - hoeditorfactory.moveYParams.moveHeight > 0) {
|
|
232831
|
+
hoeditorfactory.canvasListNode.scrollTop += 13;
|
|
232832
|
+
} else if (Math.abs(height) - hoeditorfactory.moveYParams.moveHeight < 0) {
|
|
232833
|
+
hoeditorfactory.canvasListNode.scrollTop -= 13;
|
|
232834
|
+
}
|
|
232835
|
+
} else if (height < 0) {
|
|
232836
|
+
if (Math.abs(height) - hoeditorfactory.moveYParams.moveHeight > 0) {
|
|
232837
|
+
hoeditorfactory.canvasListNode.scrollTop -= 13;
|
|
232838
|
+
} else if (Math.abs(height) - hoeditorfactory.moveYParams.moveHeight < 0) {
|
|
232839
|
+
hoeditorfactory.canvasListNode.scrollTop += 13;
|
|
232840
|
+
}
|
|
232829
232841
|
}
|
|
232842
|
+
hoeditorfactory.moveYParams.moveHeight = Math.abs(height);
|
|
232830
232843
|
}
|
|
232831
|
-
// const listNode = document.querySelector('.ho-editor-list') as HTMLDivElement;
|
|
232832
|
-
// if (listNode) {
|
|
232833
|
-
// if (startLine - endLine > 8) {
|
|
232834
|
-
// listNode.scrollTo(0, listNode.scrollTop - 10);
|
|
232835
|
-
// } else if(startLine - endLine < -8) {
|
|
232836
|
-
// listNode.scrollTo(0, listNode.scrollTop + 10);
|
|
232837
|
-
// }
|
|
232838
|
-
// }
|
|
232839
232844
|
hoeditorfactory.docTree.curDomRange.endPath = endPos.path;
|
|
232840
232845
|
hoeditorfactory.drawTree.selectRange.spEnd = endPos;
|
|
232841
232846
|
if (endPos.path != '') {
|
|
@@ -233455,7 +233460,10 @@ var AiModels_component = (0,componentNormalizer/* default */.Z)(
|
|
|
233455
233460
|
* canvasRightClick
|
|
233456
233461
|
*/
|
|
233457
233462
|
canvasRightClick: function canvasRightClick(e) {
|
|
233458
|
-
this
|
|
233463
|
+
var _this2 = this;
|
|
233464
|
+
this.$nextTick(function () {
|
|
233465
|
+
_this2.$emit('canvasRightClick', e);
|
|
233466
|
+
});
|
|
233459
233467
|
},
|
|
233460
233468
|
canvasKeydown: function canvasKeydown(e) {
|
|
233461
233469
|
this.$emit('canvasKeydown', e);
|
|
@@ -233468,10 +233476,10 @@ var AiModels_component = (0,componentNormalizer/* default */.Z)(
|
|
|
233468
233476
|
});
|
|
233469
233477
|
;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=script&lang=js&
|
|
233470
233478
|
/* 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=
|
|
233479
|
+
;// 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
233480
|
// extracted by mini-css-extract-plugin
|
|
233473
233481
|
|
|
233474
|
-
;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=style&index=0&id=
|
|
233482
|
+
;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=style&index=0&id=59b9f9ce&prod&scoped=true&lang=css&
|
|
233475
233483
|
|
|
233476
233484
|
;// CONCATENATED MODULE: ./src/components/HoPage.vue
|
|
233477
233485
|
|
|
@@ -233484,11 +233492,11 @@ var AiModels_component = (0,componentNormalizer/* default */.Z)(
|
|
|
233484
233492
|
|
|
233485
233493
|
var HoPage_component = (0,componentNormalizer/* default */.Z)(
|
|
233486
233494
|
components_HoPagevue_type_script_lang_js_,
|
|
233487
|
-
|
|
233488
|
-
|
|
233495
|
+
HoPagevue_type_template_id_59b9f9ce_scoped_true_render,
|
|
233496
|
+
HoPagevue_type_template_id_59b9f9ce_scoped_true_staticRenderFns,
|
|
233489
233497
|
false,
|
|
233490
233498
|
null,
|
|
233491
|
-
"
|
|
233499
|
+
"59b9f9ce",
|
|
233492
233500
|
null
|
|
233493
233501
|
|
|
233494
233502
|
)
|
|
@@ -235374,7 +235382,7 @@ var ParagraphNode = __webpack_require__(67945);
|
|
|
235374
235382
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
|
|
235375
235383
|
var MarkNode = __webpack_require__(57727);
|
|
235376
235384
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
235377
|
-
/* harmony default export */ var version = ('3.0.
|
|
235385
|
+
/* harmony default export */ var version = ('3.0.42');
|
|
235378
235386
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
235379
235387
|
var PoperTipText = __webpack_require__(15845);
|
|
235380
235388
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -235739,8 +235747,8 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
235739
235747
|
});
|
|
235740
235748
|
}
|
|
235741
235749
|
}
|
|
235742
|
-
} else if (e.clickType === 'rightClick'
|
|
235743
|
-
|
|
235750
|
+
} else if (e.clickType === 'rightClick') {
|
|
235751
|
+
// this.mouseRightClickEvent(node)
|
|
235744
235752
|
}
|
|
235745
235753
|
}
|
|
235746
235754
|
return true;
|
|
@@ -236005,49 +236013,54 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
236005
236013
|
* 先关闭一次 再延迟打开 触发弹出层动画
|
|
236006
236014
|
*/
|
|
236007
236015
|
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) {
|
|
236016
|
+
var _this6 = this;
|
|
236017
|
+
this.$nextTick(function () {
|
|
236018
236018
|
var _hoEditorFactory$docT;
|
|
236019
|
-
var
|
|
236020
|
-
|
|
236021
|
-
|
|
236022
|
-
|
|
236023
|
-
|
|
236024
|
-
|
|
236025
|
-
|
|
236026
|
-
|
|
236027
|
-
|
|
236028
|
-
|
|
236029
|
-
|
|
236030
|
-
|
|
236031
|
-
|
|
236032
|
-
|
|
236033
|
-
|
|
236034
|
-
|
|
236035
|
-
|
|
236019
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(_this6.hoEditorId);
|
|
236020
|
+
var rightPosition = {
|
|
236021
|
+
clientX: e.clientX || e.pageX,
|
|
236022
|
+
clientY: e.clientY || e.pageY
|
|
236023
|
+
};
|
|
236024
|
+
var startPos = hoEditorFactory.drawTree.selectRange.spStart;
|
|
236025
|
+
var node = (_hoEditorFactory$docT = hoEditorFactory.docTree.findNodePositionByPath(startPos.path)) === null || _hoEditorFactory$docT === void 0 ? void 0 : _hoEditorFactory$docT.node;
|
|
236026
|
+
// const path = hoEditorFactory.vueController.getCaretPosition();
|
|
236027
|
+
// let node = hoEditorFactory.vueController.findNodebyPath(path)?.node;
|
|
236028
|
+
|
|
236029
|
+
// if (startPos) {
|
|
236030
|
+
// const npNode = hoEditorFactory.docTree.findNodePositionByPath(startPos.path)?.node;
|
|
236031
|
+
// if (npNode instanceof SignNode) {
|
|
236032
|
+
// node = npNode;
|
|
236033
|
+
// }
|
|
236034
|
+
// }
|
|
236035
|
+
|
|
236036
|
+
// psDesign, // 设计状态
|
|
236037
|
+
// psEdit, // 编辑状态
|
|
236038
|
+
// psPreview, // 打印预览
|
|
236039
|
+
// psPrint, // 打印
|
|
236040
|
+
// psReview, // 审阅
|
|
236041
|
+
// psReadOnly, // 预览
|
|
236042
|
+
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psDesign */.Dh.psDesign && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psEdit */.Dh.psEdit) {
|
|
236043
|
+
_this6.isCreateRightMenuModal = true;
|
|
236044
|
+
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psReview */.Dh.psReview) {
|
|
236045
|
+
if (node instanceof SignNode/* SignNode */.N && node.number > 0) {
|
|
236046
|
+
_this6.showDeleteSignMenu = true;
|
|
236047
|
+
_this6.hoEditorProvider.setRightClickNodeValue(node);
|
|
236048
|
+
} else {
|
|
236049
|
+
_this6.showDeleteSignMenu = false;
|
|
236050
|
+
}
|
|
236036
236051
|
} else {
|
|
236037
|
-
|
|
236052
|
+
_this6.isHideComments = hoEditorFactory.isHideComments;
|
|
236053
|
+
_this6.showCommentsBtn = true;
|
|
236038
236054
|
}
|
|
236039
|
-
|
|
236040
|
-
|
|
236041
|
-
this.showCommentsBtn = true;
|
|
236055
|
+
(0,plugins_util/* createRightMenu */.GN)(rightPosition.clientX, rightPosition.clientY, _this6.$refs.rightMenuModal);
|
|
236056
|
+
return;
|
|
236042
236057
|
}
|
|
236043
|
-
(
|
|
236044
|
-
|
|
236045
|
-
|
|
236046
|
-
|
|
236047
|
-
|
|
236048
|
-
}
|
|
236049
|
-
hoEditorFactory.drawTree.selectRange.beginRangeSelect = false;
|
|
236050
|
-
this.$emit('rightClickEventIn', rightPosition);
|
|
236058
|
+
if (node && node !== null && node instanceof BaseNode/* BaseNode */.Hd) {
|
|
236059
|
+
_this6.hoEditorProvider.setRightClickNodeValue(node);
|
|
236060
|
+
}
|
|
236061
|
+
hoEditorFactory.drawTree.selectRange.beginRangeSelect = false;
|
|
236062
|
+
_this6.$emit('rightClickEventIn', rightPosition);
|
|
236063
|
+
});
|
|
236051
236064
|
},
|
|
236052
236065
|
/**
|
|
236053
236066
|
* 打开和隐藏批注
|
|
@@ -236081,10 +236094,10 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
236081
236094
|
});
|
|
236082
236095
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
236083
236096
|
/* 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=
|
|
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=44fd6504&prod&lang=scss&
|
|
236085
236098
|
// extracted by mini-css-extract-plugin
|
|
236086
236099
|
|
|
236087
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
236100
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=44fd6504&prod&lang=scss&
|
|
236088
236101
|
|
|
236089
236102
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
236090
236103
|
|
|
@@ -236097,8 +236110,8 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
236097
236110
|
|
|
236098
236111
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
236099
236112
|
components_HoDocvue_type_script_lang_js_,
|
|
236100
|
-
|
|
236101
|
-
|
|
236113
|
+
HoDocvue_type_template_id_44fd6504_render,
|
|
236114
|
+
HoDocvue_type_template_id_44fd6504_staticRenderFns,
|
|
236102
236115
|
false,
|
|
236103
236116
|
null,
|
|
236104
236117
|
null,
|
|
@@ -254467,7 +254480,10 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
254467
254480
|
(0,esm_defineProperty/* default */.Z)(this, "_printSilently", false);
|
|
254468
254481
|
(0,esm_defineProperty/* default */.Z)(this, "_limitCharNumber", 0);
|
|
254469
254482
|
(0,esm_defineProperty/* default */.Z)(this, "_reviewJson", void 0);
|
|
254470
|
-
(0,esm_defineProperty/* default */.Z)(this, "
|
|
254483
|
+
(0,esm_defineProperty/* default */.Z)(this, "_moveYParams", {
|
|
254484
|
+
startY: 0,
|
|
254485
|
+
moveHeight: 0
|
|
254486
|
+
});
|
|
254471
254487
|
(0,esm_defineProperty/* default */.Z)(this, "_canvasListNode", void 0);
|
|
254472
254488
|
this._hoEditorFactoryId = id;
|
|
254473
254489
|
}
|
|
@@ -255269,13 +255285,13 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
255269
255285
|
}
|
|
255270
255286
|
}
|
|
255271
255287
|
}, {
|
|
255272
|
-
key: "
|
|
255288
|
+
key: "moveYParams",
|
|
255273
255289
|
get: function get() {
|
|
255274
|
-
return this.
|
|
255290
|
+
return this._moveYParams;
|
|
255275
255291
|
},
|
|
255276
255292
|
set: function set(value) {
|
|
255277
|
-
if (value && this.
|
|
255278
|
-
this.
|
|
255293
|
+
if (value && this._moveYParams !== value) {
|
|
255294
|
+
this._moveYParams = value;
|
|
255279
255295
|
}
|
|
255280
255296
|
}
|
|
255281
255297
|
}, {
|
|
@@ -263323,18 +263339,19 @@ var HoRightMenu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
263323
263339
|
}
|
|
263324
263340
|
},
|
|
263325
263341
|
getCurrentSelectNode: function getCurrentSelectNode() {
|
|
263326
|
-
var _hoEditorFactory$
|
|
263342
|
+
var _hoEditorFactory$docT;
|
|
263327
263343
|
var value;
|
|
263328
263344
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.activeDocId);
|
|
263329
|
-
|
|
263345
|
+
// let node = hoEditorFactory.vueController.findNodebyPath(this.domRange.endPath)?.node;
|
|
263346
|
+
|
|
263330
263347
|
var startPos = hoEditorFactory.drawTree.selectRange.spStart;
|
|
263331
|
-
|
|
263332
|
-
|
|
263333
|
-
|
|
263334
|
-
|
|
263335
|
-
|
|
263336
|
-
|
|
263337
|
-
}
|
|
263348
|
+
var node = (_hoEditorFactory$docT = hoEditorFactory.docTree.findNodePositionByPath(startPos.path)) === null || _hoEditorFactory$docT === void 0 ? void 0 : _hoEditorFactory$docT.node;
|
|
263349
|
+
// if (startPos) {
|
|
263350
|
+
// const npNode = hoEditorFactory.docTree.findNodePositionByPath(startPos.path)?.node;
|
|
263351
|
+
// if (npNode instanceof SignNode && npNode.type == 3) {
|
|
263352
|
+
// node = npNode;
|
|
263353
|
+
// }
|
|
263354
|
+
// }
|
|
263338
263355
|
if (node instanceof MarkNode/* MarkNode */.j || node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
263339
263356
|
var parentNode = node.parentNode;
|
|
263340
263357
|
if (parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|