hoeditor-web 3.1.208 → 3.1.209
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 +15845 -1
- package/lib/hoeditor.umd.js +598 -600
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -99645,7 +99645,7 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
|
99645
99645
|
|
|
99646
99646
|
/***/ }),
|
|
99647
99647
|
|
|
99648
|
-
/***/
|
|
99648
|
+
/***/ 68738:
|
|
99649
99649
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
99650
99650
|
|
|
99651
99651
|
"use strict";
|
|
@@ -99659,7 +99659,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
99659
99659
|
|
|
99660
99660
|
// EXTERNAL MODULE: ./src/i18n/index.ts + 1 modules
|
|
99661
99661
|
var i18n = __webpack_require__(49850);
|
|
99662
|
-
;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/selectDialog/SelectDialog.vue?vue&type=template&id=
|
|
99662
|
+
;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/selectDialog/SelectDialog.vue?vue&type=template&id=6f69b467
|
|
99663
99663
|
|
|
99664
99664
|
var render = function render() {
|
|
99665
99665
|
var _vm = this,
|
|
@@ -99827,7 +99827,15 @@ var render = function render() {
|
|
|
99827
99827
|
},
|
|
99828
99828
|
expression: "readType"
|
|
99829
99829
|
}
|
|
99830
|
-
}, [_vm._v(/*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.222", null, "自动回填"))])
|
|
99830
|
+
}, [_vm._v(/*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.222", null, "自动回填"))]), _c('a-checkbox', {
|
|
99831
|
+
model: {
|
|
99832
|
+
value: _vm.toText,
|
|
99833
|
+
callback: function ($$v) {
|
|
99834
|
+
_vm.toText = $$v;
|
|
99835
|
+
},
|
|
99836
|
+
expression: "toText"
|
|
99837
|
+
}
|
|
99838
|
+
}, [_vm._v("转换到文本域")])], 1), _c('li', {
|
|
99831
99839
|
staticClass: "control-item"
|
|
99832
99840
|
}, [_c('span', {
|
|
99833
99841
|
staticClass: "label"
|
|
@@ -100082,10 +100090,12 @@ var render = function render() {
|
|
|
100082
100090
|
};
|
|
100083
100091
|
var staticRenderFns = [];
|
|
100084
100092
|
|
|
100085
|
-
;// ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=template&id=
|
|
100093
|
+
;// ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=template&id=6f69b467
|
|
100086
100094
|
|
|
100087
100095
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
100088
100096
|
var es_array_push = __webpack_require__(44114);
|
|
100097
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
100098
|
+
var es_json_stringify = __webpack_require__(33110);
|
|
100089
100099
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
100090
100100
|
var es_regexp_exec = __webpack_require__(27495);
|
|
100091
100101
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
@@ -100108,6 +100118,8 @@ var DownListNode = __webpack_require__(82400);
|
|
|
100108
100118
|
var HOEditorFactorys = __webpack_require__(57703);
|
|
100109
100119
|
// EXTERNAL MODULE: ./src/plugins/type.ts
|
|
100110
100120
|
var type = __webpack_require__(53861);
|
|
100121
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TextInputFieldNode.ts + 1 modules
|
|
100122
|
+
var TextInputFieldNode = __webpack_require__(65018);
|
|
100111
100123
|
;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[19].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/selectDialog/SelectDialog.vue?vue&type=script&lang=js
|
|
100112
100124
|
|
|
100113
100125
|
|
|
@@ -100126,6 +100138,9 @@ var type = __webpack_require__(53861);
|
|
|
100126
100138
|
|
|
100127
100139
|
|
|
100128
100140
|
|
|
100141
|
+
|
|
100142
|
+
|
|
100143
|
+
|
|
100129
100144
|
|
|
100130
100145
|
|
|
100131
100146
|
|
|
@@ -100154,6 +100169,7 @@ var type = __webpack_require__(53861);
|
|
|
100154
100169
|
dataMetaIdentifier: '',
|
|
100155
100170
|
identifierFormat: '',
|
|
100156
100171
|
readType: false,
|
|
100172
|
+
toText: false,
|
|
100157
100173
|
keyValue: '',
|
|
100158
100174
|
customProperty: {},
|
|
100159
100175
|
errorArr: [],
|
|
@@ -100457,6 +100473,60 @@ var type = __webpack_require__(53861);
|
|
|
100457
100473
|
this.vueController.insertDownList('add', params, list);
|
|
100458
100474
|
} else if (this.controlStatus === 'update') {
|
|
100459
100475
|
this.clearWatchProps();
|
|
100476
|
+
if (this.toText) {
|
|
100477
|
+
const downListProperty = new TextInputFieldNode/* DownListProperty */.ic();
|
|
100478
|
+
downListProperty.allowMultiSelected = this.allowMultiSelect;
|
|
100479
|
+
downListProperty.splitCharacter = ",";
|
|
100480
|
+
downListProperty.isMultiLinesDisplay = this.false;
|
|
100481
|
+
downListProperty.mutexSelect = this.mutexSelect;
|
|
100482
|
+
downListProperty.usePrefix = this.usePrefix;
|
|
100483
|
+
downListProperty.selectPrefix = this.selectPrefix;
|
|
100484
|
+
downListProperty.unSelectPrefix = this.unSelectPrefix;
|
|
100485
|
+
downListProperty.listItems = JSON.stringify(list);
|
|
100486
|
+
const toTextParams = {
|
|
100487
|
+
inputFieldType: 1,
|
|
100488
|
+
id: this.id,
|
|
100489
|
+
labelText: this.name,
|
|
100490
|
+
text: this.text,
|
|
100491
|
+
name: this.name,
|
|
100492
|
+
tipText: this.tipText,
|
|
100493
|
+
isTipText: false,
|
|
100494
|
+
readOnlyStatus: 1,
|
|
100495
|
+
fixedWidth: 0,
|
|
100496
|
+
isCentered: false,
|
|
100497
|
+
canModifyContent: true,
|
|
100498
|
+
isAllowDelete: this.isAllowDelete,
|
|
100499
|
+
enableGlobalColor: false,
|
|
100500
|
+
downListProperty: downListProperty,
|
|
100501
|
+
customProperty: this.customProperty,
|
|
100502
|
+
alignWithBlocked: false,
|
|
100503
|
+
innerIdentifier: this.innerIdentifier,
|
|
100504
|
+
//内部标识符
|
|
100505
|
+
dataMetaIdentifier: this.dataMetaIdentifier,
|
|
100506
|
+
//数据元标识符
|
|
100507
|
+
identifierFormat: this.identifierFormat,
|
|
100508
|
+
//标识格式
|
|
100509
|
+
readType: this.readType,
|
|
100510
|
+
readTypeBool: this.readType ? 1 : 0,
|
|
100511
|
+
keyValue: keyValue.join(','),
|
|
100512
|
+
value: value.join(','),
|
|
100513
|
+
insCheckSyncUpdateList: false,
|
|
100514
|
+
hideDuringPrint: false,
|
|
100515
|
+
notReplaceElement: false,
|
|
100516
|
+
includesKeyword: JSON.stringify([]),
|
|
100517
|
+
// 元素包含关键字
|
|
100518
|
+
valueArea: JSON.stringify([]) // 元素值域范围
|
|
100519
|
+
};
|
|
100520
|
+
const downlistNode = this.getSelectNode();
|
|
100521
|
+
if (downlistNode) {
|
|
100522
|
+
this.vueController.deleteNode(downlistNode);
|
|
100523
|
+
this.$nextTick(() => {
|
|
100524
|
+
this.vueController.insertTextInputField("add", toTextParams);
|
|
100525
|
+
this.$nextTick(() => this.handleClose());
|
|
100526
|
+
});
|
|
100527
|
+
return;
|
|
100528
|
+
}
|
|
100529
|
+
}
|
|
100460
100530
|
this.modifyProps.value = params.value;
|
|
100461
100531
|
this.modifyProps.keyValue = params.keyValue;
|
|
100462
100532
|
this.modifyProps['customProperty'] = this.customProperty;
|
|
@@ -100480,10 +100550,10 @@ var type = __webpack_require__(53861);
|
|
|
100480
100550
|
|
|
100481
100551
|
/* harmony default export */ var selectDialog_SelectDialogvue_type_script_lang_js = (SelectDialogvue_type_script_lang_js);
|
|
100482
100552
|
|
|
100483
|
-
;// ./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/selectDialog/SelectDialog.vue?vue&type=style&index=0&id=
|
|
100553
|
+
;// ./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/selectDialog/SelectDialog.vue?vue&type=style&index=0&id=6f69b467&prod&lang=less
|
|
100484
100554
|
// extracted by mini-css-extract-plugin
|
|
100485
100555
|
|
|
100486
|
-
;// ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=style&index=0&id=
|
|
100556
|
+
;// ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=style&index=0&id=6f69b467&prod&lang=less
|
|
100487
100557
|
|
|
100488
100558
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
100489
100559
|
var componentNormalizer = __webpack_require__(81656);
|
|
@@ -106137,7 +106207,7 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
|
106137
106207
|
|
|
106138
106208
|
/***/ }),
|
|
106139
106209
|
|
|
106140
|
-
/***/
|
|
106210
|
+
/***/ 95044:
|
|
106141
106211
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
106142
106212
|
|
|
106143
106213
|
"use strict";
|
|
@@ -106151,7 +106221,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
106151
106221
|
|
|
106152
106222
|
// EXTERNAL MODULE: ./src/i18n/index.ts + 1 modules
|
|
106153
106223
|
var i18n = __webpack_require__(49850);
|
|
106154
|
-
;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableFormula.vue?vue&type=template&id=
|
|
106224
|
+
;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableFormula.vue?vue&type=template&id=1d194886
|
|
106155
106225
|
|
|
106156
106226
|
var render = function render() {
|
|
106157
106227
|
var _vm = this,
|
|
@@ -106764,7 +106834,7 @@ var staticRenderFns = [function () {
|
|
|
106764
106834
|
}, [_c('span', [_vm._v(/*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.254", null, "单元格编号"))]), _vm._v(":")]);
|
|
106765
106835
|
}];
|
|
106766
106836
|
|
|
106767
|
-
;// ./src/components/controls/table/TableFormula.vue?vue&type=template&id=
|
|
106837
|
+
;// ./src/components/controls/table/TableFormula.vue?vue&type=template&id=1d194886
|
|
106768
106838
|
|
|
106769
106839
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
106770
106840
|
var es_array_push = __webpack_require__(44114);
|
|
@@ -106871,7 +106941,9 @@ var HoColorPicker = __webpack_require__(53071);
|
|
|
106871
106941
|
iss: [/*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.256", null, "计算ISS的一般原则:本法把人体分为6个区域,ISS是身体3个最严重损伤区域的最高AIS值的平方和。ISS=AIS1²+AIS2²+AIS3²"), /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.255", null, "示例:a1,a2,a3,a4,a5,a6")],
|
|
106872
106942
|
curveChart: [
|
|
106873
106943
|
// "视力曲线图(Visual Acuity Curve)是眼科检查中常用的一种工具,用于评估和记录不同距离或不同条件下的视力情况。通过绘制视力曲线图,医生可以直观地了解患者的视力变化,从而帮助诊断和治疗各种眼部疾病。",
|
|
106874
|
-
"横轴(X轴): 通常表示距离,单位可以是米(m)或英尺(ft), 值域区间为(+2.00 到 -5.00, 每单元格间隔为0.5)",
|
|
106944
|
+
// "横轴(X轴): 通常表示距离,单位可以是米(m)或英尺(ft), 值域区间为(+2.00 到 -5.00, 每单元格间隔为0.5)",
|
|
106945
|
+
// "纵轴(Y轴): 表示视力,通常以最小分辨角对数表示。值域区间为(0.0到1.5之间, 每单元格间隔为0.1)",
|
|
106946
|
+
"单元格编号:(a1:a3表示从a1到a3的连续单元格)"]
|
|
106875
106947
|
},
|
|
106876
106948
|
bodySurfaceAreaWeight: '',
|
|
106877
106949
|
startDateCode: '',
|
|
@@ -107036,7 +107108,9 @@ var HoColorPicker = __webpack_require__(53071);
|
|
|
107036
107108
|
this.vueController.lockCell(this.curve);
|
|
107037
107109
|
}
|
|
107038
107110
|
setTimeout(() => {
|
|
107039
|
-
this.
|
|
107111
|
+
this.curve.codeX = this.curve.codeX.toLocaleLowerCase();
|
|
107112
|
+
this.curve.codeY = this.curve.codeY.toLocaleLowerCase();
|
|
107113
|
+
this.vueController.insertTableFormula(this.curve.codeY, this.isHideZero, TableFormula/* FormularType */.D.ftCurveChart, this.curve);
|
|
107040
107114
|
}, 100);
|
|
107041
107115
|
}
|
|
107042
107116
|
this.handleClose();
|
|
@@ -107061,10 +107135,10 @@ var HoColorPicker = __webpack_require__(53071);
|
|
|
107061
107135
|
|
|
107062
107136
|
/* harmony default export */ var table_TableFormulavue_type_script_lang_js = (TableFormulavue_type_script_lang_js);
|
|
107063
107137
|
|
|
107064
|
-
;// ./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/table/TableFormula.vue?vue&type=style&index=0&id=
|
|
107138
|
+
;// ./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/table/TableFormula.vue?vue&type=style&index=0&id=1d194886&prod&lang=less
|
|
107065
107139
|
// extracted by mini-css-extract-plugin
|
|
107066
107140
|
|
|
107067
|
-
;// ./src/components/controls/table/TableFormula.vue?vue&type=style&index=0&id=
|
|
107141
|
+
;// ./src/components/controls/table/TableFormula.vue?vue&type=style&index=0&id=1d194886&prod&lang=less
|
|
107068
107142
|
|
|
107069
107143
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
107070
107144
|
var componentNormalizer = __webpack_require__(81656);
|
|
@@ -110085,8 +110159,8 @@ var staticRenderFns = [];
|
|
|
110085
110159
|
|
|
110086
110160
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
110087
110161
|
var es_array_push = __webpack_require__(44114);
|
|
110088
|
-
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ImageNode.ts
|
|
110089
|
-
var ImageNode = __webpack_require__(
|
|
110162
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ImageNode.ts + 1 modules
|
|
110163
|
+
var ImageNode = __webpack_require__(55133);
|
|
110090
110164
|
// EXTERNAL MODULE: ./src/HOEditorFactorys.ts
|
|
110091
110165
|
var HOEditorFactorys = __webpack_require__(57703);
|
|
110092
110166
|
// EXTERNAL MODULE: ./src/components/controls/colorPicker/HoColorPickers.vue + 5 modules
|
|
@@ -110734,8 +110808,8 @@ var es_json_stringify = __webpack_require__(33110);
|
|
|
110734
110808
|
var esnext_iterator_constructor = __webpack_require__(98992);
|
|
110735
110809
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.for-each.js
|
|
110736
110810
|
var esnext_iterator_for_each = __webpack_require__(3949);
|
|
110737
|
-
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ImageNode.ts
|
|
110738
|
-
var ImageNode = __webpack_require__(
|
|
110811
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ImageNode.ts + 1 modules
|
|
110812
|
+
var ImageNode = __webpack_require__(55133);
|
|
110739
110813
|
// EXTERNAL MODULE: ./src/HOEditorFactorys.ts
|
|
110740
110814
|
var HOEditorFactorys = __webpack_require__(57703);
|
|
110741
110815
|
// EXTERNAL MODULE: ./src/components/controls/colorPicker/HoColorPickers.vue + 5 modules
|
|
@@ -117303,7 +117377,7 @@ class SubDocManger {
|
|
|
117303
117377
|
/* harmony import */ var _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(14851);
|
|
117304
117378
|
/* harmony import */ var _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(65018);
|
|
117305
117379
|
/* harmony import */ var _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(39885);
|
|
117306
|
-
/* harmony import */ var _treeNode_ImageNode__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(
|
|
117380
|
+
/* harmony import */ var _treeNode_ImageNode__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(55133);
|
|
117307
117381
|
/* harmony import */ var _treeNode_BarcodeNode__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(30942);
|
|
117308
117382
|
/* harmony import */ var _treeNode_QrcodeNode__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(33498);
|
|
117309
117383
|
/* harmony import */ var _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(30486);
|
|
@@ -120514,16 +120588,24 @@ class DocController {
|
|
|
120514
120588
|
*/
|
|
120515
120589
|
insertComment(text, curDomRange, source) {
|
|
120516
120590
|
const domRange = curDomRange.normalize();
|
|
120591
|
+
const npEnd = domRange.npEnd.node;
|
|
120517
120592
|
if (!domRange.npStart.node) {
|
|
120518
120593
|
throw _events_Exception__WEBPACK_IMPORTED_MODULE_42__/* .Exception */ .W.NodeNotFound();
|
|
120519
120594
|
}
|
|
120520
|
-
if (!
|
|
120595
|
+
if (!npEnd) {
|
|
120521
120596
|
throw _events_Exception__WEBPACK_IMPORTED_MODULE_42__/* .Exception */ .W.NodeNotFound();
|
|
120522
120597
|
}
|
|
120523
120598
|
const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_67__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
|
|
120524
120599
|
const commentID = hoEditorFactory.gernerateCode.generateID('C');
|
|
120525
120600
|
const startPath = domRange.startPath;
|
|
120526
|
-
|
|
120601
|
+
let endPath = domRange.endPath;
|
|
120602
|
+
// 插入批注时候如果选区在空文本域内,取文本域结尾MarkNode路径作为endPath 把标记节点放在文本域外面避免文本域结构被破坏
|
|
120603
|
+
if (npEnd && npEnd instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_37__/* .MarkNode */ .y && npEnd.MarkNodeType == _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_37__/* .MarkNodeType */ .g.mtContent) {
|
|
120604
|
+
const nextLeafNode = npEnd.nextLeaf();
|
|
120605
|
+
if (nextLeafNode) {
|
|
120606
|
+
endPath = nextLeafNode.getNodePath();
|
|
120607
|
+
}
|
|
120608
|
+
}
|
|
120527
120609
|
const ePNode = hoEditorFactory.docTree.getParentNode(endPath); //结束节点的父节点
|
|
120528
120610
|
const endNode = new _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_37__/* .MarkNode */ .y(this._hoEditorFactoryID, domRange.npStart.roots, ePNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .NodeType */ .Z6.ntMark, commentID, 0, _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_37__/* .MarkNodeType */ .g.mtEnd);
|
|
120529
120611
|
endNode.MarkNodeType = _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_37__/* .MarkNodeType */ .g.mtEnd;
|
|
@@ -130507,57 +130589,252 @@ class GestationNode extends _ControlNode__WEBPACK_IMPORTED_MODULE_7__/* .Control
|
|
|
130507
130589
|
|
|
130508
130590
|
/***/ }),
|
|
130509
130591
|
|
|
130510
|
-
/***/
|
|
130592
|
+
/***/ 55133:
|
|
130511
130593
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
130512
130594
|
|
|
130513
130595
|
"use strict";
|
|
130514
|
-
|
|
130515
|
-
|
|
130516
|
-
|
|
130517
|
-
|
|
130518
|
-
|
|
130519
|
-
|
|
130520
|
-
|
|
130521
|
-
|
|
130522
|
-
|
|
130523
|
-
|
|
130596
|
+
|
|
130597
|
+
// EXPORTS
|
|
130598
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
130599
|
+
K: function() { return /* binding */ ImageNode; }
|
|
130600
|
+
});
|
|
130601
|
+
|
|
130602
|
+
// EXTERNAL MODULE: ./src/i18n/index.ts + 1 modules
|
|
130603
|
+
var i18n = __webpack_require__(49850);
|
|
130604
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js + 2 modules
|
|
130605
|
+
var defineProperty = __webpack_require__(32356);
|
|
130606
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
130607
|
+
var es_array_push = __webpack_require__(44114);
|
|
130608
|
+
// EXTERNAL MODULE: ./src/yuki-createjs/index.ts
|
|
130609
|
+
var yuki_createjs = __webpack_require__(56419);
|
|
130610
|
+
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawCombineNode.ts
|
|
130611
|
+
var DrawCombineNode = __webpack_require__(10431);
|
|
130612
|
+
// EXTERNAL MODULE: ./src/editor/draw/DrawResize.ts
|
|
130613
|
+
var DrawResize = __webpack_require__(36883);
|
|
130614
|
+
// EXTERNAL MODULE: ./src/HOEditorFactorys.ts
|
|
130615
|
+
var HOEditorFactorys = __webpack_require__(57703);
|
|
130616
|
+
// EXTERNAL MODULE: ./src/editor/SubDocManger.ts
|
|
130617
|
+
var SubDocManger = __webpack_require__(63942);
|
|
130618
|
+
// EXTERNAL MODULE: ./src/editor/events/NodeChangeEvent.ts
|
|
130619
|
+
var NodeChangeEvent = __webpack_require__(3530);
|
|
130620
|
+
// EXTERNAL MODULE: ./src/editor/dom/DocTree.ts
|
|
130621
|
+
var DocTree = __webpack_require__(86247);
|
|
130622
|
+
// EXTERNAL MODULE: ./src/editor/draw/SelectRange.ts
|
|
130623
|
+
var SelectRange = __webpack_require__(49576);
|
|
130624
|
+
;// ./src/editor/draw/drawNode/DrawImageNode.ts
|
|
130625
|
+
|
|
130626
|
+
/*
|
|
130627
|
+
* @Author: your name
|
|
130628
|
+
* @Date: 2020-11-11 11:04:19
|
|
130629
|
+
* @LastEditTime: 2024-02-04 10:59:15
|
|
130630
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
130631
|
+
* @Description: In User Settings Edit
|
|
130632
|
+
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawImageNode.ts
|
|
130633
|
+
*/
|
|
130634
|
+
|
|
130635
|
+
|
|
130636
|
+
|
|
130637
|
+
|
|
130638
|
+
|
|
130639
|
+
|
|
130640
|
+
|
|
130641
|
+
|
|
130642
|
+
class DrawImageNode extends DrawCombineNode/* DrawCombineNode */.A {
|
|
130643
|
+
constructor(hoeditfactoryID, rootPath, node, index, imagePath, dWidth, dHeight,
|
|
130644
|
+
//scaleX: number,
|
|
130645
|
+
//scaleY: number
|
|
130646
|
+
markImagePath) {
|
|
130647
|
+
super(hoeditfactoryID, rootPath, node, index);
|
|
130648
|
+
(0,defineProperty/* default */.A)(this, "_imagePath", void 0);
|
|
130649
|
+
(0,defineProperty/* default */.A)(this, "_markImagePath", void 0);
|
|
130650
|
+
(0,defineProperty/* default */.A)(this, "_scaleX", void 0);
|
|
130651
|
+
(0,defineProperty/* default */.A)(this, "_scaleY", void 0);
|
|
130652
|
+
(0,defineProperty/* default */.A)(this, "_imageY", void 0);
|
|
130653
|
+
(0,defineProperty/* default */.A)(this, "_drawResize", void 0);
|
|
130654
|
+
(0,defineProperty/* default */.A)(this, "_id", void 0);
|
|
130655
|
+
(0,defineProperty/* default */.A)(this, "_bitMap", void 0);
|
|
130656
|
+
const hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(hoeditfactoryID);
|
|
130657
|
+
const bounds = hoEditorFactory.vueController.getMainBounds(dWidth, dHeight);
|
|
130658
|
+
this.dWidth = Number(bounds.imageWidth);
|
|
130659
|
+
this.dHeight = Number(bounds.imageHeight);
|
|
130660
|
+
this._imagePath = imagePath;
|
|
130661
|
+
this._markImagePath = markImagePath;
|
|
130662
|
+
this._imageY = -this.dHeight;
|
|
130663
|
+
this.insertImage();
|
|
130664
|
+
this._drawResize = new DrawResize/* DrawResize */.z(hoeditfactoryID, this.node, this, this._imageY);
|
|
130665
|
+
}
|
|
130666
|
+
get markImagePath() {
|
|
130667
|
+
return this._markImagePath;
|
|
130668
|
+
}
|
|
130669
|
+
get imagePath() {
|
|
130670
|
+
return this._imagePath;
|
|
130671
|
+
}
|
|
130672
|
+
get drawResize() {
|
|
130673
|
+
return this._drawResize;
|
|
130674
|
+
}
|
|
130675
|
+
insertImage() {
|
|
130676
|
+
const drawNode = this;
|
|
130677
|
+
const image = new Image();
|
|
130678
|
+
// const markImage = new Image();
|
|
130679
|
+
// let markImageBitmap!: createjs.Bitmap;
|
|
130680
|
+
image.src = this.imagePath;
|
|
130681
|
+
this._bitMap = new createjs.Bitmap(image);
|
|
130682
|
+
const hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(drawNode.node.hoEditorFactoryID);
|
|
130683
|
+
this._bitMap.y = this._imageY;
|
|
130684
|
+
this._bitMap.x = 0;
|
|
130685
|
+
this._bitMap.name = this.node.id;
|
|
130686
|
+
this._bitMap.setBounds(0, 0, drawNode.dWidth, drawNode.dHeight);
|
|
130687
|
+
hoEditorFactory.loadImageCount++;
|
|
130688
|
+
this.addChild(this._bitMap);
|
|
130689
|
+
image.onload = () => {
|
|
130690
|
+
const hitWidth = image.naturalWidth !== 0 ? image.naturalWidth : image.width;
|
|
130691
|
+
const hitHeight = image.naturalHeight !== 0 ? image.naturalHeight : image.height;
|
|
130692
|
+
this._bitMap.setTransform(0, drawNode._imageY, drawNode.dWidth / hitWidth, drawNode.dHeight / hitHeight);
|
|
130693
|
+
this._bitMap.setBounds(0, 0, image.naturalWidth, image.naturalHeight);
|
|
130694
|
+
const hitArea = new createjs.Shape();
|
|
130695
|
+
hitArea.graphics.beginFill('#000').drawRect(0, 0, hitWidth, hitHeight);
|
|
130696
|
+
this._bitMap.hitArea = hitArea;
|
|
130697
|
+
// 压缩页眉中的图片
|
|
130698
|
+
if (this.node.rootPath.includes('header') || this.node.rootPath.includes('footer')) {
|
|
130699
|
+
const canvas = document.createElement('canvas');
|
|
130700
|
+
const ctx = canvas.getContext('2d');
|
|
130701
|
+
canvas.width = this.dWidth * 2;
|
|
130702
|
+
canvas.height = this.dHeight * 2;
|
|
130703
|
+
canvas.style.width = this.dWidth + 'px';
|
|
130704
|
+
canvas.style.height = this.dHeight + 'px';
|
|
130705
|
+
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
130706
|
+
ctx.fillStyle = '#FFFFFF';
|
|
130707
|
+
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
|
130708
|
+
ctx.drawImage(image, 0, 0, canvas.width, canvas.height);
|
|
130709
|
+
const base64 = canvas.toDataURL('image/jpeg', 0.92);
|
|
130710
|
+
if (base64 < this.node.imageDataBase64String) {
|
|
130711
|
+
this.node.imageDataBase64String = base64;
|
|
130712
|
+
}
|
|
130713
|
+
}
|
|
130714
|
+
this.updateSign();
|
|
130715
|
+
hoEditorFactory.loadImageCount--;
|
|
130716
|
+
};
|
|
130717
|
+
if (this.markImagePath != '') {
|
|
130718
|
+
this.insertMarkImage();
|
|
130719
|
+
}
|
|
130720
|
+
image.onerror = () => {
|
|
130721
|
+
hoEditorFactory.loadImageCount--;
|
|
130722
|
+
if (!drawNode.node.isBackFill) {
|
|
130723
|
+
const path = this.node.previousLeaf().getNodePath();
|
|
130724
|
+
hoEditorFactory.docTree.deleteNode(this.node);
|
|
130725
|
+
const changeEvent = new NodeChangeEvent/* NodeChangeEvent */.b(this._hoEditorFactoryID, DocTree/* DocAction */.LC.daModifyStyle, path, path);
|
|
130726
|
+
changeEvent.oldEndPath = path;
|
|
130727
|
+
changeEvent.afterChangePath = path;
|
|
130728
|
+
changeEvent.oldDrawLines = new SelectRange/* SelectRange */.u(this._hoEditorFactoryID).getRangeDrawLines(path, path, true, true);
|
|
130729
|
+
hoEditorFactory.docTree.change(changeEvent);
|
|
130730
|
+
}
|
|
130731
|
+
};
|
|
130732
|
+
}
|
|
130733
|
+
insertMarkImage() {
|
|
130734
|
+
const drawNode = this;
|
|
130735
|
+
const hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(drawNode.node.hoEditorFactoryID);
|
|
130736
|
+
const markImage = new Image();
|
|
130737
|
+
let markImageBitmap;
|
|
130738
|
+
markImage.src = this.markImagePath;
|
|
130739
|
+
hoEditorFactory.loadImageCount++;
|
|
130740
|
+
markImageBitmap = new createjs.Bitmap(markImage);
|
|
130741
|
+
//markImageBitmap.y = this._imageY;
|
|
130742
|
+
//markImageBitmap.x = 0;
|
|
130743
|
+
markImageBitmap.name = this.node.id;
|
|
130744
|
+
markImageBitmap.setBounds(0, 0, drawNode.dWidth, drawNode.dHeight);
|
|
130745
|
+
drawNode.addChild(markImageBitmap);
|
|
130746
|
+
//hoEditorFactory.loadImageCount++;
|
|
130747
|
+
markImage.onload = () => {
|
|
130748
|
+
markImageBitmap.x = 0;
|
|
130749
|
+
markImageBitmap.y = 0;
|
|
130750
|
+
const hitWidth = markImage.naturalWidth !== 0 ? markImage.naturalWidth : markImage.width;
|
|
130751
|
+
const hitHeight = markImage.naturalHeight !== 0 ? markImage.naturalHeight : markImage.height;
|
|
130752
|
+
markImageBitmap.setTransform(0, drawNode._imageY, drawNode.dWidth / hitWidth, drawNode.dHeight / hitHeight);
|
|
130753
|
+
const hitArea = new createjs.Shape();
|
|
130754
|
+
hitArea.graphics.beginFill('#000000').drawRect(0, 0, hitWidth, hitHeight);
|
|
130755
|
+
this.updateSign();
|
|
130756
|
+
hoEditorFactory.loadImageCount--;
|
|
130757
|
+
};
|
|
130758
|
+
markImage.onerror = () => {
|
|
130759
|
+
hoEditorFactory.loadImageCount--;
|
|
130760
|
+
const path = this.node.previousLeaf().getNodePath();
|
|
130761
|
+
hoEditorFactory.docTree.deleteNode(this.node);
|
|
130762
|
+
const changeEvent = new NodeChangeEvent/* NodeChangeEvent */.b(this._hoEditorFactoryID, DocTree/* DocAction */.LC.daModifyStyle, path, path);
|
|
130763
|
+
changeEvent.oldEndPath = path;
|
|
130764
|
+
changeEvent.afterChangePath = path;
|
|
130765
|
+
changeEvent.oldDrawLines = new SelectRange/* SelectRange */.u(this._hoEditorFactoryID).getRangeDrawLines(path, path, true, true);
|
|
130766
|
+
hoEditorFactory.docTree.change(changeEvent);
|
|
130767
|
+
};
|
|
130768
|
+
}
|
|
130769
|
+
updateSign() {
|
|
130770
|
+
const hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this.node.hoEditorFactoryID);
|
|
130771
|
+
const dArea = hoEditorFactory.drawPageTree.getMainRootArea(this);
|
|
130772
|
+
if (dArea && hoEditorFactory.drawTree.drawPages[dArea.index]) {
|
|
130773
|
+
const atype = hoEditorFactory.subDocManger.getHeaderFooterType(this.node.getNodePath());
|
|
130774
|
+
if (atype === SubDocManger/* HeaderFooterType */.lr.hftHead && dArea != hoEditorFactory.drawTree.drawPages[dArea.index].drawHeader) {
|
|
130775
|
+
hoEditorFactory.subDocManger.updateAllSameSubDoc(dArea.index, atype, false, false);
|
|
130776
|
+
} else {
|
|
130777
|
+
if (atype === SubDocManger/* HeaderFooterType */.lr.hftFoot && dArea != hoEditorFactory.drawTree.drawPages[dArea.index].drawFooter) {
|
|
130778
|
+
hoEditorFactory.subDocManger.updateAllSameSubDoc(dArea.index, atype, false, false);
|
|
130779
|
+
}
|
|
130780
|
+
}
|
|
130781
|
+
hoEditorFactory.drawPageTree.updateDrawPage(dArea.index);
|
|
130782
|
+
}
|
|
130783
|
+
}
|
|
130784
|
+
clone() {
|
|
130785
|
+
const aConTainer = new createjs.Container();
|
|
130786
|
+
const bitMap = this._bitMap.clone();
|
|
130787
|
+
bitMap.name = this.node.id;
|
|
130788
|
+
if (this._cloneProps) {
|
|
130789
|
+
this._cloneProps(aConTainer);
|
|
130790
|
+
}
|
|
130791
|
+
aConTainer.removeAllChildren();
|
|
130792
|
+
aConTainer.addChild(bitMap);
|
|
130793
|
+
return aConTainer;
|
|
130794
|
+
}
|
|
130795
|
+
}
|
|
130796
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/BaseNode.ts
|
|
130797
|
+
var BaseNode = __webpack_require__(29269);
|
|
130798
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/CellNode.ts
|
|
130799
|
+
var CellNode = __webpack_require__(90900);
|
|
130800
|
+
;// ./src/editor/dom/treeNode/ImageNode.ts
|
|
130524
130801
|
|
|
130525
130802
|
|
|
130526
130803
|
|
|
130527
130804
|
|
|
130528
130805
|
|
|
130529
|
-
class ImageNode extends
|
|
130806
|
+
class ImageNode extends BaseNode/* BaseNode */.Yp {
|
|
130530
130807
|
// 内部标识符
|
|
130531
130808
|
constructor(hoEditorFactoryID, rootNodes, pNode, nodeType, id, imageDataBase64String, width, height,
|
|
130532
130809
|
//scaleX?: number,
|
|
130533
130810
|
//scaleY?: number,
|
|
130534
130811
|
options, markImage, imageJson) {
|
|
130535
130812
|
super(hoEditorFactoryID, rootNodes, pNode, nodeType);
|
|
130536
|
-
(0,
|
|
130813
|
+
(0,defineProperty/* default */.A)(this, "_id", void 0);
|
|
130537
130814
|
//编号ID
|
|
130538
|
-
(0,
|
|
130815
|
+
(0,defineProperty/* default */.A)(this, "_dataId", void 0);
|
|
130539
130816
|
// dataId
|
|
130540
|
-
(0,
|
|
130817
|
+
(0,defineProperty/* default */.A)(this, "_width", void 0);
|
|
130541
130818
|
//节点宽
|
|
130542
|
-
(0,
|
|
130819
|
+
(0,defineProperty/* default */.A)(this, "_height", void 0);
|
|
130543
130820
|
//节点高
|
|
130544
|
-
(0,
|
|
130821
|
+
(0,defineProperty/* default */.A)(this, "_scaleX", void 0);
|
|
130545
130822
|
//图片X轴缩放比例
|
|
130546
|
-
(0,
|
|
130823
|
+
(0,defineProperty/* default */.A)(this, "_scaleY", void 0);
|
|
130547
130824
|
//图片Y轴缩放比例
|
|
130548
|
-
(0,
|
|
130825
|
+
(0,defineProperty/* default */.A)(this, "_imageDataBase64String", void 0);
|
|
130549
130826
|
//图片base64码 原图
|
|
130550
|
-
(0,
|
|
130827
|
+
(0,defineProperty/* default */.A)(this, "_isFormula", void 0);
|
|
130551
130828
|
//是否是计算公式
|
|
130552
|
-
(0,
|
|
130829
|
+
(0,defineProperty/* default */.A)(this, "_remark", void 0);
|
|
130553
130830
|
//扩展字段
|
|
130554
|
-
(0,
|
|
130831
|
+
(0,defineProperty/* default */.A)(this, "_markImage", void 0);
|
|
130555
130832
|
// 修改层
|
|
130556
|
-
(0,
|
|
130833
|
+
(0,defineProperty/* default */.A)(this, "_imageJson", void 0);
|
|
130557
130834
|
// 修改层json信息
|
|
130558
|
-
(0,
|
|
130835
|
+
(0,defineProperty/* default */.A)(this, "_isBackFill", void 0);
|
|
130559
130836
|
//是否是回填的
|
|
130560
|
-
(0,
|
|
130837
|
+
(0,defineProperty/* default */.A)(this, "_innerIdentifier", void 0);
|
|
130561
130838
|
this._id = id;
|
|
130562
130839
|
this._dataId = id;
|
|
130563
130840
|
this._imageDataBase64String = imageDataBase64String;
|
|
@@ -130569,7 +130846,7 @@ class ImageNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_4__/* .BaseNode */ .Y
|
|
|
130569
130846
|
this.innerIdentifier = (options === null || options === void 0 ? void 0 : options.innerIdentifier) || '';
|
|
130570
130847
|
//this._scaleX = scaleX ? scaleX : 1;
|
|
130571
130848
|
//this._scaleY = scaleY ? scaleY : 1;
|
|
130572
|
-
if (this.parentNode && this.parentNode instanceof
|
|
130849
|
+
if (this.parentNode && this.parentNode instanceof CellNode/* CellNode */.H) {
|
|
130573
130850
|
// height -= 10;
|
|
130574
130851
|
}
|
|
130575
130852
|
this._width = width;
|
|
@@ -130693,7 +130970,7 @@ class ImageNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_4__/* .BaseNode */ .Y
|
|
|
130693
130970
|
//根据可放置的宽度,将普通组件转换成绘制组件
|
|
130694
130971
|
node2DrawNodeRange(startIndex, endIndex) {
|
|
130695
130972
|
this._drawNodes.length = 0;
|
|
130696
|
-
const dNode = new
|
|
130973
|
+
const dNode = new DrawImageNode(this._hoEditorFactoryID, this._rootPath, this, 0, this.imageDataBase64String, this.width, this.height,
|
|
130697
130974
|
//this.scaleX,
|
|
130698
130975
|
//this.scaleY
|
|
130699
130976
|
this.markImage);
|
|
@@ -130734,7 +131011,7 @@ class ImageNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_4__/* .BaseNode */ .Y
|
|
|
130734
131011
|
//const scaleX = drawImageNode.children[0].scaleX;
|
|
130735
131012
|
//const scaleY = drawImageNode.children[0].scaleY;
|
|
130736
131013
|
const retObj = {
|
|
130737
|
-
nodeType:
|
|
131014
|
+
nodeType: BaseNode/* NodeType */.Z6[this.nodeType],
|
|
130738
131015
|
imageType: "Image",
|
|
130739
131016
|
id: this.id,
|
|
130740
131017
|
dataId: this.dataId,
|
|
@@ -130781,7 +131058,7 @@ class ImageNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_4__/* .BaseNode */ .Y
|
|
|
130781
131058
|
const isFormula = json.isFormula == true || json.isFormula === "true" ? true : false;
|
|
130782
131059
|
const isBackFill = json.isBackFill == true || json.isBackFill === "true" ? true : false;
|
|
130783
131060
|
const innerIdentifier = json.innerIdentifier || '';
|
|
130784
|
-
return new ImageNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null,
|
|
131061
|
+
return new ImageNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, BaseNode/* NodeType */.Z6.ntImage, json.id, json.imageDataBase64String, width, height,
|
|
130785
131062
|
//scaleX,
|
|
130786
131063
|
//scaleY,
|
|
130787
131064
|
{
|
|
@@ -130791,7 +131068,7 @@ class ImageNode extends _BaseNode__WEBPACK_IMPORTED_MODULE_4__/* .BaseNode */ .Y
|
|
|
130791
131068
|
}, json.markImage, json.imageJson);
|
|
130792
131069
|
}
|
|
130793
131070
|
getTagNameCn() {
|
|
130794
|
-
return /*#__PURE__*/(0,
|
|
131071
|
+
return /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.344",null,"图片");
|
|
130795
131072
|
}
|
|
130796
131073
|
}
|
|
130797
131074
|
|
|
@@ -143668,26 +143945,28 @@ class TextInputFieldNode extends BaseCombineNode/* BaseCombineNode */.h {
|
|
|
143668
143945
|
break;
|
|
143669
143946
|
}
|
|
143670
143947
|
}
|
|
143671
|
-
|
|
143672
|
-
|
|
143673
|
-
|
|
143674
|
-
|
|
143675
|
-
|
|
143676
|
-
|
|
143677
|
-
|
|
143678
|
-
|
|
143679
|
-
|
|
143680
|
-
|
|
143681
|
-
|
|
143682
|
-
|
|
143683
|
-
|
|
143684
|
-
|
|
143685
|
-
|
|
143686
|
-
|
|
143687
|
-
|
|
143688
|
-
|
|
143689
|
-
|
|
143690
|
-
}
|
|
143948
|
+
|
|
143949
|
+
// if (childArray.length > 0) {
|
|
143950
|
+
// console.log(childArray);
|
|
143951
|
+
// if (childArray[0].nodeType === 'ntMark' && childArray[0].type === 0) {
|
|
143952
|
+
// if (childArray[childArray.length - 1].nodeType !== 'ntMark') {
|
|
143953
|
+
// childArray.splice(0, 1);
|
|
143954
|
+
// }
|
|
143955
|
+
// if (childArray[childArray.length - 1].nodeType === 'ntMark' && childArray[childArray.length - 1].type !== 2) {
|
|
143956
|
+
// childArray.splice(childArray.length - 1, 1);
|
|
143957
|
+
// childArray.splice(0, 1);
|
|
143958
|
+
// }
|
|
143959
|
+
// }
|
|
143960
|
+
// if (childArray[childArray.length - 1].nodeType === 'ntMark' && childArray[childArray.length - 1].type === 2) {
|
|
143961
|
+
// if (childArray[0].nodeType !== 'ntMark') {
|
|
143962
|
+
// childArray.splice(childArray.length - 1, 1);
|
|
143963
|
+
// }
|
|
143964
|
+
// if (childArray[0].nodeType === 'ntMark' && childArray[0].type !== 0) {
|
|
143965
|
+
// childArray.splice(childArray.length - 1, 1);
|
|
143966
|
+
// childArray.splice(0, 1);
|
|
143967
|
+
// }
|
|
143968
|
+
// }
|
|
143969
|
+
// }
|
|
143691
143970
|
}
|
|
143692
143971
|
let childNodes = {};
|
|
143693
143972
|
if (isCopy) {
|
|
@@ -146387,22 +146666,27 @@ class StagePosition {
|
|
|
146387
146666
|
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
146388
146667
|
/* harmony import */ var core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98992);
|
|
146389
146668
|
/* harmony import */ var core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
146390
|
-
/* harmony import */ var
|
|
146391
|
-
/* harmony import */ var
|
|
146392
|
-
/* harmony import */ var
|
|
146393
|
-
/* harmony import */ var
|
|
146394
|
-
/* harmony import */ var
|
|
146395
|
-
/* harmony import */ var
|
|
146396
|
-
/* harmony import */ var
|
|
146397
|
-
/* harmony import */ var
|
|
146398
|
-
/* harmony import */ var
|
|
146399
|
-
/* harmony import */ var
|
|
146400
|
-
/* harmony import */ var
|
|
146401
|
-
/* harmony import */ var
|
|
146402
|
-
/* harmony import */ var
|
|
146403
|
-
/* harmony import */ var
|
|
146404
|
-
/* harmony import */ var
|
|
146405
|
-
/* harmony import */ var
|
|
146669
|
+
/* harmony import */ var core_js_modules_esnext_iterator_filter_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(54520);
|
|
146670
|
+
/* harmony import */ var core_js_modules_esnext_iterator_filter_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_filter_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
146671
|
+
/* harmony import */ var core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3949);
|
|
146672
|
+
/* harmony import */ var core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
146673
|
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(62953);
|
|
146674
|
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
146675
|
+
/* harmony import */ var _DrawLine__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(39222);
|
|
146676
|
+
/* harmony import */ var _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(60030);
|
|
146677
|
+
/* harmony import */ var _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(49542);
|
|
146678
|
+
/* harmony import */ var _drawNode_DrawPageTable__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(87523);
|
|
146679
|
+
/* harmony import */ var _yuki_createjs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(56419);
|
|
146680
|
+
/* harmony import */ var _yuki_createjs__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_yuki_createjs__WEBPACK_IMPORTED_MODULE_10__);
|
|
146681
|
+
/* harmony import */ var _editor_dom_NodePosition__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(53714);
|
|
146682
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(57703);
|
|
146683
|
+
/* harmony import */ var _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(30486);
|
|
146684
|
+
/* harmony import */ var _drawNode_DrawPageCell__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(51613);
|
|
146685
|
+
/* harmony import */ var _components_common_comment__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(73514);
|
|
146686
|
+
/* harmony import */ var _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(58382);
|
|
146687
|
+
/* harmony import */ var _types_EditorType__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(27195);
|
|
146688
|
+
|
|
146689
|
+
|
|
146406
146690
|
|
|
146407
146691
|
|
|
146408
146692
|
|
|
@@ -146419,7 +146703,7 @@ class StagePosition {
|
|
|
146419
146703
|
|
|
146420
146704
|
|
|
146421
146705
|
|
|
146422
|
-
class DrawArea extends
|
|
146706
|
+
class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_7__/* .DrawRect */ .N {
|
|
146423
146707
|
// public get startDline(): number {
|
|
146424
146708
|
// return this._startDline;
|
|
146425
146709
|
// }
|
|
@@ -146542,12 +146826,12 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
146542
146826
|
}
|
|
146543
146827
|
get bottomDline() {
|
|
146544
146828
|
if (!this._bottomDline) {
|
|
146545
|
-
const dRoots =
|
|
146829
|
+
const dRoots = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID).drawTree.getDrawRootsByPath(this._rootPath)[1];
|
|
146546
146830
|
const dline = dRoots[this._endDline];
|
|
146547
|
-
if (dline instanceof
|
|
146831
|
+
if (dline instanceof _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_8__/* .DrawTable */ .n) {
|
|
146548
146832
|
const dPageTable = dline.getDrawTableByPageIndex(this._index);
|
|
146549
146833
|
if (dPageTable) this._bottomDline = dPageTable;
|
|
146550
|
-
} else if (dline instanceof
|
|
146834
|
+
} else if (dline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_6__/* .DrawLine */ .D) {
|
|
146551
146835
|
this._bottomDline = dline;
|
|
146552
146836
|
}
|
|
146553
146837
|
}
|
|
@@ -146586,7 +146870,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
146586
146870
|
// if (this._startDline >= this.drawR) {
|
|
146587
146871
|
// return true;
|
|
146588
146872
|
// }
|
|
146589
|
-
if (this._lastDrawLine instanceof
|
|
146873
|
+
if (this._lastDrawLine instanceof _drawNode_DrawPageTable__WEBPACK_IMPORTED_MODULE_9__/* .DrawPageTable */ .Yt) {
|
|
146590
146874
|
ret = this._lastDrawLine.endRow === this._lastDrawLine.table.rowCount - 1 && this._lastDrawLine.isEndRowFinished();
|
|
146591
146875
|
} else {
|
|
146592
146876
|
ret = true;
|
|
@@ -146620,8 +146904,8 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
146620
146904
|
let bottom = 0;
|
|
146621
146905
|
let top = 99999;
|
|
146622
146906
|
for (let i = 0; i < ditems.length; i++) {
|
|
146623
|
-
if (ditems[i] instanceof
|
|
146624
|
-
if (ditems[i] instanceof
|
|
146907
|
+
if (ditems[i] instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_6__/* .DrawLine */ .D || ditems[i] instanceof _drawNode_DrawPageTable__WEBPACK_IMPORTED_MODULE_9__/* .DrawPageTable */ .Yt || ditems[i] instanceof _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_8__/* .DrawTable */ .n) {
|
|
146908
|
+
if (ditems[i] instanceof _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_8__/* .DrawTable */ .n) {
|
|
146625
146909
|
dLine = ditems[i].drawPageTables.values().next().value;
|
|
146626
146910
|
} else {
|
|
146627
146911
|
dLine = ditems[i];
|
|
@@ -146657,7 +146941,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
146657
146941
|
* @returns 根据绘制坐标,行高 判断能否摆放下当前行。
|
|
146658
146942
|
*/
|
|
146659
146943
|
canFit(dtop, dHeight) {
|
|
146660
|
-
if (dtop + dHeight > this.
|
|
146944
|
+
if (dtop + dHeight > this.maxHeight && dtop > 0) {
|
|
146661
146945
|
return false;
|
|
146662
146946
|
}
|
|
146663
146947
|
return true;
|
|
@@ -146668,7 +146952,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
146668
146952
|
paintBackground() {
|
|
146669
146953
|
if (!this._background) this._background = new createjs.Shape();
|
|
146670
146954
|
this._background.graphics.clear();
|
|
146671
|
-
this._background.graphics.drawRect(-this.x, 0,
|
|
146955
|
+
this._background.graphics.drawRect(-this.x, 0, _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID).pageProperty.widthPixes, Math.max(this.docHeight, this._dHeight)).closePath();
|
|
146672
146956
|
this.addChildAt(this._background, 0);
|
|
146673
146957
|
this.setChildIndex(this._background, 0);
|
|
146674
146958
|
}
|
|
@@ -146683,7 +146967,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
146683
146967
|
if (this._allowAcrossPage) return;
|
|
146684
146968
|
if (!this._mask) this._mask = new createjs.Shape();
|
|
146685
146969
|
this._mask.graphics.clear();
|
|
146686
|
-
this._mask.graphics.drawRect(-this.x, 0,
|
|
146970
|
+
this._mask.graphics.drawRect(-this.x, 0, _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID).pageProperty.widthPixes, aheight + 1).closePath();
|
|
146687
146971
|
//遮罩不是当前容器的Child
|
|
146688
146972
|
this._mask.x = this.x;
|
|
146689
146973
|
this._mask.y = this.y;
|
|
@@ -146696,16 +146980,16 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
146696
146980
|
let bFinishedPaint = true;
|
|
146697
146981
|
let isFull = false;
|
|
146698
146982
|
let ret = startIndex;
|
|
146699
|
-
const hoEditorFactory =
|
|
146983
|
+
const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
|
|
146700
146984
|
let nextDline = startIndex;
|
|
146701
146985
|
let dRestHeight = Infinity;
|
|
146702
|
-
if (this.allowAcrossPage) dRestHeight = this.
|
|
146986
|
+
if (this.allowAcrossPage) dRestHeight = this.maxHeight - dTop;
|
|
146703
146987
|
this.endDline = startIndex;
|
|
146704
146988
|
while (nextDline < dlines.length) {
|
|
146705
146989
|
const dline = dlines[nextDline];
|
|
146706
146990
|
const hidden = dline.paragraphNode.customProperty.hidden;
|
|
146707
|
-
if (hoEditorFactory.drawTree.paintStatus !==
|
|
146708
|
-
if (dline instanceof
|
|
146991
|
+
if (hoEditorFactory.drawTree.paintStatus !== _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_16__/* .PaintState */ .ak.psDesign && hidden && hidden.toString() === "true") {
|
|
146992
|
+
if (dline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_6__/* .DrawLine */ .D) this.setHidden(dline);
|
|
146709
146993
|
nextDline += 1;
|
|
146710
146994
|
continue;
|
|
146711
146995
|
}
|
|
@@ -146716,13 +147000,13 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
146716
147000
|
bFinishedPaint = false;
|
|
146717
147001
|
break;
|
|
146718
147002
|
}
|
|
146719
|
-
if (dline instanceof
|
|
146720
|
-
if (dline instanceof
|
|
147003
|
+
if (dline instanceof _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_8__/* .DrawTable */ .n && dRestHeight < hoEditorFactory.defaultLineHeight || dline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_6__/* .DrawLine */ .D && dRestHeight < dline.dHeight && dTop > 0) {
|
|
147004
|
+
if (dline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_6__/* .DrawLine */ .D && dRestHeight >= hoEditorFactory.defaultLineHeight) {
|
|
146721
147005
|
if (this.contains(dline)) {
|
|
146722
147006
|
this.removeChild(dline);
|
|
146723
147007
|
}
|
|
146724
147008
|
}
|
|
146725
|
-
if (dline instanceof
|
|
147009
|
+
if (dline instanceof _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_8__/* .DrawTable */ .n) {
|
|
146726
147010
|
let index = -1;
|
|
146727
147011
|
for (let i = dline.drawPageTables.length - 1; i >= 0; i--) {
|
|
146728
147012
|
if (this.contains(dline.drawPageTables[i])) {
|
|
@@ -146744,13 +147028,13 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
146744
147028
|
bFinishedPaint = false;
|
|
146745
147029
|
break;
|
|
146746
147030
|
}
|
|
146747
|
-
if (dline instanceof
|
|
147031
|
+
if (dline instanceof _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_8__/* .DrawTable */ .n) {
|
|
146748
147032
|
const dTable = dline;
|
|
146749
147033
|
let dPrevTable = null;
|
|
146750
147034
|
let startChildIndex = 0;
|
|
146751
147035
|
const dHeadHeight = dTable.getHeadHeight();
|
|
146752
147036
|
let dPageTable = dTable.getDrawTableByParentArea(this);
|
|
146753
|
-
if (dHeadHeight +
|
|
147037
|
+
if (dHeadHeight + _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_13__/* .gDefaultRowHeight */ .ip > dRestHeight || !dTable.isFirstRowCanFit(dRestHeight)) {
|
|
146754
147038
|
if (dPageTable) {
|
|
146755
147039
|
dPageTable.parent.removeChild(dPageTable);
|
|
146756
147040
|
}
|
|
@@ -146771,9 +147055,8 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
146771
147055
|
2: 当前绘制表格高度超过了区域剩余高度
|
|
146772
147056
|
3: 当前表格不是表格的最后绘制表格,且剩余高度大于一行
|
|
146773
147057
|
*/
|
|
146774
|
-
|
|
146775
147058
|
if (dPageTable) {
|
|
146776
|
-
if (dTable.needUpdate || dPageTable.dHeight - dRestHeight >
|
|
147059
|
+
if (dTable.needUpdate || dPageTable.dHeight - dRestHeight > _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_13__/* .gDefaultRowHeight */ .ip || dTable.drawPageTables.indexOf(dPageTable) < dTable.drawPageTables.length - 1 && restHeight > dPageTable.dHeight + hoEditorFactory.defaultLineHeight) {
|
|
146777
147060
|
const newTop = dTable.drawUpdate(this, dPrevTable, dTop, dRestHeight);
|
|
146778
147061
|
dTop = newTop;
|
|
146779
147062
|
} else {
|
|
@@ -146815,22 +147098,15 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
146815
147098
|
this.clearOverDitem(dlines, nextDline + 1);
|
|
146816
147099
|
break;
|
|
146817
147100
|
}
|
|
146818
|
-
// dTop += dTable.paragraphNode.combineParagraph.lineSpace;
|
|
146819
147101
|
if (this.allowAcrossPage) dRestHeight = this._maxHeight - dTop;
|
|
146820
147102
|
this._docHeight = dTop;
|
|
146821
147103
|
this._usedHeight = dTop;
|
|
146822
|
-
// const index = this.dTable.update(this, dTop, dRestHeight);
|
|
146823
|
-
// if (dTable.drawPageTables.length > 0) {
|
|
146824
|
-
// }
|
|
146825
147104
|
//如果当前表格未绘制完成,需要在下一页继续绘制、
|
|
146826
147105
|
this.endDline = nextDline;
|
|
146827
147106
|
nextDline += 1;
|
|
146828
147107
|
continue;
|
|
146829
147108
|
} else {
|
|
146830
147109
|
//页摆放不下,
|
|
146831
|
-
// const lheight = dTop +
|
|
146832
|
-
// dline.dHeight + dline.paragraphNode.combineParagraph.lineSpace;
|
|
146833
|
-
// console.log(lheight)
|
|
146834
147110
|
const canfit = this.canFit(dTop, dline.dHeight);
|
|
146835
147111
|
if (!canfit && this._allowAcrossPage) {
|
|
146836
147112
|
this.endDline = nextDline - 1;
|
|
@@ -146842,19 +147118,32 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
146842
147118
|
bFinishedPaint = false;
|
|
146843
147119
|
break;
|
|
146844
147120
|
} else {
|
|
146845
|
-
if (!this.contains(dline))
|
|
147121
|
+
if (!this.contains(dline)) {
|
|
147122
|
+
if (hoEditorFactory.fixTableImage && this instanceof _drawNode_DrawPageCell__WEBPACK_IMPORTED_MODULE_14__/* .DrawPageCell */ .M) {
|
|
147123
|
+
this.addChildAt(dline, 0);
|
|
147124
|
+
} else {
|
|
147125
|
+
this.addChild(dline);
|
|
147126
|
+
}
|
|
147127
|
+
}
|
|
147128
|
+
;
|
|
146846
147129
|
if (this.numChildren == 1) {
|
|
146847
147130
|
this.topDline = dline;
|
|
146848
147131
|
}
|
|
146849
147132
|
const cbParagraph = dline.paragraphNode.combineParagraph;
|
|
146850
|
-
// dline.x = cbParagraph.leftMarginPixes;
|
|
146851
147133
|
dline.visible = canfit;
|
|
146852
147134
|
if (nextDline === startIndex) {
|
|
146853
147135
|
dTop += cbParagraph.topMarginPixes;
|
|
146854
147136
|
}
|
|
146855
147137
|
dline.y = dTop;
|
|
146856
|
-
if (!this._allowAcrossPage && nextDline === dlines.length - 1 && dline instanceof
|
|
147138
|
+
if (!this._allowAcrossPage && nextDline === dlines.length - 1 && dline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_6__/* .DrawLine */ .D && dline.drawItems.length == 0) {
|
|
146857
147139
|
dTop += 0;
|
|
147140
|
+
} else if (hoEditorFactory.fixTableImage && dline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_6__/* .DrawLine */ .D && dline.drawItems.length) {
|
|
147141
|
+
const imageList = dline.drawItems.filter(item => item.node && item.node.nodeType === _types_EditorType__WEBPACK_IMPORTED_MODULE_17__/* .NodeType */ .Z6.ntImage);
|
|
147142
|
+
if (imageList.length) {
|
|
147143
|
+
dTop += dline.dHeight;
|
|
147144
|
+
} else {
|
|
147145
|
+
dTop += dline.dHeight + dline.paragraphNode.combineParagraph.lineSpace;
|
|
147146
|
+
}
|
|
146858
147147
|
} else {
|
|
146859
147148
|
dTop += dline.dHeight + dline.paragraphNode.combineParagraph.lineSpace;
|
|
146860
147149
|
}
|
|
@@ -146871,8 +147160,6 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
146871
147160
|
this.paintFrontGround();
|
|
146872
147161
|
this.paintBackground();
|
|
146873
147162
|
return bFinishedPaint;
|
|
146874
|
-
// drawPage.repaint();
|
|
146875
|
-
// return [ret, isFull];
|
|
146876
147163
|
}
|
|
146877
147164
|
/**
|
|
146878
147165
|
*
|
|
@@ -146884,7 +147171,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
146884
147171
|
*/
|
|
146885
147172
|
paintArea(dlines, startIndex, aTop //顶点
|
|
146886
147173
|
) {
|
|
146887
|
-
const hoEditorFactory =
|
|
147174
|
+
const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
|
|
146888
147175
|
this._docHeight = aTop;
|
|
146889
147176
|
let ret = startIndex;
|
|
146890
147177
|
let isFull = false;
|
|
@@ -146897,15 +147184,15 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
146897
147184
|
while (nextDline < dlines.length) {
|
|
146898
147185
|
const dline = dlines[nextDline];
|
|
146899
147186
|
const hidden = dline.paragraphNode.customProperty.hidden;
|
|
146900
|
-
if (hoEditorFactory.drawTree.paintStatus !==
|
|
146901
|
-
if (dline instanceof
|
|
147187
|
+
if (hoEditorFactory.drawTree.paintStatus !== _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_16__/* .PaintState */ .ak.psDesign && hidden && hidden.toString() === "true") {
|
|
147188
|
+
if (dline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_6__/* .DrawLine */ .D) this.setHidden(dline);
|
|
146902
147189
|
nextDline += 1;
|
|
146903
147190
|
mark = true;
|
|
146904
147191
|
continue;
|
|
146905
147192
|
}
|
|
146906
|
-
if (dline instanceof
|
|
147193
|
+
if (dline instanceof _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_8__/* .DrawTable */ .n) {
|
|
146907
147194
|
const dTable = dline;
|
|
146908
|
-
if (dTable.getHeadHeight() +
|
|
147195
|
+
if (dTable.getHeadHeight() + _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_13__/* .gDefaultRowHeight */ .ip > restHeight || !dTable.isFirstRowCanFit(restHeight)) {
|
|
146909
147196
|
isFull = true;
|
|
146910
147197
|
this.clearOverDitem(dlines, nextDline);
|
|
146911
147198
|
return [isFull, dTop, restHeight];
|
|
@@ -146931,7 +147218,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
146931
147218
|
} else {
|
|
146932
147219
|
//页摆放不下,
|
|
146933
147220
|
const canfit = this.canFit(dTop, dline.dHeight);
|
|
146934
|
-
if (!canfit && (dTop > 0 || this instanceof
|
|
147221
|
+
if (!canfit && (dTop > 0 || this instanceof _drawNode_DrawPageCell__WEBPACK_IMPORTED_MODULE_14__/* .DrawPageCell */ .M) && this._allowAcrossPage) {
|
|
146935
147222
|
// const nextArea = this.getNextDrawArea();
|
|
146936
147223
|
this.endDline = nextDline - 1;
|
|
146937
147224
|
if (this.endDline == -1) {
|
|
@@ -146942,7 +147229,11 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
146942
147229
|
// this.clearOverDitem(dlines, nextDline);
|
|
146943
147230
|
return [isFull, dTop, restHeight];
|
|
146944
147231
|
} else {
|
|
146945
|
-
this.
|
|
147232
|
+
if (hoEditorFactory.fixTableImage && this instanceof _drawNode_DrawPageCell__WEBPACK_IMPORTED_MODULE_14__/* .DrawPageCell */ .M) {
|
|
147233
|
+
this.addChildAt(dline, 0);
|
|
147234
|
+
} else {
|
|
147235
|
+
this.addChild(dline);
|
|
147236
|
+
}
|
|
146946
147237
|
if (this.numChildren == 1) {
|
|
146947
147238
|
this.topDline = dline;
|
|
146948
147239
|
}
|
|
@@ -146954,8 +147245,15 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
146954
147245
|
dTop += cbParagraph.topMarginPixes;
|
|
146955
147246
|
}
|
|
146956
147247
|
dline.y = dTop;
|
|
146957
|
-
if (nextDline === dlines.length - 1 && dline instanceof
|
|
147248
|
+
if (nextDline === dlines.length - 1 && dline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_6__/* .DrawLine */ .D && dline.drawItems.length == 0) {
|
|
146958
147249
|
dTop += 0;
|
|
147250
|
+
} else if (hoEditorFactory.fixTableImage && dline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_6__/* .DrawLine */ .D && dline.drawItems.length) {
|
|
147251
|
+
const imageList = dline.drawItems.filter(item => item && item.nodeType === _types_EditorType__WEBPACK_IMPORTED_MODULE_17__/* .NodeType */ .Z6.ntImage);
|
|
147252
|
+
if (imageList.length) {
|
|
147253
|
+
dTop += dline.dHeight;
|
|
147254
|
+
} else {
|
|
147255
|
+
dTop += dline.dHeight + dline.paragraphNode.combineParagraph.lineSpace;
|
|
147256
|
+
}
|
|
146959
147257
|
} else {
|
|
146960
147258
|
dTop += dline.dHeight + dline.paragraphNode.combineParagraph.lineSpace;
|
|
146961
147259
|
}
|
|
@@ -146968,10 +147266,10 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
146968
147266
|
}
|
|
146969
147267
|
}
|
|
146970
147268
|
}
|
|
146971
|
-
this.
|
|
147269
|
+
this.docHeight -= aTop;
|
|
146972
147270
|
this.paintFrontGround();
|
|
146973
147271
|
this.paintBackground();
|
|
146974
|
-
if (mark && dlines.length > 0 && dlines[0].parent instanceof
|
|
147272
|
+
if (mark && dlines.length > 0 && dlines[0].parent instanceof _drawNode_DrawPageCell__WEBPACK_IMPORTED_MODULE_14__/* .DrawPageCell */ .M) {
|
|
146975
147273
|
dlines[0].parent.cell.drawCell.needUpdate = true;
|
|
146976
147274
|
hoEditorFactory.docTree.redrawHiddenParas.push(dlines[0].parent.cell.table);
|
|
146977
147275
|
}
|
|
@@ -146997,14 +147295,14 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
146997
147295
|
// }
|
|
146998
147296
|
getFirstDline() {
|
|
146999
147297
|
let mainStartRedrawline = 0;
|
|
147000
|
-
const hoEditorFactory =
|
|
147298
|
+
const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
|
|
147001
147299
|
while (mainStartRedrawline < this.children.length) {
|
|
147002
|
-
if (this.children[mainStartRedrawline] instanceof
|
|
147300
|
+
if (this.children[mainStartRedrawline] instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_6__/* .DrawLine */ .D || this.children[mainStartRedrawline] instanceof _drawNode_DrawPageTable__WEBPACK_IMPORTED_MODULE_9__/* .DrawPageTable */ .Yt) break;else mainStartRedrawline += 1;
|
|
147003
147301
|
}
|
|
147004
147302
|
const dStartDline = this.children[mainStartRedrawline];
|
|
147005
|
-
if (dStartDline instanceof
|
|
147303
|
+
if (dStartDline instanceof _drawNode_DrawPageTable__WEBPACK_IMPORTED_MODULE_9__/* .DrawPageTable */ .Yt) {
|
|
147006
147304
|
mainStartRedrawline = hoEditorFactory.drawTree.mainDNodes.indexOf(dStartDline.table.drawTable);
|
|
147007
|
-
} else if (dStartDline instanceof
|
|
147305
|
+
} else if (dStartDline instanceof _DrawLine__WEBPACK_IMPORTED_MODULE_6__/* .DrawLine */ .D) {
|
|
147008
147306
|
mainStartRedrawline = hoEditorFactory.drawTree.mainDNodes.indexOf(dStartDline);
|
|
147009
147307
|
}
|
|
147010
147308
|
return mainStartRedrawline;
|
|
@@ -147012,7 +147310,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
147012
147310
|
clearOverDitem(dRoots, start) {
|
|
147013
147311
|
for (let i = start; i < dRoots.length; i++) {
|
|
147014
147312
|
const dFirstItem = dRoots[i];
|
|
147015
|
-
if (dFirstItem instanceof
|
|
147313
|
+
if (dFirstItem instanceof _drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_8__/* .DrawTable */ .n) {
|
|
147016
147314
|
const dPageTable = dFirstItem.drawPageTables[0];
|
|
147017
147315
|
if (this.contains(dPageTable)) {
|
|
147018
147316
|
this.removeChild(dPageTable);
|
|
@@ -147029,7 +147327,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
147029
147327
|
}
|
|
147030
147328
|
}
|
|
147031
147329
|
drawComments() {
|
|
147032
|
-
const hoEditorFactory =
|
|
147330
|
+
const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
|
|
147033
147331
|
hoEditorFactory.commentParams.repaint++;
|
|
147034
147332
|
return;
|
|
147035
147333
|
const comments = new Map();
|
|
@@ -147067,7 +147365,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
147067
147365
|
const dline = hoEditorFactory.drawTree.getDrawLineByDNode(endDrawNode); // 末尾标记节点所在行
|
|
147068
147366
|
const stagePos = dline.localToGlobal(endDrawNode.x, endDrawNode.y); // 末尾标记节点的stage坐标
|
|
147069
147367
|
const localPos = this.globalToLocal(stagePos.x, stagePos.y); // 末尾标记节点的stage坐标
|
|
147070
|
-
const spX = dline.parent instanceof
|
|
147368
|
+
const spX = dline.parent instanceof _drawNode_DrawPageCell__WEBPACK_IMPORTED_MODULE_14__/* .DrawPageCell */ .M ? localPos.x : endDrawNode.x;
|
|
147071
147369
|
const spY = localPos.y;
|
|
147072
147370
|
this.removeComment(value);
|
|
147073
147371
|
const path = value.eNode.getNodePath();
|
|
@@ -147095,10 +147393,10 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
147095
147393
|
}
|
|
147096
147394
|
}
|
|
147097
147395
|
}
|
|
147098
|
-
|
|
147396
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(this.index);
|
|
147099
147397
|
}
|
|
147100
147398
|
repaint(comment, nPath, spX, spY) {
|
|
147101
|
-
const hoEditorFactory =
|
|
147399
|
+
const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
|
|
147102
147400
|
const comments = this.areaComments;
|
|
147103
147401
|
const topComments = new Array();
|
|
147104
147402
|
const bottomComments = new Array();
|
|
@@ -147121,7 +147419,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
147121
147419
|
});
|
|
147122
147420
|
tempArr.forEach(value => {
|
|
147123
147421
|
const aPath = value.eNode.getNodePath();
|
|
147124
|
-
const result =
|
|
147422
|
+
const result = _editor_dom_NodePosition__WEBPACK_IMPORTED_MODULE_11__/* .NodePosition */ .C.treePathCompare(nPath, aPath);
|
|
147125
147423
|
if (result > 0) {
|
|
147126
147424
|
topComments.push(value);
|
|
147127
147425
|
} else {
|
|
@@ -147192,7 +147490,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
147192
147490
|
}
|
|
147193
147491
|
}
|
|
147194
147492
|
drawComment(comment, nodeX, nodeY, commentY) {
|
|
147195
|
-
const hoEditorFactory =
|
|
147493
|
+
const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
|
|
147196
147494
|
const docWidth = this.docWidth;
|
|
147197
147495
|
const commentWidth = hoEditorFactory.pageProperty.rightMarginPixes - 15;
|
|
147198
147496
|
const container = new createjs.Container();
|
|
@@ -147266,7 +147564,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
147266
147564
|
}
|
|
147267
147565
|
}
|
|
147268
147566
|
onMouseDown(e, comment) {
|
|
147269
|
-
const hoEditorFactory =
|
|
147567
|
+
const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
|
|
147270
147568
|
hoEditorFactory.drawTree.curOnSelectedComment = comment;
|
|
147271
147569
|
e.target.alpha = 1;
|
|
147272
147570
|
for (let i = 0; i < this.children.length; i++) {
|
|
@@ -147278,7 +147576,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
147278
147576
|
if (hoEditorFactory.reviewJson.editComment !== false || hoEditorFactory.reviewJson.deleteComment !== false) {
|
|
147279
147577
|
setTimeout(() => {
|
|
147280
147578
|
if (hoEditorFactory.drawTree.activePage) {
|
|
147281
|
-
|
|
147579
|
+
_components_common_comment__WEBPACK_IMPORTED_MODULE_15__/* .hoCreateComment */ .h.open({
|
|
147282
147580
|
x: child.x,
|
|
147283
147581
|
y: child.y + hoEditorFactory.drawTree.activePage.drawMainDoc.y,
|
|
147284
147582
|
width: 0,
|
|
@@ -147299,7 +147597,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
147299
147597
|
hoEditorFactory.drawPageTree.updateDrawPage(this.index);
|
|
147300
147598
|
}
|
|
147301
147599
|
drawEditRecords(comment, nodeX, nodeY, commentY) {
|
|
147302
|
-
const hoEditorFactory =
|
|
147600
|
+
const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
|
|
147303
147601
|
const commentWidth = hoEditorFactory.pageProperty.rightMarginPixes - 15;
|
|
147304
147602
|
const docWidth = this.docWidth;
|
|
147305
147603
|
const container = new createjs.Container();
|
|
@@ -147345,7 +147643,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
147345
147643
|
hoEditorFactory.drawPageTree.updateDrawPage(this.index);
|
|
147346
147644
|
}
|
|
147347
147645
|
repaintRecored(comments, comment, nPath, spX, spY) {
|
|
147348
|
-
const hoEditorFactory =
|
|
147646
|
+
const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_12__/* .HOEditorFactorys */ .O.instance().getFactory(this._hoEditorFactoryID);
|
|
147349
147647
|
const topComments = new Array();
|
|
147350
147648
|
const bottomComments = new Array();
|
|
147351
147649
|
const tempArr = new Array();
|
|
@@ -147367,7 +147665,7 @@ class DrawArea extends _drawNode_DrawRect__WEBPACK_IMPORTED_MODULE_6__/* .DrawRe
|
|
|
147367
147665
|
});
|
|
147368
147666
|
tempArr.forEach(value => {
|
|
147369
147667
|
const aPath = value.eNode.getNodePath();
|
|
147370
|
-
const result =
|
|
147668
|
+
const result = _editor_dom_NodePosition__WEBPACK_IMPORTED_MODULE_11__/* .NodePosition */ .C.treePathCompare(nPath, aPath);
|
|
147371
147669
|
if (result > 0) {
|
|
147372
147670
|
topComments.push(value);
|
|
147373
147671
|
} else {
|
|
@@ -147897,13 +148195,11 @@ class DrawBarcodeNode extends _DrawCombineNode__WEBPACK_IMPORTED_MODULE_1__/* .D
|
|
|
147897
148195
|
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
147898
148196
|
/* harmony import */ var _yuki_createjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(56419);
|
|
147899
148197
|
/* harmony import */ var _yuki_createjs__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_yuki_createjs__WEBPACK_IMPORTED_MODULE_5__);
|
|
147900
|
-
/* harmony import */ var
|
|
148198
|
+
/* harmony import */ var _IDrawInfos__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(78139);
|
|
147901
148199
|
/* harmony import */ var _DrawPageCell__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(51613);
|
|
147902
148200
|
/* harmony import */ var _DrawRect__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(60030);
|
|
147903
148201
|
/* harmony import */ var _editor_dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(40504);
|
|
147904
148202
|
/* harmony import */ var _editor_dom_TableProperty__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(10432);
|
|
147905
|
-
/* harmony import */ var _DrawImageNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(90479);
|
|
147906
|
-
|
|
147907
148203
|
|
|
147908
148204
|
|
|
147909
148205
|
|
|
@@ -148002,7 +148298,7 @@ class DrawCell extends _DrawRect__WEBPACK_IMPORTED_MODULE_7__/* .DrawRect */ .N
|
|
|
148002
148298
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(this, "_needUpdate", void 0);
|
|
148003
148299
|
this._node = cellNode;
|
|
148004
148300
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
148005
|
-
this._discriminator =
|
|
148301
|
+
this._discriminator = _IDrawInfos__WEBPACK_IMPORTED_MODULE_10__/* .gDrawIntfID */ .c;
|
|
148006
148302
|
this._cell = cellNode;
|
|
148007
148303
|
this._dHeight = dHeight;
|
|
148008
148304
|
this._dWidth = dWidth;
|
|
@@ -148103,13 +148399,8 @@ class DrawCell extends _DrawRect__WEBPACK_IMPORTED_MODULE_7__/* .DrawRect */ .N
|
|
|
148103
148399
|
const aHeight = this._cell.drawCell.calcCellHeight();
|
|
148104
148400
|
const cellMaxHeight = Math.min(maxHeight, aHeight);
|
|
148105
148401
|
if (this._cell.cellProperty.align === _editor_dom_TableProperty__WEBPACK_IMPORTED_MODULE_9__/* .VAlign */ .gy.vatop) {
|
|
148106
|
-
|
|
148107
|
-
|
|
148108
|
-
// ---去掉靠上对齐时候顶上1像素留白导致单元格插入的图片卡死问题---
|
|
148109
|
-
valignTop = 0;
|
|
148110
|
-
} else {
|
|
148111
|
-
valignTop = 1;
|
|
148112
|
-
}
|
|
148402
|
+
// ---去掉靠上对齐时候顶上1像素留白导致单元格插入的图片卡死问题---
|
|
148403
|
+
valignTop = 0;
|
|
148113
148404
|
} else if (this._cell.cellProperty.align === _editor_dom_TableProperty__WEBPACK_IMPORTED_MODULE_9__/* .VAlign */ .gy.vacenter && cellMaxHeight > this._cell.drawCell.docHeight) {
|
|
148114
148405
|
valignTop = (cellMaxHeight - this._cell.drawCell.docHeight) / 2;
|
|
148115
148406
|
} else if (this._cell.cellProperty.align === _editor_dom_TableProperty__WEBPACK_IMPORTED_MODULE_9__/* .VAlign */ .gy.vabottom && aHeight > this._cell.drawCell.docHeight) {
|
|
@@ -148821,197 +149112,6 @@ class DrawDownListNode extends _DrawCombineNode__WEBPACK_IMPORTED_MODULE_3__/* .
|
|
|
148821
149112
|
|
|
148822
149113
|
/***/ }),
|
|
148823
149114
|
|
|
148824
|
-
/***/ 90479:
|
|
148825
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
148826
|
-
|
|
148827
|
-
"use strict";
|
|
148828
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
148829
|
-
/* harmony export */ I: function() { return /* binding */ DrawImageNode; }
|
|
148830
|
-
/* harmony export */ });
|
|
148831
|
-
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(32356);
|
|
148832
|
-
/* harmony import */ var _yuki_createjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(56419);
|
|
148833
|
-
/* harmony import */ var _yuki_createjs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_yuki_createjs__WEBPACK_IMPORTED_MODULE_1__);
|
|
148834
|
-
/* harmony import */ var _DrawCombineNode__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10431);
|
|
148835
|
-
/* harmony import */ var _DrawResize__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36883);
|
|
148836
|
-
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(57703);
|
|
148837
|
-
/* harmony import */ var _editor_SubDocManger__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(63942);
|
|
148838
|
-
/* harmony import */ var _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3530);
|
|
148839
|
-
/* harmony import */ var _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(86247);
|
|
148840
|
-
/* harmony import */ var _SelectRange__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(49576);
|
|
148841
|
-
|
|
148842
|
-
/*
|
|
148843
|
-
* @Author: your name
|
|
148844
|
-
* @Date: 2020-11-11 11:04:19
|
|
148845
|
-
* @LastEditTime: 2024-02-04 10:59:15
|
|
148846
|
-
* @LastEditors: liyanan 2441631434@qq.com
|
|
148847
|
-
* @Description: In User Settings Edit
|
|
148848
|
-
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawImageNode.ts
|
|
148849
|
-
*/
|
|
148850
|
-
|
|
148851
|
-
|
|
148852
|
-
|
|
148853
|
-
|
|
148854
|
-
|
|
148855
|
-
|
|
148856
|
-
|
|
148857
|
-
|
|
148858
|
-
class DrawImageNode extends _DrawCombineNode__WEBPACK_IMPORTED_MODULE_2__/* .DrawCombineNode */ .A {
|
|
148859
|
-
constructor(hoeditfactoryID, rootPath, node, index, imagePath, dWidth, dHeight,
|
|
148860
|
-
//scaleX: number,
|
|
148861
|
-
//scaleY: number
|
|
148862
|
-
markImagePath) {
|
|
148863
|
-
super(hoeditfactoryID, rootPath, node, index);
|
|
148864
|
-
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(this, "_imagePath", void 0);
|
|
148865
|
-
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(this, "_markImagePath", void 0);
|
|
148866
|
-
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(this, "_scaleX", void 0);
|
|
148867
|
-
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(this, "_scaleY", void 0);
|
|
148868
|
-
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(this, "_imageY", void 0);
|
|
148869
|
-
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(this, "_drawResize", void 0);
|
|
148870
|
-
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(this, "_id", void 0);
|
|
148871
|
-
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(this, "_bitMap", void 0);
|
|
148872
|
-
const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_4__/* .HOEditorFactorys */ .O.instance().getFactory(hoeditfactoryID);
|
|
148873
|
-
const bounds = hoEditorFactory.vueController.getMainBounds(dWidth, dHeight);
|
|
148874
|
-
this.dWidth = Number(bounds.imageWidth);
|
|
148875
|
-
this.dHeight = Number(bounds.imageHeight);
|
|
148876
|
-
this._imagePath = imagePath;
|
|
148877
|
-
this._markImagePath = markImagePath;
|
|
148878
|
-
this._imageY = -this.dHeight;
|
|
148879
|
-
this.insertImage();
|
|
148880
|
-
this._drawResize = new _DrawResize__WEBPACK_IMPORTED_MODULE_3__/* .DrawResize */ .z(hoeditfactoryID, this.node, this, this._imageY);
|
|
148881
|
-
}
|
|
148882
|
-
get markImagePath() {
|
|
148883
|
-
return this._markImagePath;
|
|
148884
|
-
}
|
|
148885
|
-
get imagePath() {
|
|
148886
|
-
return this._imagePath;
|
|
148887
|
-
}
|
|
148888
|
-
get drawResize() {
|
|
148889
|
-
return this._drawResize;
|
|
148890
|
-
}
|
|
148891
|
-
insertImage() {
|
|
148892
|
-
const drawNode = this;
|
|
148893
|
-
const image = new Image();
|
|
148894
|
-
// const markImage = new Image();
|
|
148895
|
-
// let markImageBitmap!: createjs.Bitmap;
|
|
148896
|
-
image.src = this.imagePath;
|
|
148897
|
-
this._bitMap = new createjs.Bitmap(image);
|
|
148898
|
-
const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_4__/* .HOEditorFactorys */ .O.instance().getFactory(drawNode.node.hoEditorFactoryID);
|
|
148899
|
-
this._bitMap.y = this._imageY;
|
|
148900
|
-
this._bitMap.x = 0;
|
|
148901
|
-
this._bitMap.name = this.node.id;
|
|
148902
|
-
this._bitMap.setBounds(0, 0, drawNode.dWidth, drawNode.dHeight);
|
|
148903
|
-
hoEditorFactory.loadImageCount++;
|
|
148904
|
-
this.addChild(this._bitMap);
|
|
148905
|
-
image.onload = () => {
|
|
148906
|
-
const hitWidth = image.naturalWidth !== 0 ? image.naturalWidth : image.width;
|
|
148907
|
-
const hitHeight = image.naturalHeight !== 0 ? image.naturalHeight : image.height;
|
|
148908
|
-
this._bitMap.setTransform(0, drawNode._imageY, drawNode.dWidth / hitWidth, drawNode.dHeight / hitHeight);
|
|
148909
|
-
this._bitMap.setBounds(0, 0, image.naturalWidth, image.naturalHeight);
|
|
148910
|
-
const hitArea = new createjs.Shape();
|
|
148911
|
-
hitArea.graphics.beginFill('#000').drawRect(0, 0, hitWidth, hitHeight);
|
|
148912
|
-
this._bitMap.hitArea = hitArea;
|
|
148913
|
-
// 压缩页眉中的图片
|
|
148914
|
-
if (this.node.rootPath.includes('header') || this.node.rootPath.includes('footer')) {
|
|
148915
|
-
const canvas = document.createElement('canvas');
|
|
148916
|
-
const ctx = canvas.getContext('2d');
|
|
148917
|
-
canvas.width = this.dWidth * 2;
|
|
148918
|
-
canvas.height = this.dHeight * 2;
|
|
148919
|
-
canvas.style.width = this.dWidth + 'px';
|
|
148920
|
-
canvas.style.height = this.dHeight + 'px';
|
|
148921
|
-
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
148922
|
-
ctx.fillStyle = '#FFFFFF';
|
|
148923
|
-
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
|
148924
|
-
ctx.drawImage(image, 0, 0, canvas.width, canvas.height);
|
|
148925
|
-
const base64 = canvas.toDataURL('image/jpeg', 0.92);
|
|
148926
|
-
if (base64 < this.node.imageDataBase64String) {
|
|
148927
|
-
this.node.imageDataBase64String = base64;
|
|
148928
|
-
}
|
|
148929
|
-
}
|
|
148930
|
-
this.updateSign();
|
|
148931
|
-
hoEditorFactory.loadImageCount--;
|
|
148932
|
-
};
|
|
148933
|
-
if (this.markImagePath != '') {
|
|
148934
|
-
this.insertMarkImage();
|
|
148935
|
-
}
|
|
148936
|
-
image.onerror = () => {
|
|
148937
|
-
hoEditorFactory.loadImageCount--;
|
|
148938
|
-
if (!drawNode.node.isBackFill) {
|
|
148939
|
-
const path = this.node.previousLeaf().getNodePath();
|
|
148940
|
-
hoEditorFactory.docTree.deleteNode(this.node);
|
|
148941
|
-
const changeEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_6__/* .NodeChangeEvent */ .b(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_7__/* .DocAction */ .LC.daModifyStyle, path, path);
|
|
148942
|
-
changeEvent.oldEndPath = path;
|
|
148943
|
-
changeEvent.afterChangePath = path;
|
|
148944
|
-
changeEvent.oldDrawLines = new _SelectRange__WEBPACK_IMPORTED_MODULE_8__/* .SelectRange */ .u(this._hoEditorFactoryID).getRangeDrawLines(path, path, true, true);
|
|
148945
|
-
hoEditorFactory.docTree.change(changeEvent);
|
|
148946
|
-
}
|
|
148947
|
-
};
|
|
148948
|
-
}
|
|
148949
|
-
insertMarkImage() {
|
|
148950
|
-
const drawNode = this;
|
|
148951
|
-
const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_4__/* .HOEditorFactorys */ .O.instance().getFactory(drawNode.node.hoEditorFactoryID);
|
|
148952
|
-
const markImage = new Image();
|
|
148953
|
-
let markImageBitmap;
|
|
148954
|
-
markImage.src = this.markImagePath;
|
|
148955
|
-
hoEditorFactory.loadImageCount++;
|
|
148956
|
-
markImageBitmap = new createjs.Bitmap(markImage);
|
|
148957
|
-
//markImageBitmap.y = this._imageY;
|
|
148958
|
-
//markImageBitmap.x = 0;
|
|
148959
|
-
markImageBitmap.name = this.node.id;
|
|
148960
|
-
markImageBitmap.setBounds(0, 0, drawNode.dWidth, drawNode.dHeight);
|
|
148961
|
-
drawNode.addChild(markImageBitmap);
|
|
148962
|
-
//hoEditorFactory.loadImageCount++;
|
|
148963
|
-
markImage.onload = () => {
|
|
148964
|
-
markImageBitmap.x = 0;
|
|
148965
|
-
markImageBitmap.y = 0;
|
|
148966
|
-
const hitWidth = markImage.naturalWidth !== 0 ? markImage.naturalWidth : markImage.width;
|
|
148967
|
-
const hitHeight = markImage.naturalHeight !== 0 ? markImage.naturalHeight : markImage.height;
|
|
148968
|
-
markImageBitmap.setTransform(0, drawNode._imageY, drawNode.dWidth / hitWidth, drawNode.dHeight / hitHeight);
|
|
148969
|
-
const hitArea = new createjs.Shape();
|
|
148970
|
-
hitArea.graphics.beginFill('#000000').drawRect(0, 0, hitWidth, hitHeight);
|
|
148971
|
-
this.updateSign();
|
|
148972
|
-
hoEditorFactory.loadImageCount--;
|
|
148973
|
-
};
|
|
148974
|
-
markImage.onerror = () => {
|
|
148975
|
-
hoEditorFactory.loadImageCount--;
|
|
148976
|
-
const path = this.node.previousLeaf().getNodePath();
|
|
148977
|
-
hoEditorFactory.docTree.deleteNode(this.node);
|
|
148978
|
-
const changeEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_6__/* .NodeChangeEvent */ .b(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_7__/* .DocAction */ .LC.daModifyStyle, path, path);
|
|
148979
|
-
changeEvent.oldEndPath = path;
|
|
148980
|
-
changeEvent.afterChangePath = path;
|
|
148981
|
-
changeEvent.oldDrawLines = new _SelectRange__WEBPACK_IMPORTED_MODULE_8__/* .SelectRange */ .u(this._hoEditorFactoryID).getRangeDrawLines(path, path, true, true);
|
|
148982
|
-
hoEditorFactory.docTree.change(changeEvent);
|
|
148983
|
-
};
|
|
148984
|
-
}
|
|
148985
|
-
updateSign() {
|
|
148986
|
-
const hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_4__/* .HOEditorFactorys */ .O.instance().getFactory(this.node.hoEditorFactoryID);
|
|
148987
|
-
const dArea = hoEditorFactory.drawPageTree.getMainRootArea(this);
|
|
148988
|
-
if (dArea && hoEditorFactory.drawTree.drawPages[dArea.index]) {
|
|
148989
|
-
const atype = hoEditorFactory.subDocManger.getHeaderFooterType(this.node.getNodePath());
|
|
148990
|
-
if (atype === _editor_SubDocManger__WEBPACK_IMPORTED_MODULE_5__/* .HeaderFooterType */ .lr.hftHead && dArea != hoEditorFactory.drawTree.drawPages[dArea.index].drawHeader) {
|
|
148991
|
-
hoEditorFactory.subDocManger.updateAllSameSubDoc(dArea.index, atype, false, false);
|
|
148992
|
-
} else {
|
|
148993
|
-
if (atype === _editor_SubDocManger__WEBPACK_IMPORTED_MODULE_5__/* .HeaderFooterType */ .lr.hftFoot && dArea != hoEditorFactory.drawTree.drawPages[dArea.index].drawFooter) {
|
|
148994
|
-
hoEditorFactory.subDocManger.updateAllSameSubDoc(dArea.index, atype, false, false);
|
|
148995
|
-
}
|
|
148996
|
-
}
|
|
148997
|
-
hoEditorFactory.drawPageTree.updateDrawPage(dArea.index);
|
|
148998
|
-
}
|
|
148999
|
-
}
|
|
149000
|
-
clone() {
|
|
149001
|
-
const aConTainer = new createjs.Container();
|
|
149002
|
-
const bitMap = this._bitMap.clone();
|
|
149003
|
-
bitMap.name = this.node.id;
|
|
149004
|
-
if (this._cloneProps) {
|
|
149005
|
-
this._cloneProps(aConTainer);
|
|
149006
|
-
}
|
|
149007
|
-
aConTainer.removeAllChildren();
|
|
149008
|
-
aConTainer.addChild(bitMap);
|
|
149009
|
-
return aConTainer;
|
|
149010
|
-
}
|
|
149011
|
-
}
|
|
149012
|
-
|
|
149013
|
-
/***/ }),
|
|
149014
|
-
|
|
149015
149115
|
/***/ 51389:
|
|
149016
149116
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
149017
149117
|
|
|
@@ -150188,8 +150288,9 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
|
|
|
150188
150288
|
return ret;
|
|
150189
150289
|
}
|
|
150190
150290
|
updateDHeight() {
|
|
150191
|
-
const
|
|
150192
|
-
const
|
|
150291
|
+
const hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._cell.hoEditorFactoryID);
|
|
150292
|
+
const innerBottom = hoEditorFactory.unitConvert.mmConversionPx(this._cell.cellProperty.cellInnerMargin[1] * 10, true);
|
|
150293
|
+
const innerTop = hoEditorFactory.unitConvert.mmConversionPx(this._cell.cellProperty.cellInnerMargin[0] * 10, true);
|
|
150193
150294
|
const index = this.cell.drawCell.drawPageCells.indexOf(this);
|
|
150194
150295
|
let docHeight = 0;
|
|
150195
150296
|
if (index == 0 || index == this.cell.drawCell.drawPageCells.length - 1) {
|
|
@@ -150231,6 +150332,7 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
|
|
|
150231
150332
|
(0,defineProperty/* default */.A)(this, "_bottomLine", void 0);
|
|
150232
150333
|
(0,defineProperty/* default */.A)(this, "_leftLine", void 0);
|
|
150233
150334
|
(0,defineProperty/* default */.A)(this, "_rightLine", void 0);
|
|
150335
|
+
(0,defineProperty/* default */.A)(this, "backColor", void 0);
|
|
150234
150336
|
//实现接口部分
|
|
150235
150337
|
(0,defineProperty/* default */.A)(this, "_node", void 0);
|
|
150236
150338
|
(0,defineProperty/* default */.A)(this, "_discriminator", void 0);
|
|
@@ -150238,6 +150340,8 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
|
|
|
150238
150340
|
// this._crossShape = null;
|
|
150239
150341
|
this._backImg = new createjs.Shape();
|
|
150240
150342
|
this._backImg.name = "backImg";
|
|
150343
|
+
this.backColor = new createjs.Shape();
|
|
150344
|
+
this.backColor.name = "backColor";
|
|
150241
150345
|
this._topLine = new createjs.Shape();
|
|
150242
150346
|
this._bottomLine = new createjs.Shape();
|
|
150243
150347
|
this._leftLine = new createjs.Shape();
|
|
@@ -150493,7 +150597,10 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
|
|
|
150493
150597
|
const printGridLines = this._cell.cellProperty.printGridLines;
|
|
150494
150598
|
const gridLineDisplay = this._cell.cellProperty.gridLineDisplay;
|
|
150495
150599
|
const gridLinesColor = this._cell.cellProperty.gridLinesColor;
|
|
150496
|
-
|
|
150600
|
+
const gridLinesStyle = this._cell.cellProperty.gridLinesStyle;
|
|
150601
|
+
const paintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
150602
|
+
let isDash = printGridLines && gridLinesStyle !== TableProperty/* GridLinesStyle */.dE.solid || !printGridLines && paintStatus !== DrawTree/* PaintState */.ak.psPreview && paintStatus !== DrawTree/* PaintState */.ak.psPrint;
|
|
150603
|
+
if (printGridLines || !printGridLines && paintStatus !== DrawTree/* PaintState */.ak.psPreview && paintStatus !== DrawTree/* PaintState */.ak.psPrint) {
|
|
150497
150604
|
if (gridLineDisplay[0]) {
|
|
150498
150605
|
//上边框
|
|
150499
150606
|
let topCell = null;
|
|
@@ -150503,7 +150610,7 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
|
|
|
150503
150610
|
if (r == 0 || this.dTop == 0 || r > 0 && topCell && !topCell.cellProperty.gridLineDisplay[1]) {
|
|
150504
150611
|
this._topLine.name = "topLine";
|
|
150505
150612
|
this._topLine.graphics.beginStroke(gridLinesColor[0]);
|
|
150506
|
-
if (
|
|
150613
|
+
if (isDash) {
|
|
150507
150614
|
this._topLine.graphics.setStrokeDash([2, 2]);
|
|
150508
150615
|
} else {
|
|
150509
150616
|
this._topLine.graphics.setStrokeStyle(1, 0, 0, undefined, true);
|
|
@@ -150511,7 +150618,7 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
|
|
|
150511
150618
|
this._topLine.graphics.moveTo(x, y).lineTo(x + dWidth, y);
|
|
150512
150619
|
this._topLine.graphics.endStroke();
|
|
150513
150620
|
if (!this.children.includes(this._topLine)) {
|
|
150514
|
-
this.
|
|
150621
|
+
this.addChildAt(this._topLine, this.children.length - 1);
|
|
150515
150622
|
}
|
|
150516
150623
|
}
|
|
150517
150624
|
} else {
|
|
@@ -150540,7 +150647,7 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
|
|
|
150540
150647
|
//下边框
|
|
150541
150648
|
this._bottomLine.name = "bottomLine";
|
|
150542
150649
|
this._bottomLine.graphics.beginStroke(gridLinesColor[1]);
|
|
150543
|
-
if (
|
|
150650
|
+
if (isDash) {
|
|
150544
150651
|
this._bottomLine.graphics.setStrokeDash([2, 2]);
|
|
150545
150652
|
} else {
|
|
150546
150653
|
this._bottomLine.graphics.setStrokeStyle(1, 0, 0, undefined, true);
|
|
@@ -150548,7 +150655,7 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
|
|
|
150548
150655
|
this._bottomLine.graphics.moveTo(x, y + height).lineTo(x + dWidth, y + height);
|
|
150549
150656
|
this._bottomLine.graphics.endStroke();
|
|
150550
150657
|
if (!this.children.includes(this._bottomLine)) {
|
|
150551
|
-
this.
|
|
150658
|
+
this.addChildAt(this._bottomLine, this.children.length - 1);
|
|
150552
150659
|
}
|
|
150553
150660
|
} else {
|
|
150554
150661
|
if (r < this.cell.table.rowCount - 1) {
|
|
@@ -150581,7 +150688,7 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
|
|
|
150581
150688
|
if (c == 0 || c > 0 && leftCell && !leftCell.cellProperty.gridLineDisplay[3]) {
|
|
150582
150689
|
this._leftLine.name = "leftLine";
|
|
150583
150690
|
this._leftLine.graphics.beginStroke(gridLinesColor[2]);
|
|
150584
|
-
if (
|
|
150691
|
+
if (isDash) {
|
|
150585
150692
|
this._leftLine.graphics.setStrokeDash([2, 2]);
|
|
150586
150693
|
} else {
|
|
150587
150694
|
this._leftLine.graphics.setStrokeStyle(1, 0, 0, undefined, true);
|
|
@@ -150589,7 +150696,7 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
|
|
|
150589
150696
|
this._leftLine.graphics.moveTo(x, y).lineTo(x, y + height);
|
|
150590
150697
|
this._leftLine.graphics.endStroke();
|
|
150591
150698
|
if (!this.children.includes(this._leftLine)) {
|
|
150592
|
-
this.
|
|
150699
|
+
this.addChildAt(this._leftLine, this.children.length - 1);
|
|
150593
150700
|
}
|
|
150594
150701
|
}
|
|
150595
150702
|
} else {
|
|
@@ -150621,7 +150728,7 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
|
|
|
150621
150728
|
//右边框
|
|
150622
150729
|
this._rightLine.name = "rightLine";
|
|
150623
150730
|
this._rightLine.graphics.beginStroke(gridLinesColor[3]);
|
|
150624
|
-
if (
|
|
150731
|
+
if (isDash) {
|
|
150625
150732
|
this._rightLine.graphics.setStrokeDash([2, 2]);
|
|
150626
150733
|
} else {
|
|
150627
150734
|
this._rightLine.graphics.setStrokeStyle(1, 0, 0, undefined, true);
|
|
@@ -150629,7 +150736,7 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
|
|
|
150629
150736
|
this._rightLine.graphics.moveTo(x + dWidth, y).lineTo(x + dWidth, y + height);
|
|
150630
150737
|
this._rightLine.graphics.endStroke();
|
|
150631
150738
|
if (!this.children.includes(this._rightLine)) {
|
|
150632
|
-
this.
|
|
150739
|
+
this.addChildAt(this._rightLine, this.children.length - 1);
|
|
150633
150740
|
}
|
|
150634
150741
|
} else {
|
|
150635
150742
|
if (c < this.cell.table.colCount - 1 && c > 0) {
|
|
@@ -150658,6 +150765,20 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
|
|
|
150658
150765
|
}
|
|
150659
150766
|
}
|
|
150660
150767
|
}
|
|
150768
|
+
// this.paintBackColor(true)
|
|
150769
|
+
}
|
|
150770
|
+
paintBackColor(draw) {
|
|
150771
|
+
const hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this.hoEditorFactoryID);
|
|
150772
|
+
this.backColor.graphics.clear();
|
|
150773
|
+
this.backColor.alpha = 0.5;
|
|
150774
|
+
if (draw && hoEditorFactory.drawTree.paintStatus != DrawTree/* PaintState */.ak.psPrint && hoEditorFactory.drawTree.paintStatus != DrawTree/* PaintState */.ak.psPreview) {
|
|
150775
|
+
this.backColor.graphics.beginFill('#f00').drawRect(0, 0, this._dWidth, this._dHeight);
|
|
150776
|
+
if (this.children.includes(this.backColor)) {
|
|
150777
|
+
this.setChildIndex(this.backColor, 0);
|
|
150778
|
+
} else {
|
|
150779
|
+
this.addChildAt(this.backColor, 0);
|
|
150780
|
+
}
|
|
150781
|
+
}
|
|
150661
150782
|
}
|
|
150662
150783
|
paintCellBackground(newHeight, r, c) {
|
|
150663
150784
|
this._backImg.x = 0;
|
|
@@ -150679,27 +150800,26 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
|
|
|
150679
150800
|
this.setBounds(0, 0, this._dWidth, newHeight);
|
|
150680
150801
|
}
|
|
150681
150802
|
paintLineGrid() {
|
|
150682
|
-
|
|
150803
|
+
const drawLines = this._cell.drawCell.drawLines;
|
|
150804
|
+
if (drawLines.length == 0) {
|
|
150683
150805
|
return;
|
|
150684
150806
|
}
|
|
150685
|
-
let dHeight =
|
|
150686
|
-
if (
|
|
150687
|
-
dHeight =
|
|
150807
|
+
let dHeight = drawLines[0].dHeight;
|
|
150808
|
+
if (drawLines.length == 1 && drawLines[0] instanceof DrawLine/* DrawLine */.D && drawLines[0].drawItems.length == 0) {
|
|
150809
|
+
dHeight = drawLines[0].adjustDHeight(dHeight) + drawLines[0].paragraphNode.combineParagraph.topMarginPixes;
|
|
150688
150810
|
}
|
|
150689
|
-
dHeight +=
|
|
150811
|
+
dHeight += drawLines[0].paragraphNode.combineParagraph.lineSpace;
|
|
150690
150812
|
const halfHeight = Math.ceil(dHeight / 2);
|
|
150691
150813
|
let totalHeight = 0;
|
|
150692
150814
|
for (let i = this.startDline; i < this._endDline; i++) {
|
|
150693
|
-
const dline =
|
|
150815
|
+
const dline = drawLines[i];
|
|
150694
150816
|
let count = 1;
|
|
150695
150817
|
if (dline instanceof DrawLine/* DrawLine */.D) {
|
|
150696
150818
|
if (dline.dHeight > dHeight) {
|
|
150697
150819
|
count = Math.ceil(dline.dHeight / dHeight);
|
|
150698
150820
|
}
|
|
150699
150821
|
totalHeight += count * dHeight;
|
|
150700
|
-
if (this.dHeight - totalHeight > halfHeight) this._backImg.graphics.beginStroke("#000").setStrokeStyle(1)
|
|
150701
|
-
//.drawRect(0,Math.ceil(totalHeight) - 0.5,this._dWidth,1)
|
|
150702
|
-
.moveTo(0, Math.ceil(totalHeight) - 0.5).lineTo(this._dWidth, Math.ceil(totalHeight) - 0.5);
|
|
150822
|
+
if (this.dHeight - totalHeight > halfHeight) this._backImg.graphics.beginStroke("#000").setStrokeStyle(1).moveTo(0, Math.ceil(totalHeight) - 0.5).lineTo(this._dWidth, Math.ceil(totalHeight) - 0.5);
|
|
150703
150823
|
}
|
|
150704
150824
|
}
|
|
150705
150825
|
while (totalHeight < this.dHeight + dHeight) {
|
|
@@ -150742,21 +150862,6 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
|
|
|
150742
150862
|
} else if (this._cell.cellProperty.align == TableProperty/* VAlign */.gy.vabottom) {
|
|
150743
150863
|
const [newValignTop, rowHeightArr] = this.calcValignTop(newHeight);
|
|
150744
150864
|
if (rowHeightArr) {
|
|
150745
|
-
// const getPlace=(dTop:number,dPageCellIndex: number,dHeight:number):[number,number]=>{
|
|
150746
|
-
// let index=0;
|
|
150747
|
-
// let newTop=dTop;
|
|
150748
|
-
// let rowHeight=0;
|
|
150749
|
-
// for (let i=0;i<topArr.length;i++ ){
|
|
150750
|
-
// if (dTop+dHeight<topArr[i]){
|
|
150751
|
-
// index=i;
|
|
150752
|
-
// break;
|
|
150753
|
-
// }
|
|
150754
|
-
// else {
|
|
150755
|
-
// newTop-=topArr[i]
|
|
150756
|
-
// }
|
|
150757
|
-
// }
|
|
150758
|
-
// return [index,newTop]
|
|
150759
|
-
// }
|
|
150760
150865
|
if (newValignTop != this._valignTop) {
|
|
150761
150866
|
this._valignTop = newValignTop;
|
|
150762
150867
|
const childCount = this._cell.drawCell.drawLines.length;
|
|
@@ -150779,7 +150884,6 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
|
|
|
150779
150884
|
dObj.y = cellrestHeight - dObj.dHeight - dObj.paragraphNode.combineParagraph.lineSpace;
|
|
150780
150885
|
cellrestHeight = dObj.y;
|
|
150781
150886
|
dPageCell.addChild(dObj);
|
|
150782
|
-
// const [pageCellIndex,newTop]=getPlace(dTop,index,dObj.dHeight);
|
|
150783
150887
|
}
|
|
150784
150888
|
}
|
|
150785
150889
|
}
|
|
@@ -150787,17 +150891,18 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
|
|
|
150787
150891
|
}
|
|
150788
150892
|
}
|
|
150789
150893
|
getPagePaintPosition() {
|
|
150790
|
-
const paraNode = this._cell.childNodes[0].combineParagraph;
|
|
150791
|
-
const dleft = paraNode.leftMarginPixes;
|
|
150792
|
-
const dTop = paraNode.topMarginPixes;
|
|
150793
150894
|
const dPage = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID).drawPageTree.getDrawPageByDNode(this._drawPageTable);
|
|
150794
150895
|
if (!dPage) {
|
|
150795
150896
|
throw new Error("表格绘制还未准备好");
|
|
150796
150897
|
}
|
|
150898
|
+
const paraNode = this._cell.childNodes[0].combineParagraph;
|
|
150899
|
+
const dleft = paraNode.leftMarginPixes;
|
|
150900
|
+
const dTop = paraNode.topMarginPixes;
|
|
150797
150901
|
return new PagePaintPosition/* PagePaintPosition */.z(this._hoEditorFactoryID, dPage.pageIndex, dleft, dTop);
|
|
150798
150902
|
}
|
|
150799
150903
|
calcValignTop(restHeight) {
|
|
150800
150904
|
const index = this.cell.drawCell.drawPageCells.indexOf(this);
|
|
150905
|
+
const drawCell = this._cell.drawCell;
|
|
150801
150906
|
let innerTop = 0;
|
|
150802
150907
|
let toparr = new Array();
|
|
150803
150908
|
let pageHeight = 0;
|
|
@@ -150811,9 +150916,9 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
|
|
|
150811
150916
|
valignTop = innerTop;
|
|
150812
150917
|
} else if (this._cell.cellProperty.align === TableProperty/* VAlign */.gy.vacenter) {
|
|
150813
150918
|
[drawTreeHeight, pageHeight, toparr] = this.calcCellHeight(restHeight);
|
|
150814
|
-
//2024-01-02改
|
|
150815
|
-
if (pageHeight >
|
|
150816
|
-
valignTop = (pageHeight - (
|
|
150919
|
+
//2024-01-02改
|
|
150920
|
+
if (pageHeight > drawCell.docHeight && this.dHeight - drawCell.docHeight > 2) {
|
|
150921
|
+
valignTop = (pageHeight - (drawCell.docHeight + 2)) / 2;
|
|
150817
150922
|
}
|
|
150818
150923
|
} else if (this._cell.cellProperty.align === TableProperty/* VAlign */.gy.vabottom) {
|
|
150819
150924
|
[drawTreeHeight, pageHeight, toparr] = this.calcCellHeight(restHeight);
|
|
@@ -150827,12 +150932,12 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
|
|
|
150827
150932
|
for (let r = 0; r < pageTableIndex; r++) {
|
|
150828
150933
|
prevDocHeight += toparr[r][1];
|
|
150829
150934
|
}
|
|
150830
|
-
if (drawTreeHeight >
|
|
150831
|
-
//valignTop = pageHeight - Math.max(0, (
|
|
150832
|
-
if (
|
|
150833
|
-
valignTop = pageHeight - Math.max(0,
|
|
150935
|
+
if (drawTreeHeight > drawCell.docHeight) {
|
|
150936
|
+
//valignTop = pageHeight - Math.max(0, (drawCell.docHeight - restRowHeight - innerBottom - prevDocHeight));
|
|
150937
|
+
if (drawCell.docHeight <= 13) {
|
|
150938
|
+
valignTop = pageHeight - Math.max(0, drawCell.docHeight - restRowHeight - innerBottom - prevDocHeight) - 5;
|
|
150834
150939
|
} else {
|
|
150835
|
-
valignTop = pageHeight - Math.max(0,
|
|
150940
|
+
valignTop = pageHeight - Math.max(0, drawCell.docHeight - restRowHeight - innerBottom - prevDocHeight);
|
|
150836
150941
|
}
|
|
150837
150942
|
}
|
|
150838
150943
|
}
|
|
@@ -150844,13 +150949,9 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
|
|
|
150844
150949
|
valignTop = this.calcValignTop(restHeight)[0];
|
|
150845
150950
|
this._valignTop = valignTop;
|
|
150846
150951
|
}
|
|
150847
|
-
// if (startIndex === 0) {
|
|
150848
|
-
// valignTop=this.calcValignTop();
|
|
150849
|
-
// this._valignTop=valignTop;
|
|
150850
|
-
// }
|
|
150851
150952
|
this._startDline = startIndex < -1 ? 0 : startIndex;
|
|
150852
150953
|
const ret = super.update(prevDrawArea, dlines, this._startDline, valignTop, restHeight);
|
|
150853
|
-
this.
|
|
150954
|
+
this.docHeight = Math.max(0, this.docHeight - valignTop);
|
|
150854
150955
|
this.updateDHeight();
|
|
150855
150956
|
return ret;
|
|
150856
150957
|
// this.updateTouchArea(this._dHeight);
|
|
@@ -150865,7 +150966,7 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
|
|
|
150865
150966
|
calcCellHeight(restHeight) {
|
|
150866
150967
|
const [row, c] = this._cell.table.getCellInfos(this._cell);
|
|
150867
150968
|
let ret = 0;
|
|
150868
|
-
const hoeditorFactory = HOEditorFactorys
|
|
150969
|
+
// const hoeditorFactory = HOEditorFactorys.instance().getFactory(this._cell.hoEditorFactoryID);
|
|
150869
150970
|
let dTopArr = new Array();
|
|
150870
150971
|
let pageHeight = 0;
|
|
150871
150972
|
if (this._cell.cellProperty.align == TableProperty/* VAlign */.gy.vabottom) {
|
|
@@ -150882,11 +150983,9 @@ class DrawPageCell extends DrawArea/* DrawArea */.y {
|
|
|
150882
150983
|
dTopArr.push([0, 0]);
|
|
150883
150984
|
for (let r = row, count = this._cell.rowSpan + row - 1; r <= count; r++) {
|
|
150884
150985
|
const dTable = this._cell.table.drawTable.drawPageTables[i];
|
|
150885
|
-
//if (dTable.parent&&dTable.parent.contains(dTable) ){
|
|
150886
150986
|
const rowInfos = dTable.partRowHeights.get(r);
|
|
150887
150987
|
if (rowInfos) {
|
|
150888
150988
|
dTopArr[index][0] += rowInfos.rowHeight;
|
|
150889
|
-
// }
|
|
150890
150989
|
}
|
|
150891
150990
|
const partCell = this._cell.drawCell.getDrawPageCell(dTable);
|
|
150892
150991
|
if (partCell) {
|
|
@@ -151366,7 +151465,7 @@ class DrawPageTable extends _DrawRect__WEBPACK_IMPORTED_MODULE_12__/* .DrawRect
|
|
|
151366
151465
|
}
|
|
151367
151466
|
const partCell = cell.drawCell.getDrawPageCell(this);
|
|
151368
151467
|
if (partCell) {
|
|
151369
|
-
const oldHeight = partCell.dHeight;
|
|
151468
|
+
// const oldHeight = partCell.dHeight;
|
|
151370
151469
|
partCell.dHeight = newHeight;
|
|
151371
151470
|
partCell.afterHeightChanged(newHeight);
|
|
151372
151471
|
if (partCell.cell.rowSpan > 1) {
|
|
@@ -151377,7 +151476,9 @@ class DrawPageTable extends _DrawRect__WEBPACK_IMPORTED_MODULE_12__/* .DrawRect
|
|
|
151377
151476
|
this.updatePartCell(partCell.cell.drawCell.drawPageCells[i], dPrevPartCell, relR, relC, startChildIndex);
|
|
151378
151477
|
dPrevPartCell = partCell.cell.drawCell.drawPageCells[i];
|
|
151379
151478
|
startChildIndex = dPrevPartCell.endDline;
|
|
151380
|
-
if (dPrevPartCell.isEndLineFinished())
|
|
151479
|
+
if (dPrevPartCell.isEndLineFinished()) {
|
|
151480
|
+
startChildIndex = dPrevPartCell.endDline + 1;
|
|
151481
|
+
}
|
|
151381
151482
|
}
|
|
151382
151483
|
}
|
|
151383
151484
|
this.paintCellBorder(partCell, relR, relC, newHeight);
|
|
@@ -151408,84 +151509,12 @@ class DrawPageTable extends _DrawRect__WEBPACK_IMPORTED_MODULE_12__/* .DrawRect
|
|
|
151408
151509
|
} else {
|
|
151409
151510
|
cell = mainCell;
|
|
151410
151511
|
}
|
|
151411
|
-
// if (
|
|
151412
|
-
// (mr <= r && mr + mainCell.rowSpan - 1 >= r && mc === j) ||
|
|
151413
|
-
// r === this._endRow
|
|
151414
|
-
// ) {
|
|
151415
|
-
// cell = mainCell;
|
|
151416
|
-
// for (let row = mr + mainCell.rowSpan - 1; row >= Math.max(this.startRow, mr); row--) {
|
|
151417
|
-
// if (row == r) continue;
|
|
151418
|
-
// const preRowHeight = this._partRowHeights.get(row);
|
|
151419
|
-
// if (preRowHeight) {
|
|
151420
|
-
// newHeight += preRowHeight.rowHeight;
|
|
151421
|
-
// }
|
|
151422
|
-
// }
|
|
151423
|
-
// }
|
|
151424
151512
|
}
|
|
151425
151513
|
if (cell) {
|
|
151426
151514
|
this.updatePartCellHeight(cell, relR, relC, r, aHeight, false);
|
|
151427
151515
|
}
|
|
151428
151516
|
}
|
|
151429
151517
|
}
|
|
151430
|
-
// if (cell) {
|
|
151431
|
-
// endj = relC + cell.colSpan;
|
|
151432
|
-
// const partCell = cell.drawCell.getDrawPageCell(this);
|
|
151433
|
-
// // if (!partCell) {
|
|
151434
|
-
// // const dPartTable = this._table.drawTable.getDrawTableByParentArea(
|
|
151435
|
-
// // pageIndex
|
|
151436
|
-
// // );
|
|
151437
|
-
// // if (dPartTable) {
|
|
151438
|
-
// // const [aleft, awidth] = cell.getLeftWidth();
|
|
151439
|
-
// // const dTop = cell.table.drawTable.getParentHeadHeight();
|
|
151440
|
-
// // const maxHeight =
|
|
151441
|
-
// // cell.table.hoEditorFactory.drawPageTree.getMainDoc(pageIndex)
|
|
151442
|
-
// // .maxHeight - dTop;
|
|
151443
|
-
// // let startLine = 0;
|
|
151444
|
-
// // const prevCell = cell.drawCell.getDrawPageCellByPageIndex(
|
|
151445
|
-
// // pageIndex - 1
|
|
151446
|
-
// // );
|
|
151447
|
-
// // if (prevCell) {
|
|
151448
|
-
// // if (prevCell.lastDrawLine instanceof DrawPageTable) {
|
|
151449
|
-
// // startLine = prevCell.cell.drawCell.drawLines.indexOf(
|
|
151450
|
-
// // prevCell.lastDrawLine._table.drawTable
|
|
151451
|
-
// // );
|
|
151452
|
-
// // } else {
|
|
151453
|
-
// // startLine = prevCell.cell.drawCell.drawLines.indexOf(
|
|
151454
|
-
// // prevCell.lastDrawLine
|
|
151455
|
-
// // );
|
|
151456
|
-
// // }
|
|
151457
|
-
// // if (prevCell.isEndLineFinished()) startLine += 1;
|
|
151458
|
-
// // }
|
|
151459
|
-
// // partCell = new DrawPageCell(
|
|
151460
|
-
// // this._table.hoEditorFactory,
|
|
151461
|
-
// // dPartTable,
|
|
151462
|
-
// // cell,
|
|
151463
|
-
// // aleft,
|
|
151464
|
-
// // dTop,
|
|
151465
|
-
// // awidth,
|
|
151466
|
-
// // newHeight,
|
|
151467
|
-
// // pageIndex,
|
|
151468
|
-
// // startLine,
|
|
151469
|
-
// // maxHeight
|
|
151470
|
-
// // );
|
|
151471
|
-
// // }
|
|
151472
|
-
// // }
|
|
151473
|
-
// if (partCell) {
|
|
151474
|
-
// partCell.dHeight = newHeight;
|
|
151475
|
-
// if (partCell.cell.rowSpan > 1) {
|
|
151476
|
-
// let index = partCell.cell.drawCell.drawPageCells.indexOf(partCell) - 1;
|
|
151477
|
-
// let dPrevPartCell: DrawPageCell | null = null;
|
|
151478
|
-
// let startChildIndex = 0;
|
|
151479
|
-
// for (let i = 0; i <= index; i++) {
|
|
151480
|
-
// this.updatePartCell(partCell.cell.drawCell.drawPageCells[i], dPrevPartCell, relR, relC, startChildIndex);
|
|
151481
|
-
// dPrevPartCell = partCell.cell.drawCell.drawPageCells[i];
|
|
151482
|
-
// startChildIndex = dPrevPartCell.endDline;
|
|
151483
|
-
// if (dPrevPartCell.isEndLineFinished())
|
|
151484
|
-
// startChildIndex = dPrevPartCell.endDline + 1;
|
|
151485
|
-
// }
|
|
151486
|
-
// }
|
|
151487
|
-
// this.paintCellBorder(partCell, relR, relC, newHeight);
|
|
151488
|
-
// } this.updatePartCellHeight(cell,relR,relC,r,aHeight,false);
|
|
151489
151518
|
paintCellBorder(partCell, r, c, newHeight) {
|
|
151490
151519
|
partCell.startPaintBackGround();
|
|
151491
151520
|
const colInfo = this._table.colInfos[c];
|
|
@@ -152061,21 +152090,8 @@ class DrawPageTable extends _DrawRect__WEBPACK_IMPORTED_MODULE_12__/* .DrawRect
|
|
|
152061
152090
|
//同一行的合并列只绘制一次
|
|
152062
152091
|
if (cell && mc === c && (mr === r || r === this.startRow)) {
|
|
152063
152092
|
if (cell.rowSpan > 1) {
|
|
152064
|
-
// for (let j = mr + 1; j < mr + cell.rowSpan; j++) {
|
|
152065
|
-
// cellRestHeight += this._table.rowInfos[j].rowHeight;
|
|
152066
|
-
// }
|
|
152067
152093
|
cellRestHeight = Math.min(cell.drawCell.getCellRestHeight(0), pageRestHeight);
|
|
152068
152094
|
}
|
|
152069
|
-
const destCell = cell.drawCell.copyPaintCell(this, r, aTop);
|
|
152070
|
-
// if (destCell) {
|
|
152071
|
-
// destCell.paintCellBackground(destCell.dHeight, mr, mc);
|
|
152072
|
-
// // destCell.updateTouchArea(newHeight);}
|
|
152073
|
-
// }
|
|
152074
|
-
// if (this.stage){
|
|
152075
|
-
// const dPage= this._table.hoEditorFactory.drawTree.getDrawPageByDomStage(this.stage);
|
|
152076
|
-
// if (dPage){}
|
|
152077
|
-
// }
|
|
152078
|
-
// cell.drawCell.copyPaintCell(this.dPage.pageIndex, this, aTop);
|
|
152079
152095
|
}
|
|
152080
152096
|
}
|
|
152081
152097
|
aTop += this._table.drawTable.drawPageTables[0].getPartRowHeight(r);
|
|
@@ -154509,29 +154525,32 @@ class DrawTableFormular extends DrawSimpleNode {
|
|
|
154509
154525
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
154510
154526
|
/* harmony export */ t: function() { return /* binding */ DrawTableFormularChart; }
|
|
154511
154527
|
/* harmony export */ });
|
|
154512
|
-
/* harmony import */ var
|
|
154513
|
-
/* harmony import */ var
|
|
154514
|
-
/* harmony import */ var
|
|
154515
|
-
/* harmony import */ var
|
|
154516
|
-
/* harmony import */ var
|
|
154517
|
-
/* harmony import */ var
|
|
154518
|
-
/* harmony import */ var
|
|
154519
|
-
/* harmony import */ var
|
|
154520
|
-
/* harmony import */ var
|
|
154521
|
-
/* harmony import */ var
|
|
154522
|
-
/* harmony import */ var
|
|
154523
|
-
/* harmony import */ var
|
|
154524
|
-
/* harmony import */ var
|
|
154525
|
-
/* harmony import */ var
|
|
154526
|
-
/* harmony import */ var
|
|
154527
|
-
/* harmony import */ var
|
|
154528
|
-
/* harmony import */ var
|
|
154529
|
-
/* harmony import */ var
|
|
154530
|
-
/* harmony import */ var
|
|
154531
|
-
/* harmony import */ var
|
|
154532
|
-
/* harmony import */ var
|
|
154533
|
-
/* harmony import */ var
|
|
154534
|
-
/* harmony import */ var
|
|
154528
|
+
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(21902);
|
|
154529
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(40233);
|
|
154530
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(32356);
|
|
154531
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(44114);
|
|
154532
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
154533
|
+
/* harmony import */ var core_js_modules_es_array_unshift_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(13609);
|
|
154534
|
+
/* harmony import */ var core_js_modules_es_array_unshift_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_unshift_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
154535
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(27495);
|
|
154536
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
154537
|
+
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(25440);
|
|
154538
|
+
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
154539
|
+
/* harmony import */ var core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(98992);
|
|
154540
|
+
/* harmony import */ var core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
154541
|
+
/* harmony import */ var core_js_modules_esnext_iterator_filter_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(54520);
|
|
154542
|
+
/* harmony import */ var core_js_modules_esnext_iterator_filter_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_filter_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
154543
|
+
/* harmony import */ var core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(3949);
|
|
154544
|
+
/* harmony import */ var core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
154545
|
+
/* harmony import */ var core_js_modules_esnext_iterator_map_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(81454);
|
|
154546
|
+
/* harmony import */ var core_js_modules_esnext_iterator_map_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_map_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
154547
|
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(62953);
|
|
154548
|
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
154549
|
+
/* harmony import */ var _yuki_createjs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(56419);
|
|
154550
|
+
/* harmony import */ var _yuki_createjs__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_yuki_createjs__WEBPACK_IMPORTED_MODULE_11__);
|
|
154551
|
+
/* harmony import */ var _types_EditorType__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(27195);
|
|
154552
|
+
/* harmony import */ var _DrawCombineNode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(10431);
|
|
154553
|
+
|
|
154535
154554
|
|
|
154536
154555
|
|
|
154537
154556
|
|
|
@@ -154545,15 +154564,16 @@ class DrawTableFormular extends DrawSimpleNode {
|
|
|
154545
154564
|
|
|
154546
154565
|
|
|
154547
154566
|
|
|
154548
|
-
|
|
154567
|
+
|
|
154568
|
+
class DrawTableFormularChart extends _DrawCombineNode__WEBPACK_IMPORTED_MODULE_13__/* .DrawCombineNode */ .A {
|
|
154549
154569
|
constructor(hoEditfactoryId, rootPath, node) {
|
|
154550
154570
|
super(hoEditfactoryId, rootPath, node, 0);
|
|
154551
|
-
(0,
|
|
154552
|
-
(0,
|
|
154553
|
-
(0,
|
|
154571
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(this, "dNode", void 0);
|
|
154572
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(this, "hoEditfactoryId", void 0);
|
|
154573
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .A)(this, "formularProperty", null);
|
|
154554
154574
|
this.dNode = node;
|
|
154555
154575
|
this.hoEditfactoryId = hoEditfactoryId;
|
|
154556
|
-
if (node.formularType ==
|
|
154576
|
+
if (node.formularType == _types_EditorType__WEBPACK_IMPORTED_MODULE_12__/* .FormularType */ .Dd.ftCurveChart) {
|
|
154557
154577
|
var _node$formularPropert;
|
|
154558
154578
|
this.dWidth = Number((_node$formularPropert = node.formularProperty) === null || _node$formularPropert === void 0 ? void 0 : _node$formularPropert.width) || 100;
|
|
154559
154579
|
// this.dHeight = Number(node.formularProperty?.height) || 100;
|
|
@@ -154574,10 +154594,26 @@ class DrawTableFormularChart extends _DrawCombineNode__WEBPACK_IMPORTED_MODULE_1
|
|
|
154574
154594
|
const cell = table.rows[r][c];
|
|
154575
154595
|
if (cell) {
|
|
154576
154596
|
notAllowEdit = cell.cellProperty.notAllowEdit || false;
|
|
154577
|
-
|
|
154597
|
+
let text = cell.getCellText();
|
|
154578
154598
|
if (notAllowEdit) {
|
|
154579
154599
|
list.push(text);
|
|
154580
154600
|
} else {
|
|
154601
|
+
if (this.formularProperty && text) {
|
|
154602
|
+
if (text > this.formularProperty.max) {
|
|
154603
|
+
var _cell$drawCell$drawPa;
|
|
154604
|
+
text = '';
|
|
154605
|
+
(_cell$drawCell$drawPa = cell.drawCell.drawPageCells[0]) === null || _cell$drawCell$drawPa === void 0 || _cell$drawCell$drawPa.paintBackColor(true);
|
|
154606
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .A.error(`曲线图设置的最大值为${this.formularProperty.max}`);
|
|
154607
|
+
} else if (text < this.formularProperty.min) {
|
|
154608
|
+
var _cell$drawCell$drawPa2;
|
|
154609
|
+
text = '';
|
|
154610
|
+
(_cell$drawCell$drawPa2 = cell.drawCell.drawPageCells[0]) === null || _cell$drawCell$drawPa2 === void 0 || _cell$drawCell$drawPa2.paintBackColor(true);
|
|
154611
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .A.error(`曲线图设置的最小值为${this.formularProperty.min}`);
|
|
154612
|
+
} else {
|
|
154613
|
+
var _cell$drawCell$drawPa3;
|
|
154614
|
+
(_cell$drawCell$drawPa3 = cell.drawCell.drawPageCells[0]) === null || _cell$drawCell$drawPa3 === void 0 || _cell$drawCell$drawPa3.paintBackColor(false);
|
|
154615
|
+
}
|
|
154616
|
+
}
|
|
154581
154617
|
list.push(text.replace(/\+|-/g, ''));
|
|
154582
154618
|
}
|
|
154583
154619
|
}
|
|
@@ -154602,6 +154638,7 @@ class DrawTableFormularChart extends _DrawCombineNode__WEBPACK_IMPORTED_MODULE_1
|
|
|
154602
154638
|
this.dWidth = currentCell.drawCell.dWidth - 30;
|
|
154603
154639
|
const xInfo = this.getCell(currentCell.table, xArr);
|
|
154604
154640
|
const yInfo = this.getCell(currentCell.table, yArr);
|
|
154641
|
+
// currentCell.table.update();
|
|
154605
154642
|
let xAxis = [];
|
|
154606
154643
|
let yAxis = [];
|
|
154607
154644
|
let valueList = [];
|
|
@@ -156466,7 +156503,7 @@ class EditorController {
|
|
|
156466
156503
|
if (!e || !e.clipboardData) {
|
|
156467
156504
|
return;
|
|
156468
156505
|
}
|
|
156469
|
-
const result = hoeditorfactory.editController.canIsEdit(hoeditorfactory);
|
|
156506
|
+
const result = hoeditorfactory.editController.canIsEdit(hoeditorfactory, 'paste');
|
|
156470
156507
|
if (result) {
|
|
156471
156508
|
hoeditorfactory.editController.editKeyPaste(e.clipboardData);
|
|
156472
156509
|
}
|
|
@@ -167559,7 +167596,7 @@ var map = {
|
|
|
167559
167596
|
"./printstyle/PrintLineStyle.vue": 27705,
|
|
167560
167597
|
"./qrCode/QrCode.vue": 13633,
|
|
167561
167598
|
"./radioCheckBox/RadioCheckbox.vue": 97008,
|
|
167562
|
-
"./selectDialog/SelectDialog.vue":
|
|
167599
|
+
"./selectDialog/SelectDialog.vue": 68738,
|
|
167563
167600
|
"./sign/Sign.vue": 69914,
|
|
167564
167601
|
"./slider/Slider.vue": 46839,
|
|
167565
167602
|
"./specialChars/HoSpecialChars.vue": 33336,
|
|
@@ -167569,7 +167606,7 @@ var map = {
|
|
|
167569
167606
|
"./table/TableColProperty.vue": 81078,
|
|
167570
167607
|
"./table/TableForm.vue": 35121,
|
|
167571
167608
|
"./table/TableFormTree.vue": 75295,
|
|
167572
|
-
"./table/TableFormula.vue":
|
|
167609
|
+
"./table/TableFormula.vue": 95044,
|
|
167573
167610
|
"./table/TableProperty.vue": 65356,
|
|
167574
167611
|
"./table/TableRowProperty.vue": 51653,
|
|
167575
167612
|
"./textDialog/TextBorderDialog.vue": 80713,
|
|
@@ -223057,14 +223094,14 @@ var entry_lib_TextNode = __webpack_require__(32083);
|
|
|
223057
223094
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
223058
223095
|
var entry_lib_ParagraphNode = __webpack_require__(40504);
|
|
223059
223096
|
;// ./src/components/version.ts
|
|
223060
|
-
/* harmony default export */ var entry_lib_version = ('3.1.
|
|
223097
|
+
/* harmony default export */ var entry_lib_version = ('3.1.209');
|
|
223061
223098
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
223062
223099
|
var entry_lib_PoperTipText = __webpack_require__(89316);
|
|
223063
223100
|
;// ./src/components/controls/poperTipText/index.ts
|
|
223064
223101
|
|
|
223065
223102
|
/* harmony default export */ var entry_lib_poperTipText = (entry_lib_PoperTipText["default"]);
|
|
223066
|
-
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ImageNode.ts
|
|
223067
|
-
var entry_lib_ImageNode = __webpack_require__(
|
|
223103
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ImageNode.ts + 1 modules
|
|
223104
|
+
var entry_lib_ImageNode = __webpack_require__(55133);
|
|
223068
223105
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TableNode.ts
|
|
223069
223106
|
var entry_lib_TableNode = __webpack_require__(30486);
|
|
223070
223107
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TextBorderNode.ts + 1 modules
|
|
@@ -224933,14 +224970,6 @@ class entry_lib_DrawPageTree {
|
|
|
224933
224970
|
let headerIndex = hoEditorFactory.subDocManger.getHeaderIndexByRoots(headerNodes);
|
|
224934
224971
|
let footerIndex = hoEditorFactory.subDocManger.getFooterIndexByRoots(footerNodes);
|
|
224935
224972
|
;
|
|
224936
|
-
// if (singlePage) {
|
|
224937
|
-
// if (this._drawHeaders.length > index && this._drawHeaders[headerIndex]) {
|
|
224938
|
-
// headerIndex = index
|
|
224939
|
-
// }
|
|
224940
|
-
// if (this._drawFooters.length > index && this._drawFooters[footerIndex]) {
|
|
224941
|
-
// footerIndex = index
|
|
224942
|
-
// }
|
|
224943
|
-
// }
|
|
224944
224973
|
const dHeader = this._drawHeaders[headerIndex];
|
|
224945
224974
|
const headerActualHeight = dHeader ? dHeader.actualHeight + hoEditorFactory.pageProperty.headerYPixes : 0;
|
|
224946
224975
|
const dFooter = this._drawFooters[footerIndex];
|
|
@@ -224951,38 +224980,12 @@ class entry_lib_DrawPageTree {
|
|
|
224951
224980
|
}
|
|
224952
224981
|
const dhheight = Math.max(hoEditorFactory.pageProperty.topMarginPixes, headerActualHeight);
|
|
224953
224982
|
const dfheight = Math.max(hoEditorFactory.pageProperty.bottomMarginPixes, footerActualHeight);
|
|
224954
|
-
// console.log(dhheight);
|
|
224955
|
-
// if (path.startsWith('header') || path.startsWith('footer')) {
|
|
224956
224983
|
//根据页眉,页脚高度重新设置正文位置和高度
|
|
224957
224984
|
dMainDoc.x = hoEditorFactory.pageProperty.leftMarginPixes;
|
|
224958
224985
|
dMainDoc.y = dhheight;
|
|
224959
224986
|
dMainDoc.maxHeight = hoEditorFactory.pageProperty.heightPixes - dhheight - dfheight;
|
|
224960
224987
|
dMainDoc.dHeight = hoEditorFactory.pageProperty.heightPixes - dhheight - dfheight;
|
|
224961
224988
|
//TODO:正文重新绘制,还可能创建新的页面,等其他操作 this._domLevel.drawMainDoc.paintArea();
|
|
224962
|
-
// }
|
|
224963
|
-
// if (path.startsWith('footer')) {
|
|
224964
|
-
// this._drawFooter.dTop =
|
|
224965
|
-
// hoEditorFactory.pageProperty.heightPixes - dfheight;
|
|
224966
|
-
// this._drawFooter.y = this._drawFooter.dTop;
|
|
224967
|
-
// this._drawHeader.paintMask(
|
|
224968
|
-
// Math.max(
|
|
224969
|
-
// Math.min(
|
|
224970
|
-
// this._drawHeader.docHeight,
|
|
224971
|
-
// this._drawHeader.maxHeight
|
|
224972
|
-
// ),
|
|
224973
|
-
// this._drawHeader.dHeight
|
|
224974
|
-
// )
|
|
224975
|
-
// );
|
|
224976
|
-
// this._drawFooter.paintMask(
|
|
224977
|
-
// Math.max(
|
|
224978
|
-
// Math.min(
|
|
224979
|
-
// this._drawFooter.docHeight,
|
|
224980
|
-
// this._drawFooter.maxHeight
|
|
224981
|
-
// ),
|
|
224982
|
-
// this._drawFooter.dHeight
|
|
224983
|
-
// )
|
|
224984
|
-
// );
|
|
224985
|
-
// }
|
|
224986
224989
|
}
|
|
224987
224990
|
getMainRootArea(dobj) {
|
|
224988
224991
|
let pNode = dobj;
|
|
@@ -225007,7 +225010,9 @@ class entry_lib_DrawPageTree {
|
|
|
225007
225010
|
} else {
|
|
225008
225011
|
const arr = path.split("/");
|
|
225009
225012
|
let index = 0;
|
|
225010
|
-
if (arr.length > 1 && !isNaN(parseInt(arr[1])))
|
|
225013
|
+
if (arr.length > 1 && !isNaN(parseInt(arr[1]))) {
|
|
225014
|
+
index = parseInt(arr[1]);
|
|
225015
|
+
}
|
|
225011
225016
|
if (path.startsWith("header")) {
|
|
225012
225017
|
return this._drawHeaders[index];
|
|
225013
225018
|
} else if (path.startsWith("footer")) {
|
|
@@ -225112,34 +225117,22 @@ class entry_lib_DrawPageTree {
|
|
|
225112
225117
|
updatePageWidthHeight() {
|
|
225113
225118
|
const hoEditorFactory = entry_lib_HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
|
|
225114
225119
|
const widthPixes = hoEditorFactory.pageProperty.widthPixes;
|
|
225115
|
-
// if (hoEditorFactory.pageProperty.printDirection === PrintDirection.vertical)
|
|
225116
|
-
// widthPixes = hoEditorFactory.pageProperty.heightPixes;
|
|
225117
225120
|
const docWidth = widthPixes - hoEditorFactory.pageProperty.leftMarginPixes - hoEditorFactory.pageProperty.rightMarginPixes;
|
|
225118
225121
|
for (let i = 0; i < this._drawHeaders.length; i++) {
|
|
225119
225122
|
const area = this._drawHeaders[i];
|
|
225120
|
-
// area.dWidth = widthPixes;
|
|
225121
|
-
// area.maxWidth = widthPixes;
|
|
225122
225123
|
if (area) area.docWidth = docWidth;
|
|
225123
225124
|
}
|
|
225124
225125
|
for (let i = 0; i < this.drawFooters.length; i++) {
|
|
225125
225126
|
const area = this.drawFooters[i];
|
|
225126
|
-
// area.dWidth = widthPixes;
|
|
225127
|
-
//area.maxWidth = widthPixes;
|
|
225128
225127
|
if (area) area.docWidth = docWidth;
|
|
225129
225128
|
}
|
|
225130
225129
|
for (let i = 0; i < hoEditorFactory.drawTree.drawPages.length; i++) {
|
|
225131
225130
|
const dPage = hoEditorFactory.drawTree.drawPages[i];
|
|
225132
|
-
// dPage.storeDrawFooter.dWidth = widthPixes;
|
|
225133
|
-
// dPage.storeDrawFooter.maxWidth = widthPixes;
|
|
225134
225131
|
dPage.storeDrawFooter.docWidth = docWidth;
|
|
225135
|
-
// dPage.storeDrawHeader.dWidth = widthPixes;
|
|
225136
|
-
// dPage.storeDrawHeader.maxWidth = widthPixes;
|
|
225137
225132
|
dPage.storeDrawHeader.docWidth = docWidth;
|
|
225138
225133
|
}
|
|
225139
225134
|
for (let i = 0; i < this._drawMainDocs.length; i++) {
|
|
225140
225135
|
const area = this._drawMainDocs[i];
|
|
225141
|
-
// area.dWidth = widthPixes;
|
|
225142
|
-
// area.maxWidth = widthPixes;
|
|
225143
225136
|
if (area) area.docWidth = docWidth;
|
|
225144
225137
|
}
|
|
225145
225138
|
}
|
|
@@ -241701,10 +241694,32 @@ class entry_lib_EditController {
|
|
|
241701
241694
|
}
|
|
241702
241695
|
hoEditorFactory.docController.parseNodeData(nodes);
|
|
241703
241696
|
}
|
|
241697
|
+
isEdit(hoEditorFactory, node, curDomRange) {
|
|
241698
|
+
var _node$parentNode, _node$parentNode2;
|
|
241699
|
+
let result = true;
|
|
241700
|
+
if ((node === null || node === void 0 ? void 0 : node.parentNode) == null) {
|
|
241701
|
+
result = false;
|
|
241702
|
+
} else if (node && node.nodeType == 0 && !((node === null || node === void 0 ? void 0 : node.parentNode) instanceof entry_lib_TextInputFieldNode/* TextInputFieldNode */.IM)) {
|
|
241703
|
+
result = false;
|
|
241704
|
+
} else if (node instanceof entry_lib_MarkNode/* MarkNode */.y && node.MarkNodeType == 2 && (((_node$parentNode = node.parentNode) === null || _node$parentNode === void 0 ? void 0 : _node$parentNode.parentNode) == null || ((_node$parentNode2 = node.parentNode) === null || _node$parentNode2 === void 0 ? void 0 : _node$parentNode2.parentNode) instanceof entry_lib_CellNode/* CellNode */.H)) {
|
|
241705
|
+
result = false;
|
|
241706
|
+
}
|
|
241707
|
+
if (!hoEditorFactory.allowEditCellInForm && node) {
|
|
241708
|
+
const parentNode = hoEditorFactory.vueController.getParentCellNode(node);
|
|
241709
|
+
if (node instanceof entry_lib_DateTimeNode/* DateTimeNode */.Y || node instanceof entry_lib_SignNode/* SignNode */.u || node instanceof entry_lib_DownListNode/* DownListNode */.dS || node instanceof entry_lib_FigureNode) {
|
|
241710
|
+
if (curDomRange.startPath == curDomRange.endPath) {
|
|
241711
|
+
result = false;
|
|
241712
|
+
}
|
|
241713
|
+
} else if (parentNode instanceof entry_lib_CellNode/* CellNode */.H && !(node instanceof entry_lib_SignNode/* SignNode */.u || node.parentNode instanceof entry_lib_TextInputFieldNode/* TextInputFieldNode */.IM)) {
|
|
241714
|
+
result = false;
|
|
241715
|
+
}
|
|
241716
|
+
}
|
|
241717
|
+
return result;
|
|
241718
|
+
}
|
|
241704
241719
|
/**
|
|
241705
241720
|
* @returns 表单模式下只可修改元素内容,或者插入签名,判断当前操作是否可以执行 true可以插入 false不可插入
|
|
241706
241721
|
*/
|
|
241707
|
-
canIsEdit(hoEditorFactory) {
|
|
241722
|
+
canIsEdit(hoEditorFactory, source) {
|
|
241708
241723
|
let result = true;
|
|
241709
241724
|
if (hoEditorFactory.drawTree.paintStatus === entry_lib_DrawTree/* PaintState */.ak.psDesign) {
|
|
241710
241725
|
return result;
|
|
@@ -241736,33 +241751,14 @@ class entry_lib_EditController {
|
|
|
241736
241751
|
return false;
|
|
241737
241752
|
}
|
|
241738
241753
|
}
|
|
241739
|
-
if (hoEditorFactory.isUseForm
|
|
241740
|
-
|
|
241741
|
-
|
|
241742
|
-
|
|
241743
|
-
|
|
241744
|
-
|
|
241745
|
-
|
|
241746
|
-
|
|
241747
|
-
result = false;
|
|
241748
|
-
}
|
|
241749
|
-
if (enode instanceof entry_lib_MarkNode/* MarkNode */.y && enode.MarkNodeType == 2 && (((_enode$parentNode = enode.parentNode) === null || _enode$parentNode === void 0 ? void 0 : _enode$parentNode.parentNode) == null || ((_enode$parentNode2 = enode.parentNode) === null || _enode$parentNode2 === void 0 ? void 0 : _enode$parentNode2.parentNode) instanceof entry_lib_CellNode/* CellNode */.H)) {
|
|
241750
|
-
result = false;
|
|
241751
|
-
}
|
|
241752
|
-
// if(curDomRange.startPath == curDomRange.endPath) {
|
|
241753
|
-
// if (enode instanceof TextNode && !(enode?.parentNode instanceof TextInputFieldNode)) {
|
|
241754
|
-
// result = false;
|
|
241755
|
-
// }
|
|
241756
|
-
// }
|
|
241757
|
-
if (!hoEditorFactory.allowEditCellInForm) {
|
|
241758
|
-
const parentNode = hoEditorFactory.vueController.getParentCellNode(enode);
|
|
241759
|
-
if (enode instanceof entry_lib_DateTimeNode/* DateTimeNode */.Y || enode instanceof entry_lib_DownListNode/* DownListNode */.dS || enode instanceof entry_lib_FigureNode) {
|
|
241760
|
-
if (curDomRange.startPath == curDomRange.endPath) {
|
|
241761
|
-
result = false;
|
|
241762
|
-
}
|
|
241763
|
-
} else if (parentNode instanceof entry_lib_CellNode/* CellNode */.H && !(enode instanceof entry_lib_SignNode/* SignNode */.u || enode.parentNode instanceof entry_lib_TextInputFieldNode/* TextInputFieldNode */.IM)) {
|
|
241764
|
-
result = false;
|
|
241765
|
-
}
|
|
241754
|
+
if (hoEditorFactory.isUseForm) {
|
|
241755
|
+
// 无选区 只判断结束节点 有选区需要判断首尾节点
|
|
241756
|
+
if (curDomRange.startPath == curDomRange.endPath) {
|
|
241757
|
+
result = this.isEdit(hoEditorFactory, enode, curDomRange);
|
|
241758
|
+
} else {
|
|
241759
|
+
let sResult = this.isEdit(hoEditorFactory, snode, curDomRange);
|
|
241760
|
+
let eResult = this.isEdit(hoEditorFactory, enode, curDomRange);
|
|
241761
|
+
result = sResult && eResult;
|
|
241766
241762
|
}
|
|
241767
241763
|
}
|
|
241768
241764
|
if (result) {
|
|
@@ -250994,7 +250990,7 @@ var entry_lib_DocController = __webpack_require__(5011);
|
|
|
250994
250990
|
|
|
250995
250991
|
|
|
250996
250992
|
class entry_lib_HOEditorFactory {
|
|
250997
|
-
//
|
|
250993
|
+
// 修复表格图片卡死问题
|
|
250998
250994
|
/**
|
|
250999
250995
|
* Getter hoLocalStorage
|
|
251000
250996
|
* @return {HoLocalStorage}
|
|
@@ -251241,6 +251237,8 @@ class entry_lib_HOEditorFactory {
|
|
|
251241
251237
|
(0,entry_lib_esm_defineProperty/* default */.A)(this, "fixTableInTextInput", false);
|
|
251242
251238
|
// 修复新增页在文本域中插入的表格问题
|
|
251243
251239
|
(0,entry_lib_esm_defineProperty/* default */.A)(this, "emitClickEvent", false);
|
|
251240
|
+
// 点击元素是否触发click事件
|
|
251241
|
+
(0,entry_lib_esm_defineProperty/* default */.A)(this, "fixTableImage", false);
|
|
251244
251242
|
this._hoEditorFactoryId = id;
|
|
251245
251243
|
}
|
|
251246
251244
|
get defaultLineHeight() {
|