hoeditor-web 3.1.123 → 3.1.125
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 +81 -31
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -9576,7 +9576,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
9576
9576
|
|
|
9577
9577
|
/***/ }),
|
|
9578
9578
|
|
|
9579
|
-
/***/
|
|
9579
|
+
/***/ 31973:
|
|
9580
9580
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
9581
9581
|
|
|
9582
9582
|
"use strict";
|
|
@@ -9596,7 +9596,7 @@ var es_string_includes = __webpack_require__(32023);
|
|
|
9596
9596
|
var es_regexp_exec = __webpack_require__(74916);
|
|
9597
9597
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
9598
9598
|
var es_string_replace = __webpack_require__(15306);
|
|
9599
|
-
;// 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/controls/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
9599
|
+
;// 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/controls/poperSelect/PoperSelect.vue?vue&type=template&id=47501568&
|
|
9600
9600
|
|
|
9601
9601
|
|
|
9602
9602
|
|
|
@@ -10054,7 +10054,7 @@ var render = function render() {
|
|
|
10054
10054
|
};
|
|
10055
10055
|
var staticRenderFns = [];
|
|
10056
10056
|
|
|
10057
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
10057
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=47501568&
|
|
10058
10058
|
|
|
10059
10059
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
10060
10060
|
var toConsumableArray = __webpack_require__(61748);
|
|
@@ -12196,7 +12196,7 @@ var columns = [{
|
|
|
12196
12196
|
},
|
|
12197
12197
|
watch: {
|
|
12198
12198
|
selectedList: function selectedList(oldValue, newValue) {
|
|
12199
|
-
if (oldValue.length
|
|
12199
|
+
if (oldValue.length == 1 || oldValue.length == 0) {
|
|
12200
12200
|
this.poppernIstance && this.poppernIstance.update();
|
|
12201
12201
|
}
|
|
12202
12202
|
}
|
|
@@ -12649,17 +12649,10 @@ var columns = [{
|
|
|
12649
12649
|
if (this.isSelected) return; // 单选时已选过不在进入选择
|
|
12650
12650
|
if (!this.isAllowMultiSelect) {
|
|
12651
12651
|
this.poperSelectList.map(function (v, index) {
|
|
12652
|
-
// if (value.id == v.id) {
|
|
12653
12652
|
v.selected = value.id == v.id;
|
|
12654
|
-
// } else {
|
|
12655
|
-
// v.selected = false;
|
|
12656
|
-
// }
|
|
12657
12653
|
return v;
|
|
12658
12654
|
});
|
|
12659
|
-
// item.selected = !item.selected;
|
|
12660
12655
|
this.isSelected = true;
|
|
12661
|
-
// this.poperSelectList.splice(selectItemIndex, 1, item);
|
|
12662
|
-
// this.currentList = [...this.poperSelectList];
|
|
12663
12656
|
this.sureSelect(value.input);
|
|
12664
12657
|
} else {
|
|
12665
12658
|
console.time('搜索时间');
|
|
@@ -12958,10 +12951,10 @@ var columns = [{
|
|
|
12958
12951
|
});
|
|
12959
12952
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
|
|
12960
12953
|
/* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
|
|
12961
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
12954
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=47501568&prod&lang=less&
|
|
12962
12955
|
// extracted by mini-css-extract-plugin
|
|
12963
12956
|
|
|
12964
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
12957
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=47501568&prod&lang=less&
|
|
12965
12958
|
|
|
12966
12959
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
12967
12960
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -66420,6 +66413,8 @@ function escapeHTML(s) {
|
|
|
66420
66413
|
|
|
66421
66414
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TableFormula.ts
|
|
66422
66415
|
var TableFormula = __webpack_require__(90832);
|
|
66416
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/PopQScoreNode.ts
|
|
66417
|
+
var PopQScoreNode = __webpack_require__(12790);
|
|
66423
66418
|
;// CONCATENATED MODULE: ./src/editor/dom/treeNode/TextInputFieldNode.ts
|
|
66424
66419
|
|
|
66425
66420
|
|
|
@@ -66490,6 +66485,7 @@ var TableFormula = __webpack_require__(90832);
|
|
|
66490
66485
|
|
|
66491
66486
|
|
|
66492
66487
|
|
|
66488
|
+
|
|
66493
66489
|
|
|
66494
66490
|
|
|
66495
66491
|
var ReadOnlyStatus;
|
|
@@ -67055,10 +67051,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67055
67051
|
} else if ((0,esm_typeof/* default */.Z)(target[value]) == 'object') {
|
|
67056
67052
|
if (Object.prototype.toString.call(source[value]) === '[object Object]') {
|
|
67057
67053
|
assignvalue(target[value], source[value]);
|
|
67058
|
-
} else {
|
|
67059
|
-
|
|
67060
|
-
assignvalue(target[value], JSON.parse(source[value]));
|
|
67061
|
-
}
|
|
67054
|
+
} else if (source[value] !== '' && source[value] !== null) {
|
|
67055
|
+
assignvalue(target[value], JSON.parse(source[value]));
|
|
67062
67056
|
}
|
|
67063
67057
|
} else {
|
|
67064
67058
|
target[value] = source[value];
|
|
@@ -67312,7 +67306,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67312
67306
|
return this._customProperty;
|
|
67313
67307
|
},
|
|
67314
67308
|
set: function set(value) {
|
|
67315
|
-
if (this._customProperty !== value) {
|
|
67309
|
+
if (this._customProperty !== value && value !== "") {
|
|
67316
67310
|
this._customProperty = value;
|
|
67317
67311
|
}
|
|
67318
67312
|
}
|
|
@@ -67628,6 +67622,18 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67628
67622
|
expressJson.cycleDays = childNode.cycleDays;
|
|
67629
67623
|
expressJson.menarcheAge = childNode.menarcheAge;
|
|
67630
67624
|
expressJson.menoPauseAge = childNode.menoPauseAge;
|
|
67625
|
+
} else if (childNode instanceof PopQScoreNode/* PopQScoreNode */.B) {
|
|
67626
|
+
debugger;
|
|
67627
|
+
expressJson.expressStyle = 'popQScore';
|
|
67628
|
+
expressJson.Aa = childNode.aa;
|
|
67629
|
+
expressJson.Ba = childNode.ba;
|
|
67630
|
+
expressJson.C = childNode.c;
|
|
67631
|
+
expressJson.gh = childNode.gh;
|
|
67632
|
+
expressJson.pb = childNode.pb;
|
|
67633
|
+
expressJson.TVL = childNode.tVL;
|
|
67634
|
+
expressJson.Ap = childNode.ap;
|
|
67635
|
+
expressJson.Bp = childNode.bp;
|
|
67636
|
+
expressJson.D = childNode.d;
|
|
67631
67637
|
} else if (childNode instanceof PupilMapNode/* PupilMapNode */.v || childNode instanceof LightLocationMapNode/* LightLocationMapNode */.D || childNode instanceof FetalHeartMapNode/* FetalHeartMapNode */.t) {
|
|
67632
67638
|
expressJson.value1 = childNode.value1;
|
|
67633
67639
|
expressJson.value2 = childNode.value2;
|
|
@@ -68519,6 +68525,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68519
68525
|
json.includesKeyword = !json.includesKeyword ? "[]" : json.includesKeyword;
|
|
68520
68526
|
json.valueArea = !json.valueArea ? "[]" : json.valueArea;
|
|
68521
68527
|
json.isElementLink = !json.isElementLink ? false : json.isElementLink;
|
|
68528
|
+
if (this.name == '窒息后选择') {}
|
|
68522
68529
|
var temp = new TextInputFieldNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, BaseNode/* NodeType */.Jq.ntField, json);
|
|
68523
68530
|
// this.insertChild
|
|
68524
68531
|
if (json.childNodes) {
|
|
@@ -68713,6 +68720,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68713
68720
|
}
|
|
68714
68721
|
} else {
|
|
68715
68722
|
var expressArr = new Array();
|
|
68723
|
+
//兼容<MedicalExpress>{}</MedicalExpress>
|
|
68724
|
+
if (temp.text === '<MedicalExpress>{}</MedicalExpress>') {
|
|
68725
|
+
temp.text = fieldText;
|
|
68726
|
+
}
|
|
68716
68727
|
if (temp.text.includes('<MedicalExpress>')) {
|
|
68717
68728
|
var getAllMedicalExpress = function getAllMedicalExpress(str) {
|
|
68718
68729
|
var sIndex = str.lastIndexOf('<MedicalExpress>');
|
|
@@ -68875,6 +68886,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68875
68886
|
medicalExpressNode = new FetalHeartMapNode/* FetalHeartMapNode */.t(hoEditorFactoryID, rootNodes, temp, BaseNode/* NodeType */.Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6);
|
|
68876
68887
|
} else if (expressStyle === 'PermanentTeethMapNode') {
|
|
68877
68888
|
medicalExpressNode = new PermanentTeethMapNode/* PermanentTeethMapNode */.f(hoEditorFactoryID, rootNodes, temp, BaseNode/* NodeType */.Jq.ntMedicalExpression, expressObj.topLeftSelected, expressObj.topRightSelected, expressObj.bottomLeftSelected, expressObj.bottomRightSelected, expressObj.remark);
|
|
68889
|
+
} else if (expressStyle === 'popQScore') {
|
|
68890
|
+
medicalExpressNode = new PopQScoreNode/* PopQScoreNode */.B(hoEditorFactoryID, rootNodes, temp, BaseNode/* NodeType */.Jq.ntMedicalExpression, expressObj.Aa, expressObj.Ba, expressObj.C, expressObj.gh, expressObj.pb, expressObj.TVL, expressObj.Ap, expressObj.Bp, expressObj.D);
|
|
68878
68891
|
} else {
|
|
68879
68892
|
medicalExpressNode = new PrimaryTeethMapNode/* PrimaryTeethMapNode */.x(hoEditorFactoryID, rootNodes, temp, BaseNode/* NodeType */.Jq.ntMedicalExpression, expressObj.topLeftSelected, expressObj.topRightSelected, expressObj.bottomLeftSelected, expressObj.bottomRightSelected);
|
|
68880
68893
|
}
|
|
@@ -169587,7 +169600,7 @@ var map = {
|
|
|
169587
169600
|
"./pageInfoes/PageInfoes.vue": 99749,
|
|
169588
169601
|
"./paragraph/ParagraphDialog.vue": 58874,
|
|
169589
169602
|
"./poperSelect/PoperMark.vue": 20734,
|
|
169590
|
-
"./poperSelect/PoperSelect.vue":
|
|
169603
|
+
"./poperSelect/PoperSelect.vue": 31973,
|
|
169591
169604
|
"./poperTipText/PoperTipText.vue": 50987,
|
|
169592
169605
|
"./popers/Poper.vue": 57937,
|
|
169593
169606
|
"./popers/Title.vue": 31276,
|
|
@@ -207044,8 +207057,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
207044
207057
|
var es_number_constructor = __webpack_require__(9653);
|
|
207045
207058
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
207046
207059
|
var es_json_stringify = __webpack_require__(38862);
|
|
207047
|
-
;// 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=
|
|
207048
|
-
var
|
|
207060
|
+
;// 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=fe8a53a0&
|
|
207061
|
+
var HoDocvue_type_template_id_fe8a53a0_render = function render() {
|
|
207049
207062
|
var _vm = this,
|
|
207050
207063
|
_c = _vm._self._c;
|
|
207051
207064
|
return _c('div', {
|
|
@@ -207246,7 +207259,7 @@ var HoDocvue_type_template_id_08fea252_render = function render() {
|
|
|
207246
207259
|
}
|
|
207247
207260
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
207248
207261
|
};
|
|
207249
|
-
var
|
|
207262
|
+
var HoDocvue_type_template_id_fe8a53a0_staticRenderFns = [];
|
|
207250
207263
|
|
|
207251
207264
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
207252
207265
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -208832,7 +208845,7 @@ var HoToPage_component = (0,componentNormalizer/* default */.Z)(
|
|
|
208832
208845
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
208833
208846
|
var plugins_util = __webpack_require__(62783);
|
|
208834
208847
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 9 modules
|
|
208835
|
-
var PoperSelect = __webpack_require__(
|
|
208848
|
+
var PoperSelect = __webpack_require__(31973);
|
|
208836
208849
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
|
|
208837
208850
|
var PoperMark = __webpack_require__(20734);
|
|
208838
208851
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
|
|
@@ -210237,7 +210250,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
210237
210250
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
210238
210251
|
var ParagraphNode = __webpack_require__(67945);
|
|
210239
210252
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
210240
|
-
/* harmony default export */ var version = ('3.1.
|
|
210253
|
+
/* harmony default export */ var version = ('3.1.125');
|
|
210241
210254
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
210242
210255
|
var PoperTipText = __webpack_require__(50987);
|
|
210243
210256
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -210604,6 +210617,9 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
210604
210617
|
var node = e.node;
|
|
210605
210618
|
this.selectMarkStyle.display = 'none';
|
|
210606
210619
|
this.poperClose();
|
|
210620
|
+
if (hoEditorFactory.drawTree.paintStatus == DrawTree/* PaintState */.Dh.psEdit || hoEditorFactory.drawTree.paintStatus == DrawTree/* PaintState */.Dh.psTrace) {
|
|
210621
|
+
if (this.isCanEdit()) return;
|
|
210622
|
+
}
|
|
210607
210623
|
if (node && node !== null) {
|
|
210608
210624
|
var pageIndex = e.pageIndex;
|
|
210609
210625
|
if (e.clickType === 'dblclick') {
|
|
@@ -210847,7 +210863,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
210847
210863
|
var _this5 = this;
|
|
210848
210864
|
this.selectMarkStyle.display = 'none';
|
|
210849
210865
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorProvider.activeDocId);
|
|
210850
|
-
if
|
|
210866
|
+
// if(this.isCanEdit(hoEditorFactory)) return;
|
|
210851
210867
|
var paintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
210852
210868
|
var node = hoEditorFactory.vueController.getNodeByDataID('main', this.selectMarkStyle.dataid);
|
|
210853
210869
|
setTimeout(function () {
|
|
@@ -210876,7 +210892,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
210876
210892
|
return parentNode;
|
|
210877
210893
|
},
|
|
210878
210894
|
createSelectMark: function createSelectMark(node, paintStatus, pageIndex) {
|
|
210879
|
-
if
|
|
210895
|
+
// if(this.isCanEdit()) return;
|
|
210880
210896
|
var parentNode = this.getRootNode(node);
|
|
210881
210897
|
if (parentNode) {
|
|
210882
210898
|
var _parentNode$downListP;
|
|
@@ -210913,7 +210929,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
210913
210929
|
},
|
|
210914
210930
|
createDownListProper: function createDownListProper(node, paintStatus, pageIndex) {
|
|
210915
210931
|
var _this6 = this;
|
|
210916
|
-
if
|
|
210932
|
+
// if(this.isCanEdit()) return;
|
|
210917
210933
|
if (paintStatus === 0) {
|
|
210918
210934
|
this.hoEditorProvider.setControlProperty('select', 'update', '');
|
|
210919
210935
|
return;
|
|
@@ -211261,10 +211277,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
211261
211277
|
});
|
|
211262
211278
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
211263
211279
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
211264
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
211280
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=fe8a53a0&prod&lang=less&
|
|
211265
211281
|
// extracted by mini-css-extract-plugin
|
|
211266
211282
|
|
|
211267
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
211283
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=fe8a53a0&prod&lang=less&
|
|
211268
211284
|
|
|
211269
211285
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
211270
211286
|
|
|
@@ -211277,8 +211293,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
211277
211293
|
|
|
211278
211294
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
211279
211295
|
components_HoDocvue_type_script_lang_js_,
|
|
211280
|
-
|
|
211281
|
-
|
|
211296
|
+
HoDocvue_type_template_id_fe8a53a0_render,
|
|
211297
|
+
HoDocvue_type_template_id_fe8a53a0_staticRenderFns,
|
|
211282
211298
|
false,
|
|
211283
211299
|
null,
|
|
211284
211300
|
null,
|
|
@@ -227061,6 +227077,40 @@ var VueController = /*#__PURE__*/function () {
|
|
|
227061
227077
|
value: function getHoEditorFactory() {
|
|
227062
227078
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
227063
227079
|
}
|
|
227080
|
+
}, {
|
|
227081
|
+
key: "scrollToLastLine",
|
|
227082
|
+
value: function scrollToLastLine() {
|
|
227083
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
227084
|
+
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
227085
|
+
var headerHeight = hoEditorFactory.drawPageTree.drawHeaders[0].displayHeight;
|
|
227086
|
+
var heightPixes = hoEditorFactory.pageProperty.heightPixes;
|
|
227087
|
+
var node = mainNodes[mainNodes.length - 1];
|
|
227088
|
+
var maxBox = document.querySelector(".edit-area");
|
|
227089
|
+
var box = document.querySelector(".ho-editor-list");
|
|
227090
|
+
var top = maxBox.clientHeight - box.clientHeight;
|
|
227091
|
+
var stageY = 0;
|
|
227092
|
+
if (node.drawNodes.length > 0) {
|
|
227093
|
+
var dNode = node.drawNodes[0];
|
|
227094
|
+
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(dNode);
|
|
227095
|
+
if (dline) {
|
|
227096
|
+
stageY = headerHeight + dline.y;
|
|
227097
|
+
}
|
|
227098
|
+
} else {
|
|
227099
|
+
var path = node.getNodePath();
|
|
227100
|
+
var _dline = hoEditorFactory.drawTree.getDlineByPath(path);
|
|
227101
|
+
if (_dline) {
|
|
227102
|
+
stageY = headerHeight + _dline.y + _dline.dHeight;
|
|
227103
|
+
}
|
|
227104
|
+
}
|
|
227105
|
+
if (stageY) {
|
|
227106
|
+
top = top - (heightPixes - stageY) + 30;
|
|
227107
|
+
}
|
|
227108
|
+
box.scrollTo({
|
|
227109
|
+
top: top,
|
|
227110
|
+
left: 0,
|
|
227111
|
+
behavior: "auto"
|
|
227112
|
+
});
|
|
227113
|
+
}
|
|
227064
227114
|
}]);
|
|
227065
227115
|
return VueController;
|
|
227066
227116
|
}();
|