hoeditor-web 3.0.28 → 3.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hoeditor.umd.js +557 -513
- package/lib/hoeditor.umd.min.js +40 -40
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -9076,7 +9076,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
9076
9076
|
|
|
9077
9077
|
/***/ }),
|
|
9078
9078
|
|
|
9079
|
-
/***/
|
|
9079
|
+
/***/ 62807:
|
|
9080
9080
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
9081
9081
|
|
|
9082
9082
|
"use strict";
|
|
@@ -9096,7 +9096,7 @@ var es_string_includes = __webpack_require__(32023);
|
|
|
9096
9096
|
var es_regexp_exec = __webpack_require__(74916);
|
|
9097
9097
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
9098
9098
|
var es_string_replace = __webpack_require__(15306);
|
|
9099
|
-
;// 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=
|
|
9099
|
+
;// 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=2130532e&
|
|
9100
9100
|
|
|
9101
9101
|
|
|
9102
9102
|
|
|
@@ -9477,7 +9477,7 @@ var render = function render() {
|
|
|
9477
9477
|
};
|
|
9478
9478
|
var staticRenderFns = [];
|
|
9479
9479
|
|
|
9480
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
9480
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=2130532e&
|
|
9481
9481
|
|
|
9482
9482
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
9483
9483
|
var toConsumableArray = __webpack_require__(61748);
|
|
@@ -11759,15 +11759,22 @@ var type = __webpack_require__(41542);
|
|
|
11759
11759
|
sureDate: function sureDate() {
|
|
11760
11760
|
var node = this.getCurrentPoperNode();
|
|
11761
11761
|
var value = '';
|
|
11762
|
+
if (this.date == null) {
|
|
11763
|
+
this.date = '';
|
|
11764
|
+
}
|
|
11765
|
+
if (this.time == null) {
|
|
11766
|
+
this.time = '';
|
|
11767
|
+
}
|
|
11762
11768
|
if (node.controlStyle.includes('mm') && node.controlStyle.includes(' ')) {
|
|
11763
11769
|
value = this.date + ' ' + this.time;
|
|
11764
11770
|
} else {
|
|
11765
11771
|
value = this.date;
|
|
11766
11772
|
}
|
|
11773
|
+
value = value.replace(/^\s+|\s+$/g, '');
|
|
11767
11774
|
var params = {
|
|
11768
11775
|
id: node.id,
|
|
11769
11776
|
name: node.name,
|
|
11770
|
-
text: value,
|
|
11777
|
+
text: value ? value : node.name,
|
|
11771
11778
|
title: node.title,
|
|
11772
11779
|
tipText: node.tipText,
|
|
11773
11780
|
isAllowDelete: node.isAllowDelete,
|
|
@@ -12090,10 +12097,10 @@ var type = __webpack_require__(41542);
|
|
|
12090
12097
|
});
|
|
12091
12098
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
|
|
12092
12099
|
/* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
|
|
12093
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
12100
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=2130532e&prod&lang=scss&
|
|
12094
12101
|
// extracted by mini-css-extract-plugin
|
|
12095
12102
|
|
|
12096
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
12103
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=2130532e&prod&lang=scss&
|
|
12097
12104
|
|
|
12098
12105
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
12099
12106
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -40396,11 +40403,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40396
40403
|
*/
|
|
40397
40404
|
}, {
|
|
40398
40405
|
key: "insertEmptySignNode",
|
|
40399
|
-
value: function insertEmptySignNode(domRange, name, signType, signFormat, signTimeFormat, customProperty, connectMode, isFront, allowEditSignTime, attribute, connectChar) {
|
|
40406
|
+
value: function insertEmptySignNode(domRange, name, signType, signFormat, signTimeFormat, customProperty, connectMode, isFront, allowEditSignTime, attribute, connectChar, otherProperties) {
|
|
40400
40407
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_76__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40401
40408
|
var startPath = domRange.startPath;
|
|
40402
40409
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
40403
|
-
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_23__/* .NodeType.ntSign */ .Jq.ntSign, 0, 0, name, signType, signFormat, "", "", signTimeFormat, "", 0, 0, customProperty, true, hoEditorFactory.docTree.curStyleIndex, connectMode, isFront, allowEditSignTime, undefined, undefined, attribute, connectChar);
|
|
40410
|
+
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_23__/* .NodeType.ntSign */ .Jq.ntSign, 0, 0, name, signType, signFormat, "", "", signTimeFormat, "", 0, 0, customProperty, true, hoEditorFactory.docTree.curStyleIndex, connectMode, isFront, allowEditSignTime, undefined, undefined, attribute, connectChar, otherProperties);
|
|
40404
40411
|
//插入该表达式节点
|
|
40405
40412
|
hoEditorFactory.undoService.begin();
|
|
40406
40413
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_24__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
|
|
@@ -57095,7 +57102,8 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
57095
57102
|
// 当前签名图片是否已转成jpg 0代表未转换 1代表已转换
|
|
57096
57103
|
//签名属性 0:医生签名 1:患者签名 2:ca签名(职称+签名图片)
|
|
57097
57104
|
//自定义CA签名连接符
|
|
57098
|
-
|
|
57105
|
+
//其它属性{"title":"职称"}
|
|
57106
|
+
function SignNode(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition, attribute, connectChar, otherProperties) {
|
|
57099
57107
|
var _this;
|
|
57100
57108
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, SignNode);
|
|
57101
57109
|
_this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, nodeType);
|
|
@@ -57121,6 +57129,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
57121
57129
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_PNGToJPG", 0);
|
|
57122
57130
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_attribute", 0);
|
|
57123
57131
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_connectChar", ":");
|
|
57132
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_otherProperties", void 0);
|
|
57124
57133
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_14__/* .HOEditorFactorys.instance */ .b.instance().getFactory(_this._hoEditorFactoryID);
|
|
57125
57134
|
//this._id = hoEditorFactory.gernerateCode.generateID("SIGN");
|
|
57126
57135
|
_this.number = number;
|
|
@@ -57158,6 +57167,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
57158
57167
|
_this._isFront = isFront;
|
|
57159
57168
|
_this._allowEditSignTime = allowEditSignTime;
|
|
57160
57169
|
}
|
|
57170
|
+
_this._otherProperties = new Object();
|
|
57161
57171
|
_this._customProperty = new Object();
|
|
57162
57172
|
var assignvalue = function assignvalue(target, source) {
|
|
57163
57173
|
Object.keys(source).forEach(function (value) {
|
|
@@ -57177,6 +57187,9 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
57177
57187
|
if (customProperty) {
|
|
57178
57188
|
assignvalue(_this._customProperty, customProperty);
|
|
57179
57189
|
}
|
|
57190
|
+
if (otherProperties) {
|
|
57191
|
+
assignvalue(_this._otherProperties, otherProperties);
|
|
57192
|
+
}
|
|
57180
57193
|
_this.node2DrawNodeRange(0, 0);
|
|
57181
57194
|
return _this;
|
|
57182
57195
|
}
|
|
@@ -57413,6 +57426,16 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
57413
57426
|
this._connectChar = value;
|
|
57414
57427
|
}
|
|
57415
57428
|
}
|
|
57429
|
+
}, {
|
|
57430
|
+
key: "otherProperties",
|
|
57431
|
+
get: function get() {
|
|
57432
|
+
return this._otherProperties;
|
|
57433
|
+
},
|
|
57434
|
+
set: function set(value) {
|
|
57435
|
+
if (this._otherProperties !== value) {
|
|
57436
|
+
this._otherProperties = value;
|
|
57437
|
+
}
|
|
57438
|
+
}
|
|
57416
57439
|
/**
|
|
57417
57440
|
*
|
|
57418
57441
|
* @param drawTree 绘制树
|
|
@@ -57431,7 +57454,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
57431
57454
|
} else {
|
|
57432
57455
|
this.styleIndex = 0;
|
|
57433
57456
|
}
|
|
57434
|
-
var dNode = new _editor_draw_drawNode_DrawSignNode__WEBPACK_IMPORTED_MODULE_12__/* .DrawSignNode */ .V(this._hoEditorFactoryID, this._rootPath, this, this.number, this.type, this.name, this.imgSrc, this.imgWidth, this.imgHeight, cbStyle, this.fingerPrintSrc, this.fingerPosition, this.attribute, this.customProperty, this.connectChar);
|
|
57457
|
+
var dNode = new _editor_draw_drawNode_DrawSignNode__WEBPACK_IMPORTED_MODULE_12__/* .DrawSignNode */ .V(this._hoEditorFactoryID, this._rootPath, this, this.number, this.type, this.name, this.imgSrc, this.imgWidth, this.imgHeight, cbStyle, this.fingerPrintSrc, this.fingerPosition, this.attribute, this.customProperty, this.connectChar, this.otherProperties);
|
|
57435
57458
|
this._drawNodes.push(dNode);
|
|
57436
57459
|
}
|
|
57437
57460
|
/**
|
|
@@ -57458,11 +57481,11 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
57458
57481
|
if (isDisPlay) {
|
|
57459
57482
|
drawNode.alpha = 1;
|
|
57460
57483
|
if (this.imgSrc === "" && this.fingerPrintSrc === "") {
|
|
57461
|
-
for (
|
|
57462
|
-
|
|
57463
|
-
|
|
57464
|
-
|
|
57465
|
-
}
|
|
57484
|
+
// for (let i = drawNode.children.length - 1; i >= 0; i--) {
|
|
57485
|
+
// if (drawNode.children[i].name === "name") {
|
|
57486
|
+
// ((drawNode.children[i]) as createjs.Text).color = "#000"
|
|
57487
|
+
// }
|
|
57488
|
+
// }
|
|
57466
57489
|
var color = hoEditorFactory.option.getColorByLevel(13);
|
|
57467
57490
|
var backColor = new createjs.Shape();
|
|
57468
57491
|
backColor.graphics.clear().beginFill(color).drawRect(0, -drawNode.dHeight + 2, drawNode.dWidth, drawNode.dHeight);
|
|
@@ -57481,16 +57504,17 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
57481
57504
|
// }
|
|
57482
57505
|
// }
|
|
57483
57506
|
} else {
|
|
57484
|
-
for (var
|
|
57485
|
-
if (drawNode.children[
|
|
57486
|
-
drawNode.children.splice(
|
|
57487
|
-
}
|
|
57488
|
-
if (drawNode.children[_i].name === "name") {
|
|
57489
|
-
drawNode.children[_i].color = "#000";
|
|
57507
|
+
for (var i = drawNode.children.length - 1; i >= 0; i--) {
|
|
57508
|
+
if (drawNode.children[i].name === "backColor") {
|
|
57509
|
+
drawNode.children.splice(i, 1);
|
|
57490
57510
|
}
|
|
57511
|
+
// if (drawNode.children[i].name === "name") {
|
|
57512
|
+
// ((drawNode.children[i]) as createjs.Text).color = "#000"
|
|
57513
|
+
// }
|
|
57491
57514
|
}
|
|
57492
57515
|
}
|
|
57493
57516
|
}
|
|
57517
|
+
|
|
57494
57518
|
dline.addChild(drawNode);
|
|
57495
57519
|
dline.drawItems.push(drawNode);
|
|
57496
57520
|
dline.fitLines();
|
|
@@ -57524,7 +57548,8 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
57524
57548
|
fingerPrintSrc: clearSign ? "" : this.fingerPrintSrc,
|
|
57525
57549
|
fingerPosition: clearSign ? 0 : this.fingerPosition,
|
|
57526
57550
|
attribute: this.attribute,
|
|
57527
|
-
connectChar: this.connectChar
|
|
57551
|
+
connectChar: this.connectChar,
|
|
57552
|
+
otherProperties: this.otherProperties
|
|
57528
57553
|
};
|
|
57529
57554
|
if (isCopy) {
|
|
57530
57555
|
return retObj;
|
|
@@ -57551,7 +57576,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
57551
57576
|
var imgHeight = isClearSign ? 0 : Number(json.imgHeight);
|
|
57552
57577
|
var isTemplate = json.isTemplate === true || json.isTemplate === "true" ? true : false;
|
|
57553
57578
|
var attribute = json.attribute ? Number(json.attribute) : 0;
|
|
57554
|
-
var signNode = new SignNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .NodeType.ntSign */ .Jq.ntSign, number, type, json.name, json.signType ? Number(json.signType) : 0, json.signFormat ? json.signFormat : "签名医师", isClearSign ? "" : json.signor, isClearSign ? "" : json.signTime, json.signTimeFormat ? json.signTimeFormat : "yyyy-MM-dd HH:mm", isClearSign ? "" : json.imgSrc, imgWidth, imgHeight, isClearSign ? undefined : json.customProperty, isTemplate, json.styleIndex ? Number(json.styleIndex) : undefined, json.connectMode, json.isFront, json.allowEditSignTime, isClearSign ? "" : json.fingerPrintSrc, isClearSign ? 0 : json.fingerPosition, attribute, json.connectChar);
|
|
57579
|
+
var signNode = new SignNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_15__/* .NodeType.ntSign */ .Jq.ntSign, number, type, json.name, json.signType ? Number(json.signType) : 0, json.signFormat ? json.signFormat : "签名医师", isClearSign ? "" : json.signor, isClearSign ? "" : json.signTime, json.signTimeFormat ? json.signTimeFormat : "yyyy-MM-dd HH:mm", isClearSign ? "" : json.imgSrc, imgWidth, imgHeight, isClearSign ? undefined : json.customProperty, isTemplate, json.styleIndex ? Number(json.styleIndex) : undefined, json.connectMode, json.isFront, json.allowEditSignTime, isClearSign ? "" : json.fingerPrintSrc, isClearSign ? 0 : json.fingerPosition, attribute, json.connectChar, json.otherProperties);
|
|
57555
57580
|
signNode.PNGToJPG = json.PNGToJPG == 1 ? 1 : 0;
|
|
57556
57581
|
// if (json.id != "") {
|
|
57557
57582
|
// signNode.id = json.id;
|
|
@@ -66612,7 +66637,6 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
66612
66637
|
_this._maxHeight = maxHeight;
|
|
66613
66638
|
_this._maxWidth = maxWidth;
|
|
66614
66639
|
_this._usedHeight = _this._docHeight;
|
|
66615
|
-
// this._drawLines = new Array<DrawLine>();
|
|
66616
66640
|
_this._changed = false;
|
|
66617
66641
|
_this._areaComments = new Map();
|
|
66618
66642
|
return _this;
|
|
@@ -66669,7 +66693,6 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
66669
66693
|
}, {
|
|
66670
66694
|
key: "dHeight",
|
|
66671
66695
|
get: function get() {
|
|
66672
|
-
// console.log("DrawArea dHeight" + this._dHeight);
|
|
66673
66696
|
return this._dHeight;
|
|
66674
66697
|
},
|
|
66675
66698
|
set: function set(val) {
|
|
@@ -66867,85 +66890,11 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
66867
66890
|
}, {
|
|
66868
66891
|
key: "canFit",
|
|
66869
66892
|
value: function canFit(dtop, dHeight) {
|
|
66870
|
-
// if (this._dTop === dtop) {
|
|
66871
|
-
// return true;
|
|
66872
|
-
// } else
|
|
66873
|
-
// {
|
|
66874
66893
|
if (dtop + dHeight > this._maxHeight) {
|
|
66875
66894
|
return false;
|
|
66876
66895
|
}
|
|
66877
66896
|
return true;
|
|
66878
|
-
// }
|
|
66879
66897
|
}
|
|
66880
|
-
// public findIndex(
|
|
66881
|
-
// dPage: DrawPage,
|
|
66882
|
-
// dLines: Array<DrawLine | DrawTable>,
|
|
66883
|
-
// lineIndex: number
|
|
66884
|
-
// ) {
|
|
66885
|
-
// const dline = dLines[lineIndex];
|
|
66886
|
-
// let index = -1;
|
|
66887
|
-
// if (dline instanceof DrawTable) {
|
|
66888
|
-
// const dobj = (dline as DrawTable).getDrawTableByPage(dPage.pageIndex);
|
|
66889
|
-
// if (dobj) {
|
|
66890
|
-
// index = this._drawLines.indexOf(dobj);
|
|
66891
|
-
// }
|
|
66892
|
-
// } else {
|
|
66893
|
-
// index = this._drawLines.indexOf(dline);
|
|
66894
|
-
// }
|
|
66895
|
-
// return index;
|
|
66896
|
-
// }
|
|
66897
|
-
// private getRootIndex(
|
|
66898
|
-
// dPage: DrawPage,
|
|
66899
|
-
// dLines: Array<DrawLine | DrawTable>,
|
|
66900
|
-
// lineIndex: number
|
|
66901
|
-
// ): number {
|
|
66902
|
-
// // const dline = dLines[lineIndex];
|
|
66903
|
-
// let index = -1;
|
|
66904
|
-
// if (this._drawLines.length > 0) {
|
|
66905
|
-
// if (lineIndex === 0) {
|
|
66906
|
-
// index = 0;
|
|
66907
|
-
// } else {
|
|
66908
|
-
// index = this.findIndex(dPage, dLines, lineIndex);
|
|
66909
|
-
// if (index === -1) {
|
|
66910
|
-
// const aindex = this.findIndex(dPage, dLines, lineIndex - 1);
|
|
66911
|
-
// if (aindex >= 0) {
|
|
66912
|
-
// index = aindex + 1;
|
|
66913
|
-
// }
|
|
66914
|
-
// }
|
|
66915
|
-
// if (index === -1) {
|
|
66916
|
-
// let aEndLine: DrawTable | DrawLine;
|
|
66917
|
-
// const dEndDrawline = this._drawLines[this._drawLines.length - 1];
|
|
66918
|
-
// if (dEndDrawline instanceof DrawPageTable) {
|
|
66919
|
-
// aEndLine = (dEndDrawline as DrawPageTable).table.drawTable;
|
|
66920
|
-
// } else aEndLine = dEndDrawline as DrawLine;
|
|
66921
|
-
// const endIndex = dLines.indexOf(aEndLine);
|
|
66922
|
-
// if (lineIndex > endIndex) {
|
|
66923
|
-
// index = endIndex + 1;
|
|
66924
|
-
// } else if (lineIndex === endIndex) {
|
|
66925
|
-
// index = endIndex;
|
|
66926
|
-
// }
|
|
66927
|
-
// }
|
|
66928
|
-
// }
|
|
66929
|
-
// }
|
|
66930
|
-
// return index;
|
|
66931
|
-
// }
|
|
66932
|
-
// public clearAfter(
|
|
66933
|
-
// dLines: Array<DrawLine | DrawTable>,
|
|
66934
|
-
// startIndex: number,
|
|
66935
|
-
// endIndex: number
|
|
66936
|
-
// ) {
|
|
66937
|
-
// for (let i = startIndex; i <= endIndex; i++) {
|
|
66938
|
-
// const dline = dLines[i];
|
|
66939
|
-
// if (dline instanceof DrawTable) {
|
|
66940
|
-
// const dPartTable = dline.getDrawTableByParentArea(this);
|
|
66941
|
-
// if (dPartTable) {
|
|
66942
|
-
// this.removeChild(dPartTable);
|
|
66943
|
-
// }
|
|
66944
|
-
// } else {
|
|
66945
|
-
// this.removeChild(dline);
|
|
66946
|
-
// }
|
|
66947
|
-
// }
|
|
66948
|
-
// }
|
|
66949
66898
|
}, {
|
|
66950
66899
|
key: "clear",
|
|
66951
66900
|
value: function clear() {
|
|
@@ -66956,9 +66905,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
66956
66905
|
value: function paintBackground() {
|
|
66957
66906
|
if (!this._background) this._background = new createjs.Shape();
|
|
66958
66907
|
this._background.graphics.clear();
|
|
66959
|
-
this._background.graphics
|
|
66960
|
-
//.beginFill("#FFFFFF")
|
|
66961
|
-
.drawRect(-this.x, 0, _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_19__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).pageProperty.widthPixes, Math.max(this.docHeight, this._dHeight)).closePath();
|
|
66908
|
+
this._background.graphics.drawRect(-this.x, 0, _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_19__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).pageProperty.widthPixes, Math.max(this.docHeight, this._dHeight)).closePath();
|
|
66962
66909
|
this.addChildAt(this._background, 0);
|
|
66963
66910
|
this.setChildIndex(this._background, 0);
|
|
66964
66911
|
}
|
|
@@ -66977,9 +66924,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
66977
66924
|
if (this._allowAcrossPage) return;
|
|
66978
66925
|
if (!this._mask) this._mask = new createjs.Shape();
|
|
66979
66926
|
this._mask.graphics.clear();
|
|
66980
|
-
this._mask.graphics
|
|
66981
|
-
//.beginStroke("#FFFFFF")
|
|
66982
|
-
.drawRect(-this.x, 0, _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_19__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).pageProperty.widthPixes, aheight + 1).closePath();
|
|
66927
|
+
this._mask.graphics.drawRect(-this.x, 0, _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_19__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).pageProperty.widthPixes, aheight + 1).closePath();
|
|
66983
66928
|
//遮罩不是当前容器的Child
|
|
66984
66929
|
this._mask.x = this.x;
|
|
66985
66930
|
this._mask.y = this.y;
|
|
@@ -66995,24 +66940,11 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
66995
66940
|
value: function update(prevDrawArea, dlines, startIndex, dTop, restHeight) {
|
|
66996
66941
|
var bFinishedPaint = true;
|
|
66997
66942
|
var isFull = false;
|
|
66998
|
-
// this.clearAfter(drawPage, dlines, startIndex);
|
|
66999
66943
|
var ret = startIndex;
|
|
67000
66944
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_19__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
67001
|
-
// const dlineIter = this.listDrawLineByPathRange(
|
|
67002
|
-
// startIndex,
|
|
67003
|
-
// dlines.length - 1
|
|
67004
|
-
// );
|
|
67005
66945
|
var nextDline = startIndex;
|
|
67006
|
-
// if (this.drawLines.length > 0 && startIndex > 0) {
|
|
67007
|
-
// dTop =
|
|
67008
|
-
// this.drawLines[this.drawLines.length - 1].dTop +
|
|
67009
|
-
// this.drawLines[this.drawLines.length - 1].dHeight +
|
|
67010
|
-
// this.drawLines[this.drawLines.length - 1].paragraphNode.combineParagraph
|
|
67011
|
-
// .lineSpace;
|
|
67012
|
-
// }
|
|
67013
66946
|
var dRestHeight = Infinity;
|
|
67014
66947
|
if (this.allowAcrossPage) dRestHeight = this._maxHeight - dTop;
|
|
67015
|
-
var oldEndLine = this._endDline;
|
|
67016
66948
|
this._endDline = startIndex;
|
|
67017
66949
|
while (nextDline < dlines.length) {
|
|
67018
66950
|
var dline = dlines[nextDline];
|
|
@@ -67443,7 +67375,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
67443
67375
|
if (isRecord) {
|
|
67444
67376
|
for (var i = this.children.length - 1; i >= 0; i--) {
|
|
67445
67377
|
var child = this.children[i];
|
|
67446
|
-
if (child.name && child.name ===
|
|
67378
|
+
if (child.name && child.name === 'record' + comment.id) {
|
|
67447
67379
|
this.children.splice(i, 1);
|
|
67448
67380
|
}
|
|
67449
67381
|
}
|
|
@@ -67569,16 +67501,16 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
67569
67501
|
var dateTextShape = null;
|
|
67570
67502
|
var commentTextShape = null;
|
|
67571
67503
|
// 批注人
|
|
67572
|
-
nameTextShape = new createjs.Text(comment.userName,
|
|
67504
|
+
nameTextShape = new createjs.Text(comment.userName, '12px 微软雅黑', '#000');
|
|
67573
67505
|
nameTextShape.lineHeight = 20;
|
|
67574
|
-
nameTextShape.name =
|
|
67506
|
+
nameTextShape.name = 'creator';
|
|
67575
67507
|
nameTextShape.x = 10;
|
|
67576
67508
|
nameTextShape.y = 10;
|
|
67577
67509
|
nameTextShape.alpha = 1;
|
|
67578
67510
|
// 批注时间
|
|
67579
|
-
dateTextShape = new createjs.Text(comment.date,
|
|
67511
|
+
dateTextShape = new createjs.Text(comment.date, '12px 微软雅黑', '#333');
|
|
67580
67512
|
dateTextShape.lineHeight = 20;
|
|
67581
|
-
dateTextShape.name =
|
|
67513
|
+
dateTextShape.name = 'time';
|
|
67582
67514
|
dateTextShape.x = nameTextShape.getMeasuredWidth() + 30;
|
|
67583
67515
|
dateTextShape.y = 10;
|
|
67584
67516
|
dateTextShape.alpha = 1;
|
|
@@ -67586,35 +67518,35 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
67586
67518
|
var commentArr = comment.commentTextWarp(commentWidth, comment.text);
|
|
67587
67519
|
var text = commentArr[0];
|
|
67588
67520
|
comment.lineHeight = 20 * (1 + commentArr[1]) + 10;
|
|
67589
|
-
commentTextShape = new createjs.Text(text,
|
|
67521
|
+
commentTextShape = new createjs.Text(text, '12px 微软雅黑', '#666');
|
|
67590
67522
|
commentTextShape.lineWidth = commentWidth - 25;
|
|
67591
67523
|
commentTextShape.lineHeight = 20;
|
|
67592
|
-
commentTextShape.name =
|
|
67524
|
+
commentTextShape.name = 'text';
|
|
67593
67525
|
commentTextShape.x = 10;
|
|
67594
67526
|
commentTextShape.y = dateTextShape.y + dateTextShape.getMeasuredHeight();
|
|
67595
67527
|
commentTextShape.alpha = 1;
|
|
67596
67528
|
//背景
|
|
67597
67529
|
var backShape = new createjs.Shape();
|
|
67598
|
-
backShape.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke(
|
|
67530
|
+
backShape.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke('rgba(255, 0, 0, 1)').beginFill('#ffe5e5')
|
|
67599
67531
|
//.drawRoundRect(0, 0, commentWidth - 20, comment.lineHeigh,5);
|
|
67600
67532
|
.drawRect(0, 0, commentWidth - 20, comment.lineHeight);
|
|
67601
|
-
backShape.name =
|
|
67533
|
+
backShape.name = 'back';
|
|
67602
67534
|
backShape.alpha = 0.5;
|
|
67603
67535
|
//横线
|
|
67604
67536
|
var horizontalLine = new createjs.Shape();
|
|
67605
|
-
horizontalLine.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke(
|
|
67537
|
+
horizontalLine.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke('rgba(255, 0, 0, 1)').moveTo(nodeX, nodeY).lineTo(docWidth, nodeY);
|
|
67606
67538
|
horizontalLine.name = comment.id;
|
|
67607
67539
|
horizontalLine.alpha = 0.5;
|
|
67608
67540
|
//指向线
|
|
67609
67541
|
var guideLine = new createjs.Shape();
|
|
67610
|
-
guideLine.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke(
|
|
67542
|
+
guideLine.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke('rgba(255, 0, 0, 1)').moveTo(docWidth, nodeY).lineTo(docWidth + 15, commentY - comment.lineHeight / 4);
|
|
67611
67543
|
guideLine.name = comment.id;
|
|
67612
67544
|
guideLine.alpha = 0.5;
|
|
67613
67545
|
container.addChild(backShape);
|
|
67614
67546
|
container.addChild(nameTextShape);
|
|
67615
67547
|
container.addChild(dateTextShape);
|
|
67616
67548
|
container.addChild(commentTextShape);
|
|
67617
|
-
backShape.addEventListener(
|
|
67549
|
+
backShape.addEventListener('mousedown', function (e) {
|
|
67618
67550
|
return _this4.onMouseDown(e, comment);
|
|
67619
67551
|
});
|
|
67620
67552
|
if (!hoEditorFactory.isHideComments && commentWidth > 100) {
|
|
@@ -67656,7 +67588,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
67656
67588
|
var container = new createjs.Container();
|
|
67657
67589
|
container.x = docWidth + 15;
|
|
67658
67590
|
container.y = commentY - comment.lineHeight / 2;
|
|
67659
|
-
container.name =
|
|
67591
|
+
container.name = 'record' + comment.id;
|
|
67660
67592
|
var commentTextShape = null;
|
|
67661
67593
|
// 批注内容
|
|
67662
67594
|
var commentArr = comment.commentTextWarp(commentWidth, comment.text);
|
|
@@ -67664,10 +67596,10 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
67664
67596
|
//const textLen = (commentArr[1] as number) > 1 ? (commentArr[1] as number) - 1 : (commentArr[1] as number);
|
|
67665
67597
|
var textLen = commentArr[1];
|
|
67666
67598
|
comment.lineHeight = 20 * textLen + 10;
|
|
67667
|
-
commentTextShape = new createjs.Text(text,
|
|
67599
|
+
commentTextShape = new createjs.Text(text, '12px 微软雅黑', '#666');
|
|
67668
67600
|
commentTextShape.lineWidth = commentWidth - 25;
|
|
67669
67601
|
commentTextShape.lineHeight = 20;
|
|
67670
|
-
commentTextShape.name =
|
|
67602
|
+
commentTextShape.name = 'oldValue';
|
|
67671
67603
|
commentTextShape.x = 5;
|
|
67672
67604
|
commentTextShape.y = 10;
|
|
67673
67605
|
commentTextShape.alpha = 1;
|
|
@@ -67675,18 +67607,18 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
67675
67607
|
var textWidth = commentTextShape.getMeasuredWidth();
|
|
67676
67608
|
var shapeWidth = textWidth + 10 > commentWidth - 30 ? commentWidth - 30 : textWidth + 10;
|
|
67677
67609
|
var backShape = new createjs.Shape();
|
|
67678
|
-
backShape.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke(
|
|
67679
|
-
backShape.name =
|
|
67610
|
+
backShape.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke('rgba(255, 0, 0, 1)').beginFill('#ffe5e5').drawRoundRect(0, 0, shapeWidth, comment.lineHeight, 5);
|
|
67611
|
+
backShape.name = 'backShape';
|
|
67680
67612
|
backShape.alpha = 0.5;
|
|
67681
67613
|
//横线
|
|
67682
67614
|
var horizontalLine = new createjs.Shape();
|
|
67683
|
-
horizontalLine.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke(
|
|
67684
|
-
horizontalLine.name =
|
|
67615
|
+
horizontalLine.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke('rgba(255, 0, 0, 1)').moveTo(nodeX, nodeY).lineTo(docWidth, nodeY);
|
|
67616
|
+
horizontalLine.name = 'record' + comment.id;
|
|
67685
67617
|
horizontalLine.alpha = 1;
|
|
67686
67618
|
//指向线
|
|
67687
67619
|
var guideLine = new createjs.Shape();
|
|
67688
|
-
guideLine.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke(
|
|
67689
|
-
guideLine.name =
|
|
67620
|
+
guideLine.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke('rgba(255, 0, 0, 1)').moveTo(docWidth, nodeY).lineTo(docWidth + 15, commentY - comment.lineHeight / 4);
|
|
67621
|
+
guideLine.name = 'record' + comment.id;
|
|
67690
67622
|
guideLine.alpha = 1;
|
|
67691
67623
|
container.addChild(backShape);
|
|
67692
67624
|
container.addChild(commentTextShape);
|
|
@@ -68155,7 +68087,7 @@ var DrawPage = /*#__PURE__*/function () {
|
|
|
68155
68087
|
// this._drawTree = hoeditorfacotry.drawTree;
|
|
68156
68088
|
this._active = false;
|
|
68157
68089
|
this._pageIndex = index;
|
|
68158
|
-
this._name =
|
|
68090
|
+
this._name = 'vuePage';
|
|
68159
68091
|
this._domLevel = null;
|
|
68160
68092
|
this._selectLevel = null;
|
|
68161
68093
|
this._needUpdateStage = true;
|
|
@@ -68358,7 +68290,7 @@ var DrawPage = /*#__PURE__*/function () {
|
|
|
68358
68290
|
value: function addAreaSplitTag(x1, y1, x2, y2, x3, y3) {
|
|
68359
68291
|
var aTag = new createjs.Container();
|
|
68360
68292
|
var ashape = new createjs.Shape();
|
|
68361
|
-
ashape.graphics.beginStroke(
|
|
68293
|
+
ashape.graphics.beginStroke('#000').setStrokeStyle(1);
|
|
68362
68294
|
ashape.graphics.moveTo(x1, y1);
|
|
68363
68295
|
ashape.graphics.lineTo(x2, y2);
|
|
68364
68296
|
ashape.graphics.moveTo(x2, y2);
|
|
@@ -68401,7 +68333,7 @@ var DrawPage = /*#__PURE__*/function () {
|
|
|
68401
68333
|
}, {
|
|
68402
68334
|
key: "clear",
|
|
68403
68335
|
value: function clear(mode) {
|
|
68404
|
-
var lm = typeof mode !=
|
|
68336
|
+
var lm = typeof mode != 'number' ? 2 : mode;
|
|
68405
68337
|
if (lm != 1) {
|
|
68406
68338
|
this._selectContainer.removeAllChildren();
|
|
68407
68339
|
}
|
|
@@ -68456,7 +68388,7 @@ var DrawPage = /*#__PURE__*/function () {
|
|
|
68456
68388
|
this._footerRightTag.y = this._drawFooter.y;
|
|
68457
68389
|
this._drawMainDoc.x = hoEditorFactory.pageProperty.leftMarginPixes;
|
|
68458
68390
|
this._mainDocBorder && (this._mainDocBorder.children = []);
|
|
68459
|
-
if (hoEditorFactory.pageProperty.borderColor !==
|
|
68391
|
+
if (hoEditorFactory.pageProperty.borderColor !== '#FFFFFF' && hoEditorFactory.pageProperty.isPaintBorder) {
|
|
68460
68392
|
var _this$_domLevel$stage;
|
|
68461
68393
|
this._mainDocBorder = this.addMainDocBorder(dhheight);
|
|
68462
68394
|
(_this$_domLevel$stage = this._domLevel.stage) === null || _this$_domLevel$stage === void 0 ? void 0 : _this$_domLevel$stage.addChild(this._mainDocBorder);
|
|
@@ -68497,7 +68429,7 @@ var DrawPage = /*#__PURE__*/function () {
|
|
|
68497
68429
|
if (!this._background) this._background = new createjs.Shape();
|
|
68498
68430
|
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
68499
68431
|
this._background.graphics.clear();
|
|
68500
|
-
backColor = hoEditorFactory.drawTree.paintStatus === _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_7__/* .PaintState.psPreview */ .Dh.psPreview ?
|
|
68432
|
+
backColor = hoEditorFactory.drawTree.paintStatus === _drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_7__/* .PaintState.psPreview */ .Dh.psPreview ? '#FFFFFF' : '#FFFFFF'; // this._background.graphics
|
|
68501
68433
|
// .beginFill(backColor)
|
|
68502
68434
|
// .drawRect(
|
|
68503
68435
|
// 0,
|
|
@@ -68543,7 +68475,7 @@ var DrawPage = /*#__PURE__*/function () {
|
|
|
68543
68475
|
}, {
|
|
68544
68476
|
key: "getDrawAreaByPath",
|
|
68545
68477
|
value: function getDrawAreaByPath(path) {
|
|
68546
|
-
var arr = path.split(
|
|
68478
|
+
var arr = path.split('/');
|
|
68547
68479
|
if (arr[0] === _dom_DocTree__WEBPACK_IMPORTED_MODULE_6__/* .gMainPath */ .d9) {
|
|
68548
68480
|
return this._drawMainDoc;
|
|
68549
68481
|
} else if (arr[0] === _dom_DocTree__WEBPACK_IMPORTED_MODULE_6__/* .gHeaderPath */ .Yh) {
|
|
@@ -68689,20 +68621,6 @@ var DrawPageHeaderFooter = /*#__PURE__*/function (_DrawArea) {
|
|
|
68689
68621
|
|
|
68690
68622
|
|
|
68691
68623
|
|
|
68692
|
-
// // import {Select} from "./Select"
|
|
68693
|
-
// // import {InputNode} from "./drawCombineNode"
|
|
68694
|
-
// import {NodeType} from "./BaseNode"
|
|
68695
|
-
// import "@/yuki-createjs";
|
|
68696
|
-
// window.addEventListener("DOMContentLoaded", () => {
|
|
68697
|
-
// const acanvas: HTMLCanvasElement=window.document.getElementById("canvasBase") as HTMLCanvasElement;
|
|
68698
|
-
// const adiv: HTMLDivElement=window.document.getElementById("textDiv") as HTMLDivElement;
|
|
68699
|
-
// const atextarea: HTMLTextAreaElement=document.getElementById("textarea") as HTMLTextAreaElement;
|
|
68700
|
-
// // let aSelect:Select =new Select(acanvas);
|
|
68701
|
-
// // let stage=new createjs.Stage(acanvas);
|
|
68702
|
-
// // let aInput=new InputNode(null,NodeType.ntPage,null,stage);
|
|
68703
|
-
// // stage.addChild(aInput.container);
|
|
68704
|
-
// // stage.update();
|
|
68705
|
-
// });
|
|
68706
68624
|
|
|
68707
68625
|
|
|
68708
68626
|
|
|
@@ -74501,7 +74419,7 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
|
|
|
74501
74419
|
/*
|
|
74502
74420
|
* @Author: your name
|
|
74503
74421
|
* @Date: 2021-09-01 16:51:49
|
|
74504
|
-
* @LastEditTime: 2023-
|
|
74422
|
+
* @LastEditTime: 2023-03-01 15:23:39
|
|
74505
74423
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
74506
74424
|
* @Description: In User Settings Edit
|
|
74507
74425
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawSignNode.ts
|
|
@@ -74511,7 +74429,11 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
74511
74429
|
var _super = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(DrawSignNode);
|
|
74512
74430
|
//签名属性 0:医生签名 1:患者签名 2:ca签名(职称+签名图片)
|
|
74513
74431
|
|
|
74514
|
-
|
|
74432
|
+
//ca签名职称
|
|
74433
|
+
|
|
74434
|
+
//职称
|
|
74435
|
+
|
|
74436
|
+
function DrawSignNode(hoeditfactoryID, rootPath, node, number, type, name, imgSrc, imgWidth, imgHeight, cbStyle, fingerPrintSrc, fingerPosition, attribute, customProperty, connectChar, otherProperties) {
|
|
74515
74437
|
var _this;
|
|
74516
74438
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, DrawSignNode);
|
|
74517
74439
|
_this = _super.call(this, hoeditfactoryID, rootPath, node, 0);
|
|
@@ -74527,6 +74449,10 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
74527
74449
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_connectChar", ":");
|
|
74528
74450
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_abi02", "");
|
|
74529
74451
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_drawAbi02", void 0);
|
|
74452
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_signTime", "");
|
|
74453
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_drawDate", void 0);
|
|
74454
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_title", "");
|
|
74455
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_drawTitle", void 0);
|
|
74530
74456
|
_this._number = number;
|
|
74531
74457
|
_this._imgSrc = imgSrc;
|
|
74532
74458
|
_this._type = type;
|
|
@@ -74535,11 +74461,18 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
74535
74461
|
_this._fingerPosition = fingerPosition;
|
|
74536
74462
|
_this._attribute = attribute;
|
|
74537
74463
|
_this._connectChar = connectChar;
|
|
74464
|
+
_this._signTime = node.signTime;
|
|
74465
|
+
_this._textStyle = cbStyle.getStyleKey();
|
|
74538
74466
|
_this._abi02 = customProperty && customProperty.abi02 ? customProperty.abi02 : "";
|
|
74467
|
+
_this._title = otherProperties && otherProperties.title ? otherProperties.title : "";
|
|
74468
|
+
if (_this._title != "") {
|
|
74469
|
+
_this._drawTitle = new createjs.Text(_this.title + _this._connectChar, _this._textStyle, '#000000');
|
|
74470
|
+
_this._drawDate = new createjs.Text(_this.signTime.substring(0, 16), _this._textStyle, '#000000');
|
|
74471
|
+
}
|
|
74539
74472
|
//this._textStyle = cbStyle.;
|
|
74473
|
+
|
|
74540
74474
|
_this.dHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_10__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoeditfactoryID).signHeight;
|
|
74541
74475
|
//this.dHeight = 40;
|
|
74542
|
-
_this._textStyle = cbStyle.getStyleKey();
|
|
74543
74476
|
// 处理混乱的类型
|
|
74544
74477
|
if (node.customProperty && node.customProperty.created_date) {
|
|
74545
74478
|
// 区分图片签名和普通文本签名 并更新对应的值
|
|
@@ -74576,6 +74509,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
74576
74509
|
_this.dWidth = dText.getMeasuredWidth();
|
|
74577
74510
|
} else {
|
|
74578
74511
|
if (_this.type === 1) {
|
|
74512
|
+
//图片
|
|
74579
74513
|
var scale = _this.dHeight / imgHeight;
|
|
74580
74514
|
if (number === 1) {
|
|
74581
74515
|
_this.dWidth = imgWidth * scale;
|
|
@@ -74586,8 +74520,16 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
74586
74520
|
_this._drawAbi02 = new createjs.Text(_this._abi02 + _this._connectChar, _this._textStyle, '#000000');
|
|
74587
74521
|
_this.dWidth += _this._drawAbi02.getMeasuredWidth();
|
|
74588
74522
|
}
|
|
74523
|
+
if (_this.attribute === 0 && _this.title != "") {
|
|
74524
|
+
_this.dWidth += _this._drawTitle.getMeasuredWidth();
|
|
74525
|
+
if (_this._drawDate.getMeasuredWidth() > _this.dWidth) {
|
|
74526
|
+
_this.dWidth = _this._drawDate.getMeasuredWidth();
|
|
74527
|
+
}
|
|
74528
|
+
_this.dHeight = _this.dHeight + _this._drawDate.getMeasuredHeight() + 2;
|
|
74529
|
+
}
|
|
74589
74530
|
}
|
|
74590
74531
|
if (_this.type === 2) {
|
|
74532
|
+
//文字
|
|
74591
74533
|
var _signArr = imgSrc.split('\n');
|
|
74592
74534
|
var aText = new createjs.Text(_signArr[0], _this._textStyle, '#000000');
|
|
74593
74535
|
var maxWidth = aText.getMeasuredWidth();
|
|
@@ -74712,6 +74654,26 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
74712
74654
|
this._abi02 = value;
|
|
74713
74655
|
}
|
|
74714
74656
|
}
|
|
74657
|
+
}, {
|
|
74658
|
+
key: "signTime",
|
|
74659
|
+
get: function get() {
|
|
74660
|
+
return this._signTime;
|
|
74661
|
+
},
|
|
74662
|
+
set: function set(value) {
|
|
74663
|
+
if (this._signTime !== value) {
|
|
74664
|
+
this._signTime = value;
|
|
74665
|
+
}
|
|
74666
|
+
}
|
|
74667
|
+
}, {
|
|
74668
|
+
key: "title",
|
|
74669
|
+
get: function get() {
|
|
74670
|
+
return this._title;
|
|
74671
|
+
},
|
|
74672
|
+
set: function set(value) {
|
|
74673
|
+
if (this._title !== value) {
|
|
74674
|
+
this._title = value;
|
|
74675
|
+
}
|
|
74676
|
+
}
|
|
74715
74677
|
}, {
|
|
74716
74678
|
key: "drawWriteSignNode",
|
|
74717
74679
|
value: function drawWriteSignNode(node) {
|
|
@@ -74916,11 +74878,28 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
74916
74878
|
var abi02Text = new createjs.Text(_this3.abi02 + _this3._connectChar, _this3.textStyle, '#000000');
|
|
74917
74879
|
abi02Text.textBaseline = 'alphabetic';
|
|
74918
74880
|
abi02Text.textAlign = 'left';
|
|
74881
|
+
abi02Text.y = bitmap.y;
|
|
74919
74882
|
_this3.addChildAt(abi02Text, 0);
|
|
74920
74883
|
bitmap.x = abi02Text.getMeasuredWidth();
|
|
74921
|
-
_this3.
|
|
74884
|
+
_this3.addChild(bitmap);
|
|
74922
74885
|
} else {
|
|
74923
|
-
_this3.
|
|
74886
|
+
if (_this3.attribute === 0 && _this3.title !== "") {
|
|
74887
|
+
_this3._drawTitle.textBaseline = 'alphabetic';
|
|
74888
|
+
_this3._drawTitle.textAlign = 'left';
|
|
74889
|
+
_this3._drawTitle.x = 0;
|
|
74890
|
+
_this3._drawTitle.y = -(_this3.dHeight - _this3._drawDate.getMeasuredHeight()) + 2;
|
|
74891
|
+
bitmap.x = _this3._drawTitle.getMeasuredWidth();
|
|
74892
|
+
_this3.addChildAt(_this3._drawTitle, 0);
|
|
74893
|
+
bitmap.y = _this3._drawTitle.y;
|
|
74894
|
+
_this3.addChild(bitmap);
|
|
74895
|
+
_this3._drawDate.x = 0;
|
|
74896
|
+
_this3._drawDate.y = 0;
|
|
74897
|
+
_this3._drawDate.textBaseline = 'alphabetic';
|
|
74898
|
+
_this3._drawDate.textAlign = 'left';
|
|
74899
|
+
_this3.addChild(_this3._drawDate);
|
|
74900
|
+
} else {
|
|
74901
|
+
_this3.addChildAt(bitmap, 0);
|
|
74902
|
+
}
|
|
74924
74903
|
}
|
|
74925
74904
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_10__/* .HOEditorFactorys.instance */ .b.instance().getFactory(drawNode.node.hoEditorFactoryID);
|
|
74926
74905
|
hoEditorFactory.loadImageCount++;
|
|
@@ -74947,11 +74926,19 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
74947
74926
|
if (drawNode.attribute === 2 && drawNode.abi02 !== "") {
|
|
74948
74927
|
drawNode.dWidth += drawNode._drawAbi02.getMeasuredWidth();
|
|
74949
74928
|
}
|
|
74929
|
+
if (drawNode.attribute == 0 && drawNode.title != "") {
|
|
74930
|
+
drawNode.dWidth += drawNode._drawTitle.getMeasuredWidth();
|
|
74931
|
+
if (_this3._drawDate.getMeasuredWidth() > drawNode.dWidth) {
|
|
74932
|
+
drawNode.dWidth = _this3._drawDate.getMeasuredWidth();
|
|
74933
|
+
}
|
|
74934
|
+
}
|
|
74950
74935
|
if (_this3.number === 2) {
|
|
74951
74936
|
drawNode.dWidth += _this3._drawText.getMeasuredWidth();
|
|
74952
74937
|
}
|
|
74953
74938
|
if (drawNode.attribute === 2 && drawNode.abi02 !== "") {
|
|
74954
74939
|
bitmap.setTransform(drawNode._drawAbi02.getMeasuredWidth(), -drawNode.dHeight + 2, width / hitWidth, drawNode.dHeight / hitHeight);
|
|
74940
|
+
} else if (drawNode.attribute === 0 && drawNode.title !== "") {
|
|
74941
|
+
bitmap.setTransform(drawNode._drawTitle.getMeasuredWidth(), -drawNode.dHeight - 4, width / hitWidth, (drawNode.dHeight - drawNode._drawDate.getMeasuredHeight() - 2) / hitHeight);
|
|
74955
74942
|
} else {
|
|
74956
74943
|
bitmap.setTransform(0, -drawNode.dHeight, width / hitWidth, drawNode.dHeight / hitHeight);
|
|
74957
74944
|
}
|
|
@@ -78405,25 +78392,23 @@ var Editor = /*#__PURE__*/function () {
|
|
|
78405
78392
|
(0,defineProperty/* default */.Z)(this, "editController", void 0);
|
|
78406
78393
|
(0,defineProperty/* default */.Z)(this, "_hoEditorFactoryID", void 0);
|
|
78407
78394
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
78408
|
-
var atextArea = document.createElement(
|
|
78409
|
-
atextArea.id =
|
|
78410
|
-
atextArea.style.position =
|
|
78411
|
-
atextArea.style.top =
|
|
78412
|
-
atextArea.style.left =
|
|
78413
|
-
atextArea.style.width =
|
|
78414
|
-
atextArea.style.height =
|
|
78415
|
-
atextArea.style.zIndex =
|
|
78416
|
-
atextArea.style.margin =
|
|
78417
|
-
atextArea.style.border =
|
|
78418
|
-
atextArea.style.padding =
|
|
78395
|
+
var atextArea = document.createElement('textarea');
|
|
78396
|
+
atextArea.id = 'hoEmrEditTextArea';
|
|
78397
|
+
atextArea.style.position = 'absolute';
|
|
78398
|
+
atextArea.style.top = '0';
|
|
78399
|
+
atextArea.style.left = '0';
|
|
78400
|
+
atextArea.style.width = '0';
|
|
78401
|
+
atextArea.style.height = '0';
|
|
78402
|
+
atextArea.style.zIndex = '3';
|
|
78403
|
+
atextArea.style.margin = '0';
|
|
78404
|
+
atextArea.style.border = '0';
|
|
78405
|
+
atextArea.style.padding = '0';
|
|
78419
78406
|
// atextArea.style.resize = "none";
|
|
78420
|
-
atextArea.style.outline =
|
|
78421
|
-
atextArea.style.fontSize =
|
|
78407
|
+
atextArea.style.outline = 'none';
|
|
78408
|
+
atextArea.style.fontSize = '16px';
|
|
78422
78409
|
// atextArea.style.overflow = "hidden";
|
|
78423
|
-
atextArea.style.background =
|
|
78424
|
-
atextArea.value =
|
|
78425
|
-
// window.document.body.appendChild(atextarea);
|
|
78426
|
-
// window.document.body.appendChild(atextarea);
|
|
78410
|
+
atextArea.style.background = 'none';
|
|
78411
|
+
atextArea.value = '';
|
|
78427
78412
|
this.pageIndex = -1;
|
|
78428
78413
|
this.input = atextArea;
|
|
78429
78414
|
this.editController = new EditorController(this._hoEditorFactoryID, this);
|
|
@@ -78476,8 +78461,8 @@ var Editor = /*#__PURE__*/function () {
|
|
|
78476
78461
|
key: "moveTo",
|
|
78477
78462
|
value: function moveTo(pageIndex, x, y) {
|
|
78478
78463
|
this.setPage(pageIndex);
|
|
78479
|
-
this.input.style.left = x +
|
|
78480
|
-
this.input.style.top = y +
|
|
78464
|
+
this.input.style.left = x + 'px';
|
|
78465
|
+
this.input.style.top = y + 'px';
|
|
78481
78466
|
this.input.focus();
|
|
78482
78467
|
}
|
|
78483
78468
|
}]);
|
|
@@ -88831,12 +88816,8 @@ var UnitConvert = /*#__PURE__*/function () {
|
|
|
88831
88816
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, UnitConvert);
|
|
88832
88817
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)(this, "dpiX", void 0);
|
|
88833
88818
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z)(this, "dpiY", void 0);
|
|
88834
|
-
|
|
88835
|
-
|
|
88836
|
-
// this.dpiY= window.screen.deviceYDPI;
|
|
88837
|
-
// } else {
|
|
88838
|
-
var tmpNode = document.createElement("DIV");
|
|
88839
|
-
tmpNode.style.cssText = "width:1in;height:1in;position:absolute;left:0px;top:0px;z-index:99;visibility:hidden";
|
|
88819
|
+
var tmpNode = document.createElement('DIV');
|
|
88820
|
+
tmpNode.style.cssText = 'width:1in;height:1in;position:absolute;left:0px;top:0px;z-index:99;visibility:hidden';
|
|
88840
88821
|
document.body.appendChild(tmpNode);
|
|
88841
88822
|
this.dpiX = tmpNode.offsetWidth;
|
|
88842
88823
|
this.dpiY = tmpNode.offsetHeight;
|
|
@@ -88871,22 +88852,22 @@ var UnitConvert = /*#__PURE__*/function () {
|
|
|
88871
88852
|
}, {
|
|
88872
88853
|
key: "randomColor",
|
|
88873
88854
|
value: function randomColor() {
|
|
88874
|
-
var color =
|
|
88855
|
+
var color = '#';
|
|
88875
88856
|
//for循环中,如果后面仅有一条语句,{}可省略不写
|
|
88876
88857
|
//同上面方法
|
|
88877
88858
|
for (var i = 0; i < 8; i++) {
|
|
88878
|
-
color += parseInt(Math.random() * 16 +
|
|
88859
|
+
color += parseInt(Math.random() * 16 + '').toString(16);
|
|
88879
88860
|
}
|
|
88880
88861
|
return color;
|
|
88881
88862
|
}
|
|
88882
88863
|
}, {
|
|
88883
88864
|
key: "getChineseNumber",
|
|
88884
88865
|
value: function getChineseNumber(num) {
|
|
88885
|
-
var chnNumChar = [
|
|
88886
|
-
var chnUnitSection = [
|
|
88866
|
+
var chnNumChar = ['零', '一', '二', '三', '四', '五', '六', '七', '八', '九'];
|
|
88867
|
+
var chnUnitSection = ['', '万', '亿', '万亿', '亿亿'];
|
|
88887
88868
|
var unitPos = 0;
|
|
88888
|
-
var strIns =
|
|
88889
|
-
var chnStr =
|
|
88869
|
+
var strIns = '';
|
|
88870
|
+
var chnStr = '';
|
|
88890
88871
|
var needZero = false;
|
|
88891
88872
|
if (num === 0) {
|
|
88892
88873
|
return chnNumChar[0];
|
|
@@ -88908,10 +88889,10 @@ var UnitConvert = /*#__PURE__*/function () {
|
|
|
88908
88889
|
}, {
|
|
88909
88890
|
key: "SectionToChinese",
|
|
88910
88891
|
value: function SectionToChinese(section) {
|
|
88911
|
-
var chnNumChar = [
|
|
88912
|
-
var chnUnitChar = [
|
|
88913
|
-
var strIns =
|
|
88914
|
-
var chnStr =
|
|
88892
|
+
var chnNumChar = ['零', '一', '二', '三', '四', '五', '六', '七', '八', '九'];
|
|
88893
|
+
var chnUnitChar = ['', '十', '百', '千'];
|
|
88894
|
+
var strIns = '';
|
|
88895
|
+
var chnStr = '';
|
|
88915
88896
|
var unitPos = 0;
|
|
88916
88897
|
var zero = true;
|
|
88917
88898
|
while (section > 0) {
|
|
@@ -88940,7 +88921,7 @@ var UnitConvert = /*#__PURE__*/function () {
|
|
|
88940
88921
|
}, {
|
|
88941
88922
|
key: "replaceAll",
|
|
88942
88923
|
value: function replaceAll(str, s1, s2) {
|
|
88943
|
-
str = str.replace(new RegExp(s1,
|
|
88924
|
+
str = str.replace(new RegExp(s1, 'gm'), s2);
|
|
88944
88925
|
return str;
|
|
88945
88926
|
}
|
|
88946
88927
|
}], [{
|
|
@@ -88978,7 +88959,7 @@ var UnitConvert = /*#__PURE__*/function () {
|
|
|
88978
88959
|
if (seconds.length === 1) {
|
|
88979
88960
|
seconds = "0".concat(seconds);
|
|
88980
88961
|
}
|
|
88981
|
-
return (format ||
|
|
88962
|
+
return (format || 'yyyy-MM-dd HH:mm:ss').replace(/yyyy/g, year).replace(/MM/g, month).replace(/dd/g, day).replace(/HH/g, hours).replace(/mm/g, minutes).replace(/ss/g, seconds);
|
|
88982
88963
|
}
|
|
88983
88964
|
}, {
|
|
88984
88965
|
key: "isPuctuation",
|
|
@@ -127406,7 +127387,7 @@ this.enableDOMEvents(true);}var p=createjs.extend(Stage,createjs.Container);// e
|
|
|
127406
127387
|
*
|
|
127407
127388
|
* @method enableDOMEvents
|
|
127408
127389
|
* @param {Boolean} [enable=true] Indicates whether to enable or disable the events. Default is true.
|
|
127409
|
-
**/p.enableDOMEvents=function(enable){if(enable==null){enable=true;}var n,o,ls=this._eventListeners;if(!enable&&ls){for(n in ls){o=ls[n];o.t.removeEventListener(n,o.f,false);}this._eventListeners=null;}else if(enable&&!ls&&this.canvas){var t=window.addEventListener?window:document;var _this=this;ls=this._eventListeners={};ls["mouseup"]={t:t,f:function f(e){_this._handleMouseUp(e);}};ls["mousemove"]={t:t,f:function f(e){_this._handleMouseMove(e);}};ls["dblclick"]={t:this.canvas,f:function f(e){_this._handleDoubleClick(e);}};ls["mousedown"]={t:this.canvas,f:function f(e){_this._handleMouseDown(e);}};for(n in ls){o=ls[n];o.t.addEventListener(n,o.f,false);}}};/**
|
|
127390
|
+
**/p.enableDOMEvents=function(enable){if(enable==null){enable=true;}var n,o,ls=this._eventListeners;if(window.nodejs){this._eventListeners=null;}else if(!enable&&ls){for(n in ls){o=ls[n];o.t.removeEventListener(n,o.f,false);}this._eventListeners=null;}else if(enable&&!ls&&this.canvas){var t=window.addEventListener?window:document;var _this=this;ls=this._eventListeners={};ls["mouseup"]={t:t,f:function f(e){_this._handleMouseUp(e);}};ls["mousemove"]={t:t,f:function f(e){_this._handleMouseMove(e);}};ls["dblclick"]={t:this.canvas,f:function f(e){_this._handleDoubleClick(e);}};ls["mousedown"]={t:this.canvas,f:function f(e){_this._handleMouseDown(e);}};for(n in ls){o=ls[n];o.t.addEventListener(n,o.f,false);}}};/**
|
|
127410
127391
|
* Stage instances cannot be cloned.
|
|
127411
127392
|
* @method clone
|
|
127412
127393
|
**/p.clone=function(){throw"Stage cannot be cloned.";};/**
|
|
@@ -220230,7 +220211,7 @@ var map = {
|
|
|
220230
220211
|
"./pageInfoes/PageInfoes.vue": 17481,
|
|
220231
220212
|
"./paragraph/ParagraphDialog.vue": 54949,
|
|
220232
220213
|
"./poperSelect/PoperMark.vue": 71472,
|
|
220233
|
-
"./poperSelect/PoperSelect.vue":
|
|
220214
|
+
"./poperSelect/PoperSelect.vue": 62807,
|
|
220234
220215
|
"./poperTipText/PoperTipText.vue": 15845,
|
|
220235
220216
|
"./popers/Poper.vue": 57937,
|
|
220236
220217
|
"./popers/Title.vue": 89987,
|
|
@@ -257401,57 +257382,12 @@ var DrawDomLevel = /*#__PURE__*/function () {
|
|
|
257401
257382
|
(0,esm_defineProperty/* default */.Z)(this, "_domCanvas", void 0);
|
|
257402
257383
|
(0,esm_defineProperty/* default */.Z)(this, "_hoEditorFactoryID", void 0);
|
|
257403
257384
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
257404
|
-
// this._domCanvas = domCanvas;
|
|
257405
257385
|
this._pageIndex = pageIndex;
|
|
257406
257386
|
this._domCanvas = domCanvas;
|
|
257407
|
-
// if (hoeditorfactory.drawTree.paintStatus !== PaintState.psPreview) {
|
|
257408
|
-
// this._domStage = new createjs.StageGL(domCanvas);
|
|
257409
|
-
// (this._domStage as any).setClearColor("#ffffff");
|
|
257410
|
-
// } else {
|
|
257411
|
-
// this._domStage = new createjs.Stage(domCanvas);
|
|
257412
|
-
// }
|
|
257413
257387
|
this._domStage = null;
|
|
257414
257388
|
this._headerTop = 0;
|
|
257415
257389
|
this._mainDocTop = 0;
|
|
257416
257390
|
this._footerTop = 0;
|
|
257417
|
-
// const strHPath = this._drawTree.getHeaderDNodes(drawPage.pageIndex)[1];
|
|
257418
|
-
// HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.getHeaderByPath(strHPath); //
|
|
257419
|
-
// this._drawHeader = new DrawHeader(hoeditorfactory, strHPath);
|
|
257420
|
-
// this._drawHeader.AddPage(drawPage);
|
|
257421
|
-
// const strFPath = this._drawTree.getFooterDNodes(drawPage.pageIndex)[1];
|
|
257422
|
-
// HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.getFooterByPath(strFPath); //
|
|
257423
|
-
// this._drawFooter = new DrawFooter(hoeditorfactory, strFPath);
|
|
257424
|
-
// this._drawFooter.AddPage(drawPage);
|
|
257425
|
-
// const hoeditorfactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
257426
|
-
// const dPage = hoeditorfactory.drawTree.drawPages[pageIndex];
|
|
257427
|
-
// this._headerTop = dPage.drawHeader.dTop;
|
|
257428
|
-
// this._mainDocTop = dPage.drawHeader.dTop + dPage.drawHeader.dHeight;
|
|
257429
|
-
// this._footerTop = dPage.drawFooter.dTop;
|
|
257430
|
-
// this._drawMainDoc =
|
|
257431
|
-
// hoeditorfactory.drawPageTree.drawMainDocs[drawPage.pageIndex];
|
|
257432
|
-
// new DrawPageMainDoc(
|
|
257433
|
-
// hoeditorfactory,
|
|
257434
|
-
// gMainPath,
|
|
257435
|
-
// drawPage.pageIndex,
|
|
257436
|
-
// this._mainDocTop
|
|
257437
|
-
// );
|
|
257438
|
-
// this._domStage.addChild(this._drawHeader);
|
|
257439
|
-
// this._drawHeader.x=0;
|
|
257440
|
-
// this._drawHeader.y=HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.topMarginPixes;
|
|
257441
|
-
// this._domStage.addChild(dPage.drawHeader);
|
|
257442
|
-
// dPage.drawHeader.x = hoeditorfactory.pageProperty.leftMarginPixes;
|
|
257443
|
-
// dPage.drawHeader.y = hoeditorfactory.pageProperty.headerYPixes;
|
|
257444
|
-
// // this._domStage.addChildAt(this._drawMainDoc, 0);
|
|
257445
|
-
// dPage.drawMainDoc.x = hoeditorfactory.pageProperty.leftMarginPixes;
|
|
257446
|
-
// dPage.drawMainDoc.y = this._mainDocTop; // HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.topMarginPixes +
|
|
257447
|
-
// // HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).pageProperty.headerYPixes;
|
|
257448
|
-
// this._domStage.addChild(dPage.drawFooter);
|
|
257449
|
-
// dPage.drawFooter.x = hoeditorfactory.pageProperty.leftMarginPixes;
|
|
257450
|
-
// dPage.drawFooter.y =
|
|
257451
|
-
// hoeditorfactory.pageProperty.heightPixes -
|
|
257452
|
-
// hoeditorfactory.pageProperty.bottomMarginPixes;
|
|
257453
|
-
// this._domStage.addChild(dPage.drawMainDoc);
|
|
257454
|
-
// this._domStage.update();
|
|
257455
257391
|
}
|
|
257456
257392
|
(0,esm_createClass/* default */.Z)(DrawDomLevel, [{
|
|
257457
257393
|
key: "footerTop",
|
|
@@ -257479,10 +257415,6 @@ var DrawDomLevel = /*#__PURE__*/function () {
|
|
|
257479
257415
|
var hoeditorfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
257480
257416
|
this._domCanvas.width = hoeditorfactory.pageProperty.canvasParams.width;
|
|
257481
257417
|
this._domCanvas.height = hoeditorfactory.pageProperty.canvasParams.height;
|
|
257482
|
-
// if (hoeditorfactory.drawTree.paintStatus === PaintState.psReview) {
|
|
257483
|
-
// this._domCanvas.width += 100;
|
|
257484
|
-
// }
|
|
257485
|
-
// this._domCanvas.height = hoeditorfactory.pageProperty.heightPixes * DrawConfig.instance().scaleXY;
|
|
257486
257418
|
this._domStage = new createjs.Stage(this._domCanvas);
|
|
257487
257419
|
this._domStage.scaleX = DrawConfig/* DrawConfig.instance */.f.instance().scaleXY;
|
|
257488
257420
|
this._domStage.scaleY = DrawConfig/* DrawConfig.instance */.f.instance().scaleXY;
|
|
@@ -258191,7 +258123,7 @@ var DrawPage = __webpack_require__(72722);
|
|
|
258191
258123
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
258192
258124
|
var plugins_util = __webpack_require__(62783);
|
|
258193
258125
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 9 modules
|
|
258194
|
-
var PoperSelect = __webpack_require__(
|
|
258126
|
+
var PoperSelect = __webpack_require__(62807);
|
|
258195
258127
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
|
|
258196
258128
|
var PoperMark = __webpack_require__(71472);
|
|
258197
258129
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
|
|
@@ -259890,7 +259822,7 @@ var ParagraphNode = __webpack_require__(67945);
|
|
|
259890
259822
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
|
|
259891
259823
|
var MarkNode = __webpack_require__(57727);
|
|
259892
259824
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
259893
|
-
/* harmony default export */ var version = ('3.0.
|
|
259825
|
+
/* harmony default export */ var version = ('3.0.30');
|
|
259894
259826
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
259895
259827
|
var PoperTipText = __webpack_require__(15845);
|
|
259896
259828
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -265534,7 +265466,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
265534
265466
|
}
|
|
265535
265467
|
});
|
|
265536
265468
|
|
|
265537
|
-
for (var t =
|
|
265469
|
+
for (var t = tableArr.length - 1; t >= 0; t--) {
|
|
265538
265470
|
// const table=tableArr[t];
|
|
265539
265471
|
tableArr[t].update();
|
|
265540
265472
|
// const dpos = hoEditorFactory.drawTree.getDlineDrawRootLists(
|
|
@@ -266962,8 +266894,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
266962
266894
|
value: function getCurTextStyle() {
|
|
266963
266895
|
var _this = this;
|
|
266964
266896
|
var curTextStyle = new TextStyle/* TextStyle */.pn(this._hoEditorFactoryID);
|
|
266965
|
-
var
|
|
266966
|
-
var _curDomRange =
|
|
266897
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
266898
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange;
|
|
266967
266899
|
var normalDomRange = _curDomRange.normalize();
|
|
266968
266900
|
var astart = normalDomRange.npStart.node;
|
|
266969
266901
|
var aend = normalDomRange.npEnd.node;
|
|
@@ -266974,14 +266906,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
266974
266906
|
// const drawNode = aend.drawNodes[0] as DrawMedicalExpression;
|
|
266975
266907
|
// this._combineStyle = drawNode.textStyle;
|
|
266976
266908
|
// curTextStyle.setTextStyle(drawNode.textStyle);
|
|
266977
|
-
//
|
|
266909
|
+
// hoEditorFactory.docTree.curStyleIndex = hoEditorFactory.docTree.styleCompare(curTextStyle);
|
|
266978
266910
|
// return;
|
|
266979
266911
|
var getCurStyle = function getCurStyle(node) {
|
|
266980
266912
|
if (node instanceof TextNode/* TextNode */.R || node instanceof ControlNode/* ControlNode */.w || node instanceof MarkNode/* MarkNode */.j || node instanceof ParagraphNode/* ParagraphNode */.C || node instanceof SignNode/* SignNode */.N) {
|
|
266981
|
-
var style =
|
|
266913
|
+
var style = hoEditorFactory.docTree.styles[node.styleIndex];
|
|
266982
266914
|
_this._combineStyle = style.combineStyle;
|
|
266983
266915
|
curTextStyle.setTextStyle(style.combineStyle);
|
|
266984
|
-
|
|
266916
|
+
hoEditorFactory.docTree.curStyleIndex = hoEditorFactory.docTree.styleCompare(curTextStyle);
|
|
266985
266917
|
} else {
|
|
266986
266918
|
var preNode = node.previousLeaf();
|
|
266987
266919
|
getCurStyle(preNode);
|
|
@@ -266991,7 +266923,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
266991
266923
|
return;
|
|
266992
266924
|
}
|
|
266993
266925
|
var anode = astart;
|
|
266994
|
-
var arrStyles =
|
|
266926
|
+
var arrStyles = hoEditorFactory.docTree.styles;
|
|
266995
266927
|
var firstTextNodeStyleIndex = 0;
|
|
266996
266928
|
if (anode && aend) {
|
|
266997
266929
|
do {
|
|
@@ -267060,7 +266992,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267060
266992
|
}
|
|
267061
266993
|
} while (anode && anode !== aend.nextLeaf() && aend.nextLeaf());
|
|
267062
266994
|
this._combineStyle = curTextStyle.combineStyle;
|
|
267063
|
-
|
|
266995
|
+
hoEditorFactory.docTree.curStyleIndex = hoEditorFactory.docTree.styleCompare(curTextStyle);
|
|
267064
266996
|
}
|
|
267065
266997
|
}
|
|
267066
266998
|
}, {
|
|
@@ -267163,20 +267095,20 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267163
267095
|
// * 复制
|
|
267164
267096
|
// */
|
|
267165
267097
|
// public copyOperate() {
|
|
267166
|
-
// const _curDomRange =
|
|
267167
|
-
//
|
|
267098
|
+
// const _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267099
|
+
// hoEditorFactory.docController.copy(_curDomRange);
|
|
267168
267100
|
// }
|
|
267169
267101
|
// /**
|
|
267170
267102
|
// * 剪切
|
|
267171
267103
|
// */
|
|
267172
267104
|
// public cutOperate() {
|
|
267173
|
-
// const _curDomRange =
|
|
267105
|
+
// const _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267174
267106
|
// }
|
|
267175
267107
|
// /**
|
|
267176
267108
|
// * 粘贴
|
|
267177
267109
|
// */
|
|
267178
267110
|
// public pasteOperate() {
|
|
267179
|
-
//
|
|
267111
|
+
// hoEditorFactory.docController.paste();
|
|
267180
267112
|
// }
|
|
267181
267113
|
//----------------------------字体---------------------------------
|
|
267182
267114
|
/**
|
|
@@ -267186,12 +267118,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267186
267118
|
}, {
|
|
267187
267119
|
key: "fontFormat",
|
|
267188
267120
|
value: function fontFormat(fontName) {
|
|
267189
|
-
var
|
|
267121
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267122
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267190
267123
|
var startPath = _curDomRange.normalize().startPath;
|
|
267191
267124
|
var endPath = _curDomRange.normalize().endPath;
|
|
267192
267125
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontFormat */.y.fontFormat);
|
|
267193
|
-
if (
|
|
267194
|
-
|
|
267126
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267127
|
+
hoEditorFactory.docController.fontStyleChangeStr('fontFormat', _curDomRange, fontName);
|
|
267195
267128
|
}
|
|
267196
267129
|
}
|
|
267197
267130
|
/**
|
|
@@ -267200,8 +267133,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267200
267133
|
}, {
|
|
267201
267134
|
key: "clearFormat",
|
|
267202
267135
|
value: function clearFormat() {
|
|
267203
|
-
var
|
|
267204
|
-
|
|
267136
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267137
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267138
|
+
hoEditorFactory.docController.formatClearOrPainter(_curDomRange, 0);
|
|
267205
267139
|
}
|
|
267206
267140
|
/**
|
|
267207
267141
|
* 格式刷
|
|
@@ -267209,9 +267143,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267209
267143
|
}, {
|
|
267210
267144
|
key: "formatPainter",
|
|
267211
267145
|
value: function formatPainter(formatNode) {
|
|
267212
|
-
var
|
|
267213
|
-
|
|
267214
|
-
var _curDomRange =
|
|
267146
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267147
|
+
hoEditorFactory.formatPainter.startFormatPainter(formatNode, hoEditorFactory.docTree.curStyleIndex, hoEditorFactory.docTree.curParaNo, false);
|
|
267148
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267215
267149
|
}
|
|
267216
267150
|
/**
|
|
267217
267151
|
* 设置字号
|
|
@@ -267220,12 +267154,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267220
267154
|
}, {
|
|
267221
267155
|
key: "fontSize",
|
|
267222
267156
|
value: function fontSize(size) {
|
|
267223
|
-
var
|
|
267157
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267158
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267224
267159
|
var startPath = _curDomRange.normalize().startPath;
|
|
267225
267160
|
var endPath = _curDomRange.normalize().endPath;
|
|
267226
267161
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontSize */.y.fontSize);
|
|
267227
|
-
if (
|
|
267228
|
-
|
|
267162
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267163
|
+
hoEditorFactory.docController.fontStyleChangeStr('fontSize', _curDomRange, size.toString());
|
|
267229
267164
|
}
|
|
267230
267165
|
}
|
|
267231
267166
|
/**
|
|
@@ -267234,12 +267169,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267234
267169
|
}, {
|
|
267235
267170
|
key: "fontSizeEnlarge",
|
|
267236
267171
|
value: function fontSizeEnlarge() {
|
|
267237
|
-
var
|
|
267172
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267173
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267238
267174
|
var startPath = _curDomRange.normalize().startPath;
|
|
267239
267175
|
var endPath = _curDomRange.normalize().endPath;
|
|
267240
267176
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontSizeEnlarge */.y.fontSizeEnlarge);
|
|
267241
|
-
if (
|
|
267242
|
-
|
|
267177
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267178
|
+
hoEditorFactory.docController.fontStyleChange('fontSizeEnlarge', _curDomRange);
|
|
267243
267179
|
}
|
|
267244
267180
|
}
|
|
267245
267181
|
/**
|
|
@@ -267248,12 +267184,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267248
267184
|
}, {
|
|
267249
267185
|
key: "fontSizeDecrease",
|
|
267250
267186
|
value: function fontSizeDecrease() {
|
|
267251
|
-
var
|
|
267187
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267188
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267252
267189
|
var startPath = _curDomRange.normalize().startPath;
|
|
267253
267190
|
var endPath = _curDomRange.normalize().endPath;
|
|
267254
267191
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontSizeDecrease */.y.fontSizeDecrease);
|
|
267255
|
-
if (
|
|
267256
|
-
|
|
267192
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267193
|
+
hoEditorFactory.docController.fontStyleChange('fontSizeDecrease', _curDomRange);
|
|
267257
267194
|
}
|
|
267258
267195
|
}
|
|
267259
267196
|
/**
|
|
@@ -267263,12 +267200,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267263
267200
|
}, {
|
|
267264
267201
|
key: "fontSuperScript",
|
|
267265
267202
|
value: function fontSuperScript(isHaveScript) {
|
|
267266
|
-
var
|
|
267203
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267204
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267267
267205
|
var startPath = _curDomRange.normalize().startPath;
|
|
267268
267206
|
var endPath = _curDomRange.normalize().endPath;
|
|
267269
267207
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontSuperScript */.y.fontSuperScript);
|
|
267270
|
-
if (
|
|
267271
|
-
|
|
267208
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267209
|
+
hoEditorFactory.docController.fontStyleChangeBool('fontSuperScript', _curDomRange, isHaveScript);
|
|
267272
267210
|
}
|
|
267273
267211
|
}
|
|
267274
267212
|
/**
|
|
@@ -267278,12 +267216,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267278
267216
|
}, {
|
|
267279
267217
|
key: "fontSubScript",
|
|
267280
267218
|
value: function fontSubScript(isHaveScript) {
|
|
267281
|
-
var
|
|
267219
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267220
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267282
267221
|
var startPath = _curDomRange.normalize().startPath;
|
|
267283
267222
|
var endPath = _curDomRange.normalize().endPath;
|
|
267284
267223
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontSubScript */.y.fontSubScript);
|
|
267285
|
-
if (
|
|
267286
|
-
|
|
267224
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267225
|
+
hoEditorFactory.docController.fontStyleChangeBool('fontSubScript', _curDomRange, isHaveScript);
|
|
267287
267226
|
}
|
|
267288
267227
|
}
|
|
267289
267228
|
/**
|
|
@@ -267293,12 +267232,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267293
267232
|
}, {
|
|
267294
267233
|
key: "fontBold",
|
|
267295
267234
|
value: function fontBold(isHaveBold) {
|
|
267296
|
-
var
|
|
267235
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267236
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267297
267237
|
var startPath = _curDomRange.normalize().startPath;
|
|
267298
267238
|
var endPath = _curDomRange.normalize().endPath;
|
|
267299
267239
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontBold */.y.fontBold);
|
|
267300
|
-
if (
|
|
267301
|
-
|
|
267240
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267241
|
+
hoEditorFactory.docController.fontStyleChangeBool('fontBold', _curDomRange, isHaveBold);
|
|
267302
267242
|
}
|
|
267303
267243
|
}
|
|
267304
267244
|
/**
|
|
@@ -267308,12 +267248,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267308
267248
|
}, {
|
|
267309
267249
|
key: "fontItalic",
|
|
267310
267250
|
value: function fontItalic(isHaveItalic) {
|
|
267311
|
-
var
|
|
267251
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267252
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267312
267253
|
var startPath = _curDomRange.normalize().startPath;
|
|
267313
267254
|
var endPath = _curDomRange.normalize().endPath;
|
|
267314
267255
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontItalic */.y.fontItalic);
|
|
267315
|
-
if (
|
|
267316
|
-
|
|
267256
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267257
|
+
hoEditorFactory.docController.fontStyleChangeBool('fontItalic', _curDomRange, isHaveItalic);
|
|
267317
267258
|
}
|
|
267318
267259
|
}
|
|
267319
267260
|
/**
|
|
@@ -267323,12 +267264,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267323
267264
|
}, {
|
|
267324
267265
|
key: "fontUnderline",
|
|
267325
267266
|
value: function fontUnderline(isHaveUnderline) {
|
|
267326
|
-
var
|
|
267267
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267268
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267327
267269
|
var startPath = _curDomRange.normalize().startPath;
|
|
267328
267270
|
var endPath = _curDomRange.normalize().endPath;
|
|
267329
267271
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontUnderline */.y.fontUnderline);
|
|
267330
|
-
if (
|
|
267331
|
-
|
|
267272
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267273
|
+
hoEditorFactory.docController.fontStyleChangeBool('fontUnderline', _curDomRange, isHaveUnderline);
|
|
267332
267274
|
}
|
|
267333
267275
|
}
|
|
267334
267276
|
/**
|
|
@@ -267338,12 +267280,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267338
267280
|
}, {
|
|
267339
267281
|
key: "fontStrikeout",
|
|
267340
267282
|
value: function fontStrikeout(isHaveStrikeout) {
|
|
267341
|
-
var
|
|
267283
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267284
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267342
267285
|
var startPath = _curDomRange.normalize().startPath;
|
|
267343
267286
|
var endPath = _curDomRange.normalize().endPath;
|
|
267344
267287
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontStrikeout */.y.fontStrikeout);
|
|
267345
|
-
if (
|
|
267346
|
-
|
|
267288
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267289
|
+
hoEditorFactory.docController.fontStyleChangeBool('fontStrikeout', _curDomRange, isHaveStrikeout);
|
|
267347
267290
|
}
|
|
267348
267291
|
}
|
|
267349
267292
|
/**
|
|
@@ -267353,12 +267296,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267353
267296
|
}, {
|
|
267354
267297
|
key: "fontColor",
|
|
267355
267298
|
value: function fontColor(fontcolor) {
|
|
267356
|
-
var
|
|
267299
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267300
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267357
267301
|
var startPath = _curDomRange.normalize().startPath;
|
|
267358
267302
|
var endPath = _curDomRange.normalize().endPath;
|
|
267359
267303
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontColor */.y.fontColor);
|
|
267360
|
-
if (
|
|
267361
|
-
|
|
267304
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267305
|
+
hoEditorFactory.docController.fontStyleChangeStr('fontColor', _curDomRange, fontcolor);
|
|
267362
267306
|
}
|
|
267363
267307
|
}
|
|
267364
267308
|
/**
|
|
@@ -267368,12 +267312,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267368
267312
|
}, {
|
|
267369
267313
|
key: "fontBackColor",
|
|
267370
267314
|
value: function fontBackColor(backColor) {
|
|
267371
|
-
var
|
|
267315
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267316
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267372
267317
|
var startPath = _curDomRange.normalize().startPath;
|
|
267373
267318
|
var endPath = _curDomRange.normalize().endPath;
|
|
267374
267319
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontBackColor */.y.fontBackColor);
|
|
267375
|
-
if (
|
|
267376
|
-
|
|
267320
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267321
|
+
hoEditorFactory.docController.fontStyleChangeStr('fontBackColor', _curDomRange, backColor);
|
|
267377
267322
|
}
|
|
267378
267323
|
}
|
|
267379
267324
|
//----------------------------段落---------------------------------
|
|
@@ -267383,12 +267328,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267383
267328
|
}, {
|
|
267384
267329
|
key: "alignedLeft",
|
|
267385
267330
|
value: function alignedLeft() {
|
|
267386
|
-
var
|
|
267331
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267332
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267387
267333
|
var startPath = _curDomRange.normalize().startPath;
|
|
267388
267334
|
var endPath = _curDomRange.normalize().endPath;
|
|
267389
267335
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daParaStyleChange */.gk.daParaStyleChange, startPath, endPath, NodeChangingEvent/* OperType.alignedLeft */.y.alignedLeft);
|
|
267390
|
-
if (
|
|
267391
|
-
|
|
267336
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267337
|
+
hoEditorFactory.docController.paraStyleChange('alignedLeft', _curDomRange);
|
|
267392
267338
|
}
|
|
267393
267339
|
}
|
|
267394
267340
|
/**
|
|
@@ -267397,12 +267343,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267397
267343
|
}, {
|
|
267398
267344
|
key: "alignedCenter",
|
|
267399
267345
|
value: function alignedCenter() {
|
|
267400
|
-
var
|
|
267346
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267347
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267401
267348
|
var startPath = _curDomRange.normalize().startPath;
|
|
267402
267349
|
var endPath = _curDomRange.normalize().endPath;
|
|
267403
267350
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daParaStyleChange */.gk.daParaStyleChange, startPath, endPath, NodeChangingEvent/* OperType.alignedCenter */.y.alignedCenter);
|
|
267404
|
-
if (
|
|
267405
|
-
|
|
267351
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267352
|
+
hoEditorFactory.docController.paraStyleChange('alignedCenter', _curDomRange);
|
|
267406
267353
|
}
|
|
267407
267354
|
}
|
|
267408
267355
|
/**
|
|
@@ -267411,12 +267358,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267411
267358
|
}, {
|
|
267412
267359
|
key: "alignedRight",
|
|
267413
267360
|
value: function alignedRight() {
|
|
267414
|
-
var
|
|
267361
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267362
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267415
267363
|
var startPath = _curDomRange.normalize().startPath;
|
|
267416
267364
|
var endPath = _curDomRange.normalize().endPath;
|
|
267417
267365
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daParaStyleChange */.gk.daParaStyleChange, startPath, endPath, NodeChangingEvent/* OperType.alignedRight */.y.alignedRight);
|
|
267418
|
-
if (
|
|
267419
|
-
|
|
267366
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267367
|
+
hoEditorFactory.docController.paraStyleChange('alignedRight', _curDomRange);
|
|
267420
267368
|
}
|
|
267421
267369
|
}
|
|
267422
267370
|
/**
|
|
@@ -267425,12 +267373,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267425
267373
|
}, {
|
|
267426
267374
|
key: "alignedBothEnds",
|
|
267427
267375
|
value: function alignedBothEnds() {
|
|
267428
|
-
var
|
|
267376
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267377
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267429
267378
|
var startPath = _curDomRange.normalize().startPath;
|
|
267430
267379
|
var endPath = _curDomRange.normalize().endPath;
|
|
267431
267380
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daParaStyleChange */.gk.daParaStyleChange, startPath, endPath, NodeChangingEvent/* OperType.alignedBothEnds */.y.alignedBothEnds);
|
|
267432
|
-
if (
|
|
267433
|
-
|
|
267381
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267382
|
+
hoEditorFactory.docController.paraStyleChange('alignedBothEnds', _curDomRange);
|
|
267434
267383
|
}
|
|
267435
267384
|
}
|
|
267436
267385
|
/**
|
|
@@ -267439,12 +267388,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267439
267388
|
}, {
|
|
267440
267389
|
key: "addIndent",
|
|
267441
267390
|
value: function addIndent() {
|
|
267442
|
-
var
|
|
267391
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267392
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267443
267393
|
var startPath = _curDomRange.normalize().startPath;
|
|
267444
267394
|
var endPath = _curDomRange.normalize().endPath;
|
|
267445
267395
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daParaStyleChange */.gk.daParaStyleChange, startPath, endPath, NodeChangingEvent/* OperType.addIndent */.y.addIndent);
|
|
267446
|
-
if (
|
|
267447
|
-
|
|
267396
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267397
|
+
hoEditorFactory.docController.paraStyleChange('addIndent', _curDomRange);
|
|
267448
267398
|
}
|
|
267449
267399
|
}
|
|
267450
267400
|
/**
|
|
@@ -267453,12 +267403,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267453
267403
|
}, {
|
|
267454
267404
|
key: "decreaseIndent",
|
|
267455
267405
|
value: function decreaseIndent() {
|
|
267456
|
-
var
|
|
267406
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267407
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267457
267408
|
var startPath = _curDomRange.normalize().startPath;
|
|
267458
267409
|
var endPath = _curDomRange.normalize().endPath;
|
|
267459
267410
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daParaStyleChange */.gk.daParaStyleChange, startPath, endPath, NodeChangingEvent/* OperType.decreaseIndent */.y.decreaseIndent);
|
|
267460
|
-
if (
|
|
267461
|
-
|
|
267411
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267412
|
+
hoEditorFactory.docController.paraStyleChange('decreaseIndent', _curDomRange);
|
|
267462
267413
|
}
|
|
267463
267414
|
}
|
|
267464
267415
|
/**
|
|
@@ -267468,12 +267419,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267468
267419
|
}, {
|
|
267469
267420
|
key: "setLineHeight",
|
|
267470
267421
|
value: function setLineHeight(lineHeight) {
|
|
267471
|
-
var
|
|
267422
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267423
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267472
267424
|
var startPath = _curDomRange.normalize().startPath;
|
|
267473
267425
|
var endPath = _curDomRange.normalize().endPath;
|
|
267474
267426
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daParaStyleChange */.gk.daParaStyleChange, startPath, endPath, NodeChangingEvent/* OperType.setLineHeight */.y.setLineHeight);
|
|
267475
|
-
if (
|
|
267476
|
-
|
|
267427
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267428
|
+
hoEditorFactory.docController.paraStyleChange('lineHeight', _curDomRange, lineHeight);
|
|
267477
267429
|
}
|
|
267478
267430
|
}
|
|
267479
267431
|
//----------------------------表格---------------------------------
|
|
@@ -267485,12 +267437,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267485
267437
|
}, {
|
|
267486
267438
|
key: "insertTable",
|
|
267487
267439
|
value: function insertTable(irow, icol) {
|
|
267488
|
-
var
|
|
267440
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267441
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267489
267442
|
var startPath = _curDomRange.normalize().startPath;
|
|
267490
267443
|
var endPath = _curDomRange.normalize().endPath;
|
|
267491
267444
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertTable */.y.insertTable);
|
|
267492
|
-
if (
|
|
267493
|
-
|
|
267445
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267446
|
+
hoEditorFactory.docController.insertTable(_curDomRange, irow, icol);
|
|
267494
267447
|
}
|
|
267495
267448
|
}
|
|
267496
267449
|
/**
|
|
@@ -267500,12 +267453,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267500
267453
|
}, {
|
|
267501
267454
|
key: "insertTableRowAbove",
|
|
267502
267455
|
value: function insertTableRowAbove(count) {
|
|
267503
|
-
var
|
|
267456
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267457
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange.normalize(); //获取当前选中区域
|
|
267504
267458
|
var startPath = _curDomRange.normalize().startPath;
|
|
267505
267459
|
var endPath = _curDomRange.normalize().endPath;
|
|
267506
267460
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertRowAbove */.y.insertRowAbove);
|
|
267507
|
-
if (
|
|
267508
|
-
|
|
267461
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267462
|
+
hoEditorFactory.docController.insertTableRowAbove(_curDomRange, count);
|
|
267509
267463
|
}
|
|
267510
267464
|
}
|
|
267511
267465
|
/**
|
|
@@ -267515,12 +267469,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267515
267469
|
}, {
|
|
267516
267470
|
key: "insertTableRowBelow",
|
|
267517
267471
|
value: function insertTableRowBelow(count) {
|
|
267518
|
-
var
|
|
267472
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267473
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange.normalize(); //获取当前选中区域
|
|
267519
267474
|
var startPath = _curDomRange.normalize().startPath;
|
|
267520
267475
|
var endPath = _curDomRange.normalize().endPath;
|
|
267521
267476
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertRowBelow */.y.insertRowBelow);
|
|
267522
|
-
if (
|
|
267523
|
-
|
|
267477
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267478
|
+
hoEditorFactory.docController.insertTableRowBelow(_curDomRange, count);
|
|
267524
267479
|
}
|
|
267525
267480
|
}
|
|
267526
267481
|
/**
|
|
@@ -267530,12 +267485,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267530
267485
|
}, {
|
|
267531
267486
|
key: "insertTableColLeft",
|
|
267532
267487
|
value: function insertTableColLeft(count) {
|
|
267533
|
-
var
|
|
267488
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267489
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange.normalize(); //获取当前选中区域
|
|
267534
267490
|
var startPath = _curDomRange.normalize().startPath;
|
|
267535
267491
|
var endPath = _curDomRange.normalize().endPath;
|
|
267536
267492
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertColLeft */.y.insertColLeft);
|
|
267537
|
-
if (
|
|
267538
|
-
|
|
267493
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267494
|
+
hoEditorFactory.docController.insertTableColLeft(_curDomRange, count);
|
|
267539
267495
|
}
|
|
267540
267496
|
}
|
|
267541
267497
|
/**
|
|
@@ -267545,12 +267501,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267545
267501
|
}, {
|
|
267546
267502
|
key: "insertTableColRight",
|
|
267547
267503
|
value: function insertTableColRight(count) {
|
|
267548
|
-
var
|
|
267504
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267505
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange.normalize(); //获取当前选中区域
|
|
267549
267506
|
var startPath = _curDomRange.normalize().startPath;
|
|
267550
267507
|
var endPath = _curDomRange.normalize().endPath;
|
|
267551
267508
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertColRight */.y.insertColRight);
|
|
267552
|
-
if (
|
|
267553
|
-
|
|
267509
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267510
|
+
hoEditorFactory.docController.insertTableColRight(_curDomRange, count);
|
|
267554
267511
|
}
|
|
267555
267512
|
}
|
|
267556
267513
|
/**
|
|
@@ -267559,12 +267516,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267559
267516
|
}, {
|
|
267560
267517
|
key: "tableDeleteRows",
|
|
267561
267518
|
value: function tableDeleteRows() {
|
|
267562
|
-
var
|
|
267519
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267520
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
267563
267521
|
var startPath = _curDomRange.normalize().startPath;
|
|
267564
267522
|
var endPath = _curDomRange.normalize().endPath;
|
|
267565
267523
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.tableDeleteRows */.y.tableDeleteRows);
|
|
267566
|
-
if (
|
|
267567
|
-
|
|
267524
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267525
|
+
hoEditorFactory.docController.tableDeleteRows(_curDomRange);
|
|
267568
267526
|
}
|
|
267569
267527
|
}
|
|
267570
267528
|
/**
|
|
@@ -267573,12 +267531,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267573
267531
|
}, {
|
|
267574
267532
|
key: "tableDeleteCols",
|
|
267575
267533
|
value: function tableDeleteCols() {
|
|
267576
|
-
var
|
|
267534
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267535
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
267577
267536
|
var startPath = _curDomRange.normalize().startPath;
|
|
267578
267537
|
var endPath = _curDomRange.normalize().endPath;
|
|
267579
267538
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.tableDeleteCols */.y.tableDeleteCols);
|
|
267580
|
-
if (
|
|
267581
|
-
|
|
267539
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267540
|
+
hoEditorFactory.docController.tableDeleteCols(_curDomRange);
|
|
267582
267541
|
}
|
|
267583
267542
|
}
|
|
267584
267543
|
/**
|
|
@@ -267587,12 +267546,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267587
267546
|
}, {
|
|
267588
267547
|
key: "tableMergerCells",
|
|
267589
267548
|
value: function tableMergerCells() {
|
|
267590
|
-
var
|
|
267549
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267550
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
267591
267551
|
var startPath = _curDomRange.normalize().startPath;
|
|
267592
267552
|
var endPath = _curDomRange.normalize().endPath;
|
|
267593
267553
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.tableMergerCells */.y.tableMergerCells);
|
|
267594
|
-
if (
|
|
267595
|
-
|
|
267554
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267555
|
+
hoEditorFactory.docController.tableMergerCells(_curDomRange);
|
|
267596
267556
|
}
|
|
267597
267557
|
}
|
|
267598
267558
|
/**
|
|
@@ -267601,12 +267561,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267601
267561
|
}, {
|
|
267602
267562
|
key: "tableUnMergerCells",
|
|
267603
267563
|
value: function tableUnMergerCells() {
|
|
267604
|
-
var
|
|
267564
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267565
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
267605
267566
|
var startPath = _curDomRange.normalize().startPath;
|
|
267606
267567
|
var endPath = _curDomRange.normalize().endPath;
|
|
267607
267568
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.tableUnMergerCells */.y.tableUnMergerCells);
|
|
267608
|
-
if (
|
|
267609
|
-
|
|
267569
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267570
|
+
hoEditorFactory.docController.tableUnMergerCells(_curDomRange);
|
|
267610
267571
|
}
|
|
267611
267572
|
}
|
|
267612
267573
|
/**
|
|
@@ -267623,7 +267584,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267623
267584
|
}, {
|
|
267624
267585
|
key: "tableProperty",
|
|
267625
267586
|
value: function tableProperty(objectValues, tableNode) {
|
|
267626
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID)
|
|
267587
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267588
|
+
hoEditorFactory.docController.setTableProperty(objectValues, tableNode);
|
|
267627
267589
|
}
|
|
267628
267590
|
/**
|
|
267629
267591
|
* 设置行属性
|
|
@@ -267642,8 +267604,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267642
267604
|
}, {
|
|
267643
267605
|
key: "rowProperty",
|
|
267644
267606
|
value: function rowProperty(objectValues, rowInfo) {
|
|
267645
|
-
var
|
|
267646
|
-
|
|
267607
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267608
|
+
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
267609
|
+
hoEditorFactory.docController.setRowProperty(curDomRange, objectValues, rowInfo);
|
|
267647
267610
|
}
|
|
267648
267611
|
/**
|
|
267649
267612
|
* 设置列属性
|
|
@@ -267670,8 +267633,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267670
267633
|
}, {
|
|
267671
267634
|
key: "colProperty",
|
|
267672
267635
|
value: function colProperty(objectValues, colInfo) {
|
|
267673
|
-
var
|
|
267674
|
-
|
|
267636
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267637
|
+
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
267638
|
+
hoEditorFactory.docController.setColProperty(curDomRange, objectValues, colInfo);
|
|
267675
267639
|
}
|
|
267676
267640
|
/**
|
|
267677
267641
|
* 设置单元格属性
|
|
@@ -267693,7 +267657,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267693
267657
|
}, {
|
|
267694
267658
|
key: "cellProperty",
|
|
267695
267659
|
value: function cellProperty(objectValues, cellNode) {
|
|
267696
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID)
|
|
267660
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267661
|
+
hoEditorFactory.docController.setCellProperty(objectValues, cellNode);
|
|
267697
267662
|
}
|
|
267698
267663
|
//------------------------------医学表达式----------------------------------
|
|
267699
267664
|
/**
|
|
@@ -267730,11 +267695,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267730
267695
|
}, {
|
|
267731
267696
|
key: "updateMenstrualHistory",
|
|
267732
267697
|
value: function updateMenstrualHistory(expressionStyle, menseDays, cycleDays, menarcheAge, menoPauseAge) {
|
|
267733
|
-
var
|
|
267698
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267699
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267734
267700
|
var startPath = _curDomRange.normalize().startPath;
|
|
267735
267701
|
var endPath = _curDomRange.normalize().endPath;
|
|
267736
267702
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateMedicalExpression */.y.updateMedicalExpression);
|
|
267737
|
-
if (
|
|
267703
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267738
267704
|
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertMenstrualHistory('update', _curDomRange, expressionStyle, menseDays, cycleDays, menarcheAge, menoPauseAge);
|
|
267739
267705
|
}
|
|
267740
267706
|
}
|
|
@@ -267776,12 +267742,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267776
267742
|
}, {
|
|
267777
267743
|
key: "updatePupilMap",
|
|
267778
267744
|
value: function updatePupilMap(value1, value2, value3, value4, value5, value6, value7) {
|
|
267779
|
-
var
|
|
267745
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267746
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267780
267747
|
var startPath = _curDomRange.normalize().startPath;
|
|
267781
267748
|
var endPath = _curDomRange.normalize().endPath;
|
|
267782
267749
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateMedicalExpression */.y.updateMedicalExpression);
|
|
267783
|
-
if (
|
|
267784
|
-
|
|
267750
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267751
|
+
hoEditorFactory.docController.insertPupilMap('update', _curDomRange, value1, value2, value3, value4, value5, value6, value7);
|
|
267785
267752
|
}
|
|
267786
267753
|
}
|
|
267787
267754
|
/**
|
|
@@ -267826,11 +267793,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267826
267793
|
}, {
|
|
267827
267794
|
key: "updateLightLocation",
|
|
267828
267795
|
value: function updateLightLocation(value1, value2, value3, value4, value5, value6, value7, value8, value9) {
|
|
267829
|
-
var
|
|
267796
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267797
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267830
267798
|
var startPath = _curDomRange.normalize().startPath;
|
|
267831
267799
|
var endPath = _curDomRange.normalize().endPath;
|
|
267832
267800
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateMedicalExpression */.y.updateMedicalExpression);
|
|
267833
|
-
if (
|
|
267801
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267834
267802
|
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertLightLocation('update', _curDomRange, value1, value2, value3, value4, value5, value6, value7, value8, value9);
|
|
267835
267803
|
}
|
|
267836
267804
|
}
|
|
@@ -267870,12 +267838,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
267870
267838
|
}, {
|
|
267871
267839
|
key: "updateFetalHeartMap",
|
|
267872
267840
|
value: function updateFetalHeartMap(value1, value2, value3, value4, value5, value6) {
|
|
267873
|
-
var
|
|
267841
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267842
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
267874
267843
|
var startPath = _curDomRange.normalize().startPath;
|
|
267875
267844
|
var endPath = _curDomRange.normalize().endPath;
|
|
267876
267845
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateMedicalExpression */.y.updateMedicalExpression);
|
|
267877
|
-
if (
|
|
267878
|
-
|
|
267846
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267847
|
+
hoEditorFactory.docController.insertFetalHeartMap('update', _curDomRange, value1, value2, value3, value4, value5, value6);
|
|
267879
267848
|
}
|
|
267880
267849
|
}
|
|
267881
267850
|
/**
|
|
@@ -268006,12 +267975,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268006
267975
|
}, {
|
|
268007
267976
|
key: "insertTextInputField",
|
|
268008
267977
|
value: function insertTextInputField(operType, valuesObject) {
|
|
268009
|
-
var
|
|
267978
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
267979
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
268010
267980
|
var startPath = _curDomRange.normalize().startPath;
|
|
268011
267981
|
var endPath = _curDomRange.normalize().endPath;
|
|
268012
267982
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertTextInputField */.y.insertTextInputField);
|
|
268013
|
-
if (
|
|
268014
|
-
var path =
|
|
267983
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
267984
|
+
var path = hoEditorFactory.docController.insertTextInputField('add', _curDomRange, valuesObject);
|
|
268015
267985
|
return path;
|
|
268016
267986
|
}
|
|
268017
267987
|
return startPath;
|
|
@@ -268060,12 +268030,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268060
268030
|
}, {
|
|
268061
268031
|
key: "updateTextInputField",
|
|
268062
268032
|
value: function updateTextInputField(valuesObject) {
|
|
268063
|
-
var
|
|
268033
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268034
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
268064
268035
|
var startPath = _curDomRange.normalize().startPath;
|
|
268065
268036
|
var endPath = _curDomRange.normalize().endPath;
|
|
268066
268037
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateTextInputField */.y.updateTextInputField);
|
|
268067
|
-
if (
|
|
268068
|
-
|
|
268038
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
268039
|
+
hoEditorFactory.docController.insertTextInputField('update', _curDomRange, valuesObject);
|
|
268069
268040
|
}
|
|
268070
268041
|
}
|
|
268071
268042
|
/**
|
|
@@ -268112,12 +268083,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268112
268083
|
}, {
|
|
268113
268084
|
key: "insertBarcode",
|
|
268114
268085
|
value: function insertBarcode(operType, id, textContent, isDisplayText, imagePath, width, height, bandDataSource) {
|
|
268115
|
-
var
|
|
268086
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268087
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
268116
268088
|
var startPath = _curDomRange.normalize().startPath;
|
|
268117
268089
|
var endPath = _curDomRange.normalize().endPath;
|
|
268118
268090
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertBarcode */.y.insertBarcode);
|
|
268119
|
-
if (
|
|
268120
|
-
|
|
268091
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
268092
|
+
hoEditorFactory.docController.insertBarcode('add', _curDomRange, id, textContent, isDisplayText, imagePath, width, height, bandDataSource);
|
|
268121
268093
|
}
|
|
268122
268094
|
}
|
|
268123
268095
|
/**
|
|
@@ -268132,11 +268104,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268132
268104
|
}, {
|
|
268133
268105
|
key: "updateBarcode",
|
|
268134
268106
|
value: function updateBarcode(id, textContent, isDisplayText, imagePath, width, height, bandDataSource) {
|
|
268135
|
-
var
|
|
268107
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268108
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
268136
268109
|
var startPath = _curDomRange.normalize().startPath;
|
|
268137
268110
|
var endPath = _curDomRange.normalize().endPath;
|
|
268138
268111
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateBarcode */.y.updateBarcode);
|
|
268139
|
-
if (
|
|
268112
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
268140
268113
|
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertBarcode('update', _curDomRange, id, textContent, isDisplayText, imagePath, width, height, bandDataSource);
|
|
268141
268114
|
}
|
|
268142
268115
|
}
|
|
@@ -268160,11 +268133,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268160
268133
|
}, {
|
|
268161
268134
|
key: "insertQrcode",
|
|
268162
268135
|
value: function insertQrcode(operType, id, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height) {
|
|
268163
|
-
var
|
|
268136
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268137
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
268164
268138
|
var startPath = _curDomRange.normalize().startPath;
|
|
268165
268139
|
var endPath = _curDomRange.normalize().endPath;
|
|
268166
268140
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertQrcode */.y.insertQrcode);
|
|
268167
|
-
if (
|
|
268141
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
268168
268142
|
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode('add', _curDomRange, id, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height);
|
|
268169
268143
|
}
|
|
268170
268144
|
}
|
|
@@ -268187,11 +268161,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268187
268161
|
}, {
|
|
268188
268162
|
key: "updateQrcode",
|
|
268189
268163
|
value: function updateQrcode(id, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height) {
|
|
268190
|
-
var
|
|
268164
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268165
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
268191
268166
|
var startPath = _curDomRange.normalize().startPath;
|
|
268192
268167
|
var endPath = _curDomRange.normalize().endPath;
|
|
268193
268168
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateQrcode */.y.updateQrcode);
|
|
268194
|
-
if (
|
|
268169
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
268195
268170
|
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode('update', _curDomRange, id, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height);
|
|
268196
268171
|
}
|
|
268197
268172
|
}
|
|
@@ -268217,12 +268192,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268217
268192
|
}, {
|
|
268218
268193
|
key: "insertRadioAndCheckBox",
|
|
268219
268194
|
value: function insertRadioAndCheckBox(operType, valuesObject) {
|
|
268220
|
-
var
|
|
268195
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268196
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
268221
268197
|
var startPath = _curDomRange.normalize().startPath;
|
|
268222
268198
|
var endPath = _curDomRange.normalize().endPath;
|
|
268223
268199
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertRadioAndCheckBox */.y.insertRadioAndCheckBox);
|
|
268224
|
-
if (
|
|
268225
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertRadioAndCheckBox('add', _curDomRange, valuesObject,
|
|
268200
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
268201
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertRadioAndCheckBox('add', _curDomRange, valuesObject, hoEditorFactory.docTree.curStyleIndex);
|
|
268226
268202
|
}
|
|
268227
268203
|
}
|
|
268228
268204
|
/**
|
|
@@ -268246,12 +268222,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268246
268222
|
}, {
|
|
268247
268223
|
key: "updateRadioAndCheckBox",
|
|
268248
268224
|
value: function updateRadioAndCheckBox(valuesObject) {
|
|
268249
|
-
var
|
|
268225
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268226
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
268250
268227
|
var startPath = _curDomRange.normalize().startPath;
|
|
268251
268228
|
var endPath = _curDomRange.normalize().endPath;
|
|
268252
268229
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateRadioAndCheckBox */.y.updateRadioAndCheckBox);
|
|
268253
|
-
if (
|
|
268254
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertRadioAndCheckBox('update', _curDomRange, valuesObject,
|
|
268230
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
268231
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertRadioAndCheckBox('update', _curDomRange, valuesObject, hoEditorFactory.docTree.curStyleIndex);
|
|
268255
268232
|
}
|
|
268256
268233
|
}
|
|
268257
268234
|
/**
|
|
@@ -268263,8 +268240,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268263
268240
|
}, {
|
|
268264
268241
|
key: "find",
|
|
268265
268242
|
value: function find(findContent, direction, matchCase) {
|
|
268266
|
-
var
|
|
268267
|
-
var
|
|
268243
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268244
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
268245
|
+
var returnPath = hoEditorFactory.docController.find(_curDomRange, findContent, direction, matchCase);
|
|
268268
268246
|
return returnPath;
|
|
268269
268247
|
}
|
|
268270
268248
|
/**
|
|
@@ -268279,8 +268257,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268279
268257
|
}, {
|
|
268280
268258
|
key: "replace",
|
|
268281
268259
|
value: function replace(findContent, replaceContent, path, type, direction, matchCase) {
|
|
268282
|
-
var
|
|
268283
|
-
|
|
268260
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268261
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
268262
|
+
hoEditorFactory.docController.replace(_curDomRange, findContent, replaceContent, path, type, direction, matchCase);
|
|
268284
268263
|
}
|
|
268285
268264
|
/**
|
|
268286
268265
|
* 插入日期时间节点
|
|
@@ -268301,12 +268280,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268301
268280
|
}, {
|
|
268302
268281
|
key: "insertDateTime",
|
|
268303
268282
|
value: function insertDateTime(operType, valuesObject) {
|
|
268304
|
-
var
|
|
268283
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268284
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
268305
268285
|
var startPath = _curDomRange.normalize().startPath;
|
|
268306
268286
|
var endPath = _curDomRange.normalize().endPath;
|
|
268307
268287
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertDateTime */.y.insertDateTime);
|
|
268308
|
-
if (
|
|
268309
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDateTime('add', _curDomRange, valuesObject,
|
|
268288
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
268289
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDateTime('add', _curDomRange, valuesObject, hoEditorFactory.docTree.curStyleIndex);
|
|
268310
268290
|
}
|
|
268311
268291
|
}
|
|
268312
268292
|
/**
|
|
@@ -268327,12 +268307,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268327
268307
|
}, {
|
|
268328
268308
|
key: "updateDateTime",
|
|
268329
268309
|
value: function updateDateTime(valuesObject) {
|
|
268330
|
-
var
|
|
268310
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268311
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
268331
268312
|
var startPath = _curDomRange.normalize().startPath;
|
|
268332
268313
|
var endPath = _curDomRange.normalize().endPath;
|
|
268333
268314
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateDateTime */.y.updateDateTime);
|
|
268334
|
-
if (
|
|
268335
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDateTime('update', _curDomRange, valuesObject,
|
|
268315
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
268316
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDateTime('update', _curDomRange, valuesObject, hoEditorFactory.docTree.curStyleIndex);
|
|
268336
268317
|
}
|
|
268337
268318
|
}
|
|
268338
268319
|
/**
|
|
@@ -268356,12 +268337,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268356
268337
|
}, {
|
|
268357
268338
|
key: "insertDownList",
|
|
268358
268339
|
value: function insertDownList(operType, valuesObject, downListContent) {
|
|
268359
|
-
var
|
|
268340
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268341
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
268360
268342
|
var startPath = _curDomRange.normalize().startPath;
|
|
268361
268343
|
var endPath = _curDomRange.normalize().endPath;
|
|
268362
268344
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertDownList */.y.insertDownList);
|
|
268363
|
-
if (
|
|
268364
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDownList('add', _curDomRange, valuesObject, downListContent,
|
|
268345
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
268346
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDownList('add', _curDomRange, valuesObject, downListContent, hoEditorFactory.docTree.curStyleIndex);
|
|
268365
268347
|
}
|
|
268366
268348
|
}
|
|
268367
268349
|
/**
|
|
@@ -268384,12 +268366,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268384
268366
|
}, {
|
|
268385
268367
|
key: "updateDownList",
|
|
268386
268368
|
value: function updateDownList(valuesObject, downListContent) {
|
|
268387
|
-
var
|
|
268369
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268370
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
268388
268371
|
var startPath = _curDomRange.normalize().startPath;
|
|
268389
268372
|
var endPath = _curDomRange.normalize().endPath;
|
|
268390
268373
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateDownList */.y.updateDownList);
|
|
268391
|
-
if (
|
|
268392
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDownList('update', _curDomRange, valuesObject, downListContent,
|
|
268374
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
268375
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDownList('update', _curDomRange, valuesObject, downListContent, hoEditorFactory.docTree.curStyleIndex);
|
|
268393
268376
|
}
|
|
268394
268377
|
}
|
|
268395
268378
|
/**
|
|
@@ -268408,7 +268391,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268408
268391
|
var endPath = _curDomRange.normalize().endPath;
|
|
268409
268392
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSpecialChars */.y.insertSpecialChars);
|
|
268410
268393
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
268411
|
-
hoEditorFactory.docController.insertSpecialChars(operType, _curDomRange, chars,
|
|
268394
|
+
hoEditorFactory.docController.insertSpecialChars(operType, _curDomRange, chars, hoEditorFactory.docTree.curStyleIndex);
|
|
268412
268395
|
}
|
|
268413
268396
|
}
|
|
268414
268397
|
}
|
|
@@ -268444,9 +268427,10 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268444
268427
|
}, {
|
|
268445
268428
|
key: "uploadDataSet",
|
|
268446
268429
|
value: function uploadDataSet() {
|
|
268447
|
-
var
|
|
268430
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268431
|
+
var data = hoEditorFactory.testDataSet.getTestJsonData();
|
|
268448
268432
|
var jsonData = JSON.parse(JSON.stringify(data));
|
|
268449
|
-
|
|
268433
|
+
hoEditorFactory.structureConvert.loadDataSet(jsonData);
|
|
268450
268434
|
}
|
|
268451
268435
|
/**
|
|
268452
268436
|
* 文件另存为
|
|
@@ -268485,7 +268469,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268485
268469
|
}
|
|
268486
268470
|
if (type === 'html') {
|
|
268487
268471
|
this.saveAsPDF('', 'html');
|
|
268488
|
-
// ret =
|
|
268472
|
+
// ret = hoEditorFactory.structureConvert.doc2Html();
|
|
268489
268473
|
}
|
|
268490
268474
|
|
|
268491
268475
|
if (type === 'json') {
|
|
@@ -268502,7 +268486,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268502
268486
|
}, {
|
|
268503
268487
|
key: "getDocTitle",
|
|
268504
268488
|
value: function getDocTitle() {
|
|
268505
|
-
|
|
268489
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268490
|
+
return hoEditorFactory.docTree.docProperty.title;
|
|
268506
268491
|
}
|
|
268507
268492
|
/**
|
|
268508
268493
|
* 文档内容
|
|
@@ -268510,7 +268495,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268510
268495
|
}, {
|
|
268511
268496
|
key: "getDocProperty",
|
|
268512
268497
|
value: function getDocProperty() {
|
|
268513
|
-
|
|
268498
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268499
|
+
return hoEditorFactory.docTree.docProperty;
|
|
268514
268500
|
}
|
|
268515
268501
|
/**
|
|
268516
268502
|
*
|
|
@@ -268519,12 +268505,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268519
268505
|
// public saveAsFileTest(type: string): string[] {
|
|
268520
268506
|
// const ret: string[] = [];
|
|
268521
268507
|
// if (type === "xml") {
|
|
268522
|
-
// const ret1 =
|
|
268508
|
+
// const ret1 = hoEditorFactory.structureConvert.doc2Xml("xml");
|
|
268523
268509
|
// //ret1 = pd.xml(ret1);
|
|
268524
268510
|
// ret.push(ret1);
|
|
268525
268511
|
// }
|
|
268526
|
-
// const data =
|
|
268527
|
-
// const retJson =
|
|
268512
|
+
// const data = hoEditorFactory.testDataSet.getTestJsonData();
|
|
268513
|
+
// const retJson = hoEditorFactory.structureConvert.getRowsJsonData(data);
|
|
268528
268514
|
// //retJson = require("pretty-data").pd.xml(retJson);
|
|
268529
268515
|
// //retJson = pd.xml(retJson);
|
|
268530
268516
|
// ret.push(retJson);
|
|
@@ -268557,8 +268543,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268557
268543
|
}, {
|
|
268558
268544
|
key: "getDocJson",
|
|
268559
268545
|
value: function getDocJson() {
|
|
268560
|
-
var
|
|
268561
|
-
var
|
|
268546
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268547
|
+
var data = hoEditorFactory.testDataSet.getTestJsonData();
|
|
268548
|
+
var retJson = hoEditorFactory.structureConvert.getRowsJsonData(data);
|
|
268562
268549
|
//retJson = pd.json(retJson);
|
|
268563
268550
|
return retJson;
|
|
268564
268551
|
}
|
|
@@ -268567,7 +268554,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268567
268554
|
// * @param oldRowsData
|
|
268568
268555
|
// */
|
|
268569
268556
|
// public getNewRowsData(oldRowsData: any): any {
|
|
268570
|
-
// const jsonData =
|
|
268557
|
+
// const jsonData = hoEditorFactory.structureConvert.getRowsJsonData(oldRowsData);
|
|
268571
268558
|
// return jsonData
|
|
268572
268559
|
// }
|
|
268573
268560
|
/**
|
|
@@ -268603,16 +268590,16 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268603
268590
|
// HOEditorFactorys.instance().hoEditorFactoryMap.forEach((hoEditorFactory: HOEditorFactory) => {
|
|
268604
268591
|
// hoEditorFactory.docController.setPageProperty(objectValues);
|
|
268605
268592
|
// })
|
|
268606
|
-
var
|
|
268607
|
-
|
|
268608
|
-
for (var i = 0; i <
|
|
268609
|
-
|
|
268593
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268594
|
+
hoEditorFactory.docController.setPageProperty(objectValues);
|
|
268595
|
+
for (var i = 0; i < hoEditorFactory.drawTree.drawPages.length; i++) {
|
|
268596
|
+
hoEditorFactory.drawTree.drawPages[i].reFreshBounds();
|
|
268610
268597
|
}
|
|
268611
268598
|
// this.rebuildAll();
|
|
268612
|
-
if (
|
|
268599
|
+
if (hoEditorFactory.drawTree.drawPages.length > 1 || hoEditorFactory.drawTree.mainDNodes.length > 1 || hoEditorFactory.drawTree.mainDNodes[0] instanceof DrawTable/* DrawTable */.t || hoEditorFactory.drawTree.mainDNodes[0] instanceof DrawLine/* DrawLine */.a && hoEditorFactory.drawTree.mainDNodes[0].drawItems.length > 0 || hoEditorFactory.drawTree.headerDNodes.length >= 1 && hoEditorFactory.drawTree.headerDNodes[0].length > 1 || hoEditorFactory.drawTree.footerDNodes.length >= 1 && hoEditorFactory.drawTree.footerDNodes[0].length > 1) {
|
|
268613
268600
|
this.rebuildAll(true);
|
|
268614
268601
|
} else {
|
|
268615
|
-
|
|
268602
|
+
hoEditorFactory.drawTree.updateDrawTreeFirstLine();
|
|
268616
268603
|
}
|
|
268617
268604
|
}
|
|
268618
268605
|
/**
|
|
@@ -268622,12 +268609,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268622
268609
|
}, {
|
|
268623
268610
|
key: "insertComment",
|
|
268624
268611
|
value: function insertComment(text, source) {
|
|
268625
|
-
var
|
|
268612
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268613
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
268626
268614
|
var startPath = _curDomRange.normalize().startPath;
|
|
268627
268615
|
var endPath = _curDomRange.normalize().endPath;
|
|
268628
268616
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertComment */.y.insertComment);
|
|
268629
|
-
if (
|
|
268630
|
-
|
|
268617
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
268618
|
+
hoEditorFactory.docController.insertComment(text, _curDomRange, source);
|
|
268631
268619
|
}
|
|
268632
268620
|
}
|
|
268633
268621
|
/**
|
|
@@ -268637,12 +268625,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268637
268625
|
}, {
|
|
268638
268626
|
key: "deleteComment",
|
|
268639
268627
|
value: function deleteComment(type) {
|
|
268640
|
-
var
|
|
268628
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268629
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
268641
268630
|
var startPath = _curDomRange.normalize().startPath;
|
|
268642
268631
|
var endPath = _curDomRange.normalize().endPath;
|
|
268643
268632
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daDelete */.gk.daDelete, startPath, endPath, NodeChangingEvent/* OperType.deleteComment */.y.deleteComment);
|
|
268644
|
-
if (
|
|
268645
|
-
|
|
268633
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
268634
|
+
hoEditorFactory.docController.deleteComment(type);
|
|
268646
268635
|
}
|
|
268647
268636
|
}
|
|
268648
268637
|
// /**
|
|
@@ -268650,7 +268639,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268650
268639
|
// * @param 用户信息
|
|
268651
268640
|
// */
|
|
268652
268641
|
// public setCurrentUser(objectValues: string) {
|
|
268653
|
-
//
|
|
268642
|
+
// hoEditorFactory.docController.setCurrentUser(objectValues);
|
|
268654
268643
|
// }
|
|
268655
268644
|
// /**
|
|
268656
268645
|
// * 根据用户级别设置审阅编辑文本颜色
|
|
@@ -268658,7 +268647,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268658
268647
|
// * @param color 颜色
|
|
268659
268648
|
// */
|
|
268660
268649
|
// public setTextColorByUserLevel(level: number, color: string) {
|
|
268661
|
-
//
|
|
268650
|
+
// hoEditorFactory.docController.setTextColorByUserLevel(level, color);
|
|
268662
268651
|
// }
|
|
268663
268652
|
/**
|
|
268664
268653
|
* 插入页码 页数
|
|
@@ -268670,12 +268659,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268670
268659
|
}, {
|
|
268671
268660
|
key: "insertPageNum",
|
|
268672
268661
|
value: function insertPageNum(operType, contentType, formatType, autoSetHeight) {
|
|
268673
|
-
var
|
|
268662
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268663
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
268674
268664
|
var startPath = _curDomRange.normalize().startPath;
|
|
268675
268665
|
var endPath = _curDomRange.normalize().endPath;
|
|
268676
268666
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertPageNum */.y.insertPageNum);
|
|
268677
|
-
if (
|
|
268678
|
-
|
|
268667
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
268668
|
+
hoEditorFactory.docController.insertPageNum(operType, _curDomRange, contentType, formatType, autoSetHeight);
|
|
268679
268669
|
}
|
|
268680
268670
|
}
|
|
268681
268671
|
/**
|
|
@@ -268685,19 +268675,19 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268685
268675
|
}, {
|
|
268686
268676
|
key: "newFile",
|
|
268687
268677
|
value: function newFile(type) {
|
|
268688
|
-
var
|
|
268678
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268689
268679
|
if (type === 'caseHistory') {
|
|
268690
|
-
|
|
268680
|
+
hoEditorFactory.docTree.docProperty.type = DocTree/* EmrType.etCaseHistory */.Fr.etCaseHistory;
|
|
268691
268681
|
}
|
|
268692
268682
|
if (type === 'form') {
|
|
268693
|
-
|
|
268683
|
+
hoEditorFactory.docTree.docProperty.type = DocTree/* EmrType.etForm */.Fr.etForm;
|
|
268694
268684
|
}
|
|
268695
|
-
var _curDomRange =
|
|
268685
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
268696
268686
|
var startPath = _curDomRange.normalize().startPath;
|
|
268697
268687
|
var endPath = _curDomRange.normalize().endPath;
|
|
268698
268688
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daUnkown */.gk.daUnkown, startPath, endPath, NodeChangingEvent/* OperType.newFile */.y.newFile);
|
|
268699
|
-
if (
|
|
268700
|
-
|
|
268689
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
268690
|
+
hoEditorFactory.docController.initBlankDoc();
|
|
268701
268691
|
}
|
|
268702
268692
|
}
|
|
268703
268693
|
/**
|
|
@@ -268708,12 +268698,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268708
268698
|
}, {
|
|
268709
268699
|
key: "editComment",
|
|
268710
268700
|
value: function editComment(commentID, text) {
|
|
268711
|
-
var
|
|
268701
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268702
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
268712
268703
|
var startPath = _curDomRange.normalize().startPath;
|
|
268713
268704
|
var endPath = _curDomRange.normalize().endPath;
|
|
268714
268705
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daUpdate */.gk.daUpdate, startPath, endPath, NodeChangingEvent/* OperType.editComment */.y.editComment);
|
|
268715
|
-
if (
|
|
268716
|
-
|
|
268706
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
268707
|
+
hoEditorFactory.docController.editComment(commentID, text);
|
|
268717
268708
|
}
|
|
268718
268709
|
}
|
|
268719
268710
|
// /**
|
|
@@ -268721,7 +268712,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268721
268712
|
// * @param 0 清除全部痕迹 1清除选中区痕迹
|
|
268722
268713
|
// */
|
|
268723
268714
|
// public clearTraces(type: number) {
|
|
268724
|
-
// const _curDomRange =
|
|
268715
|
+
// const _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
268725
268716
|
// const startPath = _curDomRange.normalize().startPath;
|
|
268726
268717
|
// const endPath = _curDomRange.normalize().endPath;
|
|
268727
268718
|
// const changingEvent = new NodeChangingEvent(
|
|
@@ -268730,8 +268721,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268730
268721
|
// endPath,
|
|
268731
268722
|
// OperType.clearTraces
|
|
268732
268723
|
// );
|
|
268733
|
-
// if (
|
|
268734
|
-
//
|
|
268724
|
+
// if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
268725
|
+
// hoEditorFactory.docController.clearTraces(type, _curDomRange);
|
|
268735
268726
|
// }
|
|
268736
268727
|
// }
|
|
268737
268728
|
/**
|
|
@@ -268741,12 +268732,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268741
268732
|
}, {
|
|
268742
268733
|
key: "insertTableFormula",
|
|
268743
268734
|
value: function insertTableFormula(formulaStr, isHideZero, formulaType) {
|
|
268744
|
-
var
|
|
268735
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268736
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
268745
268737
|
var startPath = _curDomRange.normalize().startPath;
|
|
268746
268738
|
var endPath = _curDomRange.normalize().endPath;
|
|
268747
268739
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertTableFormula */.y.insertTableFormula);
|
|
268748
|
-
if (
|
|
268749
|
-
|
|
268740
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
268741
|
+
hoEditorFactory.docController.insertTableFormula(_curDomRange, formulaStr, isHideZero, formulaType);
|
|
268750
268742
|
}
|
|
268751
268743
|
}
|
|
268752
268744
|
/**
|
|
@@ -268771,7 +268763,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268771
268763
|
}, {
|
|
268772
268764
|
key: "setUserLoginInfo",
|
|
268773
268765
|
value: function setUserLoginInfo(id, name, permissionLevel, clientIP) {
|
|
268774
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID)
|
|
268766
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268767
|
+
hoEditorFactory.docController.setUserLoginInfo(id, name, permissionLevel, clientIP);
|
|
268775
268768
|
}
|
|
268776
268769
|
/**
|
|
268777
268770
|
* 浏览 编辑 审阅 状态切换
|
|
@@ -268877,12 +268870,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268877
268870
|
}, {
|
|
268878
268871
|
key: "pageProperty",
|
|
268879
268872
|
value: function pageProperty() {
|
|
268880
|
-
|
|
268873
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268874
|
+
return hoEditorFactory.pageProperty;
|
|
268881
268875
|
}
|
|
268882
268876
|
}, {
|
|
268883
268877
|
key: "generateID",
|
|
268884
268878
|
value: function generateID(str) {
|
|
268885
|
-
|
|
268879
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268880
|
+
return hoEditorFactory.gernerateCode.generateID(str);
|
|
268886
268881
|
}
|
|
268887
268882
|
/**
|
|
268888
268883
|
* 打印
|
|
@@ -268922,9 +268917,10 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268922
268917
|
}, {
|
|
268923
268918
|
key: "rebuildAll",
|
|
268924
268919
|
value: function rebuildAll(needUpdateParaStyle) {
|
|
268925
|
-
|
|
268926
|
-
HOEditorFactorys
|
|
268927
|
-
|
|
268920
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268921
|
+
//HOEditorFactorys.instance().hoEditorFactoryMap.forEach((hoEditorFactory: HOEditorFactory) => {
|
|
268922
|
+
hoEditorFactory.drawTree.rebuildAllDrawLine(needUpdateParaStyle);
|
|
268923
|
+
//})
|
|
268928
268924
|
}
|
|
268929
268925
|
/**
|
|
268930
268926
|
* 移动光标到该路径
|
|
@@ -268975,7 +268971,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
268975
268971
|
}, {
|
|
268976
268972
|
key: "getOnSelectedComment",
|
|
268977
268973
|
value: function getOnSelectedComment() {
|
|
268978
|
-
|
|
268974
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
268975
|
+
return hoEditorFactory.drawTree.curOnSelectedComment;
|
|
268979
268976
|
}
|
|
268980
268977
|
/**
|
|
268981
268978
|
* 设置选区
|
|
@@ -269586,8 +269583,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
269586
269583
|
}, {
|
|
269587
269584
|
key: "fullRedraw",
|
|
269588
269585
|
value: function fullRedraw() {
|
|
269589
|
-
var
|
|
269590
|
-
|
|
269586
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
269587
|
+
hoEditorFactory.drawTree.rebuildAllDrawLine(false);
|
|
269591
269588
|
}
|
|
269592
269589
|
}, {
|
|
269593
269590
|
key: "updateStyles",
|
|
@@ -270478,18 +270475,18 @@ var VueController = /*#__PURE__*/function () {
|
|
|
270478
270475
|
}, {
|
|
270479
270476
|
key: "getSubDocImg",
|
|
270480
270477
|
value: function getSubDocImg(pageIndex, type) {
|
|
270481
|
-
var
|
|
270482
|
-
var area =
|
|
270478
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
270479
|
+
var area = hoEditorFactory.subDocManger.getSubDocCopyDrawArea(pageIndex, type);
|
|
270483
270480
|
if (area && !area.stage) {
|
|
270484
|
-
if (type === SubDocManger/* HeaderFooterType.hftHead */.pi.hftHead) area =
|
|
270481
|
+
if (type === SubDocManger/* HeaderFooterType.hftHead */.pi.hftHead) area = hoEditorFactory.drawTree.drawPages[pageIndex].drawHeader;else area = hoEditorFactory.drawTree.drawPages[pageIndex].drawFooter;
|
|
270485
270482
|
}
|
|
270486
270483
|
if (area && area.stage && area.stage.canvas) {
|
|
270487
270484
|
var dHeight = Math.max(Math.min(area.docHeight, area.maxHeight), area.dHeight) * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY;
|
|
270488
270485
|
var ctx = area.stage.canvas.getContext('2d');
|
|
270489
270486
|
if (ctx) {
|
|
270490
|
-
var oImgData = ctx.getImageData(0, area.y * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY,
|
|
270487
|
+
var oImgData = ctx.getImageData(0, area.y * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY, hoEditorFactory.pageProperty.widthPixes * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY, dHeight);
|
|
270491
270488
|
var oCanvas = document.createElement('canvas');
|
|
270492
|
-
oCanvas.width =
|
|
270489
|
+
oCanvas.width = hoEditorFactory.pageProperty.widthPixes * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY;
|
|
270493
270490
|
oCanvas.height = dHeight;
|
|
270494
270491
|
var oCtx = oCanvas.getContext('2d');
|
|
270495
270492
|
if (oCtx) {
|
|
@@ -270813,14 +270810,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
270813
270810
|
*/
|
|
270814
270811
|
}, {
|
|
270815
270812
|
key: "insertEmptySignNode",
|
|
270816
|
-
value: function insertEmptySignNode(name, signType, signFormat, signTimeFormat, customProperty, connectMode, isFront, allowEditSignTime, attribute, connectChar) {
|
|
270813
|
+
value: function insertEmptySignNode(name, signType, signFormat, signTimeFormat, customProperty, connectMode, isFront, allowEditSignTime, attribute, connectChar, otherProperties) {
|
|
270817
270814
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
270818
270815
|
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
270819
270816
|
var startPath = curDomRange.normalize().startPath;
|
|
270820
270817
|
var endPath = curDomRange.normalize().endPath;
|
|
270821
270818
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
|
|
270822
270819
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
270823
|
-
hoEditorFactory.docController.insertEmptySignNode(curDomRange, name, signType, signFormat, signTimeFormat, customProperty, connectMode, isFront, allowEditSignTime, attribute, connectChar);
|
|
270820
|
+
hoEditorFactory.docController.insertEmptySignNode(curDomRange, name, signType, signFormat, signTimeFormat, customProperty, connectMode, isFront, allowEditSignTime, attribute, connectChar, otherProperties);
|
|
270824
270821
|
}
|
|
270825
270822
|
}
|
|
270826
270823
|
/**
|
|
@@ -271401,19 +271398,21 @@ var VueController = /*#__PURE__*/function () {
|
|
|
271401
271398
|
}, {
|
|
271402
271399
|
key: "getUserInfoes",
|
|
271403
271400
|
value: function getUserInfoes() {
|
|
271404
|
-
|
|
271401
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
271402
|
+
return hoEditorFactory.userInfo;
|
|
271405
271403
|
}
|
|
271406
271404
|
}, {
|
|
271407
271405
|
key: "hoLocalStorage",
|
|
271408
271406
|
value: function hoLocalStorage() {
|
|
271409
|
-
|
|
271407
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
271408
|
+
return hoEditorFactory.hoLocalStorage;
|
|
271410
271409
|
}
|
|
271411
271410
|
}, {
|
|
271412
271411
|
key: "redrawPage",
|
|
271413
271412
|
value: function redrawPage(index) {
|
|
271414
|
-
var
|
|
271415
|
-
if (index >= 0 && index <
|
|
271416
|
-
|
|
271413
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
271414
|
+
if (index >= 0 && index < hoEditorFactory.drawTree.drawPages.length) {
|
|
271415
|
+
hoEditorFactory.drawPageTree.updateDrawPage(index);
|
|
271417
271416
|
}
|
|
271418
271417
|
}
|
|
271419
271418
|
/*
|
|
@@ -271591,7 +271590,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
271591
271590
|
* returns [pageIndex, x, y]
|
|
271592
271591
|
*/
|
|
271593
271592
|
// public getSignNodePosition(): [number, number, number] {
|
|
271594
|
-
// const hoEditorFactory =
|
|
271593
|
+
// const hoEditorFactory = hoEditorFactory;
|
|
271595
271594
|
// const caret = hoEditorFactory.drawTree.caret;
|
|
271596
271595
|
// const y = (hoEditorFactory.pageProperty.heightPixes - caret.stageY) * 0.75;
|
|
271597
271596
|
// return [caret.pageIndex + 1, caret.stageX * 0.75, y];
|
|
@@ -271603,19 +271602,19 @@ var VueController = /*#__PURE__*/function () {
|
|
|
271603
271602
|
key: "getBase64",
|
|
271604
271603
|
value: function () {
|
|
271605
271604
|
var _getBase = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee8(type, callback) {
|
|
271606
|
-
var
|
|
271605
|
+
var hoEditorFactory, _hoEditorFactory$vueC, curDomRange, endPath, node, htmlText, _hoEditorFactory$vueC2, _curDomRange2, _endPath, _node, base64;
|
|
271607
271606
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee8$(_context8) {
|
|
271608
271607
|
while (1) {
|
|
271609
271608
|
switch (_context8.prev = _context8.next) {
|
|
271610
271609
|
case 0:
|
|
271610
|
+
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
271611
271611
|
if (!(type === 'html')) {
|
|
271612
271612
|
_context8.next = 14;
|
|
271613
271613
|
break;
|
|
271614
271614
|
}
|
|
271615
|
-
|
|
271616
|
-
curDomRange = _hoEditorFactory2.docTree.curDomRange.normalize();
|
|
271615
|
+
curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
271617
271616
|
endPath = curDomRange.normalize().endPath;
|
|
271618
|
-
node = (
|
|
271617
|
+
node = (_hoEditorFactory$vueC = hoEditorFactory.vueController.findNodebyPath(endPath)) === null || _hoEditorFactory$vueC === void 0 ? void 0 : _hoEditorFactory$vueC.node;
|
|
271619
271618
|
if (!(node instanceof SignNode/* SignNode */.N && !node.isTemplate && node.attribute == 1)) {
|
|
271620
271619
|
_context8.next = 8;
|
|
271621
271620
|
break;
|
|
@@ -271624,28 +271623,27 @@ var VueController = /*#__PURE__*/function () {
|
|
|
271624
271623
|
return this.deleteNode(node);
|
|
271625
271624
|
case 8:
|
|
271626
271625
|
_context8.next = 10;
|
|
271627
|
-
return
|
|
271626
|
+
return hoEditorFactory.printController.createHtml();
|
|
271628
271627
|
case 10:
|
|
271629
271628
|
htmlText = _context8.sent;
|
|
271630
271629
|
return _context8.abrupt("return", htmlText);
|
|
271631
271630
|
case 14:
|
|
271632
|
-
|
|
271633
|
-
_curDomRange2 = _hoEditorFactory3.docTree.curDomRange.normalize();
|
|
271631
|
+
_curDomRange2 = hoEditorFactory.docTree.curDomRange.normalize();
|
|
271634
271632
|
_endPath = _curDomRange2.normalize().endPath;
|
|
271635
|
-
_node = (
|
|
271633
|
+
_node = (_hoEditorFactory$vueC2 = hoEditorFactory.vueController.findNodebyPath(_endPath)) === null || _hoEditorFactory$vueC2 === void 0 ? void 0 : _hoEditorFactory$vueC2.node;
|
|
271636
271634
|
if (!(_node instanceof SignNode/* SignNode */.N && !_node.isTemplate && _node.attribute == 1)) {
|
|
271637
|
-
_context8.next =
|
|
271635
|
+
_context8.next = 20;
|
|
271638
271636
|
break;
|
|
271639
271637
|
}
|
|
271640
|
-
_context8.next =
|
|
271638
|
+
_context8.next = 20;
|
|
271641
271639
|
return this.deleteNode(_node);
|
|
271642
|
-
case
|
|
271643
|
-
_context8.next =
|
|
271644
|
-
return
|
|
271645
|
-
case
|
|
271640
|
+
case 20:
|
|
271641
|
+
_context8.next = 22;
|
|
271642
|
+
return hoEditorFactory.printController.createBase64(callback);
|
|
271643
|
+
case 22:
|
|
271646
271644
|
base64 = _context8.sent;
|
|
271647
271645
|
return _context8.abrupt("return", base64);
|
|
271648
|
-
case
|
|
271646
|
+
case 24:
|
|
271649
271647
|
case "end":
|
|
271650
271648
|
return _context8.stop();
|
|
271651
271649
|
}
|
|
@@ -272171,7 +272169,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
272171
272169
|
}, {
|
|
272172
272170
|
key: "getDocComment",
|
|
272173
272171
|
value: function getDocComment(area) {
|
|
272174
|
-
var
|
|
272172
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
272173
|
+
var commentsMap = hoEditorFactory.drawTree.commentsMap;
|
|
272175
272174
|
var ishandle = false;
|
|
272176
272175
|
commentsMap.forEach(function (v) {
|
|
272177
272176
|
if (area === '1') {
|
|
@@ -272190,7 +272189,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
272190
272189
|
}, {
|
|
272191
272190
|
key: "getDocCommentValue",
|
|
272192
272191
|
value: function getDocCommentValue() {
|
|
272193
|
-
|
|
272192
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
272193
|
+
return hoEditorFactory.drawTree.commentsMap;
|
|
272194
272194
|
}
|
|
272195
272195
|
/**
|
|
272196
272196
|
* 批量修改当前病历中批注处理状态
|
|
@@ -272200,7 +272200,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
272200
272200
|
key: "setDocCommentIsHandle",
|
|
272201
272201
|
value: function setDocCommentIsHandle(status) {
|
|
272202
272202
|
// 批量修改当前病历中批注处理状态
|
|
272203
|
-
var
|
|
272203
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
272204
|
+
var drawTree = hoEditorFactory.drawTree;
|
|
272204
272205
|
var commentsMap = drawTree.commentsMap;
|
|
272205
272206
|
commentsMap.forEach(function (value, key) {
|
|
272206
272207
|
if (!value.customProperty) {
|
|
@@ -272434,9 +272435,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
272434
272435
|
key: "setHoEditorFactoryParams",
|
|
272435
272436
|
value: function setHoEditorFactoryParams(params, commonParams) {
|
|
272436
272437
|
if (params) {
|
|
272437
|
-
var
|
|
272438
|
+
var _hoEditorFactory2 = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
272438
272439
|
Object.keys(params).forEach(function (key) {
|
|
272439
|
-
|
|
272440
|
+
_hoEditorFactory2[key] = params[key];
|
|
272440
272441
|
});
|
|
272441
272442
|
}
|
|
272442
272443
|
if (commonParams) {
|
|
@@ -272994,8 +272995,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
272994
272995
|
}, {
|
|
272995
272996
|
key: "pasteInsertDocument",
|
|
272996
272997
|
value: function pasteInsertDocument(jsonData, htmlData, textData) {
|
|
272997
|
-
var
|
|
272998
|
-
|
|
272998
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
272999
|
+
hoEditorFactory.editController.pasteInsert(jsonData, htmlData, textData);
|
|
272999
273000
|
}
|
|
273000
273001
|
/**
|
|
273001
273002
|
* 添加对角线
|
|
@@ -273031,18 +273032,18 @@ var VueController = /*#__PURE__*/function () {
|
|
|
273031
273032
|
}, {
|
|
273032
273033
|
key: "insertQualityIndex",
|
|
273033
273034
|
value: function insertQualityIndex(xml) {
|
|
273034
|
-
var
|
|
273035
|
-
xml =
|
|
273035
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
273036
|
+
xml = hoEditorFactory.structureConvert.replaceNodesName(xml);
|
|
273036
273037
|
var x2js = new (x2js_default())({
|
|
273037
273038
|
stripWhitespaces: false
|
|
273038
273039
|
});
|
|
273039
273040
|
var object = x2js.xml2js(xml);
|
|
273040
273041
|
var json = object;
|
|
273041
273042
|
var mainArray = json.main ? json.main.node : json.root.main.node;
|
|
273042
|
-
var curDomRange =
|
|
273043
|
+
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
273043
273044
|
var isError;
|
|
273044
273045
|
if (!curDomRange.isEmpty) {
|
|
273045
|
-
isError =
|
|
273046
|
+
isError = hoEditorFactory.docController.deleteRange(curDomRange, true);
|
|
273046
273047
|
}
|
|
273047
273048
|
if (!isError) {
|
|
273048
273049
|
var nodes = [];
|
|
@@ -273051,13 +273052,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
273051
273052
|
if (!temp) {
|
|
273052
273053
|
continue;
|
|
273053
273054
|
}
|
|
273054
|
-
var node =
|
|
273055
|
+
var node = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null);
|
|
273055
273056
|
if (node) {
|
|
273056
273057
|
nodes.push(node);
|
|
273057
273058
|
}
|
|
273058
273059
|
}
|
|
273059
273060
|
if (nodes.length > 0) {
|
|
273060
|
-
|
|
273061
|
+
hoEditorFactory.docController.parseNodeData(nodes);
|
|
273061
273062
|
}
|
|
273062
273063
|
}
|
|
273063
273064
|
}
|
|
@@ -273070,10 +273071,10 @@ var VueController = /*#__PURE__*/function () {
|
|
|
273070
273071
|
imageWidth: 0,
|
|
273071
273072
|
imageHeight: 0
|
|
273072
273073
|
};
|
|
273073
|
-
var
|
|
273074
|
-
var firstPageMainDoc =
|
|
273075
|
-
var mathWidth =
|
|
273076
|
-
var mathHeight =
|
|
273074
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
273075
|
+
var firstPageMainDoc = hoEditorFactory.drawTree.drawPages[0].drawMainDoc;
|
|
273076
|
+
var mathWidth = hoEditorFactory.pageProperty.widthPixes - hoEditorFactory.pageProperty.leftMarginPixes - hoEditorFactory.pageProperty.rightMarginPixes;
|
|
273077
|
+
var mathHeight = hoEditorFactory.pageProperty.heightPixes - hoEditorFactory.pageProperty.topMarginPixes - hoEditorFactory.pageProperty.bottomMarginPixes - 20;
|
|
273077
273078
|
bounds = {
|
|
273078
273079
|
width: Math.max(mathWidth, firstPageMainDoc.docWidth),
|
|
273079
273080
|
height: Math.min(firstPageMainDoc.dHeight, mathHeight),
|
|
@@ -273108,6 +273109,43 @@ var VueController = /*#__PURE__*/function () {
|
|
|
273108
273109
|
}
|
|
273109
273110
|
return bounds;
|
|
273110
273111
|
}
|
|
273112
|
+
}, {
|
|
273113
|
+
key: "pageAllEmptyElements",
|
|
273114
|
+
value: function pageAllEmptyElements(pageIndex) {
|
|
273115
|
+
if (pageIndex < 0) return false;
|
|
273116
|
+
var result = false;
|
|
273117
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryID);
|
|
273118
|
+
var drawMainDoc = hoEditorFactory.drawPageTree.drawMainDocs[pageIndex];
|
|
273119
|
+
var darwPage = hoEditorFactory.drawTree.drawPages[pageIndex];
|
|
273120
|
+
var startstagePt = drawMainDoc.localToGlobal(0, 0);
|
|
273121
|
+
var startPosition = hoEditorFactory.drawTree.getStagePosition(darwPage, drawMainDoc, startstagePt.x, startstagePt.y);
|
|
273122
|
+
if (!startPosition) return false;
|
|
273123
|
+
var endStagePt = drawMainDoc.localToGlobal(hoEditorFactory.pageProperty.widthPixes, hoEditorFactory.pageProperty.heightPixes);
|
|
273124
|
+
var endPosition = hoEditorFactory.drawTree.getStagePosition(darwPage, drawMainDoc, endStagePt.x, endStagePt.y);
|
|
273125
|
+
if (!endPosition) return false;
|
|
273126
|
+
var startNp = hoEditorFactory.docTree.findNodePositionByPath(startPosition.path);
|
|
273127
|
+
if (!(startNp && startNp.node)) return false;
|
|
273128
|
+
var endNp = hoEditorFactory.docTree.findNodePositionByPath(endPosition.path);
|
|
273129
|
+
if (!(endNp && endNp.node)) return false;
|
|
273130
|
+
var startNode = startNp.node;
|
|
273131
|
+
var endNode = endNp.node;
|
|
273132
|
+
var aNode = startNode;
|
|
273133
|
+
var mark = true;
|
|
273134
|
+
do {
|
|
273135
|
+
if (!(aNode instanceof MarkNode/* MarkNode */.j && aNode.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && aNode.parentNode.text == "" || aNode instanceof DateTimeNode/* DateTimeNode */.Z && (aNode.text == "" || aNode.text == aNode.name) || aNode instanceof DownListNode/* DownListNode */.yF && (aNode.text == "" || aNode.text == aNode.name) || aNode instanceof SignNode/* SignNode */.N && aNode.number == 0 || aNode instanceof TextNode/* TextNode */.R && aNode.text.replace(" ", "") == "" || aNode instanceof ParagraphNode/* ParagraphNode */.C)) {
|
|
273136
|
+
mark = false;
|
|
273137
|
+
break;
|
|
273138
|
+
}
|
|
273139
|
+
aNode = aNode.nextLeaf();
|
|
273140
|
+
} while (aNode && aNode != endNode);
|
|
273141
|
+
if (mark) {
|
|
273142
|
+
if (!(endNode instanceof MarkNode/* MarkNode */.j && endNode.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && endNode.parentNode.text == "" || endNode instanceof DateTimeNode/* DateTimeNode */.Z && (endNode.text == "" || endNode.text == endNode.name) || endNode instanceof DownListNode/* DownListNode */.yF && (endNode.text == "" || endNode.text == endNode.name) || endNode instanceof SignNode/* SignNode */.N && endNode.number == 0 || endNode instanceof TextNode/* TextNode */.R && endNode.text.replace(" ", "") == "" || endNode instanceof ParagraphNode/* ParagraphNode */.C)) {
|
|
273143
|
+
return false;
|
|
273144
|
+
}
|
|
273145
|
+
return true;
|
|
273146
|
+
}
|
|
273147
|
+
return result;
|
|
273148
|
+
}
|
|
273111
273149
|
}]);
|
|
273112
273150
|
return VueController;
|
|
273113
273151
|
}();
|
|
@@ -273988,6 +274026,8 @@ var EditController = /*#__PURE__*/function () {
|
|
|
273988
274026
|
htmlData = clipboardData.getData("text/html");
|
|
273989
274027
|
textData = clipboardData.getData("text/plain");
|
|
273990
274028
|
}
|
|
274029
|
+
htmlData = htmlData.replace(/[\u0000-\u0008\u000b\u000c\u000e-\u001f\ud800-\udfff\ufffe\uffff]/g, "");
|
|
274030
|
+
textData = textData.replace(/[\u0000-\u0008\u000b\u000c\u000e-\u001f\ud800-\udfff\ufffe\uffff]/g, "");
|
|
273991
274031
|
this.pasteInsert(jsonData, htmlData, textData);
|
|
273992
274032
|
// else if (!clipboardData) {
|
|
273993
274033
|
// navigator.permissions.query({ name: "clipboard-read" }).then(result => {
|
|
@@ -279934,8 +279974,8 @@ var HoDocs_component = (0,componentNormalizer/* default */.Z)(
|
|
|
279934
279974
|
)
|
|
279935
279975
|
|
|
279936
279976
|
/* harmony default export */ var HoDocs = (HoDocs_component.exports);
|
|
279937
|
-
;// 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=
|
|
279938
|
-
var
|
|
279977
|
+
;// 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=1b91c900&
|
|
279978
|
+
var ToolBarvue_type_template_id_1b91c900_render = function render() {
|
|
279939
279979
|
var _vm = this,
|
|
279940
279980
|
_c = _vm._self._c;
|
|
279941
279981
|
return _c('div', {
|
|
@@ -280168,7 +280208,7 @@ var ToolBarvue_type_template_id_39981836_render = function render() {
|
|
|
280168
280208
|
}, [_vm._v(_vm._s(item.title))]);
|
|
280169
280209
|
}), 1)], 1) : _vm._e()], 1);
|
|
280170
280210
|
};
|
|
280171
|
-
var
|
|
280211
|
+
var ToolBarvue_type_template_id_1b91c900_staticRenderFns = [];
|
|
280172
280212
|
|
|
280173
280213
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
|
|
280174
280214
|
var es_array_map = __webpack_require__(21249);
|
|
@@ -284945,6 +284985,10 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
|
284945
284985
|
title: defaultSelect[key]
|
|
284946
284986
|
});
|
|
284947
284987
|
}
|
|
284988
|
+
} else {
|
|
284989
|
+
_this2.defaultToolBarParamsText = _this2.defaultToolBarParamsText.filter(function (v) {
|
|
284990
|
+
return v.value !== key;
|
|
284991
|
+
});
|
|
284948
284992
|
}
|
|
284949
284993
|
});
|
|
284950
284994
|
}
|
|
@@ -285183,10 +285227,10 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
|
285183
285227
|
});
|
|
285184
285228
|
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=script&lang=js&
|
|
285185
285229
|
/* harmony default export */ var toolbar_ToolBarvue_type_script_lang_js_ = (ToolBarvue_type_script_lang_js_);
|
|
285186
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=
|
|
285230
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=1b91c900&prod&lang=scss&
|
|
285187
285231
|
// extracted by mini-css-extract-plugin
|
|
285188
285232
|
|
|
285189
|
-
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=
|
|
285233
|
+
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=1b91c900&prod&lang=scss&
|
|
285190
285234
|
|
|
285191
285235
|
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue
|
|
285192
285236
|
|
|
@@ -285199,8 +285243,8 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
|
285199
285243
|
|
|
285200
285244
|
var ToolBar_component = (0,componentNormalizer/* default */.Z)(
|
|
285201
285245
|
toolbar_ToolBarvue_type_script_lang_js_,
|
|
285202
|
-
|
|
285203
|
-
|
|
285246
|
+
ToolBarvue_type_template_id_1b91c900_render,
|
|
285247
|
+
ToolBarvue_type_template_id_1b91c900_staticRenderFns,
|
|
285204
285248
|
false,
|
|
285205
285249
|
null,
|
|
285206
285250
|
null,
|