hoeditor-web 3.1.154 → 3.1.156
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 +18038 -1
- package/lib/hoeditor.umd.js +790 -514
- package/lib/hoeditor.umd.min.js +23 -23
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -3363,7 +3363,7 @@ function _extends(){return _extends=Object.assign?Object.assign.bind():function(
|
|
|
3363
3363
|
|
|
3364
3364
|
/***/ }),
|
|
3365
3365
|
|
|
3366
|
-
/***/
|
|
3366
|
+
/***/ 10597:
|
|
3367
3367
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3368
3368
|
|
|
3369
3369
|
"use strict";
|
|
@@ -3375,7 +3375,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
3375
3375
|
"default": function() { return /* binding */ ControlModal; }
|
|
3376
3376
|
});
|
|
3377
3377
|
|
|
3378
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/ControlModal.vue?vue&type=template&id=
|
|
3378
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/ControlModal.vue?vue&type=template&id=bc7baef6&
|
|
3379
3379
|
var render = function render() {
|
|
3380
3380
|
var _vm = this,
|
|
3381
3381
|
_c = _vm._self._c;
|
|
@@ -3494,6 +3494,7 @@ var HOEditorFactorys = __webpack_require__(74089);
|
|
|
3494
3494
|
sign: 'sign/Sign',
|
|
3495
3495
|
text: 'textDialog/TextDialog',
|
|
3496
3496
|
'text-to-label': 'textDialog/TextToLabelDialog',
|
|
3497
|
+
'text-border': 'textDialog/TextBorderDialog',
|
|
3497
3498
|
date: 'dateDialog/DateDialog',
|
|
3498
3499
|
select: 'selectDialog/SelectDialog',
|
|
3499
3500
|
RadioBox: 'radioCheckBox/RadioCheckbox',
|
|
@@ -9652,7 +9653,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
9652
9653
|
|
|
9653
9654
|
/***/ }),
|
|
9654
9655
|
|
|
9655
|
-
/***/
|
|
9656
|
+
/***/ 40769:
|
|
9656
9657
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
9657
9658
|
|
|
9658
9659
|
"use strict";
|
|
@@ -9672,7 +9673,7 @@ var es_string_includes = __webpack_require__(32023);
|
|
|
9672
9673
|
var es_regexp_exec = __webpack_require__(74916);
|
|
9673
9674
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
9674
9675
|
var es_string_replace = __webpack_require__(15306);
|
|
9675
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
9676
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=2229ef1c&
|
|
9676
9677
|
|
|
9677
9678
|
|
|
9678
9679
|
|
|
@@ -10138,7 +10139,7 @@ var render = function render() {
|
|
|
10138
10139
|
};
|
|
10139
10140
|
var staticRenderFns = [];
|
|
10140
10141
|
|
|
10141
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
10142
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=2229ef1c&
|
|
10142
10143
|
|
|
10143
10144
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
10144
10145
|
var toConsumableArray = __webpack_require__(61748);
|
|
@@ -12622,6 +12623,7 @@ var columns = [{
|
|
|
12622
12623
|
notReplaceElement: node.notReplaceElement,
|
|
12623
12624
|
readType: node.readType,
|
|
12624
12625
|
labelText: node.labelText,
|
|
12626
|
+
canWrapLine: node.canWrapLine,
|
|
12625
12627
|
customProperty: node.customProperty
|
|
12626
12628
|
};
|
|
12627
12629
|
hoEditorFactory.vueController.updateDateTime(JSON.stringify(params));
|
|
@@ -12660,6 +12662,7 @@ var columns = [{
|
|
|
12660
12662
|
notReplaceElement: node.notReplaceElement,
|
|
12661
12663
|
readType: node.readType,
|
|
12662
12664
|
labelText: node.labelText,
|
|
12665
|
+
canWrapLine: node.canWrapLine,
|
|
12663
12666
|
customProperty: node.customProperty
|
|
12664
12667
|
};
|
|
12665
12668
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorId);
|
|
@@ -13037,10 +13040,10 @@ var columns = [{
|
|
|
13037
13040
|
});
|
|
13038
13041
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
|
|
13039
13042
|
/* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
|
|
13040
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
13043
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=2229ef1c&prod&lang=less&
|
|
13041
13044
|
// extracted by mini-css-extract-plugin
|
|
13042
13045
|
|
|
13043
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
13046
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=2229ef1c&prod&lang=less&
|
|
13044
13047
|
|
|
13045
13048
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
13046
13049
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -22929,6 +22932,207 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
22929
22932
|
|
|
22930
22933
|
/***/ }),
|
|
22931
22934
|
|
|
22935
|
+
/***/ 68035:
|
|
22936
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
22937
|
+
|
|
22938
|
+
"use strict";
|
|
22939
|
+
// ESM COMPAT FLAG
|
|
22940
|
+
__webpack_require__.r(__webpack_exports__);
|
|
22941
|
+
|
|
22942
|
+
// EXPORTS
|
|
22943
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
22944
|
+
"default": function() { return /* binding */ TextBorderDialog; }
|
|
22945
|
+
});
|
|
22946
|
+
|
|
22947
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextBorderDialog.vue?vue&type=template&id=59e28661&
|
|
22948
|
+
var render = function render() {
|
|
22949
|
+
var _vm = this,
|
|
22950
|
+
_c = _vm._self._c;
|
|
22951
|
+
return _c('div', {
|
|
22952
|
+
class: _vm.animationClassNames
|
|
22953
|
+
}, [_c('header', {
|
|
22954
|
+
staticClass: "modal-title"
|
|
22955
|
+
}, [_c('span', [_vm._v("文本框元素")]), _c('a-icon', {
|
|
22956
|
+
staticClass: "modal-title-close",
|
|
22957
|
+
attrs: {
|
|
22958
|
+
"type": "close"
|
|
22959
|
+
},
|
|
22960
|
+
on: {
|
|
22961
|
+
"click": _vm.handleClose
|
|
22962
|
+
}
|
|
22963
|
+
})], 1), _c('section', {
|
|
22964
|
+
staticClass: "modal-content"
|
|
22965
|
+
}, [_c('ul', {
|
|
22966
|
+
staticClass: "control-list"
|
|
22967
|
+
}, [_c('li', {
|
|
22968
|
+
staticClass: "control-item"
|
|
22969
|
+
}, [_c('span', {
|
|
22970
|
+
staticClass: "label"
|
|
22971
|
+
}, [_vm._v("文本")]), _c('a-input', {
|
|
22972
|
+
ref: "textBorderInput",
|
|
22973
|
+
attrs: {
|
|
22974
|
+
"size": "small",
|
|
22975
|
+
"placeholder": "内部标识符"
|
|
22976
|
+
},
|
|
22977
|
+
model: {
|
|
22978
|
+
value: _vm.text,
|
|
22979
|
+
callback: function callback($$v) {
|
|
22980
|
+
_vm.text = $$v;
|
|
22981
|
+
},
|
|
22982
|
+
expression: "text"
|
|
22983
|
+
}
|
|
22984
|
+
})], 1)])]), _c('footer', {
|
|
22985
|
+
staticClass: "ho-modal-footer"
|
|
22986
|
+
}, [_c('a-button', {
|
|
22987
|
+
attrs: {
|
|
22988
|
+
"type": "primary"
|
|
22989
|
+
},
|
|
22990
|
+
on: {
|
|
22991
|
+
"click": _vm.sure
|
|
22992
|
+
}
|
|
22993
|
+
}, [_vm._v("确定")]), _c('a-button', {
|
|
22994
|
+
staticStyle: {
|
|
22995
|
+
"margin-left": "30px"
|
|
22996
|
+
},
|
|
22997
|
+
on: {
|
|
22998
|
+
"click": _vm.handleClose
|
|
22999
|
+
}
|
|
23000
|
+
}, [_vm._v("取消")])], 1)]);
|
|
23001
|
+
};
|
|
23002
|
+
var staticRenderFns = [];
|
|
23003
|
+
|
|
23004
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
23005
|
+
var es_object_to_string = __webpack_require__(41539);
|
|
23006
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
|
|
23007
|
+
var web_dom_collections_for_each = __webpack_require__(54747);
|
|
23008
|
+
// EXTERNAL MODULE: ./src/HOEditorFactorys.ts
|
|
23009
|
+
var HOEditorFactorys = __webpack_require__(74089);
|
|
23010
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TextInputFieldNode.ts + 1 modules
|
|
23011
|
+
var TextInputFieldNode = __webpack_require__(65043);
|
|
23012
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/BaseCombineNode.ts
|
|
23013
|
+
var BaseCombineNode = __webpack_require__(4938);
|
|
23014
|
+
// EXTERNAL MODULE: ./src/editor/dom/DomRange.ts
|
|
23015
|
+
var DomRange = __webpack_require__(94639);
|
|
23016
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TextBorderNode.ts + 1 modules
|
|
23017
|
+
var TextBorderNode = __webpack_require__(11596);
|
|
23018
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextBorderDialog.vue?vue&type=script&lang=js&
|
|
23019
|
+
|
|
23020
|
+
|
|
23021
|
+
|
|
23022
|
+
|
|
23023
|
+
|
|
23024
|
+
|
|
23025
|
+
|
|
23026
|
+
/* harmony default export */ var TextBorderDialogvue_type_script_lang_js_ = ({
|
|
23027
|
+
name: 'TextBorderDialog',
|
|
23028
|
+
components: {},
|
|
23029
|
+
data: function data() {
|
|
23030
|
+
return {
|
|
23031
|
+
animationClassNames: 'control-modal-contents label-to-text-modal animation-in',
|
|
23032
|
+
text: ''
|
|
23033
|
+
};
|
|
23034
|
+
},
|
|
23035
|
+
props: {
|
|
23036
|
+
hoEditorFactoryId: {
|
|
23037
|
+
default: ''
|
|
23038
|
+
},
|
|
23039
|
+
controlStatus: {
|
|
23040
|
+
default: ''
|
|
23041
|
+
},
|
|
23042
|
+
vueController: {
|
|
23043
|
+
default: function _default() {}
|
|
23044
|
+
}
|
|
23045
|
+
},
|
|
23046
|
+
inject: ['hoEditorProvider'],
|
|
23047
|
+
mounted: function mounted() {
|
|
23048
|
+
var node = this.getTextBorderNode();
|
|
23049
|
+
if (node) {
|
|
23050
|
+
this.text = node.text;
|
|
23051
|
+
this.$refs.textBorderInput.focus();
|
|
23052
|
+
}
|
|
23053
|
+
},
|
|
23054
|
+
methods: {
|
|
23055
|
+
getTextBorderNode: function getTextBorderNode() {
|
|
23056
|
+
var node = this.hoEditorProvider.getUpdateNode();
|
|
23057
|
+
var hoEditor = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorProvider.activeDocId);
|
|
23058
|
+
var currentDomRange = hoEditor.vueController.getDomRange();
|
|
23059
|
+
if (!(currentDomRange !== null && currentDomRange !== void 0 && currentDomRange.isEmpty) && node instanceof TextBorderNode/* TextBorderNode */.D) {
|
|
23060
|
+
return node;
|
|
23061
|
+
}
|
|
23062
|
+
return null;
|
|
23063
|
+
},
|
|
23064
|
+
sure: function sure() {
|
|
23065
|
+
var _this$labelTextId;
|
|
23066
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
23067
|
+
var arr = (_this$labelTextId = this.labelTextId) === null || _this$labelTextId === void 0 ? void 0 : _this$labelTextId.split('___');
|
|
23068
|
+
var id = '';
|
|
23069
|
+
if (arr && arr.length === 3) {
|
|
23070
|
+
id = arr[1];
|
|
23071
|
+
}
|
|
23072
|
+
if (this.hoEditorProvider.controlStatus === 'update') {
|
|
23073
|
+
var node = this.getTextBorderNode();
|
|
23074
|
+
if (node) {
|
|
23075
|
+
node.setTextBorderText(this.text);
|
|
23076
|
+
}
|
|
23077
|
+
} else {
|
|
23078
|
+
hoEditorFactory.vueController.insertTextBorder(this.text);
|
|
23079
|
+
}
|
|
23080
|
+
this.handleClose();
|
|
23081
|
+
},
|
|
23082
|
+
textToLabel: function textToLabel() {
|
|
23083
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
23084
|
+
if (this.hoEditorProvider.controlStatus === 'update') {
|
|
23085
|
+
var label = this.getTextBorderNode();
|
|
23086
|
+
if (label.length > 0) {
|
|
23087
|
+
label.forEach(function (v) {
|
|
23088
|
+
hoEditorFactory.vueController.updateAssociatedElement(v, '');
|
|
23089
|
+
});
|
|
23090
|
+
}
|
|
23091
|
+
} else {
|
|
23092
|
+
hoEditorFactory.vueController.textToLabel();
|
|
23093
|
+
}
|
|
23094
|
+
this.handleClose();
|
|
23095
|
+
},
|
|
23096
|
+
handleClose: function handleClose() {
|
|
23097
|
+
this.animationClassNames = 'control-modal-contents label-to-text-modal animation-out';
|
|
23098
|
+
this.$emit('closed');
|
|
23099
|
+
this.endPath = '';
|
|
23100
|
+
}
|
|
23101
|
+
}
|
|
23102
|
+
});
|
|
23103
|
+
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextBorderDialog.vue?vue&type=script&lang=js&
|
|
23104
|
+
/* harmony default export */ var textDialog_TextBorderDialogvue_type_script_lang_js_ = (TextBorderDialogvue_type_script_lang_js_);
|
|
23105
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextBorderDialog.vue?vue&type=style&index=0&id=59e28661&prod&lang=less&
|
|
23106
|
+
// extracted by mini-css-extract-plugin
|
|
23107
|
+
|
|
23108
|
+
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextBorderDialog.vue?vue&type=style&index=0&id=59e28661&prod&lang=less&
|
|
23109
|
+
|
|
23110
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
23111
|
+
var componentNormalizer = __webpack_require__(70713);
|
|
23112
|
+
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextBorderDialog.vue
|
|
23113
|
+
|
|
23114
|
+
|
|
23115
|
+
|
|
23116
|
+
;
|
|
23117
|
+
|
|
23118
|
+
|
|
23119
|
+
/* normalize component */
|
|
23120
|
+
|
|
23121
|
+
var component = (0,componentNormalizer/* default */.Z)(
|
|
23122
|
+
textDialog_TextBorderDialogvue_type_script_lang_js_,
|
|
23123
|
+
render,
|
|
23124
|
+
staticRenderFns,
|
|
23125
|
+
false,
|
|
23126
|
+
null,
|
|
23127
|
+
null,
|
|
23128
|
+
null
|
|
23129
|
+
|
|
23130
|
+
)
|
|
23131
|
+
|
|
23132
|
+
/* harmony default export */ var TextBorderDialog = (component.exports);
|
|
23133
|
+
|
|
23134
|
+
/***/ }),
|
|
23135
|
+
|
|
22932
23136
|
/***/ 61911:
|
|
22933
23137
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
22934
23138
|
|
|
@@ -36036,11 +36240,11 @@ var Print = /*#__PURE__*/function () {
|
|
|
36036
36240
|
PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
|
|
36037
36241
|
PDF === null || PDF === void 0 ? void 0 : PDF.save(fileName + '.pdf');
|
|
36038
36242
|
hoEditorFactory.printStatus.drawPrintRecord.clear();
|
|
36039
|
-
_context4.next =
|
|
36243
|
+
_context4.next = 98;
|
|
36040
36244
|
break;
|
|
36041
36245
|
case 80:
|
|
36042
36246
|
if (!hoEditorFactory.isUseImagePrint) {
|
|
36043
|
-
_context4.next =
|
|
36247
|
+
_context4.next = 89;
|
|
36044
36248
|
break;
|
|
36045
36249
|
}
|
|
36046
36250
|
otherPageNumber = PDF.internal.getNumberOfPages() - pageNumber;
|
|
@@ -36056,30 +36260,33 @@ var Print = /*#__PURE__*/function () {
|
|
|
36056
36260
|
if (startPageNumOver) {
|
|
36057
36261
|
PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
|
|
36058
36262
|
}
|
|
36263
|
+
if (pageNumber == 0) {
|
|
36264
|
+
message/* default */.Z.error("\u75C5\u5386\u6B63\u6587\u65E0\u5185\u5BB9");
|
|
36265
|
+
}
|
|
36059
36266
|
name = hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : '电子病历文档';
|
|
36060
36267
|
PDF && this.openDataUriInWindow(PDF, name, hoEditorFactory.pageProperty.widthPixes, hoEditorFactory.printSilently, orientation, hoEditorFactory.pageProperty.pageSize);
|
|
36061
|
-
_context4.next =
|
|
36268
|
+
_context4.next = 98;
|
|
36062
36269
|
break;
|
|
36063
|
-
case
|
|
36270
|
+
case 89:
|
|
36064
36271
|
if (!svgBox) {
|
|
36065
|
-
_context4.next =
|
|
36272
|
+
_context4.next = 98;
|
|
36066
36273
|
break;
|
|
36067
36274
|
}
|
|
36068
36275
|
if (!(svgBox.childNodes.length === 0)) {
|
|
36069
|
-
_context4.next =
|
|
36276
|
+
_context4.next = 94;
|
|
36070
36277
|
break;
|
|
36071
36278
|
}
|
|
36072
36279
|
message/* default */.Z.info('无新增内容');
|
|
36073
36280
|
reslove && reslove('printend');
|
|
36074
36281
|
return _context4.abrupt("return");
|
|
36075
|
-
case
|
|
36282
|
+
case 94:
|
|
36076
36283
|
style = document.createElement("style");
|
|
36077
36284
|
_printStyle = (0,util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
|
|
36078
36285
|
style.innerText = _printStyle.innerHTML;
|
|
36079
36286
|
this.printHTMLPage(style, svgBox);
|
|
36080
|
-
case 97:
|
|
36081
|
-
reslove && reslove('printend');
|
|
36082
36287
|
case 98:
|
|
36288
|
+
reslove && reslove('printend');
|
|
36289
|
+
case 99:
|
|
36083
36290
|
case "end":
|
|
36084
36291
|
return _context4.stop();
|
|
36085
36292
|
}
|
|
@@ -36094,7 +36301,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
36094
36301
|
key: "createPDFBase64",
|
|
36095
36302
|
value: function () {
|
|
36096
36303
|
var _createPDFBase = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee4(hoEditorFactoryID, reslove, PDF) {
|
|
36097
|
-
var hoEditorFactory,
|
|
36304
|
+
var hoEditorFactory, svgBox, last, pageNumber, _iterator2, _step2, _cpage$drawDomLevel7, _cpage$drawDomLevel8, index, cpage, children, ctx;
|
|
36098
36305
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee4$(_context5) {
|
|
36099
36306
|
while (1) switch (_context5.prev = _context5.next) {
|
|
36100
36307
|
case 0:
|
|
@@ -36104,44 +36311,35 @@ var Print = /*#__PURE__*/function () {
|
|
|
36104
36311
|
if (hoEditorFactory.printStatus.printRange == PrintRange.prContinue) {
|
|
36105
36312
|
hoEditorFactory.printStatus.DrawPrintRange().preparePrint();
|
|
36106
36313
|
}
|
|
36107
|
-
orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? 'l' : 'p';
|
|
36108
36314
|
svgBox = document.createElement('div');
|
|
36109
36315
|
svgBox.className = 'ho-print-svg-box';
|
|
36110
36316
|
last = -1;
|
|
36111
36317
|
pageNumber = 0;
|
|
36112
36318
|
_iterator2 = (0,createForOfIteratorHelper/* default */.Z)(hoEditorFactory.printStatus.printProcess());
|
|
36113
|
-
_context5.prev =
|
|
36319
|
+
_context5.prev = 9;
|
|
36114
36320
|
_iterator2.s();
|
|
36115
|
-
case
|
|
36321
|
+
case 11:
|
|
36116
36322
|
if ((_step2 = _iterator2.n()).done) {
|
|
36117
|
-
_context5.next =
|
|
36323
|
+
_context5.next = 32;
|
|
36118
36324
|
break;
|
|
36119
36325
|
}
|
|
36120
36326
|
index = _step2.value;
|
|
36121
36327
|
if (!(index == -1)) {
|
|
36122
|
-
_context5.next =
|
|
36328
|
+
_context5.next = 16;
|
|
36123
36329
|
break;
|
|
36124
36330
|
}
|
|
36125
36331
|
message/* default */.Z.info('请进行翻页');
|
|
36126
|
-
return _context5.abrupt("continue",
|
|
36127
|
-
case
|
|
36332
|
+
return _context5.abrupt("continue", 30);
|
|
36333
|
+
case 16:
|
|
36128
36334
|
last = index;
|
|
36129
|
-
cpage = hoEditorFactory.drawTree.drawPages[index];
|
|
36130
|
-
// index === hoEditorFactory.drawTree.drawPages.length - 1 &&
|
|
36131
|
-
// cpage.drawMainDoc.children.length === 2 &&
|
|
36132
|
-
// !(cpage.drawMainDoc.children[0] instanceof DrawPageTable) &&
|
|
36133
|
-
// cpage.drawMainDoc.children[1] &&
|
|
36134
|
-
// (cpage.drawMainDoc.children[1] as any).drawItems.length === 0
|
|
36135
|
-
// ) {
|
|
36136
|
-
// break;
|
|
36137
|
-
// }
|
|
36335
|
+
cpage = hoEditorFactory.drawTree.drawPages[index];
|
|
36138
36336
|
children = cpage.drawMainDoc.children;
|
|
36139
36337
|
if (!(children.length == 2 && !(children[0] instanceof DrawPageTable/* DrawPageTable */.ox) && children[1] && children[1].drawItems.length == 0 || children.length == 1 && children[0] instanceof DrawLine/* DrawLine */.a && children[0].drawItems.length == 0)) {
|
|
36140
|
-
_context5.next =
|
|
36338
|
+
_context5.next = 21;
|
|
36141
36339
|
break;
|
|
36142
36340
|
}
|
|
36143
|
-
return _context5.abrupt("continue",
|
|
36144
|
-
case
|
|
36341
|
+
return _context5.abrupt("continue", 30);
|
|
36342
|
+
case 21:
|
|
36145
36343
|
if (cpage.drawDomLevel && !cpage.drawDomLevel.stage) {
|
|
36146
36344
|
cpage.drawDomLevel.bindStage();
|
|
36147
36345
|
cpage.needUpdateStage = true;
|
|
@@ -36157,31 +36355,31 @@ var Print = /*#__PURE__*/function () {
|
|
|
36157
36355
|
ctx && ((_cpage$drawDomLevel7 = cpage.drawDomLevel) === null || _cpage$drawDomLevel7 === void 0 || (_cpage$drawDomLevel7 = _cpage$drawDomLevel7.stage) === null || _cpage$drawDomLevel7 === void 0 ? void 0 : _cpage$drawDomLevel7.draw(ctx));
|
|
36158
36356
|
ctx = null;
|
|
36159
36357
|
index > 0 && ((_cpage$drawDomLevel8 = cpage.drawDomLevel) === null || _cpage$drawDomLevel8 === void 0 ? void 0 : _cpage$drawDomLevel8.clearStage());
|
|
36160
|
-
case
|
|
36161
|
-
_context5.next =
|
|
36358
|
+
case 30:
|
|
36359
|
+
_context5.next = 11;
|
|
36162
36360
|
break;
|
|
36163
|
-
case
|
|
36164
|
-
_context5.next =
|
|
36361
|
+
case 32:
|
|
36362
|
+
_context5.next = 37;
|
|
36165
36363
|
break;
|
|
36166
|
-
case
|
|
36167
|
-
_context5.prev =
|
|
36168
|
-
_context5.t0 = _context5["catch"](
|
|
36364
|
+
case 34:
|
|
36365
|
+
_context5.prev = 34;
|
|
36366
|
+
_context5.t0 = _context5["catch"](9);
|
|
36169
36367
|
_iterator2.e(_context5.t0);
|
|
36170
|
-
case
|
|
36171
|
-
_context5.prev =
|
|
36368
|
+
case 37:
|
|
36369
|
+
_context5.prev = 37;
|
|
36172
36370
|
_iterator2.f();
|
|
36173
|
-
return _context5.finish(
|
|
36174
|
-
case
|
|
36371
|
+
return _context5.finish(37);
|
|
36372
|
+
case 40:
|
|
36175
36373
|
if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) {
|
|
36176
36374
|
hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
|
|
36177
36375
|
}
|
|
36178
36376
|
hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
|
|
36179
36377
|
reslove && reslove(pageNumber);
|
|
36180
|
-
case
|
|
36378
|
+
case 43:
|
|
36181
36379
|
case "end":
|
|
36182
36380
|
return _context5.stop();
|
|
36183
36381
|
}
|
|
36184
|
-
}, _callee4, null, [[
|
|
36382
|
+
}, _callee4, null, [[9, 34, 37, 40]]);
|
|
36185
36383
|
}));
|
|
36186
36384
|
function createPDFBase64(_x12, _x13, _x14) {
|
|
36187
36385
|
return _createPDFBase.apply(this, arguments);
|
|
@@ -37311,7 +37509,7 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
37311
37509
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80543);
|
|
37312
37510
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(81448);
|
|
37313
37511
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(94310);
|
|
37314
|
-
/* harmony import */ var
|
|
37512
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__ = __webpack_require__(40735);
|
|
37315
37513
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(70280);
|
|
37316
37514
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(66298);
|
|
37317
37515
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(78255);
|
|
@@ -37429,6 +37627,8 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
37429
37627
|
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__ = __webpack_require__(51760);
|
|
37430
37628
|
/* harmony import */ var _plugins_util__WEBPACK_IMPORTED_MODULE_99__ = __webpack_require__(62783);
|
|
37431
37629
|
/* harmony import */ var _treeNode_PopQScoreNode__WEBPACK_IMPORTED_MODULE_100__ = __webpack_require__(12790);
|
|
37630
|
+
/* harmony import */ var _treeNode_TextBorderNode__WEBPACK_IMPORTED_MODULE_101__ = __webpack_require__(11596);
|
|
37631
|
+
|
|
37432
37632
|
|
|
37433
37633
|
|
|
37434
37634
|
|
|
@@ -37676,7 +37876,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37676
37876
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
37677
37877
|
var domRange = hoEditorFactory.docTree.curDomRange;
|
|
37678
37878
|
if (hoEditorFactory.notAllowEditInReview && hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psReview) {
|
|
37679
|
-
|
|
37879
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('质控医生站的病历只可进行批注不可编辑修改');
|
|
37680
37880
|
return;
|
|
37681
37881
|
}
|
|
37682
37882
|
// alert(text);
|
|
@@ -37713,7 +37913,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37713
37913
|
var isAllowEdit = colProperty.downListProperty.canModifyContent;
|
|
37714
37914
|
//const cellText = cellNode.getCellText();
|
|
37715
37915
|
if (!isAllowEdit) {
|
|
37716
|
-
|
|
37916
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('不允许用户直接编辑,请双击单元格进行选择.');
|
|
37717
37917
|
return;
|
|
37718
37918
|
}
|
|
37719
37919
|
}
|
|
@@ -37721,7 +37921,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37721
37921
|
var _isAllowEdit = cellProperty.downListProperty.canModifyContent;
|
|
37722
37922
|
//const cellText = cellNode.getCellText();
|
|
37723
37923
|
if (!_isAllowEdit) {
|
|
37724
|
-
|
|
37924
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('不允许用户直接编辑,请双击单元格进行选择.');
|
|
37725
37925
|
return;
|
|
37726
37926
|
}
|
|
37727
37927
|
}
|
|
@@ -38150,7 +38350,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38150
38350
|
domRange = domRange.normalize();
|
|
38151
38351
|
} else if ((hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psTrace) && !(domRange.npStart.node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N)) {
|
|
38152
38352
|
if (domRange.npStart.node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R && hoEditorFactory.docTree.styles[domRange.npStart.node.styleIndex].creatorIndex !== undefined && hoEditorFactory.docTree.styles[domRange.npStart.node.styleIndex].creatorIndex !== -1) {} else {
|
|
38153
|
-
|
|
38353
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('审阅模式下,只能选中文档内容进行删除');
|
|
38154
38354
|
return;
|
|
38155
38355
|
}
|
|
38156
38356
|
}
|
|
@@ -38375,7 +38575,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38375
38575
|
_context.next = 86;
|
|
38376
38576
|
break;
|
|
38377
38577
|
}
|
|
38378
|
-
|
|
38578
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('审阅模式下,只能对文本内容进行删除');
|
|
38379
38579
|
return _context.abrupt("return");
|
|
38380
38580
|
case 86:
|
|
38381
38581
|
if (!((hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psTrace) && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N)) {
|
|
@@ -38387,21 +38587,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38387
38587
|
_context.next = 91;
|
|
38388
38588
|
break;
|
|
38389
38589
|
}
|
|
38390
|
-
|
|
38590
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('不是本人签名,不允许删除!');
|
|
38391
38591
|
return _context.abrupt("return");
|
|
38392
38592
|
case 91:
|
|
38393
38593
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N)) {
|
|
38394
38594
|
_context.next = 94;
|
|
38395
38595
|
break;
|
|
38396
38596
|
}
|
|
38397
|
-
|
|
38597
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('不允许使用删除键删除签名,请右键删除元素');
|
|
38398
38598
|
return _context.abrupt("return");
|
|
38399
38599
|
case 94:
|
|
38400
38600
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
38401
38601
|
_context.next = 97;
|
|
38402
38602
|
break;
|
|
38403
38603
|
}
|
|
38404
|
-
|
|
38604
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('该签名元素不允许删除!');
|
|
38405
38605
|
return _context.abrupt("return");
|
|
38406
38606
|
case 97:
|
|
38407
38607
|
if (!(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N)) {
|
|
@@ -39332,11 +39532,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39332
39532
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.startPath);
|
|
39333
39533
|
var parentNode = hoEditorFactory.docTree.getParentNode(arange.startPath);
|
|
39334
39534
|
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re) {
|
|
39335
|
-
|
|
39535
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('不允许在文本域内插入表格');
|
|
39336
39536
|
return;
|
|
39337
39537
|
}
|
|
39338
39538
|
if (parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) {
|
|
39339
|
-
|
|
39539
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('不允许在表格内再插入表格');
|
|
39340
39540
|
return;
|
|
39341
39541
|
}
|
|
39342
39542
|
// const nextParaNode = new ParagraphNode(
|
|
@@ -39396,7 +39596,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39396
39596
|
c = _cell$table$getCellIn2[1];
|
|
39397
39597
|
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psEdit && r > 0) {
|
|
39398
39598
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r - 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
39399
|
-
|
|
39599
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('不允许在表头行中间插入行');
|
|
39400
39600
|
return;
|
|
39401
39601
|
}
|
|
39402
39602
|
}
|
|
@@ -39529,7 +39729,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39529
39729
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
39530
39730
|
}
|
|
39531
39731
|
} else {
|
|
39532
|
-
|
|
39732
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('表格已设置不允许新增行');
|
|
39533
39733
|
return;
|
|
39534
39734
|
}
|
|
39535
39735
|
}
|
|
@@ -39550,7 +39750,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39550
39750
|
c = _cell$table$getCellIn4[1];
|
|
39551
39751
|
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psEdit) {
|
|
39552
39752
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r + 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
39553
|
-
|
|
39753
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('不允许在表头行中间插入行');
|
|
39554
39754
|
return;
|
|
39555
39755
|
}
|
|
39556
39756
|
}
|
|
@@ -39651,7 +39851,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39651
39851
|
// );
|
|
39652
39852
|
// }
|
|
39653
39853
|
} else {
|
|
39654
|
-
|
|
39854
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('表格已设置不允许新增行');
|
|
39655
39855
|
return;
|
|
39656
39856
|
}
|
|
39657
39857
|
}
|
|
@@ -39712,7 +39912,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39712
39912
|
// );
|
|
39713
39913
|
// }
|
|
39714
39914
|
} else {
|
|
39715
|
-
|
|
39915
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('表格已设置不允许新增列');
|
|
39716
39916
|
return;
|
|
39717
39917
|
}
|
|
39718
39918
|
}
|
|
@@ -39770,7 +39970,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39770
39970
|
// );
|
|
39771
39971
|
// }
|
|
39772
39972
|
} else {
|
|
39773
|
-
|
|
39973
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('表格已设置不允许新增列');
|
|
39774
39974
|
return;
|
|
39775
39975
|
}
|
|
39776
39976
|
}
|
|
@@ -39787,7 +39987,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39787
39987
|
r2 = _TableNode$getSelectT2[3],
|
|
39788
39988
|
c2 = _TableNode$getSelectT2[4];
|
|
39789
39989
|
if (!table) {
|
|
39790
|
-
|
|
39990
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格才能删除');
|
|
39791
39991
|
return;
|
|
39792
39992
|
}
|
|
39793
39993
|
// const eParentNode = (aRange.npEnd.node as BaseNode).parentNode;
|
|
@@ -39799,7 +39999,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39799
39999
|
for (var i = r1; i <= r2; i++) {
|
|
39800
40000
|
var rowInfo = table.rowInfos[i];
|
|
39801
40001
|
if (rowInfo.rowProperty.repeatAsTitleAtPageTop) {
|
|
39802
|
-
|
|
40002
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('表头行不允许删除');
|
|
39803
40003
|
return;
|
|
39804
40004
|
}
|
|
39805
40005
|
}
|
|
@@ -39858,7 +40058,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39858
40058
|
r2 = _TableNode$getSelectT4[3],
|
|
39859
40059
|
c2 = _TableNode$getSelectT4[4];
|
|
39860
40060
|
if (!table) {
|
|
39861
|
-
|
|
40061
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格才能删除');
|
|
39862
40062
|
return;
|
|
39863
40063
|
}
|
|
39864
40064
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
@@ -39911,7 +40111,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39911
40111
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
39912
40112
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
39913
40113
|
if (!(cell1 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) || !(cell2 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) || cell1.table !== cell2.table || cell1 === cell2) {
|
|
39914
|
-
|
|
40114
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格的不同单元格才能合并');
|
|
39915
40115
|
return;
|
|
39916
40116
|
}
|
|
39917
40117
|
var _cell1$table$getCellI = cell1.table.getCellInfos(cell1),
|
|
@@ -39963,7 +40163,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39963
40163
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
39964
40164
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
39965
40165
|
if (!(cell1 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) || !(cell2 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) || cell1.table !== cell2.table) {
|
|
39966
|
-
|
|
40166
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格的单元格才能取消合并');
|
|
39967
40167
|
return;
|
|
39968
40168
|
}
|
|
39969
40169
|
var endPath = cell1.table.getNodePath();
|
|
@@ -40271,7 +40471,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40271
40471
|
}
|
|
40272
40472
|
var object = hoEditorFactory.docTree.findNodes(sNode, findContent, direction, matchCase);
|
|
40273
40473
|
if (object.obj2.size === 0) {
|
|
40274
|
-
|
|
40474
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('未能找到指定内容。');
|
|
40275
40475
|
} else {
|
|
40276
40476
|
var nodesMap = object.obj1;
|
|
40277
40477
|
var indexsMap = object.obj2;
|
|
@@ -40334,7 +40534,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40334
40534
|
sNode = startNode.rootNodes[0];
|
|
40335
40535
|
var object = hoEditorFactory.docTree.findNodes(sNode, findContent, direction, matchCase);
|
|
40336
40536
|
if (object.obj2.size === 0) {
|
|
40337
|
-
|
|
40537
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('未能找到指定内容。');
|
|
40338
40538
|
} else {
|
|
40339
40539
|
var nodesMap = object.obj1;
|
|
40340
40540
|
var indexsMap = object.obj2;
|
|
@@ -40388,7 +40588,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40388
40588
|
} finally {
|
|
40389
40589
|
_iterator.f();
|
|
40390
40590
|
}
|
|
40391
|
-
|
|
40591
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.info('成功替换了' + indexsMap.size.toString() + '处文档内容。');
|
|
40392
40592
|
var toPath = hoEditorFactory.docTree.curDomRange.endPath;
|
|
40393
40593
|
hoEditorFactory.drawTree.moveCaretToPath(toPath);
|
|
40394
40594
|
}
|
|
@@ -40654,6 +40854,26 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40654
40854
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, rareCharNode));
|
|
40655
40855
|
hoEditorFactory.undoService.commit();
|
|
40656
40856
|
}
|
|
40857
|
+
/**
|
|
40858
|
+
* 插入文本框
|
|
40859
|
+
* @param 操作类型
|
|
40860
|
+
* @param 选区
|
|
40861
|
+
* @param 符号串
|
|
40862
|
+
* @param 样式索引
|
|
40863
|
+
*/
|
|
40864
|
+
}, {
|
|
40865
|
+
key: "insertTextBorder",
|
|
40866
|
+
value: function insertTextBorder(operType, curDomRange, text, styleIndex) {
|
|
40867
|
+
var domRange = curDomRange.normalize();
|
|
40868
|
+
var startPath = domRange.endPath;
|
|
40869
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40870
|
+
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
40871
|
+
var rareCharNode = new _treeNode_TextBorderNode__WEBPACK_IMPORTED_MODULE_101__/* .TextBorderNode */ .D(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.ntTextBorder, text, styleIndex);
|
|
40872
|
+
//插入该表达式节点
|
|
40873
|
+
hoEditorFactory.undoService.begin();
|
|
40874
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, rareCharNode));
|
|
40875
|
+
hoEditorFactory.undoService.commit();
|
|
40876
|
+
}
|
|
40657
40877
|
/**
|
|
40658
40878
|
* 插入链接按钮
|
|
40659
40879
|
* @param operType 操作类型 "add"新增
|
|
@@ -40794,7 +41014,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40794
41014
|
} else {
|
|
40795
41015
|
var _comment = hoEditorFactory.drawTree.curOnSelectedComment;
|
|
40796
41016
|
if (_comment.userID != hoEditorFactory.userInfo.id) {
|
|
40797
|
-
|
|
41017
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_102__/* ["default"] */ .Z.warn('不允许删除其他用户创建的批注!');
|
|
40798
41018
|
return;
|
|
40799
41019
|
}
|
|
40800
41020
|
del(_comment);
|
|
@@ -41791,7 +42011,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41791
42011
|
/* harmony export */ x_: function() { return /* binding */ ctlKey; }
|
|
41792
42012
|
/* harmony export */ });
|
|
41793
42013
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(94310);
|
|
41794
|
-
/* harmony import */ var
|
|
42014
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(40735);
|
|
41795
42015
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27222);
|
|
41796
42016
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17519);
|
|
41797
42017
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(70280);
|
|
@@ -41851,13 +42071,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41851
42071
|
/* harmony import */ var _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(5010);
|
|
41852
42072
|
/* harmony import */ var _events_Exception__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(8277);
|
|
41853
42073
|
/* harmony import */ var _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(68598);
|
|
41854
|
-
/* harmony import */ var _draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(
|
|
42074
|
+
/* harmony import */ var _draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(24492);
|
|
41855
42075
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(74089);
|
|
41856
42076
|
/* harmony import */ var _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(92501);
|
|
41857
42077
|
/* harmony import */ var _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(45712);
|
|
41858
42078
|
/* harmony import */ var _treeNode_LabelNode__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(95089);
|
|
41859
42079
|
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(51760);
|
|
41860
42080
|
/* harmony import */ var _treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(91105);
|
|
42081
|
+
/* harmony import */ var _treeNode_TextBorderNode__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(11596);
|
|
42082
|
+
|
|
41861
42083
|
|
|
41862
42084
|
|
|
41863
42085
|
|
|
@@ -42481,6 +42703,8 @@ var DocTree = /*#__PURE__*/function () {
|
|
|
42481
42703
|
nodeType = "DownList";
|
|
42482
42704
|
} else if (node instanceof _treeNode_LabelNode__WEBPACK_IMPORTED_MODULE_48__/* .LabelNode */ .P) {
|
|
42483
42705
|
nodeType = "LabelNode";
|
|
42706
|
+
} else if (node instanceof _treeNode_TextBorderNode__WEBPACK_IMPORTED_MODULE_51__/* .TextBorderNode */ .D) {
|
|
42707
|
+
nodeType = "TextBorderNode";
|
|
42484
42708
|
}
|
|
42485
42709
|
return node.delete(operType, nodeType, isForceDelete);
|
|
42486
42710
|
}
|
|
@@ -43485,7 +43709,7 @@ var DocTree = /*#__PURE__*/function () {
|
|
|
43485
43709
|
}
|
|
43486
43710
|
} else {
|
|
43487
43711
|
if (count === indexsMap.size + 1) {
|
|
43488
|
-
|
|
43712
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_52__/* ["default"] */ .Z.info("已完成对文档的搜索。");
|
|
43489
43713
|
return "";
|
|
43490
43714
|
} else {
|
|
43491
43715
|
return "-1";
|
|
@@ -51508,21 +51732,20 @@ var ControlNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
51508
51732
|
var tip = "";
|
|
51509
51733
|
if (nodeType === "RadioBox") {
|
|
51510
51734
|
tip = "单选框";
|
|
51511
|
-
}
|
|
51512
|
-
if (nodeType === "CheckBox") {
|
|
51735
|
+
} else if (nodeType === "CheckBox") {
|
|
51513
51736
|
tip = "复选框";
|
|
51514
|
-
}
|
|
51515
|
-
if (nodeType === "DateTime") {
|
|
51737
|
+
} else if (nodeType === "DateTime") {
|
|
51516
51738
|
tip = "日期时间";
|
|
51517
|
-
}
|
|
51518
|
-
if (nodeType === "DownList") {
|
|
51739
|
+
} else if (nodeType === "DownList") {
|
|
51519
51740
|
tip = "下拉列表";
|
|
51520
51741
|
}
|
|
51521
51742
|
if (nodeType === "LabelNode") {
|
|
51522
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z.warn("
|
|
51743
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z.warn("不允许删除标签元素文本内容。");
|
|
51523
51744
|
return false;
|
|
51524
|
-
}
|
|
51525
|
-
|
|
51745
|
+
} else if (nodeType === "TextBorderNode") {
|
|
51746
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z.warn("不允许删除文本框元素文本内容。");
|
|
51747
|
+
return false;
|
|
51748
|
+
} else if (nodeType) {
|
|
51526
51749
|
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z.warn(tip + "元素已设置为不允许删除。");
|
|
51527
51750
|
} else {
|
|
51528
51751
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(ControlNode.prototype), "delete", this).call(this);
|
|
@@ -53116,7 +53339,7 @@ var FetalHeartMapNode = /*#__PURE__*/function (_MedicalExpressionNod) {
|
|
|
53116
53339
|
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
53117
53340
|
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(57658);
|
|
53118
53341
|
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
53119
|
-
/* harmony import */ var _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(
|
|
53342
|
+
/* harmony import */ var _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(24492);
|
|
53120
53343
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(74089);
|
|
53121
53344
|
/* harmony import */ var _plugins_util__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(62783);
|
|
53122
53345
|
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(62358);
|
|
@@ -54672,7 +54895,7 @@ var LightLocationMapNode = /*#__PURE__*/function (_MedicalExpressionNod) {
|
|
|
54672
54895
|
/* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(19601);
|
|
54673
54896
|
/* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_14__);
|
|
54674
54897
|
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(62358);
|
|
54675
|
-
/* harmony import */ var _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(
|
|
54898
|
+
/* harmony import */ var _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(24492);
|
|
54676
54899
|
/* harmony import */ var _editor_draw_drawNode_DrawMarkNode__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(57732);
|
|
54677
54900
|
/* harmony import */ var _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(29899);
|
|
54678
54901
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(74089);
|
|
@@ -60356,7 +60579,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
60356
60579
|
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
60357
60580
|
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(57658);
|
|
60358
60581
|
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
60359
|
-
/* harmony import */ var _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
|
|
60582
|
+
/* harmony import */ var _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(24492);
|
|
60360
60583
|
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(62358);
|
|
60361
60584
|
/* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(91105);
|
|
60362
60585
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(74089);
|
|
@@ -61061,14 +61284,13 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61061
61284
|
strValue = hoEditorFactory.unitConvert.replaceAll(strValue, '\r', '');
|
|
61062
61285
|
if (strValue === '') {
|
|
61063
61286
|
bret = true;
|
|
61287
|
+
ret = "";
|
|
61064
61288
|
for (var i = 1; i < cell.childNodes.length; i++) {
|
|
61065
61289
|
var aNode = cell.childNodes[i];
|
|
61066
61290
|
if (aNode instanceof _RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_41__/* .RadioAndCheckBoxNode */ .Yh) {
|
|
61067
61291
|
bret = true;
|
|
61068
61292
|
if (aNode.isSelected && aNode.numericValue !== "") {
|
|
61069
|
-
ret
|
|
61070
|
-
} else {
|
|
61071
|
-
ret = "";
|
|
61293
|
+
ret += Number(aNode.numericValue);
|
|
61072
61294
|
}
|
|
61073
61295
|
}
|
|
61074
61296
|
}
|
|
@@ -61078,14 +61300,13 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
61078
61300
|
bret = true;
|
|
61079
61301
|
ret = strValue;
|
|
61080
61302
|
} else {
|
|
61303
|
+
ret = "";
|
|
61081
61304
|
for (var j = 1; j < cell.childNodes.length; j++) {
|
|
61082
61305
|
var bNode = cell.childNodes[j];
|
|
61083
61306
|
if (bNode instanceof _RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_41__/* .RadioAndCheckBoxNode */ .Yh) {
|
|
61084
61307
|
bret = true;
|
|
61085
61308
|
if (bNode.isSelected && bNode.numericValue !== "") {
|
|
61086
|
-
ret
|
|
61087
|
-
} else {
|
|
61088
|
-
ret = "";
|
|
61309
|
+
ret += Number(bNode.numericValue);
|
|
61089
61310
|
}
|
|
61090
61311
|
}
|
|
61091
61312
|
}
|
|
@@ -64758,6 +64979,283 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
64758
64979
|
|
|
64759
64980
|
/***/ }),
|
|
64760
64981
|
|
|
64982
|
+
/***/ 11596:
|
|
64983
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
64984
|
+
|
|
64985
|
+
"use strict";
|
|
64986
|
+
|
|
64987
|
+
// EXPORTS
|
|
64988
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
64989
|
+
D: function() { return /* binding */ TextBorderNode; }
|
|
64990
|
+
});
|
|
64991
|
+
|
|
64992
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
|
|
64993
|
+
var classCallCheck = __webpack_require__(70280);
|
|
64994
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
|
|
64995
|
+
var createClass = __webpack_require__(66298);
|
|
64996
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/inherits.js + 1 modules
|
|
64997
|
+
var inherits = __webpack_require__(11651);
|
|
64998
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createSuper.js + 2 modules
|
|
64999
|
+
var createSuper = __webpack_require__(19593);
|
|
65000
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
65001
|
+
var es_number_constructor = __webpack_require__(9653);
|
|
65002
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
65003
|
+
var es_array_push = __webpack_require__(57658);
|
|
65004
|
+
// EXTERNAL MODULE: ./src/HOEditorFactorys.ts
|
|
65005
|
+
var HOEditorFactorys = __webpack_require__(74089);
|
|
65006
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/BaseNode.ts
|
|
65007
|
+
var BaseNode = __webpack_require__(62358);
|
|
65008
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ControlNode.ts
|
|
65009
|
+
var ControlNode = __webpack_require__(91105);
|
|
65010
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
|
|
65011
|
+
var assertThisInitialized = __webpack_require__(75808);
|
|
65012
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
65013
|
+
var defineProperty = __webpack_require__(78255);
|
|
65014
|
+
// EXTERNAL MODULE: ./src/editor/utils/DrawSimpleText.ts
|
|
65015
|
+
var DrawSimpleText = __webpack_require__(57590);
|
|
65016
|
+
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawCombineNode.ts
|
|
65017
|
+
var DrawCombineNode = __webpack_require__(66114);
|
|
65018
|
+
;// CONCATENATED MODULE: ./src/editor/draw/drawNode/DrawTextBorderNode.ts
|
|
65019
|
+
|
|
65020
|
+
|
|
65021
|
+
|
|
65022
|
+
|
|
65023
|
+
|
|
65024
|
+
|
|
65025
|
+
|
|
65026
|
+
|
|
65027
|
+
var DrawTextBorderNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
65028
|
+
(0,inherits/* default */.Z)(DrawTextBorderNode, _DrawCombineNode);
|
|
65029
|
+
var _super = (0,createSuper/* default */.Z)(DrawTextBorderNode);
|
|
65030
|
+
function DrawTextBorderNode(hoeditfactoryID, rootPath, node, index, text, textStyle) {
|
|
65031
|
+
var _this;
|
|
65032
|
+
(0,classCallCheck/* default */.Z)(this, DrawTextBorderNode);
|
|
65033
|
+
_this = _super.call(this, hoeditfactoryID, rootPath, node, index);
|
|
65034
|
+
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_text", void 0);
|
|
65035
|
+
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_dStyleKey", void 0);
|
|
65036
|
+
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_dText", void 0);
|
|
65037
|
+
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_bitMap", void 0);
|
|
65038
|
+
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_textStyle", void 0);
|
|
65039
|
+
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_charCount", void 0);
|
|
65040
|
+
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_bd", void 0);
|
|
65041
|
+
_this._textStyle = textStyle;
|
|
65042
|
+
_this._text = text;
|
|
65043
|
+
_this._charCount = _this._text.length;
|
|
65044
|
+
_this._dStyleKey = node.dStyleKey;
|
|
65045
|
+
_this._dText = new createjs.Text(text, _this._dStyleKey, node.dColor);
|
|
65046
|
+
_this.dWidth = _this._dText.getMeasuredWidth();
|
|
65047
|
+
_this.dHeight = node.dHeight;
|
|
65048
|
+
_this.drawRareChar();
|
|
65049
|
+
return _this;
|
|
65050
|
+
}
|
|
65051
|
+
(0,createClass/* default */.Z)(DrawTextBorderNode, [{
|
|
65052
|
+
key: "text",
|
|
65053
|
+
get: function get() {
|
|
65054
|
+
return this._text;
|
|
65055
|
+
}
|
|
65056
|
+
}, {
|
|
65057
|
+
key: "dStyleKey",
|
|
65058
|
+
get: function get() {
|
|
65059
|
+
return this._dStyleKey;
|
|
65060
|
+
}
|
|
65061
|
+
}, {
|
|
65062
|
+
key: "drawRareChar",
|
|
65063
|
+
value: function drawRareChar() {
|
|
65064
|
+
this._charCount = this._text.length;
|
|
65065
|
+
this.dWidth = this._dText.getMeasuredWidth();
|
|
65066
|
+
if (!this._bd) this._bd = new createjs.Shape();
|
|
65067
|
+
this._bd.graphics.clear();
|
|
65068
|
+
var leftWidth = 0;
|
|
65069
|
+
for (var i = 0; i < this._text.length; i++) {
|
|
65070
|
+
var text = this._text[i];
|
|
65071
|
+
var dText = new DrawSimpleText/* DrawSimpleText */.b(text, this._textStyle.getStyleKey(), '#000');
|
|
65072
|
+
var currentWidthwidth = dText.getMeasuredWidth();
|
|
65073
|
+
dText.textBaseline = 'alphabetic';
|
|
65074
|
+
dText.textAlign = 'left';
|
|
65075
|
+
var maxHeight = this.dHeight - 2;
|
|
65076
|
+
var maxWidth = Math.max(currentWidthwidth, maxHeight);
|
|
65077
|
+
var rect = dText.getBounds().clone();
|
|
65078
|
+
if (rect) {
|
|
65079
|
+
dText.x = leftWidth + maxWidth * 0.25;
|
|
65080
|
+
dText.y = -2;
|
|
65081
|
+
}
|
|
65082
|
+
this.addChild(dText);
|
|
65083
|
+
this._bd.graphics.beginStroke(this._textStyle.color).drawRect(leftWidth,
|
|
65084
|
+
//x
|
|
65085
|
+
-maxHeight,
|
|
65086
|
+
//y
|
|
65087
|
+
currentWidthwidth + maxWidth * 0.5, maxHeight);
|
|
65088
|
+
leftWidth = leftWidth + dText.getMeasuredWidth();
|
|
65089
|
+
if (i < this._text.length - 1) {
|
|
65090
|
+
leftWidth += maxWidth;
|
|
65091
|
+
} else {
|
|
65092
|
+
leftWidth += maxWidth * 0.75;
|
|
65093
|
+
}
|
|
65094
|
+
}
|
|
65095
|
+
this.addChild(this._bd);
|
|
65096
|
+
this.dWidth = leftWidth;
|
|
65097
|
+
}
|
|
65098
|
+
}]);
|
|
65099
|
+
return DrawTextBorderNode;
|
|
65100
|
+
}(DrawCombineNode/* DrawCombineNode */.o);
|
|
65101
|
+
// EXTERNAL MODULE: ./src/editor/events/NodeChangeEvent.ts
|
|
65102
|
+
var NodeChangeEvent = __webpack_require__(2613);
|
|
65103
|
+
// EXTERNAL MODULE: ./src/editor/draw/SelectRange.ts
|
|
65104
|
+
var SelectRange = __webpack_require__(53901);
|
|
65105
|
+
// EXTERNAL MODULE: ./src/editor/dom/DocTree.ts
|
|
65106
|
+
var DocTree = __webpack_require__(32629);
|
|
65107
|
+
;// CONCATENATED MODULE: ./src/editor/dom/treeNode/TextBorderNode.ts
|
|
65108
|
+
|
|
65109
|
+
|
|
65110
|
+
|
|
65111
|
+
|
|
65112
|
+
|
|
65113
|
+
|
|
65114
|
+
|
|
65115
|
+
|
|
65116
|
+
|
|
65117
|
+
|
|
65118
|
+
|
|
65119
|
+
|
|
65120
|
+
|
|
65121
|
+
var TextBorderNode = /*#__PURE__*/function (_ControlNode) {
|
|
65122
|
+
(0,inherits/* default */.Z)(TextBorderNode, _ControlNode);
|
|
65123
|
+
var _super = (0,createSuper/* default */.Z)(TextBorderNode);
|
|
65124
|
+
function TextBorderNode(hoEditorFactoryID, rootNodes, pNode, nodeType, text, styleIndex) {
|
|
65125
|
+
var _this;
|
|
65126
|
+
(0,classCallCheck/* default */.Z)(this, TextBorderNode);
|
|
65127
|
+
_this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, nodeType);
|
|
65128
|
+
_this._text = text;
|
|
65129
|
+
_this._styleIndex = styleIndex;
|
|
65130
|
+
_this.node2DrawNodeRange();
|
|
65131
|
+
return _this;
|
|
65132
|
+
}
|
|
65133
|
+
(0,createClass/* default */.Z)(TextBorderNode, [{
|
|
65134
|
+
key: "text",
|
|
65135
|
+
get: function get() {
|
|
65136
|
+
return this._text;
|
|
65137
|
+
},
|
|
65138
|
+
set: function set(val) {
|
|
65139
|
+
if (val !== this._text) {
|
|
65140
|
+
this._text = val;
|
|
65141
|
+
}
|
|
65142
|
+
}
|
|
65143
|
+
}, {
|
|
65144
|
+
key: "styleIndex",
|
|
65145
|
+
get: function get() {
|
|
65146
|
+
return this._styleIndex;
|
|
65147
|
+
},
|
|
65148
|
+
set: function set(val) {
|
|
65149
|
+
if (this._styleIndex !== Number(val)) {
|
|
65150
|
+
this._styleIndex = Number(val);
|
|
65151
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
65152
|
+
if (!hoEditorFactory.docTree.isSaveValid) {
|
|
65153
|
+
this.node2DrawNode();
|
|
65154
|
+
}
|
|
65155
|
+
}
|
|
65156
|
+
}
|
|
65157
|
+
}, {
|
|
65158
|
+
key: "refreshDrawStyle",
|
|
65159
|
+
value: function refreshDrawStyle() {
|
|
65160
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
65161
|
+
var textStyle = hoEditorFactory.docTree.styles[this._styleIndex];
|
|
65162
|
+
var cbStyle;
|
|
65163
|
+
if (textStyle) {
|
|
65164
|
+
cbStyle = textStyle.combineStyle;
|
|
65165
|
+
} else {
|
|
65166
|
+
cbStyle = hoEditorFactory.docTree.styles[0].combineStyle;
|
|
65167
|
+
this.styleIndex = 0;
|
|
65168
|
+
}
|
|
65169
|
+
this.dStyleKey = cbStyle.getStyleKey();
|
|
65170
|
+
this.dColor = cbStyle.color;
|
|
65171
|
+
this.dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
|
|
65172
|
+
this.dCombineStyle = cbStyle;
|
|
65173
|
+
}
|
|
65174
|
+
//根据可放置的宽度,将普通组件转换成绘制组件
|
|
65175
|
+
}, {
|
|
65176
|
+
key: "node2DrawNodeRange",
|
|
65177
|
+
value: function node2DrawNodeRange() {
|
|
65178
|
+
this.refreshDrawStyle();
|
|
65179
|
+
var dNode = new DrawTextBorderNode(this._hoEditorFactoryID, this._rootPath, this, 0, this.text, this.dCombineStyle);
|
|
65180
|
+
this._drawNodes.push(dNode);
|
|
65181
|
+
}
|
|
65182
|
+
}, {
|
|
65183
|
+
key: "node2DrawNode",
|
|
65184
|
+
value: function node2DrawNode() {
|
|
65185
|
+
this.clearDrawNodes(0, 0);
|
|
65186
|
+
this.node2DrawNodeRange();
|
|
65187
|
+
}
|
|
65188
|
+
/**
|
|
65189
|
+
* @author xyl
|
|
65190
|
+
* @param dRoots 绘制根数组
|
|
65191
|
+
* @param paragraphNode 对应的段落
|
|
65192
|
+
* @param start 当前起始位置,绘制时不应含入
|
|
65193
|
+
* @param endIndex 结束位置 ,包含入
|
|
65194
|
+
*/
|
|
65195
|
+
//根据可放置的宽度,将普通组件转换成绘制组件
|
|
65196
|
+
}, {
|
|
65197
|
+
key: "placeDNode2DrawLine",
|
|
65198
|
+
value: function placeDNode2DrawLine(droots, paragraphNode, dline, start, endIndex) {
|
|
65199
|
+
var startIndex = start;
|
|
65200
|
+
if (startIndex >= 1) {
|
|
65201
|
+
return dline;
|
|
65202
|
+
}
|
|
65203
|
+
dline.addChild(this._drawNodes[0]);
|
|
65204
|
+
dline.drawItems.push(this._drawNodes[0]);
|
|
65205
|
+
dline.fitLines();
|
|
65206
|
+
return dline.paragraphNode.getLastDrawline();
|
|
65207
|
+
}
|
|
65208
|
+
}, {
|
|
65209
|
+
key: "setTextBorderText",
|
|
65210
|
+
value: function setTextBorderText(text) {
|
|
65211
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
65212
|
+
var sPath = hoEditorFactory.docTree.getNodeLastPath(this.previousLeaf());
|
|
65213
|
+
var ePath = hoEditorFactory.docTree.getNodeLastPath(this);
|
|
65214
|
+
var changeEvent = new NodeChangeEvent/* NodeChangeEvent */.G(this.hoEditorFactoryID, DocTree/* DocAction */.gk.daModifyStyle, sPath, ePath);
|
|
65215
|
+
changeEvent.oldEndPath = ePath;
|
|
65216
|
+
changeEvent.oldDrawLines = new SelectRange/* SelectRange */.E(this.hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true, true);
|
|
65217
|
+
this.text = text;
|
|
65218
|
+
this.node2DrawNode();
|
|
65219
|
+
changeEvent.afterChangePath = ePath;
|
|
65220
|
+
hoEditorFactory.docTree.change(changeEvent);
|
|
65221
|
+
}
|
|
65222
|
+
}, {
|
|
65223
|
+
key: "hasChildPath",
|
|
65224
|
+
value: function hasChildPath() {
|
|
65225
|
+
return false;
|
|
65226
|
+
}
|
|
65227
|
+
}, {
|
|
65228
|
+
key: "node2Json",
|
|
65229
|
+
value: function node2Json(range, isCopy) {
|
|
65230
|
+
var retObj = {
|
|
65231
|
+
nodeType: BaseNode/* NodeType */.Jq[this.nodeType],
|
|
65232
|
+
text: this.text,
|
|
65233
|
+
styleIndex: this.styleIndex
|
|
65234
|
+
};
|
|
65235
|
+
if (isCopy) {
|
|
65236
|
+
return retObj;
|
|
65237
|
+
}
|
|
65238
|
+
return {
|
|
65239
|
+
"TextBorderNode": retObj
|
|
65240
|
+
};
|
|
65241
|
+
}
|
|
65242
|
+
}, {
|
|
65243
|
+
key: "getTagNameCn",
|
|
65244
|
+
value: function getTagNameCn() {
|
|
65245
|
+
return "文本框";
|
|
65246
|
+
}
|
|
65247
|
+
}], [{
|
|
65248
|
+
key: "json2Node",
|
|
65249
|
+
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode) {
|
|
65250
|
+
var styleIndex = Number(json.styleIndex);
|
|
65251
|
+
return new TextBorderNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, BaseNode/* NodeType */.Jq.ntRareChar, json.text, styleIndex);
|
|
65252
|
+
}
|
|
65253
|
+
}]);
|
|
65254
|
+
return TextBorderNode;
|
|
65255
|
+
}(ControlNode/* ControlNode */.w);
|
|
65256
|
+
|
|
65257
|
+
/***/ }),
|
|
65258
|
+
|
|
64761
65259
|
/***/ 65043:
|
|
64762
65260
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
64763
65261
|
|
|
@@ -69175,7 +69673,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
69175
69673
|
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(62358);
|
|
69176
69674
|
/* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(51760);
|
|
69177
69675
|
/* harmony import */ var _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(96635);
|
|
69178
|
-
/* harmony import */ var _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(
|
|
69676
|
+
/* harmony import */ var _editor_draw_drawNode_DrawTextNode__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(24492);
|
|
69179
69677
|
/* harmony import */ var _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(29899);
|
|
69180
69678
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(74089);
|
|
69181
69679
|
/* harmony import */ var _editor_utils_UnitConvert__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(91404);
|
|
@@ -70020,8 +70518,8 @@ var DrawContainer = __webpack_require__(47535);
|
|
|
70020
70518
|
var DrawCombineNode = __webpack_require__(66114);
|
|
70021
70519
|
// EXTERNAL MODULE: ./src/editor/dom/domNode/Paragraph.ts
|
|
70022
70520
|
var Paragraph = __webpack_require__(53474);
|
|
70023
|
-
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawTextNode.ts +
|
|
70024
|
-
var DrawTextNode = __webpack_require__(
|
|
70521
|
+
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawTextNode.ts + 1 modules
|
|
70522
|
+
var DrawTextNode = __webpack_require__(24492);
|
|
70025
70523
|
;// CONCATENATED MODULE: ./src/editor/events/DrawChangeEvent.ts
|
|
70026
70524
|
|
|
70027
70525
|
|
|
@@ -73102,52 +73600,9 @@ var DrawFooter = /*#__PURE__*/function (_DrawPageHeaderFooter) {
|
|
|
73102
73600
|
}
|
|
73103
73601
|
return Math.max(Math.min(docHeight, this.maxHeight), hoeditfactory.pageProperty.bottomMarginPixes - hoeditfactory.pageProperty.footerYPixes);
|
|
73104
73602
|
}
|
|
73105
|
-
// public AddPage(aPage: DrawPage) {
|
|
73106
|
-
// if (this._pages.indexOf(aPage) == -1) {
|
|
73107
|
-
// this._pages.push(aPage);
|
|
73108
|
-
// const dlevel = aPage.drawDomLevel;
|
|
73109
|
-
// if (dlevel) {
|
|
73110
|
-
// dlevel.drawFooter = this;
|
|
73111
|
-
// aPage.repaint();
|
|
73112
|
-
// }
|
|
73113
|
-
// }
|
|
73114
|
-
// }
|
|
73115
|
-
// public DeletePage(aPage: DrawPage) {
|
|
73116
|
-
// const index = this._pages.indexOf(aPage);
|
|
73117
|
-
// if (index == -1) return;
|
|
73118
|
-
// this._pages[index]?.drawDomLevel?.stage.removeChild(this);
|
|
73119
|
-
// this._pages.splice(index, 1);
|
|
73120
|
-
// }
|
|
73121
|
-
// public nodify() {
|
|
73122
|
-
// if (this.rootPath != "") {
|
|
73123
|
-
// const arr = this.rootPath.split("/");
|
|
73124
|
-
// // this.drawLines = [...HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.footerDNodes[parseInt(arr[1])]];
|
|
73125
|
-
// }
|
|
73126
|
-
// this._pages.forEach((value) => {
|
|
73127
|
-
// value.refresh();
|
|
73128
|
-
// });
|
|
73129
|
-
// }
|
|
73130
73603
|
}, {
|
|
73131
73604
|
key: "paintBackground",
|
|
73132
73605
|
value: function paintBackground() {
|
|
73133
|
-
// if (this.rootPath != '') {
|
|
73134
|
-
// const arr = this.rootPath.split('/')
|
|
73135
|
-
// this.drawLines = [...HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.headerDNodes[parseInt(arr[1])]];
|
|
73136
|
-
// // HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.buildDrawTree(this.rootPath);
|
|
73137
|
-
// }
|
|
73138
|
-
// const dWidth =
|
|
73139
|
-
// HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.widthPixes -
|
|
73140
|
-
// HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.leftMarginPixes -
|
|
73141
|
-
// HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.rightMarginPixes;
|
|
73142
|
-
// if (!this._sharp) this._sharp = new createjs.Shape();
|
|
73143
|
-
// this._sharp.graphics.clear();
|
|
73144
|
-
// this._sharp.graphics.beginFill("#FF0000").drawRect(
|
|
73145
|
-
// -1, //x
|
|
73146
|
-
// 0, //y
|
|
73147
|
-
// dWidth,
|
|
73148
|
-
// 1 //Math.max(this.dHeight, this.docHeight)
|
|
73149
|
-
// );
|
|
73150
|
-
// this.addChildAt(this._sharp, this.numChildren);
|
|
73151
73606
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(DrawFooter.prototype), "paintBackground", this).call(this);
|
|
73152
73607
|
}
|
|
73153
73608
|
}, {
|
|
@@ -73228,62 +73683,9 @@ var DrawHeader = /*#__PURE__*/function (_DrawPageHeaderFooter) {
|
|
|
73228
73683
|
get: function get() {
|
|
73229
73684
|
return Infinity;
|
|
73230
73685
|
}
|
|
73231
|
-
// public AddPage(aPage: DrawPage) {
|
|
73232
|
-
// if (this._pages.indexOf(aPage) == -1) {
|
|
73233
|
-
// this._pages.push(aPage);
|
|
73234
|
-
// const dlevel = aPage.drawDomLevel;
|
|
73235
|
-
// if (dlevel) {
|
|
73236
|
-
// dlevel.drawHeader = this;
|
|
73237
|
-
// aPage.repaint();
|
|
73238
|
-
// }
|
|
73239
|
-
// }
|
|
73240
|
-
// }
|
|
73241
|
-
// public DeletePage(aPage: DrawPage) {
|
|
73242
|
-
// const index = this._pages.indexOf(aPage);
|
|
73243
|
-
// if (index == -1) return;
|
|
73244
|
-
// this._pages[index]?.drawDomLevel?.stage.removeChild(this);
|
|
73245
|
-
// this._pages.splice(index, 1);
|
|
73246
|
-
// }
|
|
73247
|
-
// public nodify() {
|
|
73248
|
-
// if (this.rootPath != "") {
|
|
73249
|
-
// const arr = this.rootPath.split("/");
|
|
73250
|
-
// // this.drawLines = [...HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.headerDNodes[parseInt(arr[1])]];
|
|
73251
|
-
// }
|
|
73252
|
-
// this._pages.forEach((value) => {
|
|
73253
|
-
// value.refresh();
|
|
73254
|
-
// });
|
|
73255
|
-
// }
|
|
73256
|
-
// constructor(path: string, index: number, drawPage: DrawPage) {
|
|
73257
|
-
// const dTop = 0;// HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.headerYPixes;
|
|
73258
|
-
// const dLeft = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.leftMarginPixes;
|
|
73259
|
-
// const dWidth = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.widthPixes - dLeft - HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.rightMarginMm;
|
|
73260
|
-
// const dHeight = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.topMarginPixes - dTop;
|
|
73261
|
-
// const maxHeight = Math.floor((HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.heightPixes - dTop) / 2 - HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.heightPixes / 5);
|
|
73262
|
-
// const maxWidth = dWidth;
|
|
73263
|
-
// super(path, index, dLeft, dTop, dWidth, dHeight, maxWidth, maxHeight)
|
|
73264
|
-
// this._allowAcrossPage = false;
|
|
73265
|
-
// this._drawPage = drawPage;
|
|
73266
|
-
// this.drawHeader();
|
|
73267
|
-
// }
|
|
73268
73686
|
}, {
|
|
73269
73687
|
key: "paintBackground",
|
|
73270
73688
|
value: function paintBackground() {
|
|
73271
|
-
// const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
73272
|
-
// const dWidth =
|
|
73273
|
-
// hoEditorFactory.pageProperty.widthPixes -
|
|
73274
|
-
// hoEditorFactory.pageProperty.leftMarginPixes -
|
|
73275
|
-
// hoEditorFactory.pageProperty.rightMarginPixes;
|
|
73276
|
-
// if (hoEditorFactory.drawTree.activePage?.drawDomLevel?.activeDrawRect != this)
|
|
73277
|
-
// return
|
|
73278
|
-
// if (!this._sharp) this._sharp = new createjs.Shape();
|
|
73279
|
-
// this._sharp.graphics.clear();
|
|
73280
|
-
// this._sharp.graphics.beginFill("#FF0000").drawRect(
|
|
73281
|
-
// -1, //x
|
|
73282
|
-
// Math.max(this.dHeight, this.actualHeight),
|
|
73283
|
-
// dWidth,
|
|
73284
|
-
// 1 //Math.max(this.dHeight, this.docHeight)
|
|
73285
|
-
// );
|
|
73286
|
-
// this.addChildAt(this._sharp, this.numChildren);
|
|
73287
73689
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(DrawHeader.prototype), "paintBackground", this).call(this);
|
|
73288
73690
|
}
|
|
73289
73691
|
}, {
|
|
@@ -81508,7 +81910,7 @@ var DrawTableFormular = /*#__PURE__*/function (_DrawSimpleNode) {
|
|
|
81508
81910
|
|
|
81509
81911
|
/***/ }),
|
|
81510
81912
|
|
|
81511
|
-
/***/
|
|
81913
|
+
/***/ 24492:
|
|
81512
81914
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
81513
81915
|
|
|
81514
81916
|
"use strict";
|
|
@@ -81538,6 +81940,12 @@ var es_object_keys = __webpack_require__(47941);
|
|
|
81538
81940
|
var es_string_ends_with = __webpack_require__(27852);
|
|
81539
81941
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
81540
81942
|
var es_function_name = __webpack_require__(68309);
|
|
81943
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
81944
|
+
var es_array_filter = __webpack_require__(57327);
|
|
81945
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
81946
|
+
var es_object_to_string = __webpack_require__(41539);
|
|
81947
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
|
|
81948
|
+
var web_dom_collections_for_each = __webpack_require__(54747);
|
|
81541
81949
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.italics.js
|
|
81542
81950
|
var es_string_italics = __webpack_require__(58734);
|
|
81543
81951
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.bold.js
|
|
@@ -81944,19 +82352,9 @@ var TextInputFieldNode = __webpack_require__(65043);
|
|
|
81944
82352
|
var DrawSimpleText = __webpack_require__(57590);
|
|
81945
82353
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/GestationNode.ts
|
|
81946
82354
|
var GestationNode = __webpack_require__(73632);
|
|
81947
|
-
// EXTERNAL MODULE: ./
|
|
81948
|
-
var
|
|
81949
|
-
|
|
81950
|
-
var es_regexp_to_string = __webpack_require__(39714);
|
|
81951
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
81952
|
-
var es_array_push = __webpack_require__(57658);
|
|
81953
|
-
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
81954
|
-
var util = __webpack_require__(62783);
|
|
81955
|
-
// EXTERNAL MODULE: ./src/editor/dom/treeNode/BaseNode.ts
|
|
81956
|
-
var BaseNode = __webpack_require__(62358);
|
|
81957
|
-
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ControlNode.ts
|
|
81958
|
-
var ControlNode = __webpack_require__(91105);
|
|
81959
|
-
;// CONCATENATED MODULE: ./src/editor/dom/treeNode/TextBorderNode.ts
|
|
82355
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TextBorderNode.ts + 1 modules
|
|
82356
|
+
var TextBorderNode = __webpack_require__(11596);
|
|
82357
|
+
;// CONCATENATED MODULE: ./src/editor/draw/drawNode/DrawTextNode.ts
|
|
81960
82358
|
|
|
81961
82359
|
|
|
81962
82360
|
|
|
@@ -81972,185 +82370,6 @@ var ControlNode = __webpack_require__(91105);
|
|
|
81972
82370
|
|
|
81973
82371
|
|
|
81974
82372
|
|
|
81975
|
-
/*
|
|
81976
|
-
* @Author: liyanan 2441631434@qq.com
|
|
81977
|
-
* @Date: 2022-05-11 17:07:13
|
|
81978
|
-
* @LastEditors: liyanan 2441631434@qq.com
|
|
81979
|
-
* @LastEditTime: 2022-05-12 08:30:21
|
|
81980
|
-
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\GestationNode.ts
|
|
81981
|
-
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
81982
|
-
*/
|
|
81983
|
-
var TextBorderNode = /*#__PURE__*/function (_ControlNode) {
|
|
81984
|
-
(0,inherits/* default */.Z)(TextBorderNode, _ControlNode);
|
|
81985
|
-
var _super = (0,createSuper/* default */.Z)(TextBorderNode);
|
|
81986
|
-
//用来计算的日期
|
|
81987
|
-
function TextBorderNode(hoEditorFactoryID, rootNodes, pNode, nodeType, lastMenstruationDate, usedDate, styleIndex) {
|
|
81988
|
-
var _this;
|
|
81989
|
-
(0,classCallCheck/* default */.Z)(this, TextBorderNode);
|
|
81990
|
-
_this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, nodeType);
|
|
81991
|
-
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_lastMenstruationDate", "");
|
|
81992
|
-
//末次月经日期
|
|
81993
|
-
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_usedDate", "");
|
|
81994
|
-
_this._lastMenstruationDate = lastMenstruationDate;
|
|
81995
|
-
_this._usedDate = usedDate;
|
|
81996
|
-
_this._styleIndex = styleIndex;
|
|
81997
|
-
_this._text = _this.clacGestation();
|
|
81998
|
-
_this.node2DrawNodeRange(0, 0);
|
|
81999
|
-
return _this;
|
|
82000
|
-
}
|
|
82001
|
-
(0,createClass/* default */.Z)(TextBorderNode, [{
|
|
82002
|
-
key: "lastMenstruationDate",
|
|
82003
|
-
get: function get() {
|
|
82004
|
-
return this._lastMenstruationDate;
|
|
82005
|
-
},
|
|
82006
|
-
set: function set(val) {
|
|
82007
|
-
if (this._lastMenstruationDate !== val) {
|
|
82008
|
-
this._lastMenstruationDate = val;
|
|
82009
|
-
}
|
|
82010
|
-
}
|
|
82011
|
-
}, {
|
|
82012
|
-
key: "usedDate",
|
|
82013
|
-
get: function get() {
|
|
82014
|
-
return this._usedDate;
|
|
82015
|
-
},
|
|
82016
|
-
set: function set(val) {
|
|
82017
|
-
if (this._usedDate !== val) {
|
|
82018
|
-
this._usedDate = val;
|
|
82019
|
-
}
|
|
82020
|
-
}
|
|
82021
|
-
}, {
|
|
82022
|
-
key: "styleIndex",
|
|
82023
|
-
get: function get() {
|
|
82024
|
-
return this._styleIndex;
|
|
82025
|
-
},
|
|
82026
|
-
set: function set(val) {
|
|
82027
|
-
if (this._styleIndex !== Number(val)) {
|
|
82028
|
-
this._styleIndex = Number(val);
|
|
82029
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
82030
|
-
if (!hoEditorFactory.docTree.isSaveValid) {
|
|
82031
|
-
this.node2DrawNode();
|
|
82032
|
-
}
|
|
82033
|
-
}
|
|
82034
|
-
}
|
|
82035
|
-
}, {
|
|
82036
|
-
key: "clacGestation",
|
|
82037
|
-
value: function clacGestation() {
|
|
82038
|
-
var strRet = "";
|
|
82039
|
-
if ((0,util/* isDate */.J_)(this.lastMenstruationDate) && (0,util/* isDate */.J_)(this.usedDate)) {
|
|
82040
|
-
var sDate = new Date(this.lastMenstruationDate);
|
|
82041
|
-
var sTime = sDate.getTime();
|
|
82042
|
-
var eDate = new Date(this.usedDate);
|
|
82043
|
-
var eTime = eDate.getTime();
|
|
82044
|
-
var subTime = ((eTime - sTime + 1) / (1000 * 3600 * 24 * 7)).toString();
|
|
82045
|
-
var weekData = subTime.split('.');
|
|
82046
|
-
var week = Number(weekData[0]);
|
|
82047
|
-
var days = 0;
|
|
82048
|
-
if (weekData.length > 1) {
|
|
82049
|
-
days = parseInt((Number("0." + weekData[1]) * 7).toString());
|
|
82050
|
-
}
|
|
82051
|
-
strRet = week.toString() + "周+" + days.toString() + "天";
|
|
82052
|
-
}
|
|
82053
|
-
return strRet;
|
|
82054
|
-
}
|
|
82055
|
-
}, {
|
|
82056
|
-
key: "refreshDrawStyle",
|
|
82057
|
-
value: function refreshDrawStyle() {
|
|
82058
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
82059
|
-
var textStyle = hoEditorFactory.docTree.styles[this._styleIndex];
|
|
82060
|
-
var cbStyle;
|
|
82061
|
-
if (textStyle) {
|
|
82062
|
-
cbStyle = textStyle.combineStyle;
|
|
82063
|
-
} else {
|
|
82064
|
-
cbStyle = hoEditorFactory.docTree.styles[0].combineStyle;
|
|
82065
|
-
this.styleIndex = 0;
|
|
82066
|
-
}
|
|
82067
|
-
this.dStyleKey = cbStyle.getStyleKey();
|
|
82068
|
-
this.dColor = cbStyle.color;
|
|
82069
|
-
this.dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
|
|
82070
|
-
this.dCombineStyle = cbStyle;
|
|
82071
|
-
}
|
|
82072
|
-
//根据可放置的宽度,将普通组件转换成绘制组件
|
|
82073
|
-
}, {
|
|
82074
|
-
key: "node2DrawNodeRange",
|
|
82075
|
-
value: function node2DrawNodeRange(startIndex, endIndex) {
|
|
82076
|
-
this.refreshDrawStyle();
|
|
82077
|
-
var dNode = new DrawTextNode(this._hoEditorFactoryID, this._rootPath, this, 0);
|
|
82078
|
-
this._drawNodes.push(dNode);
|
|
82079
|
-
}
|
|
82080
|
-
}, {
|
|
82081
|
-
key: "node2DrawNode",
|
|
82082
|
-
value: function node2DrawNode() {
|
|
82083
|
-
this.clearDrawNodes(0, 0);
|
|
82084
|
-
this.node2DrawNodeRange(0, 0);
|
|
82085
|
-
}
|
|
82086
|
-
/**
|
|
82087
|
-
* @author xyl
|
|
82088
|
-
* @param dRoots 绘制根数组
|
|
82089
|
-
* @param paragraphNode 对应的段落
|
|
82090
|
-
* @param start 当前起始位置,绘制时不应含入
|
|
82091
|
-
* @param endIndex 结束位置 ,包含入
|
|
82092
|
-
*/
|
|
82093
|
-
//根据可放置的宽度,将普通组件转换成绘制组件
|
|
82094
|
-
}, {
|
|
82095
|
-
key: "placeDNode2DrawLine",
|
|
82096
|
-
value: function placeDNode2DrawLine(droots, paragraphNode, dline, start, endIndex) {
|
|
82097
|
-
var startIndex = start;
|
|
82098
|
-
if (startIndex >= 1) {
|
|
82099
|
-
return dline;
|
|
82100
|
-
}
|
|
82101
|
-
dline.addChild(this._drawNodes[0]);
|
|
82102
|
-
dline.drawItems.push(this._drawNodes[0]);
|
|
82103
|
-
dline.fitLines();
|
|
82104
|
-
return dline.paragraphNode.getLastDrawline();
|
|
82105
|
-
}
|
|
82106
|
-
}, {
|
|
82107
|
-
key: "hasChildPath",
|
|
82108
|
-
value: function hasChildPath() {
|
|
82109
|
-
return false;
|
|
82110
|
-
}
|
|
82111
|
-
}, {
|
|
82112
|
-
key: "node2Json",
|
|
82113
|
-
value: function node2Json(range, isCopy) {
|
|
82114
|
-
var retObj = {
|
|
82115
|
-
nodeType: BaseNode/* NodeType */.Jq[this.nodeType],
|
|
82116
|
-
lastMenstruationDate: this.lastMenstruationDate,
|
|
82117
|
-
usedDate: this.usedDate,
|
|
82118
|
-
styleIndex: this.styleIndex
|
|
82119
|
-
};
|
|
82120
|
-
if (isCopy) {
|
|
82121
|
-
return retObj;
|
|
82122
|
-
}
|
|
82123
|
-
return {
|
|
82124
|
-
"GestationNode": retObj
|
|
82125
|
-
};
|
|
82126
|
-
}
|
|
82127
|
-
}, {
|
|
82128
|
-
key: "getTagNameCn",
|
|
82129
|
-
value: function getTagNameCn() {
|
|
82130
|
-
return "孕周";
|
|
82131
|
-
}
|
|
82132
|
-
}], [{
|
|
82133
|
-
key: "json2Node",
|
|
82134
|
-
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode) {
|
|
82135
|
-
var styleIndex = Number(json.styleIndex);
|
|
82136
|
-
return new TextBorderNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, BaseNode/* NodeType */.Jq.ntGestation, json.lastMenstruationDate, json.usedDate, styleIndex);
|
|
82137
|
-
}
|
|
82138
|
-
}]);
|
|
82139
|
-
return TextBorderNode;
|
|
82140
|
-
}(ControlNode/* ControlNode */.w);
|
|
82141
|
-
;// CONCATENATED MODULE: ./src/editor/draw/drawNode/DrawTextNode.ts
|
|
82142
|
-
|
|
82143
|
-
|
|
82144
|
-
|
|
82145
|
-
|
|
82146
|
-
|
|
82147
|
-
|
|
82148
|
-
|
|
82149
|
-
|
|
82150
|
-
|
|
82151
|
-
|
|
82152
|
-
|
|
82153
|
-
|
|
82154
82373
|
|
|
82155
82374
|
// import {DrawNode} from "./DrawSimpleNode"
|
|
82156
82375
|
|
|
@@ -82195,7 +82414,7 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
82195
82414
|
_this._textNode = node;
|
|
82196
82415
|
_this._dTextShape = new createjs.Shape();
|
|
82197
82416
|
// this.redraw();
|
|
82198
|
-
if (node instanceof SpecialCharsNode/* SpecialCharsNode */.y || node instanceof GestationNode/* GestationNode */.G || node instanceof TextBorderNode) {
|
|
82417
|
+
if (node instanceof SpecialCharsNode/* SpecialCharsNode */.y || node instanceof GestationNode/* GestationNode */.G || node instanceof TextBorderNode/* TextBorderNode */.D) {
|
|
82199
82418
|
_this._text = node.text;
|
|
82200
82419
|
if (endIndex) _this._endIndex = endIndex;else _this._endIndex = _this._text.length - 1;
|
|
82201
82420
|
} else {
|
|
@@ -82378,7 +82597,6 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
82378
82597
|
}
|
|
82379
82598
|
}
|
|
82380
82599
|
}
|
|
82381
|
-
// this.setBounds(0, 0, this.dWidth + this._wspace, Math.max(this.dHeight, this._lineheight));
|
|
82382
82600
|
return true;
|
|
82383
82601
|
}
|
|
82384
82602
|
/**
|
|
@@ -82389,9 +82607,7 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
82389
82607
|
value: function drawBackColor() {
|
|
82390
82608
|
var backColor = this._textNode.dCombineStyle.backColor;
|
|
82391
82609
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
82392
|
-
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.Dh.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.Dh.psPrint
|
|
82393
|
-
//&& hoEditorFactory.drawTree.paintStatus !== PaintState.psTrace
|
|
82394
|
-
) {
|
|
82610
|
+
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.Dh.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.Dh.psPrint) {
|
|
82395
82611
|
if (this.node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
82396
82612
|
var parentNode = this.node.parentNode;
|
|
82397
82613
|
if (parentNode.inputFieldType === 0) {
|
|
@@ -82447,7 +82663,6 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
82447
82663
|
}
|
|
82448
82664
|
}
|
|
82449
82665
|
}
|
|
82450
|
-
//hoEditorFactory.isEnabledGlobalColor = true;
|
|
82451
82666
|
if (hoEditorFactory.isEnabledGlobalColor) {
|
|
82452
82667
|
if (!(this.node instanceof MarkNode/* MarkNode */.j) && this.node.parentNode.inputFieldType === 0) {
|
|
82453
82668
|
backColor = "transparent";
|
|
@@ -82459,9 +82674,7 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
82459
82674
|
}
|
|
82460
82675
|
}
|
|
82461
82676
|
var isReviewColor = false;
|
|
82462
|
-
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psReview
|
|
82463
|
-
//|| (hoEditorFactory.drawTree.paintStatus === PaintState.psReadOnly && !hoEditorFactory.isHideComments)
|
|
82464
|
-
|| !hoEditorFactory.isHideComments) {
|
|
82677
|
+
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psReview || !hoEditorFactory.isHideComments) {
|
|
82465
82678
|
var commentID = this._textNode.dCombineStyle.commentID;
|
|
82466
82679
|
var createID = this._textNode.dCombineStyle.creatorIndex;
|
|
82467
82680
|
var deleteID = this._textNode.dCombineStyle.deleterIndex;
|
|
@@ -82476,17 +82689,6 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
82476
82689
|
var createLevel = createHistory ? createHistory.permissionLevel : -1;
|
|
82477
82690
|
var deleteLevel = deleteHistory ? deleteHistory.permissionLevel : -1;
|
|
82478
82691
|
var ilevel = Math.max(comLevel, createLevel, deleteLevel);
|
|
82479
|
-
// if (commentID !== "0") {
|
|
82480
|
-
// backColor = "#ffce7b";
|
|
82481
|
-
// } else if (deleteLevel >= 0) {
|
|
82482
|
-
// backColor = "#f3715c";
|
|
82483
|
-
// } else if (ilevel === 0) {
|
|
82484
|
-
// backColor = "#abc88b";
|
|
82485
|
-
// } else if (ilevel === 1) {
|
|
82486
|
-
// backColor = "#90d7ec";
|
|
82487
|
-
// } else {
|
|
82488
|
-
// backColor = "#f3715c";
|
|
82489
|
-
// }
|
|
82490
82692
|
if (ilevel > 0) {
|
|
82491
82693
|
isReviewColor = true;
|
|
82492
82694
|
}
|
|
@@ -82587,20 +82789,6 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
82587
82789
|
this.addChildAt(markLine, 0);
|
|
82588
82790
|
}
|
|
82589
82791
|
}
|
|
82590
|
-
// const line1 = new createjs.Shape();
|
|
82591
|
-
// line1.graphics.clear();
|
|
82592
|
-
// line1.graphics
|
|
82593
|
-
// .beginStroke("#F31A1A")
|
|
82594
|
-
// .moveTo(x, 1 + 2 * h)
|
|
82595
|
-
// .lineTo(x + w + this._wspace + 1, 1 + 2 * h);
|
|
82596
|
-
// this.addChild(line1);
|
|
82597
|
-
// const line2 = new createjs.Shape();
|
|
82598
|
-
// line2.graphics.clear();
|
|
82599
|
-
// line2.graphics
|
|
82600
|
-
// .beginStroke("#F31A1A")
|
|
82601
|
-
// .moveTo(x, 8 * h)
|
|
82602
|
-
// .lineTo(x + w + this._wspace + 1, 8 * h);
|
|
82603
|
-
// this.addChild(line2);
|
|
82604
82792
|
}
|
|
82605
82793
|
/**
|
|
82606
82794
|
* 下划线
|
|
@@ -82613,13 +82801,8 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
82613
82801
|
if (!this._ul) this._ul = new createjs.Shape();
|
|
82614
82802
|
this._ul.graphics.clear();
|
|
82615
82803
|
this._ul.graphics.beginStroke(this._textNode.dCombineStyle.color).moveTo(0, 0 + 2 * h).lineTo(this.dWidth + this._wspace + 1, 0 + 2 * h);
|
|
82616
|
-
// this._ul.graphics.clear();
|
|
82617
|
-
// this._ul.graphics
|
|
82618
|
-
// .beginFill(this._textNode.dCombineStyle.color) //"black")
|
|
82619
|
-
// .drawRect(0, 0 + 2 * h, this.dWidth + this._wspace + 1, h);
|
|
82620
82804
|
this.addChild(this._ul);
|
|
82621
82805
|
this._ul.x = -1;
|
|
82622
|
-
// srec.y = 2;
|
|
82623
82806
|
}
|
|
82624
82807
|
}
|
|
82625
82808
|
/**
|
|
@@ -82643,14 +82826,9 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
82643
82826
|
key: "updateStyleByScript",
|
|
82644
82827
|
value: function updateStyleByScript() {
|
|
82645
82828
|
var tmp = null;
|
|
82646
|
-
// let rect = null;
|
|
82647
82829
|
if (this._textNode.dCombineStyle.script !== TextStyle/* StyleScriptType */.n$.sstnormal) {
|
|
82648
82830
|
tmp = this._dText.clone();
|
|
82649
82831
|
tmp.font = this.getStyle(this._textNode.dCombineStyle);
|
|
82650
|
-
// console.log(this._dText.getBounds());
|
|
82651
|
-
// console.log(this._wspace, this._dWidth, this._dHeight);
|
|
82652
|
-
// console.log(tmp);
|
|
82653
|
-
// rect = tmp.getBounds(); //实际大小
|
|
82654
82832
|
this.setBounds(0, 0, this._dWidth + this._wspace, this.dHeight);
|
|
82655
82833
|
switch (this._textNode.dCombineStyle.script) {
|
|
82656
82834
|
case TextStyle/* StyleScriptType */.n$.sstsub:
|
|
@@ -82669,20 +82847,34 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
82669
82847
|
}, {
|
|
82670
82848
|
key: "updateBorder",
|
|
82671
82849
|
value: function updateBorder() {
|
|
82850
|
+
var _this2 = this;
|
|
82672
82851
|
if (!this._bd) this._bd = new createjs.Shape();
|
|
82673
|
-
|
|
82674
|
-
|
|
82675
|
-
|
|
82676
|
-
|
|
82677
|
-
|
|
82678
|
-
|
|
82679
|
-
|
|
82680
|
-
|
|
82681
|
-
|
|
82682
|
-
|
|
82683
|
-
|
|
82684
|
-
|
|
82685
|
-
|
|
82852
|
+
var textList = this._textNode.text.split("").filter(function (v) {
|
|
82853
|
+
return v != '';
|
|
82854
|
+
});
|
|
82855
|
+
if (textList.length) {
|
|
82856
|
+
this._bd.graphics.clear();
|
|
82857
|
+
var x = 0;
|
|
82858
|
+
var width = 0;
|
|
82859
|
+
textList.forEach(function (v, i) {
|
|
82860
|
+
var currentWidth = _this2._dText._getMeasuredWidth(v);
|
|
82861
|
+
_this2._bd.graphics.beginStroke(_this2._textNode.dCombineStyle.color).drawRect(x,
|
|
82862
|
+
//x
|
|
82863
|
+
-_this2.dHeight,
|
|
82864
|
+
//y
|
|
82865
|
+
currentWidth, _this2.dHeight);
|
|
82866
|
+
x = currentWidth + x;
|
|
82867
|
+
width += x;
|
|
82868
|
+
});
|
|
82869
|
+
this.dWidth = width;
|
|
82870
|
+
// this.space = 4;
|
|
82871
|
+
this._dText.letterSpacing = this.space;
|
|
82872
|
+
this.setBounds(0, -this.dHeight, this._dWidth, this.dHeight);
|
|
82873
|
+
// this._textNode.dCombineStyle.chineseWidth = this._dWidth;
|
|
82874
|
+
this._dText.x = 0;
|
|
82875
|
+
this._dText.y = 0;
|
|
82876
|
+
this.addChild(this._bd);
|
|
82877
|
+
}
|
|
82686
82878
|
}
|
|
82687
82879
|
/**
|
|
82688
82880
|
* 功能:同getStyleKey()
|
|
@@ -84540,7 +84732,6 @@ var DrawPage = /*#__PURE__*/function () {
|
|
|
84540
84732
|
hoEditorFactory.pageProperty.canvasHeadFootPos.headerY = dhheight;
|
|
84541
84733
|
hoEditorFactory.pageProperty.canvasHeadFootPos.footerY = dfheight;
|
|
84542
84734
|
// }
|
|
84543
|
-
// this.refresh();
|
|
84544
84735
|
}
|
|
84545
84736
|
/**
|
|
84546
84737
|
* 隐藏此页面上的表格边框
|
|
@@ -84816,8 +85007,8 @@ var DrawPageCell = __webpack_require__(59105);
|
|
|
84816
85007
|
var PrintStatus = __webpack_require__(82215);
|
|
84817
85008
|
// EXTERNAL MODULE: ./src/editor/draw/drawArea/DrawPageMainDoc.ts
|
|
84818
85009
|
var DrawPageMainDoc = __webpack_require__(77441);
|
|
84819
|
-
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawTextNode.ts +
|
|
84820
|
-
var DrawTextNode = __webpack_require__(
|
|
85010
|
+
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawTextNode.ts + 1 modules
|
|
85011
|
+
var DrawTextNode = __webpack_require__(24492);
|
|
84821
85012
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TableFormula.ts
|
|
84822
85013
|
var TableFormula = __webpack_require__(90832);
|
|
84823
85014
|
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawSignNode.ts
|
|
@@ -87893,7 +88084,9 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
87893
88084
|
}
|
|
87894
88085
|
pdNode = pdNode.parent;
|
|
87895
88086
|
}
|
|
87896
|
-
|
|
88087
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
88088
|
+
var dLine = hoEditorFactory.docTree.getNodeParaNode(dNode.node).getLastDrawline();
|
|
88089
|
+
return dLine;
|
|
87897
88090
|
// throw new Error(`未找到路径${((dNode as unknown) as DrawInfos).node.getNodePath()}的绘制行`)
|
|
87898
88091
|
}
|
|
87899
88092
|
/**
|
|
@@ -88515,10 +88708,37 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
88515
88708
|
key: "rebuildAllDrawLine",
|
|
88516
88709
|
value: function () {
|
|
88517
88710
|
var _rebuildAllDrawLine = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2(needUpdateParaStyle, resolve) {
|
|
88518
|
-
var
|
|
88711
|
+
var moveCaret,
|
|
88712
|
+
hoEditorFactory,
|
|
88713
|
+
headerDocTree,
|
|
88714
|
+
i,
|
|
88715
|
+
_nodes3,
|
|
88716
|
+
dline,
|
|
88717
|
+
_startPath,
|
|
88718
|
+
_endPath,
|
|
88719
|
+
_cgEvent,
|
|
88720
|
+
footerDocTree,
|
|
88721
|
+
j,
|
|
88722
|
+
_nodes4,
|
|
88723
|
+
_dline4,
|
|
88724
|
+
_startPath2,
|
|
88725
|
+
_endPath2,
|
|
88726
|
+
_cgEvent2,
|
|
88727
|
+
nodes,
|
|
88728
|
+
_dline5,
|
|
88729
|
+
startPath,
|
|
88730
|
+
endPath,
|
|
88731
|
+
lastNode,
|
|
88732
|
+
lastNodeStyle,
|
|
88733
|
+
newParaNode,
|
|
88734
|
+
cgEvent,
|
|
88735
|
+
lastPath,
|
|
88736
|
+
selChangeEvent,
|
|
88737
|
+
_args3 = arguments;
|
|
88519
88738
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context3) {
|
|
88520
88739
|
while (1) switch (_context3.prev = _context3.next) {
|
|
88521
88740
|
case 0:
|
|
88741
|
+
moveCaret = _args3.length > 2 && _args3[2] !== undefined ? _args3[2] : true;
|
|
88522
88742
|
// HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawPageTree.clear;
|
|
88523
88743
|
// HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawPageTree.initDoc();
|
|
88524
88744
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
@@ -88531,14 +88751,14 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
88531
88751
|
}
|
|
88532
88752
|
headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
|
|
88533
88753
|
i = 0;
|
|
88534
|
-
case
|
|
88754
|
+
case 5:
|
|
88535
88755
|
if (!(i < headerDocTree.length)) {
|
|
88536
|
-
_context3.next =
|
|
88756
|
+
_context3.next = 21;
|
|
88537
88757
|
break;
|
|
88538
88758
|
}
|
|
88539
88759
|
_nodes3 = headerDocTree[i].subDocNodes;
|
|
88540
88760
|
if (!(_nodes3 && _nodes3.length > 0)) {
|
|
88541
|
-
_context3.next =
|
|
88761
|
+
_context3.next = 18;
|
|
88542
88762
|
break;
|
|
88543
88763
|
}
|
|
88544
88764
|
if (this._headerChildNodes[i].length > 0) {
|
|
@@ -88551,27 +88771,27 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
88551
88771
|
_cgEvent.needUpdateParaStyle = needUpdateParaStyle;
|
|
88552
88772
|
_cgEvent.oldEndPath = _endPath;
|
|
88553
88773
|
_cgEvent.oldDrawLines = new SelectRange/* SelectRange */.E(this._hoEditorFactoryID).getRangeDrawLines(_startPath, _endPath, true, true);
|
|
88554
|
-
_context3.next =
|
|
88774
|
+
_context3.next = 17;
|
|
88555
88775
|
return hoEditorFactory.docTree.change(_cgEvent);
|
|
88556
|
-
case
|
|
88776
|
+
case 17:
|
|
88557
88777
|
if (i <= hoEditorFactory.drawTree.drawPages.length - 1) {
|
|
88558
88778
|
hoEditorFactory.subDocManger.updateAllSameSubDoc(i, SubDocManger/* HeaderFooterType */.pi.hftHead, false, true);
|
|
88559
88779
|
}
|
|
88560
|
-
case
|
|
88780
|
+
case 18:
|
|
88561
88781
|
i++;
|
|
88562
|
-
_context3.next =
|
|
88782
|
+
_context3.next = 5;
|
|
88563
88783
|
break;
|
|
88564
|
-
case
|
|
88784
|
+
case 21:
|
|
88565
88785
|
footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
|
|
88566
88786
|
j = 0;
|
|
88567
|
-
case
|
|
88787
|
+
case 23:
|
|
88568
88788
|
if (!(j < footerDocTree.length)) {
|
|
88569
|
-
_context3.next =
|
|
88789
|
+
_context3.next = 39;
|
|
88570
88790
|
break;
|
|
88571
88791
|
}
|
|
88572
88792
|
_nodes4 = footerDocTree[j].subDocNodes;
|
|
88573
88793
|
if (!(_nodes4 && _nodes4.length > 0)) {
|
|
88574
|
-
_context3.next =
|
|
88794
|
+
_context3.next = 36;
|
|
88575
88795
|
break;
|
|
88576
88796
|
}
|
|
88577
88797
|
if (this._footerChildNodes[j].length > 0) {
|
|
@@ -88584,17 +88804,17 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
88584
88804
|
_cgEvent2.oldEndPath = _endPath2;
|
|
88585
88805
|
_cgEvent2.needUpdateParaStyle = needUpdateParaStyle;
|
|
88586
88806
|
_cgEvent2.oldDrawLines = new SelectRange/* SelectRange */.E(this._hoEditorFactoryID).getRangeDrawLines(_startPath2, _endPath2, true, true);
|
|
88587
|
-
_context3.next =
|
|
88807
|
+
_context3.next = 35;
|
|
88588
88808
|
return hoEditorFactory.docTree.change(_cgEvent2);
|
|
88589
|
-
case
|
|
88809
|
+
case 35:
|
|
88590
88810
|
if (j <= hoEditorFactory.drawTree.drawPages.length - 1) {
|
|
88591
88811
|
hoEditorFactory.subDocManger.updateAllSameSubDoc(j, SubDocManger/* HeaderFooterType */.pi.hftFoot, false, true);
|
|
88592
88812
|
}
|
|
88593
|
-
case
|
|
88813
|
+
case 36:
|
|
88594
88814
|
j++;
|
|
88595
|
-
_context3.next =
|
|
88815
|
+
_context3.next = 23;
|
|
88596
88816
|
break;
|
|
88597
|
-
case
|
|
88817
|
+
case 39:
|
|
88598
88818
|
nodes = hoEditorFactory.docTree.mainNodes;
|
|
88599
88819
|
if (this._mainChildNodes.length > 0) {
|
|
88600
88820
|
_dline5 = this._mainChildNodes[0];
|
|
@@ -88615,16 +88835,20 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
88615
88835
|
cgEvent.oldEndPath = endPath;
|
|
88616
88836
|
cgEvent.needUpdateParaStyle = needUpdateParaStyle;
|
|
88617
88837
|
cgEvent.oldDrawLines = new SelectRange/* SelectRange */.E(this._hoEditorFactoryID).getRangeDrawLines(startPath, endPath, true, true);
|
|
88618
|
-
_context3.next =
|
|
88838
|
+
_context3.next = 51;
|
|
88619
88839
|
return hoEditorFactory.docTree.change(cgEvent);
|
|
88620
|
-
case
|
|
88621
|
-
if (hoEditorFactory.docTree.curDomRange.startPath != "")
|
|
88840
|
+
case 51:
|
|
88841
|
+
if (hoEditorFactory.docTree.curDomRange.startPath != "") {
|
|
88842
|
+
if (moveCaret) {
|
|
88843
|
+
this.moveCaretToPath(hoEditorFactory.docTree.curDomRange.startPath);
|
|
88844
|
+
}
|
|
88845
|
+
} else {
|
|
88622
88846
|
lastPath = hoEditorFactory.docTree.getNodeLastPath(hoEditorFactory.docTree.mainNodes[hoEditorFactory.docTree.mainNodes.length - 1]);
|
|
88623
88847
|
selChangeEvent = new SelectionChangeEvent/* SelectionChangeEvent */.r(hoEditorFactory.docTree.curDomRange, new DomRange/* DomRange */.a(this._hoEditorFactoryID, lastPath, lastPath));
|
|
88624
88848
|
hoEditorFactory.docTree.selectChange(selChangeEvent);
|
|
88625
88849
|
}
|
|
88626
88850
|
resolve && resolve(true);
|
|
88627
|
-
case
|
|
88851
|
+
case 53:
|
|
88628
88852
|
case "end":
|
|
88629
88853
|
return _context3.stop();
|
|
88630
88854
|
}
|
|
@@ -169999,7 +170223,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
169999
170223
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
170000
170224
|
|
|
170001
170225
|
var map = {
|
|
170002
|
-
"./ControlModal.vue":
|
|
170226
|
+
"./ControlModal.vue": 10597,
|
|
170003
170227
|
"./barCode/BarCodes.vue": 39411,
|
|
170004
170228
|
"./colorPicker/HoColorPicker.vue": 10306,
|
|
170005
170229
|
"./colorPicker/HoColorPickers.vue": 98181,
|
|
@@ -170017,7 +170241,7 @@ var map = {
|
|
|
170017
170241
|
"./pageInfoes/PageInfoes.vue": 99749,
|
|
170018
170242
|
"./paragraph/ParagraphDialog.vue": 58874,
|
|
170019
170243
|
"./poperSelect/PoperMark.vue": 20734,
|
|
170020
|
-
"./poperSelect/PoperSelect.vue":
|
|
170244
|
+
"./poperSelect/PoperSelect.vue": 40769,
|
|
170021
170245
|
"./poperTipText/PoperTipText.vue": 84531,
|
|
170022
170246
|
"./popers/Poper.vue": 57937,
|
|
170023
170247
|
"./popers/Title.vue": 31276,
|
|
@@ -170036,6 +170260,7 @@ var map = {
|
|
|
170036
170260
|
"./table/TableFormula.vue": 80199,
|
|
170037
170261
|
"./table/TableProperty.vue": 98800,
|
|
170038
170262
|
"./table/TableRowProperty.vue": 55631,
|
|
170263
|
+
"./textDialog/TextBorderDialog.vue": 68035,
|
|
170039
170264
|
"./textDialog/TextDialog.vue": 61911,
|
|
170040
170265
|
"./textDialog/TextToLabelDialog.vue": 2355,
|
|
170041
170266
|
"./textDialog/VerifyTip.vue": 74618,
|
|
@@ -207474,8 +207699,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
207474
207699
|
var es_number_constructor = __webpack_require__(9653);
|
|
207475
207700
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
207476
207701
|
var es_json_stringify = __webpack_require__(38862);
|
|
207477
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=
|
|
207478
|
-
var
|
|
207702
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=57443432&
|
|
207703
|
+
var HoDocvue_type_template_id_57443432_render = function render() {
|
|
207479
207704
|
var _vm = this,
|
|
207480
207705
|
_c = _vm._self._c;
|
|
207481
207706
|
return _c('div', {
|
|
@@ -207676,7 +207901,7 @@ var HoDocvue_type_template_id_90411248_render = function render() {
|
|
|
207676
207901
|
}
|
|
207677
207902
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
207678
207903
|
};
|
|
207679
|
-
var
|
|
207904
|
+
var HoDocvue_type_template_id_57443432_staticRenderFns = [];
|
|
207680
207905
|
|
|
207681
207906
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
207682
207907
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -208133,7 +208358,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
208133
208358
|
hoEditorFactory.docTree.selectChange(selectChangeEvent);
|
|
208134
208359
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
208135
208360
|
}
|
|
208136
|
-
if (!(np.node.nodeType === BaseNode/* NodeType */.Jq.ntMedicalExpression || np.node.nodeType === BaseNode/* NodeType */.Jq.ntControl && !(np.node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh) || ((_np$node$parentNode = np.node.parentNode) === null || _np$node$parentNode === void 0 ? void 0 : _np$node$parentNode.nodeType) === BaseNode/* NodeType */.Jq.ntField || np.node.nodeType === BaseNode/* NodeType */.Jq.ntSign || np.node.nodeType === BaseNode/* NodeType */.Jq.ntGestation || np.node.nodeType === BaseNode/* NodeType */.Jq.ntImage)) {
|
|
208361
|
+
if (!(np.node.nodeType === BaseNode/* NodeType */.Jq.ntMedicalExpression || np.node.nodeType === BaseNode/* NodeType */.Jq.ntControl && !(np.node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh) || ((_np$node$parentNode = np.node.parentNode) === null || _np$node$parentNode === void 0 ? void 0 : _np$node$parentNode.nodeType) === BaseNode/* NodeType */.Jq.ntField || np.node.nodeType === BaseNode/* NodeType */.Jq.ntSign || np.node.nodeType === BaseNode/* NodeType */.Jq.ntGestation || np.node.nodeType === BaseNode/* NodeType */.Jq.ntImage || np.node.nodeType === BaseNode/* NodeType */.Jq.ntTextBorder)) {
|
|
208137
208362
|
_context.next = 39;
|
|
208138
208363
|
break;
|
|
208139
208364
|
}
|
|
@@ -209262,7 +209487,7 @@ var HoToPage_component = (0,componentNormalizer/* default */.Z)(
|
|
|
209262
209487
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
209263
209488
|
var plugins_util = __webpack_require__(62783);
|
|
209264
209489
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 9 modules
|
|
209265
|
-
var PoperSelect = __webpack_require__(
|
|
209490
|
+
var PoperSelect = __webpack_require__(40769);
|
|
209266
209491
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
|
|
209267
209492
|
var PoperMark = __webpack_require__(20734);
|
|
209268
209493
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
|
|
@@ -210667,7 +210892,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
210667
210892
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
210668
210893
|
var ParagraphNode = __webpack_require__(67945);
|
|
210669
210894
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
210670
|
-
/* harmony default export */ var version = ('3.1.
|
|
210895
|
+
/* harmony default export */ var version = ('3.1.156');
|
|
210671
210896
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
210672
210897
|
var PoperTipText = __webpack_require__(84531);
|
|
210673
210898
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -210677,6 +210902,8 @@ var PoperTipText = __webpack_require__(84531);
|
|
|
210677
210902
|
var ImageNode = __webpack_require__(97186);
|
|
210678
210903
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TableNode.ts
|
|
210679
210904
|
var TableNode = __webpack_require__(5010);
|
|
210905
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TextBorderNode.ts + 1 modules
|
|
210906
|
+
var TextBorderNode = __webpack_require__(11596);
|
|
210680
210907
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
210681
210908
|
|
|
210682
210909
|
|
|
@@ -210716,6 +210943,7 @@ var TableNode = __webpack_require__(5010);
|
|
|
210716
210943
|
|
|
210717
210944
|
|
|
210718
210945
|
|
|
210946
|
+
|
|
210719
210947
|
|
|
210720
210948
|
|
|
210721
210949
|
var scaleXY = DrawConfig/* DrawConfig */.f.instance().scale;
|
|
@@ -211193,6 +211421,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
211193
211421
|
});
|
|
211194
211422
|
this.poperType = '';
|
|
211195
211423
|
return;
|
|
211424
|
+
} else if (node instanceof TextBorderNode/* TextBorderNode */.D) {
|
|
211425
|
+
this.hoEditorProvider.setControlProperty('text-border', 'update', '');
|
|
211426
|
+
this.hoEditorProvider.setUpdateNodeValue(node);
|
|
211427
|
+
return;
|
|
211196
211428
|
} else {
|
|
211197
211429
|
if (paintStatus === DrawTree/* PaintState */.Dh.psReview) {
|
|
211198
211430
|
if ((node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j) && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
@@ -211706,10 +211938,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
211706
211938
|
});
|
|
211707
211939
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
211708
211940
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
211709
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
211941
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=57443432&prod&lang=less&
|
|
211710
211942
|
// extracted by mini-css-extract-plugin
|
|
211711
211943
|
|
|
211712
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
211944
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=57443432&prod&lang=less&
|
|
211713
211945
|
|
|
211714
211946
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
211715
211947
|
|
|
@@ -211722,8 +211954,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
211722
211954
|
|
|
211723
211955
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
211724
211956
|
components_HoDocvue_type_script_lang_js_,
|
|
211725
|
-
|
|
211726
|
-
|
|
211957
|
+
HoDocvue_type_template_id_57443432_render,
|
|
211958
|
+
HoDocvue_type_template_id_57443432_staticRenderFns,
|
|
211727
211959
|
false,
|
|
211728
211960
|
null,
|
|
211729
211961
|
null,
|
|
@@ -212805,7 +213037,6 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
212805
213037
|
// )
|
|
212806
213038
|
// );
|
|
212807
213039
|
// }
|
|
212808
|
-
// this.refresh();
|
|
212809
213040
|
}
|
|
212810
213041
|
}, {
|
|
212811
213042
|
key: "getMainRootArea",
|
|
@@ -212981,9 +213212,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
212981
213212
|
// dPage.storeDrawHeader.dWidth = widthPixes;
|
|
212982
213213
|
// dPage.storeDrawHeader.maxWidth = widthPixes;
|
|
212983
213214
|
dPage.storeDrawHeader.docWidth = docWidth;
|
|
212984
|
-
// dPage.reFreshBounds();
|
|
212985
213215
|
}
|
|
212986
|
-
|
|
212987
213216
|
for (var _i3 = 0; _i3 < this._drawMainDocs.length; _i3++) {
|
|
212988
213217
|
var _area2 = this._drawMainDocs[_i3];
|
|
212989
213218
|
// area.dWidth = widthPixes;
|
|
@@ -214863,6 +215092,7 @@ var PopQScoreNode = __webpack_require__(12790);
|
|
|
214863
215092
|
|
|
214864
215093
|
|
|
214865
215094
|
|
|
215095
|
+
|
|
214866
215096
|
|
|
214867
215097
|
|
|
214868
215098
|
var StructureConvert = /*#__PURE__*/function () {
|
|
@@ -216634,6 +216864,8 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
216634
216864
|
return SeparateCharNode/* SeparateCharNode */.O.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
216635
216865
|
} else if (temp.nodeType == BaseNode/* NodeType */.Jq.ntLabel) {
|
|
216636
216866
|
return LabelNode/* LabelNode */.P.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
216867
|
+
} else if (temp.nodeType == BaseNode/* NodeType */.Jq.ntTextBorder) {
|
|
216868
|
+
return TextBorderNode/* TextBorderNode */.D.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
216637
216869
|
} else if (temp.nodeType == BaseNode/* NodeType */.Jq.ntSign) {
|
|
216638
216870
|
return SignNode/* SignNode */.N.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isClearSign, isPaste);
|
|
216639
216871
|
} else if (temp.nodeType == BaseNode/* NodeType */.Jq.ntGestation) {
|
|
@@ -220235,7 +220467,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220235
220467
|
}
|
|
220236
220468
|
}
|
|
220237
220469
|
/**
|
|
220238
|
-
*
|
|
220470
|
+
* 插入生僻字
|
|
220239
220471
|
* @param operType 操作类型 "add"新增
|
|
220240
220472
|
* @param chars 字符
|
|
220241
220473
|
*/
|
|
@@ -220254,6 +220486,25 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220254
220486
|
}
|
|
220255
220487
|
}
|
|
220256
220488
|
}
|
|
220489
|
+
/**
|
|
220490
|
+
* 设置文本框元素
|
|
220491
|
+
* @param text 文本内容
|
|
220492
|
+
*/
|
|
220493
|
+
}, {
|
|
220494
|
+
key: "insertTextBorder",
|
|
220495
|
+
value: function insertTextBorder(text) {
|
|
220496
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220497
|
+
var result = hoEditorFactory.editController.canIsEdit(hoEditorFactory);
|
|
220498
|
+
if (result) {
|
|
220499
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
220500
|
+
var startPath = _curDomRange.normalize().startPath;
|
|
220501
|
+
var endPath = _curDomRange.normalize().endPath;
|
|
220502
|
+
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.insertRareChar);
|
|
220503
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
220504
|
+
hoEditorFactory.docController.insertTextBorder('add', _curDomRange, text, hoEditorFactory.docTree.curStyleIndex);
|
|
220505
|
+
}
|
|
220506
|
+
}
|
|
220507
|
+
}
|
|
220257
220508
|
/**
|
|
220258
220509
|
* 插入链接按钮
|
|
220259
220510
|
* @param operType 操作类型 "add"新增
|
|
@@ -238231,6 +238482,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
238231
238482
|
}
|
|
238232
238483
|
return _context3.abrupt("return");
|
|
238233
238484
|
case 2:
|
|
238485
|
+
console.time('create_base64_all_time');
|
|
238234
238486
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID); // 保存打印前文档状态 和 内容
|
|
238235
238487
|
path = hoEditorFactory.docTree.curDomRange.normalize().endPath;
|
|
238236
238488
|
beforePrintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
@@ -238247,23 +238499,25 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
238247
238499
|
this.PDF = null;
|
|
238248
238500
|
this.PDF = new jspdf(options);
|
|
238249
238501
|
hPromise = Promise.resolve();
|
|
238502
|
+
console.time("rebuild_time");
|
|
238250
238503
|
hPromise = hPromise.then(function () {
|
|
238251
238504
|
return new Promise(function (resolve) {
|
|
238252
238505
|
hoEditorFactory.printStatus.printMode = 0;
|
|
238253
238506
|
hoEditorFactory.drawTree.paintStatus = DrawTree/* PaintState */.Dh.psPreview;
|
|
238254
|
-
hoEditorFactory.drawTree.rebuildAllDrawLine(false, resolve);
|
|
238507
|
+
hoEditorFactory.drawTree.rebuildAllDrawLine(false, resolve, false);
|
|
238255
238508
|
});
|
|
238256
238509
|
});
|
|
238510
|
+
console.timeEnd("rebuild_time");
|
|
238511
|
+
console.time("create_time");
|
|
238257
238512
|
hPromise = hPromise.then(function () {
|
|
238258
238513
|
return new Promise(function (resolve) {
|
|
238259
238514
|
PrintStatus/* Print */.Kh.createPDFBase64(_this2._hoEditorFactoryID, resolve, _this2.PDF);
|
|
238260
238515
|
});
|
|
238261
238516
|
});
|
|
238262
|
-
_context3.next =
|
|
238517
|
+
_context3.next = 20;
|
|
238263
238518
|
return hPromise.then(function (pageNumber) {
|
|
238264
|
-
//
|
|
238265
|
-
hoEditorFactory.
|
|
238266
|
-
hoEditorFactory.vueController.openXml(xml);
|
|
238519
|
+
// hoEditorFactory.drawTree.paintStatus = beforePrintStatus;
|
|
238520
|
+
// hoEditorFactory.vueController.openXml(xml);
|
|
238267
238521
|
// this.PDF.deletePage(1);
|
|
238268
238522
|
var otherPageNumber = _this2.PDF.internal.getNumberOfPages() - pageNumber;
|
|
238269
238523
|
if (otherPageNumber >= 2) {
|
|
@@ -238284,6 +238538,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
238284
238538
|
} else {
|
|
238285
238539
|
pdf = _this2.PDF.output('datauristring');
|
|
238286
238540
|
}
|
|
238541
|
+
console.timeEnd("create_time");
|
|
238287
238542
|
if (callback) {
|
|
238288
238543
|
callback && callback({
|
|
238289
238544
|
page: pageNumber,
|
|
@@ -238293,26 +238548,31 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
238293
238548
|
resolves(pdf);
|
|
238294
238549
|
});
|
|
238295
238550
|
});
|
|
238296
|
-
case
|
|
238551
|
+
case 20:
|
|
238297
238552
|
base64 = _context3.sent;
|
|
238298
238553
|
if (!base64) {
|
|
238299
|
-
_context3.next =
|
|
238554
|
+
_context3.next = 29;
|
|
238300
238555
|
break;
|
|
238301
238556
|
}
|
|
238302
238557
|
setTimeout(function () {
|
|
238558
|
+
console.time('restore_time');
|
|
238559
|
+
hoEditorFactory.drawTree.paintStatus = beforePrintStatus;
|
|
238560
|
+
hoEditorFactory.vueController.openXml(xml);
|
|
238303
238561
|
hoEditorFactory.vueController.moveCaretToPath(path);
|
|
238562
|
+
console.timeEnd('restore_time');
|
|
238304
238563
|
_this2.clearJsPDF();
|
|
238305
238564
|
}, 0);
|
|
238565
|
+
console.timeEnd('create_base64_all_time');
|
|
238306
238566
|
if (!(pdfPath == 'url')) {
|
|
238307
|
-
_context3.next =
|
|
238567
|
+
_context3.next = 28;
|
|
238308
238568
|
break;
|
|
238309
238569
|
}
|
|
238310
238570
|
return _context3.abrupt("return", base64);
|
|
238311
|
-
case
|
|
238571
|
+
case 28:
|
|
238312
238572
|
return _context3.abrupt("return", base64.replace(/^data:application\/pdf;filename=generated.pdf;base64,/, ''));
|
|
238313
|
-
case
|
|
238573
|
+
case 29:
|
|
238314
238574
|
return _context3.abrupt("return", null);
|
|
238315
|
-
case
|
|
238575
|
+
case 30:
|
|
238316
238576
|
case "end":
|
|
238317
238577
|
return _context3.stop();
|
|
238318
238578
|
}
|
|
@@ -241382,7 +241642,7 @@ var HoFooter_component = (0,componentNormalizer/* default */.Z)(
|
|
|
241382
241642
|
|
|
241383
241643
|
/* harmony default export */ var HoFooter = (HoFooter_component.exports);
|
|
241384
241644
|
// EXTERNAL MODULE: ./src/components/controls/ControlModal.vue + 3 modules
|
|
241385
|
-
var ControlModal = __webpack_require__(
|
|
241645
|
+
var ControlModal = __webpack_require__(10597);
|
|
241386
241646
|
// EXTERNAL MODULE: ./src/components/controls/findReplace/FindReplace.vue + 5 modules
|
|
241387
241647
|
var FindReplace = __webpack_require__(98064);
|
|
241388
241648
|
;// CONCATENATED MODULE: ./src/components/controls/findReplace/index.ts
|
|
@@ -242543,8 +242803,8 @@ var HoDocs_component = (0,componentNormalizer/* default */.Z)(
|
|
|
242543
242803
|
)
|
|
242544
242804
|
|
|
242545
242805
|
/* harmony default export */ var HoDocs = (HoDocs_component.exports);
|
|
242546
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=template&id=
|
|
242547
|
-
var
|
|
242806
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=template&id=595248f8&
|
|
242807
|
+
var ToolBarvue_type_template_id_595248f8_render = function render() {
|
|
242548
242808
|
var _vm = this,
|
|
242549
242809
|
_c = _vm._self._c;
|
|
242550
242810
|
return _c('div', {
|
|
@@ -242777,7 +243037,7 @@ var ToolBarvue_type_template_id_2bbec870_render = function render() {
|
|
|
242777
243037
|
}, [_vm._v(_vm._s(item.title))]);
|
|
242778
243038
|
}), 1)], 1) : _vm._e()], 1);
|
|
242779
243039
|
};
|
|
242780
|
-
var
|
|
243040
|
+
var ToolBarvue_type_template_id_595248f8_staticRenderFns = [];
|
|
242781
243041
|
|
|
242782
243042
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoMedicalExpression.vue?vue&type=template&id=079ade04&
|
|
242783
243043
|
var HoMedicalExpressionvue_type_template_id_079ade04_render = function render() {
|
|
@@ -245129,8 +245389,8 @@ var ToolBarChild_component = (0,componentNormalizer/* default */.Z)(
|
|
|
245129
245389
|
)
|
|
245130
245390
|
|
|
245131
245391
|
/* harmony default export */ var ToolBarChild = (ToolBarChild_component.exports);
|
|
245132
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/ToolControl.vue?vue&type=template&id=
|
|
245133
|
-
var
|
|
245392
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/ToolControl.vue?vue&type=template&id=2edb7b26&
|
|
245393
|
+
var ToolControlvue_type_template_id_2edb7b26_render = function render() {
|
|
245134
245394
|
var _vm = this,
|
|
245135
245395
|
_c = _vm._self._c;
|
|
245136
245396
|
return _c('div', {
|
|
@@ -245381,7 +245641,14 @@ var ToolControlvue_type_template_id_5eea3dcd_render = function render() {
|
|
|
245381
245641
|
attrs: {
|
|
245382
245642
|
"d": "M761.417143 282.331429L416.182857 628.297143 223.817143 438.857143A58.514286 58.514286 0 0 0 146.285714 438.857143a58.514286 58.514286 0 0 0 0 73.142857l230.4 230.4a90.697143 90.697143 0 0 0 38.765715 13.165714 67.291429 67.291429 0 0 0 38.034285-13.165714l384-384a47.542857 47.542857 0 0 0 0-76.8 58.514286 58.514286 0 0 0-76.068571 0.731429z"
|
|
245383
245643
|
}
|
|
245384
|
-
})]), _c('span', [_vm._v("复选框")])]) : _vm._e(), _vm.insert.
|
|
245644
|
+
})]), _c('span', [_vm._v("复选框")])]) : _vm._e(), _vm.insert.textBorder ? _c('div', {
|
|
245645
|
+
staticClass: "ho-emr-tool-item",
|
|
245646
|
+
on: {
|
|
245647
|
+
"click": function click($event) {
|
|
245648
|
+
return _vm.createControl('text-border');
|
|
245649
|
+
}
|
|
245650
|
+
}
|
|
245651
|
+
}, [_c('span', [_vm._v("文本框")])]) : _vm._e(), _vm.insert.rareword ? _c('div', {
|
|
245385
245652
|
staticClass: "ho-emr-tool-item",
|
|
245386
245653
|
on: {
|
|
245387
245654
|
"click": _vm.createRarewords
|
|
@@ -245428,7 +245695,7 @@ var ToolControlvue_type_template_id_5eea3dcd_render = function render() {
|
|
|
245428
245695
|
}
|
|
245429
245696
|
}, [_c('span', [_vm._v("特殊字符")])]) : _vm._e()], 2);
|
|
245430
245697
|
};
|
|
245431
|
-
var
|
|
245698
|
+
var ToolControlvue_type_template_id_2edb7b26_staticRenderFns = [];
|
|
245432
245699
|
|
|
245433
245700
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoDateTime.vue?vue&type=template&id=6b089050&
|
|
245434
245701
|
var HoDateTimevue_type_template_id_6b089050_render = function render() {
|
|
@@ -245759,8 +246026,8 @@ var ajax = __webpack_require__(79969);
|
|
|
245759
246026
|
;
|
|
245760
246027
|
var ToolControl_component = (0,componentNormalizer/* default */.Z)(
|
|
245761
246028
|
insert_ToolControlvue_type_script_lang_js_,
|
|
245762
|
-
|
|
245763
|
-
|
|
246029
|
+
ToolControlvue_type_template_id_2edb7b26_render,
|
|
246030
|
+
ToolControlvue_type_template_id_2edb7b26_staticRenderFns,
|
|
245764
246031
|
false,
|
|
245765
246032
|
null,
|
|
245766
246033
|
null,
|
|
@@ -246689,6 +246956,8 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
|
246689
246956
|
// 特殊字符
|
|
246690
246957
|
gestation: true,
|
|
246691
246958
|
// 孕周
|
|
246959
|
+
textBorder: true,
|
|
246960
|
+
// 文本框
|
|
246692
246961
|
rareword: true,
|
|
246693
246962
|
// 生僻字
|
|
246694
246963
|
link: true,
|
|
@@ -247169,10 +247438,10 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
|
247169
247438
|
});
|
|
247170
247439
|
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=script&lang=js&
|
|
247171
247440
|
/* harmony default export */ var toolbar_ToolBarvue_type_script_lang_js_ = (ToolBarvue_type_script_lang_js_);
|
|
247172
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=
|
|
247441
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=595248f8&prod&lang=less&
|
|
247173
247442
|
// extracted by mini-css-extract-plugin
|
|
247174
247443
|
|
|
247175
|
-
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=
|
|
247444
|
+
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=595248f8&prod&lang=less&
|
|
247176
247445
|
|
|
247177
247446
|
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue
|
|
247178
247447
|
|
|
@@ -247185,8 +247454,8 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
|
247185
247454
|
|
|
247186
247455
|
var ToolBar_component = (0,componentNormalizer/* default */.Z)(
|
|
247187
247456
|
toolbar_ToolBarvue_type_script_lang_js_,
|
|
247188
|
-
|
|
247189
|
-
|
|
247457
|
+
ToolBarvue_type_template_id_595248f8_render,
|
|
247458
|
+
ToolBarvue_type_template_id_595248f8_staticRenderFns,
|
|
247190
247459
|
false,
|
|
247191
247460
|
null,
|
|
247192
247461
|
null,
|
|
@@ -248483,6 +248752,7 @@ var HoRightMenu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
248483
248752
|
|
|
248484
248753
|
|
|
248485
248754
|
|
|
248755
|
+
|
|
248486
248756
|
|
|
248487
248757
|
|
|
248488
248758
|
/* harmony default export */ var HoDefaultProvidervue_type_script_lang_js_ = ({
|
|
@@ -248660,6 +248930,8 @@ var HoRightMenu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
248660
248930
|
}
|
|
248661
248931
|
} else if (node instanceof LabelNode/* LabelNode */.P) {
|
|
248662
248932
|
this.rightType = 'label';
|
|
248933
|
+
} else if (node instanceof TextBorderNode/* TextBorderNode */.D) {
|
|
248934
|
+
this.rightType = 'text-border';
|
|
248663
248935
|
} else if (node instanceof SignNode/* SignNode */.N) {
|
|
248664
248936
|
this.rightType = 'sign';
|
|
248665
248937
|
} else if (node instanceof SeparateCharNode/* SeparateCharNode */.O) {
|
|
@@ -248727,11 +248999,13 @@ var HoRightMenu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
248727
248999
|
}
|
|
248728
249000
|
},
|
|
248729
249001
|
getCurrentSelectNode: function getCurrentSelectNode() {
|
|
248730
|
-
var _hoEditorFactory$docT;
|
|
248731
|
-
var value;
|
|
249002
|
+
var _hoEditorFactory$docT, _hoEditorFactory$docT2;
|
|
249003
|
+
var value = null;
|
|
248732
249004
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.activeDocId);
|
|
248733
249005
|
var startPos = hoEditorFactory.drawTree.selectRange.spStart;
|
|
249006
|
+
var endPos = hoEditorFactory.drawTree.selectRange.spEnd;
|
|
248734
249007
|
var node = (_hoEditorFactory$docT = hoEditorFactory.docTree.findNodePositionByPath(startPos.path)) === null || _hoEditorFactory$docT === void 0 ? void 0 : _hoEditorFactory$docT.node;
|
|
249008
|
+
var endNode = (_hoEditorFactory$docT2 = hoEditorFactory.docTree.findNodePositionByPath(endPos.path)) === null || _hoEditorFactory$docT2 === void 0 ? void 0 : _hoEditorFactory$docT2.node;
|
|
248735
249009
|
if (node instanceof MarkNode/* MarkNode */.j || node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
248736
249010
|
var parentNode = node.parentNode;
|
|
248737
249011
|
if (parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
@@ -248748,7 +249022,9 @@ var HoRightMenu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
248748
249022
|
}
|
|
248749
249023
|
} else if (node instanceof ParagraphNode/* ParagraphNode */.C && node.parentNode instanceof CellNode/* CellNode */.D) {
|
|
248750
249024
|
value = node.parentNode;
|
|
248751
|
-
} else if (node instanceof
|
|
249025
|
+
} else if (node instanceof ParagraphNode/* ParagraphNode */.C && endNode instanceof TextBorderNode/* TextBorderNode */.D) {
|
|
249026
|
+
value = endNode;
|
|
249027
|
+
} else if (node instanceof DateTimeNode/* DateTimeNode */.Z || node instanceof DownListNode/* DownListNode */.yF || node instanceof BarcodeNode/* BarcodeNode */.T || node instanceof QrcodeNode/* QrcodeNode */.d || node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh || node instanceof ImageNode/* ImageNode */.H || node instanceof LabelNode/* LabelNode */.P || node instanceof TextBorderNode/* TextBorderNode */.D || node instanceof SignNode/* SignNode */.N || node instanceof SeparateCharNode/* SeparateCharNode */.O || node instanceof TableFormula/* TableFormula */.N) {
|
|
248752
249028
|
value = node;
|
|
248753
249029
|
}
|
|
248754
249030
|
return value;
|