hoeditor-web 3.0.48 → 3.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hoeditor.css +2 -13054
- package/lib/hoeditor.umd.js +347 -220
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -14808,7 +14808,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
14808
14808
|
|
|
14809
14809
|
/***/ }),
|
|
14810
14810
|
|
|
14811
|
-
/***/
|
|
14811
|
+
/***/ 37930:
|
|
14812
14812
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
14813
14813
|
|
|
14814
14814
|
"use strict";
|
|
@@ -14822,7 +14822,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
14822
14822
|
|
|
14823
14823
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
14824
14824
|
var es_function_name = __webpack_require__(68309);
|
|
14825
|
-
;// 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/sign/Sign.vue?vue&type=template&id=
|
|
14825
|
+
;// 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/sign/Sign.vue?vue&type=template&id=7416bc9f&
|
|
14826
14826
|
|
|
14827
14827
|
var render = function render() {
|
|
14828
14828
|
var _vm = this,
|
|
@@ -14865,7 +14865,7 @@ var render = function render() {
|
|
|
14865
14865
|
})], 1), _c('li', {
|
|
14866
14866
|
staticClass: "control-item",
|
|
14867
14867
|
staticStyle: {
|
|
14868
|
-
"align-items": "
|
|
14868
|
+
"align-items": "flex-start"
|
|
14869
14869
|
}
|
|
14870
14870
|
}, [_c('span', {
|
|
14871
14871
|
staticClass: "label"
|
|
@@ -14891,13 +14891,17 @@ var render = function render() {
|
|
|
14891
14891
|
}
|
|
14892
14892
|
}, [_vm._v("医生签名")]), _c('a-radio', {
|
|
14893
14893
|
attrs: {
|
|
14894
|
-
"value":
|
|
14894
|
+
"value": 9
|
|
14895
14895
|
}
|
|
14896
14896
|
}, [_vm._v("自定义医生签名")]), _c('a-radio', {
|
|
14897
14897
|
attrs: {
|
|
14898
14898
|
"value": 2
|
|
14899
14899
|
}
|
|
14900
|
-
}, [_vm._v("自定义CA签名(默认带出职称)")])
|
|
14900
|
+
}, [_vm._v("自定义CA签名(默认带出职称)")]), _c('a-radio', {
|
|
14901
|
+
attrs: {
|
|
14902
|
+
"value": 3
|
|
14903
|
+
}
|
|
14904
|
+
}, [_vm._v("自定义CA签名(默认带出职称和日期)")])], 1)], 1)]), _vm.signType == 2 ? _c('li', {
|
|
14901
14905
|
staticClass: "control-item"
|
|
14902
14906
|
}, [_c('span', {
|
|
14903
14907
|
staticClass: "label"
|
|
@@ -14913,7 +14917,7 @@ var render = function render() {
|
|
|
14913
14917
|
},
|
|
14914
14918
|
expression: "connectChar"
|
|
14915
14919
|
}
|
|
14916
|
-
})], 1) : _vm._e(), _vm.signType >=
|
|
14920
|
+
})], 1) : _vm._e(), _vm.signType >= 9 ? [_c('li', {
|
|
14917
14921
|
staticClass: "control-item"
|
|
14918
14922
|
}, [_c('span', {
|
|
14919
14923
|
staticClass: "label"
|
|
@@ -15074,7 +15078,7 @@ var render = function render() {
|
|
|
15074
15078
|
},
|
|
15075
15079
|
expression: "allowEditSignTime"
|
|
15076
15080
|
}
|
|
15077
|
-
}, [_vm._v("允许修改签名时间")])], 1)] : _vm._e()], 2), _vm.signType >=
|
|
15081
|
+
}, [_vm._v("允许修改签名时间")])], 1)] : _vm._e()], 2), _vm.signType >= 9 ? _c('div', {
|
|
15078
15082
|
staticClass: "section-right"
|
|
15079
15083
|
}, [_c('div', {
|
|
15080
15084
|
staticClass: "custom-format-tool-box"
|
|
@@ -15176,7 +15180,7 @@ var render = function render() {
|
|
|
15176
15180
|
};
|
|
15177
15181
|
var staticRenderFns = [];
|
|
15178
15182
|
|
|
15179
|
-
;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=template&id=
|
|
15183
|
+
;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=template&id=7416bc9f&
|
|
15180
15184
|
|
|
15181
15185
|
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/message/style/index.js + 1 modules
|
|
15182
15186
|
var style = __webpack_require__(94310);
|
|
@@ -15262,13 +15266,15 @@ var SignNode = __webpack_require__(24701);
|
|
|
15262
15266
|
this.name = node.name;
|
|
15263
15267
|
if (node.attribute == 2) {
|
|
15264
15268
|
this.signType = 2; // 自定义ca签名(带职称)
|
|
15269
|
+
} else if (node.attribute == 3) {
|
|
15270
|
+
this.signType = 3; // 自定义ca签名(带职称)
|
|
15265
15271
|
} else if (node.attribute == 1) {
|
|
15266
15272
|
this.signType = 1; // 患者签名
|
|
15267
15273
|
} else {
|
|
15268
15274
|
if (node.signType == 0) {
|
|
15269
15275
|
this.signType = 0; // 普通医生签名
|
|
15270
15276
|
} else {
|
|
15271
|
-
this.signType =
|
|
15277
|
+
this.signType = 9; // 自定义医生签名
|
|
15272
15278
|
}
|
|
15273
15279
|
}
|
|
15274
15280
|
|
|
@@ -15342,12 +15348,15 @@ var SignNode = __webpack_require__(24701);
|
|
|
15342
15348
|
insertSign: function insertSign() {
|
|
15343
15349
|
var customProperty = this.getCustomProperty ? this.getCustomProperty() : {};
|
|
15344
15350
|
if (this.controlStatus === 'add') {
|
|
15345
|
-
if (this.signType ===
|
|
15351
|
+
if (this.signType === 9) {
|
|
15346
15352
|
// 自定义多人签名
|
|
15347
15353
|
this.vueController.insertEmptySignNode(this.name ? this.name : '自定义医生签名', 1, this.signFormat, this.signTimeFormat, customProperty, this.connectMode, this.isFront, this.allowEditSignTime, 0);
|
|
15348
15354
|
} else if (this.signType === 2) {
|
|
15349
15355
|
// 自定义多人签名
|
|
15350
15356
|
this.vueController.insertEmptySignNode(this.name ? this.name : '自定义CA签名(默认带出职称)', 0, '', '', customProperty, '', undefined, undefined, this.signType, this.connectChar);
|
|
15357
|
+
} else if (this.signType === 3) {
|
|
15358
|
+
// 自定义多人签名
|
|
15359
|
+
this.vueController.insertEmptySignNode(this.name ? this.name : '自定义CA签名(默认带出职称和日期)', 0, '', '', customProperty, '', undefined, undefined, this.signType, this.connectChar);
|
|
15351
15360
|
} else {
|
|
15352
15361
|
var name = this.name ? this.name : this.signType == 1 ? '患者签名' : '医生签名';
|
|
15353
15362
|
this.vueController.insertEmptySignNode(name, 0, '', '', customProperty, '', undefined, undefined, this.signType);
|
|
@@ -15355,8 +15364,8 @@ var SignNode = __webpack_require__(24701);
|
|
|
15355
15364
|
} else if (this.controlStatus === 'update') {
|
|
15356
15365
|
var node = this.getCurrentSelectNode();
|
|
15357
15366
|
var _name = this.name ? this.name : node.name;
|
|
15358
|
-
var attribute = this.signType ===
|
|
15359
|
-
var signType = this.signType ==
|
|
15367
|
+
var attribute = this.signType === 9 ? 0 : this.signType;
|
|
15368
|
+
var signType = this.signType == 9 ? 1 : 0; // 自定义签名的signType=1 其他签名 signType=0
|
|
15360
15369
|
this.vueController.updateEmptySignNode(node, _name, attribute, this.connectChar, signType, this.signFormat, this.signor, '', this.signTimeFormat);
|
|
15361
15370
|
}
|
|
15362
15371
|
this.handleClose();
|
|
@@ -15369,10 +15378,10 @@ var SignNode = __webpack_require__(24701);
|
|
|
15369
15378
|
});
|
|
15370
15379
|
;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=script&lang=js&
|
|
15371
15380
|
/* harmony default export */ var sign_Signvue_type_script_lang_js_ = (Signvue_type_script_lang_js_);
|
|
15372
|
-
;// 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/sign/Sign.vue?vue&type=style&index=0&id=
|
|
15381
|
+
;// 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/sign/Sign.vue?vue&type=style&index=0&id=7416bc9f&prod&lang=scss&
|
|
15373
15382
|
// extracted by mini-css-extract-plugin
|
|
15374
15383
|
|
|
15375
|
-
;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=
|
|
15384
|
+
;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=7416bc9f&prod&lang=scss&
|
|
15376
15385
|
|
|
15377
15386
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
15378
15387
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -38127,9 +38136,6 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38127
38136
|
if (keyValue === "Delete") {
|
|
38128
38137
|
this.deleteTextAfterPath(startPath);
|
|
38129
38138
|
}
|
|
38130
|
-
setTimeout(function () {
|
|
38131
|
-
hoEditorFactory.vueController.getCaretPreviousText();
|
|
38132
|
-
}, 0);
|
|
38133
38139
|
}
|
|
38134
38140
|
}
|
|
38135
38141
|
/**
|
|
@@ -47173,6 +47179,9 @@ var CombineStyle = /*#__PURE__*/function () {
|
|
|
47173
47179
|
//初号
|
|
47174
47180
|
fontHeight = hoeditfactory.unitConvert.mmConversionPx(14.82, false);
|
|
47175
47181
|
}
|
|
47182
|
+
if (fontHeight == 0) {
|
|
47183
|
+
fontHeight = this.getFontHeightByFontSize(hoeditfactory.pageProperty.fontSize);
|
|
47184
|
+
}
|
|
47176
47185
|
return fontHeight;
|
|
47177
47186
|
}
|
|
47178
47187
|
}], [{
|
|
@@ -58372,9 +58381,9 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58372
58381
|
//指纹
|
|
58373
58382
|
//样式
|
|
58374
58383
|
// 当前签名图片是否已转成jpg 0代表未转换 1代表已转换
|
|
58375
|
-
//签名属性 0:医生签名 1:患者签名 2:ca签名(职称+签名图片)
|
|
58384
|
+
//签名属性 0:医生签名 1:患者签名 2:ca签名(职称+签名图片) 3:ca签名(职称+签名+日期)
|
|
58376
58385
|
//自定义CA签名连接符
|
|
58377
|
-
//其它属性{"title":"职称"}
|
|
58386
|
+
//其它属性{"title":"职称","time":"签名日期"}
|
|
58378
58387
|
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) {
|
|
58379
58388
|
var _this;
|
|
58380
58389
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, SignNode);
|
|
@@ -68469,7 +68478,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
68469
68478
|
this.clearOverDitem(dlines, nextDline + 1);
|
|
68470
68479
|
break;
|
|
68471
68480
|
}
|
|
68472
|
-
dTop += dTable.paragraphNode.combineParagraph.lineSpace;
|
|
68481
|
+
// dTop += dTable.paragraphNode.combineParagraph.lineSpace;
|
|
68473
68482
|
if (this.allowAcrossPage) dRestHeight = this._maxHeight - dTop;
|
|
68474
68483
|
this._docHeight = dTop;
|
|
68475
68484
|
this._usedHeight = dTop;
|
|
@@ -75848,7 +75857,7 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
|
|
|
75848
75857
|
/*
|
|
75849
75858
|
* @Author: your name
|
|
75850
75859
|
* @Date: 2021-09-01 16:51:49
|
|
75851
|
-
* @LastEditTime: 2023-
|
|
75860
|
+
* @LastEditTime: 2023-04-12 13:58:22
|
|
75852
75861
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
75853
75862
|
* @Description: In User Settings Edit
|
|
75854
75863
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawSignNode.ts
|
|
@@ -75890,16 +75899,20 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
75890
75899
|
_this._fingerPosition = fingerPosition;
|
|
75891
75900
|
_this._attribute = attribute;
|
|
75892
75901
|
_this._connectChar = connectChar;
|
|
75893
|
-
|
|
75902
|
+
//this._signTime = node.signTime;
|
|
75894
75903
|
_this._textStyle = cbStyle.getStyleKey();
|
|
75895
75904
|
_this._abi02 = customProperty && customProperty.abi02 ? customProperty.abi02 : "";
|
|
75896
75905
|
_this._title = otherProperties && otherProperties.title ? otherProperties.title : "";
|
|
75906
|
+
_this._signTime = otherProperties && otherProperties.time ? otherProperties.time : "";
|
|
75897
75907
|
if (_this._title != "") {
|
|
75898
75908
|
_this._drawTitle = new createjs.Text(_this.title + _this._connectChar, _this._textStyle, '#000000');
|
|
75909
|
+
}
|
|
75910
|
+
if (_this._signTime != "") {
|
|
75899
75911
|
_this._drawDate = new createjs.Text(_this.signTime.substring(0, 16), _this._textStyle, '#000000');
|
|
75900
75912
|
}
|
|
75901
75913
|
//this._textStyle = cbStyle.;
|
|
75902
|
-
|
|
75914
|
+
var hoeditfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_10__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoeditfactoryID);
|
|
75915
|
+
_this.dHeight = hoeditfactory.signHeight;
|
|
75903
75916
|
//this.dHeight = 40;
|
|
75904
75917
|
// 处理混乱的类型
|
|
75905
75918
|
if (node.customProperty && node.customProperty.created_date) {
|
|
@@ -75948,12 +75961,16 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
75948
75961
|
_this._drawAbi02 = new createjs.Text(_this._abi02 + _this._connectChar, _this._textStyle, '#000000');
|
|
75949
75962
|
_this.dWidth += _this._drawAbi02.getMeasuredWidth();
|
|
75950
75963
|
}
|
|
75951
|
-
if (_this.attribute ===
|
|
75952
|
-
_this.
|
|
75953
|
-
|
|
75954
|
-
|
|
75964
|
+
if (_this.attribute === 3) {
|
|
75965
|
+
if (_this.title != "") {
|
|
75966
|
+
_this.dWidth += _this._drawTitle.getMeasuredWidth();
|
|
75967
|
+
}
|
|
75968
|
+
if (_this.signTime != "") {
|
|
75969
|
+
if (_this._drawDate.getMeasuredWidth() > _this.dWidth) {
|
|
75970
|
+
_this.dWidth = _this._drawDate.getMeasuredWidth();
|
|
75971
|
+
}
|
|
75972
|
+
_this.dHeight = _this.dHeight + _this._drawDate.getMeasuredHeight() + 2;
|
|
75955
75973
|
}
|
|
75956
|
-
_this.dHeight = _this.dHeight + _this._drawDate.getMeasuredHeight() + 2;
|
|
75957
75974
|
}
|
|
75958
75975
|
}
|
|
75959
75976
|
if (_this.type === 2) {
|
|
@@ -76310,20 +76327,28 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
76310
76327
|
bitmap.x = abi02Text.getMeasuredWidth();
|
|
76311
76328
|
_this3.addChild(bitmap);
|
|
76312
76329
|
} else {
|
|
76313
|
-
if (_this3.attribute ===
|
|
76314
|
-
_this3.
|
|
76315
|
-
|
|
76316
|
-
|
|
76317
|
-
|
|
76318
|
-
|
|
76319
|
-
|
|
76320
|
-
|
|
76321
|
-
|
|
76322
|
-
|
|
76323
|
-
|
|
76324
|
-
|
|
76325
|
-
|
|
76326
|
-
|
|
76330
|
+
if (_this3.attribute === 3 && _this3.title !== "") {
|
|
76331
|
+
if (_this3.signTime != "") {
|
|
76332
|
+
_this3._drawTitle.textBaseline = 'alphabetic';
|
|
76333
|
+
_this3._drawTitle.textAlign = 'left';
|
|
76334
|
+
_this3._drawTitle.x = 0;
|
|
76335
|
+
_this3._drawTitle.y = -(_this3.dHeight - _this3._drawDate.getMeasuredHeight()) + 2;
|
|
76336
|
+
bitmap.x = _this3._drawTitle.getMeasuredWidth();
|
|
76337
|
+
_this3.addChildAt(_this3._drawTitle, 0);
|
|
76338
|
+
bitmap.y = _this3._drawTitle.y;
|
|
76339
|
+
_this3.addChild(bitmap);
|
|
76340
|
+
_this3._drawDate.x = 0;
|
|
76341
|
+
_this3._drawDate.y = 0;
|
|
76342
|
+
_this3._drawDate.textBaseline = 'alphabetic';
|
|
76343
|
+
_this3._drawDate.textAlign = 'left';
|
|
76344
|
+
_this3.addChild(_this3._drawDate);
|
|
76345
|
+
} else {
|
|
76346
|
+
_this3._drawTitle.textBaseline = 'alphabetic';
|
|
76347
|
+
_this3._drawTitle.textAlign = 'left';
|
|
76348
|
+
_this3.addChildAt(_this3._drawTitle, 0);
|
|
76349
|
+
bitmap.x = _this3._drawTitle.getMeasuredWidth();
|
|
76350
|
+
_this3.addChild(bitmap);
|
|
76351
|
+
}
|
|
76327
76352
|
} else {
|
|
76328
76353
|
_this3.addChildAt(bitmap, 0);
|
|
76329
76354
|
}
|
|
@@ -76353,7 +76378,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
76353
76378
|
if (drawNode.attribute === 2 && drawNode.abi02 !== "") {
|
|
76354
76379
|
drawNode.dWidth += drawNode._drawAbi02.getMeasuredWidth();
|
|
76355
76380
|
}
|
|
76356
|
-
if (drawNode.attribute ==
|
|
76381
|
+
if (drawNode.attribute == 3 && drawNode.title != "") {
|
|
76357
76382
|
drawNode.dWidth += drawNode._drawTitle.getMeasuredWidth();
|
|
76358
76383
|
if (_this3._drawDate.getMeasuredWidth() > drawNode.dWidth) {
|
|
76359
76384
|
drawNode.dWidth = _this3._drawDate.getMeasuredWidth();
|
|
@@ -76364,7 +76389,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
76364
76389
|
}
|
|
76365
76390
|
if (drawNode.attribute === 2 && drawNode.abi02 !== "") {
|
|
76366
76391
|
bitmap.setTransform(drawNode._drawAbi02.getMeasuredWidth(), -drawNode.dHeight + 2, width / hitWidth, drawNode.dHeight / hitHeight);
|
|
76367
|
-
} else if (drawNode.attribute ===
|
|
76392
|
+
} else if (drawNode.attribute === 3 && drawNode.title !== "") {
|
|
76368
76393
|
bitmap.setTransform(drawNode._drawTitle.getMeasuredWidth(), -drawNode.dHeight - 4, width / hitWidth, (drawNode.dHeight - drawNode._drawDate.getMeasuredHeight() - 2) / hitHeight);
|
|
76369
76394
|
} else {
|
|
76370
76395
|
bitmap.setTransform(0, -drawNode.dHeight, width / hitWidth, drawNode.dHeight / hitHeight);
|
|
@@ -77611,6 +77636,8 @@ var es_string_replace = __webpack_require__(15306);
|
|
|
77611
77636
|
var es_error_cause = __webpack_require__(21703);
|
|
77612
77637
|
// EXTERNAL MODULE: ./src/editor/utils/UnitConvert.ts
|
|
77613
77638
|
var UnitConvert = __webpack_require__(91404);
|
|
77639
|
+
// EXTERNAL MODULE: ./src/HOEditorFactorys.ts
|
|
77640
|
+
var HOEditorFactorys = __webpack_require__(74089);
|
|
77614
77641
|
;// CONCATENATED MODULE: ./src/editor/utils/DrawText.ts
|
|
77615
77642
|
|
|
77616
77643
|
|
|
@@ -77622,6 +77649,7 @@ var UnitConvert = __webpack_require__(91404);
|
|
|
77622
77649
|
|
|
77623
77650
|
|
|
77624
77651
|
|
|
77652
|
+
|
|
77625
77653
|
var DrawText = /*#__PURE__*/function (_createjs$Text) {
|
|
77626
77654
|
(0,inherits/* default */.Z)(DrawText, _createjs$Text);
|
|
77627
77655
|
var _super = (0,createSuper/* default */.Z)(DrawText);
|
|
@@ -77666,7 +77694,8 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
77666
77694
|
if (isFullLine && _this.endIndex > startIndex && _this.endIndex < text.length - 1) {
|
|
77667
77695
|
var aNexttext = text[_this.endIndex + 1];
|
|
77668
77696
|
var endText = text[_this._endIndex];
|
|
77669
|
-
|
|
77697
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(node.hoEditorFactoryID);
|
|
77698
|
+
if (hoEditorFactory.numLetterOnOneLine && UnitConvert/* UnitConvert.isNumEnglish */.P.isNumEnglish(aNexttext) && UnitConvert/* UnitConvert.isNumEnglish */.P.isNumEnglish(endText) && dLine && !_this.isFullLineNumEnglish(dLine, text.substr(startIndex, _this.endIndex - startIndex + 1))) {
|
|
77670
77699
|
while (_this.endIndex >= startIndex && UnitConvert/* UnitConvert.isNumEnglish */.P.isNumEnglish(aNexttext) && UnitConvert/* UnitConvert.isNumEnglish */.P.isNumEnglish(endText)) {
|
|
77671
77700
|
lastTextWidth = _this.getCharWidth(null, endText);
|
|
77672
77701
|
_this.endIndex -= 1;
|
|
@@ -77974,8 +78003,6 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
77974
78003
|
(0,defineProperty/* default */.Z)(DrawText, "_workingContext", void 0);
|
|
77975
78004
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TextInputFieldNode.ts
|
|
77976
78005
|
var TextInputFieldNode = __webpack_require__(90161);
|
|
77977
|
-
// EXTERNAL MODULE: ./src/HOEditorFactorys.ts
|
|
77978
|
-
var HOEditorFactorys = __webpack_require__(74089);
|
|
77979
78006
|
// EXTERNAL MODULE: ./src/editor/utils/DrawSimpleText.ts
|
|
77980
78007
|
var DrawSimpleText = __webpack_require__(57590);
|
|
77981
78008
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/GestationNode.ts
|
|
@@ -79613,11 +79640,11 @@ var EditorController = /*#__PURE__*/function () {
|
|
|
79613
79640
|
// this.insertBr();
|
|
79614
79641
|
} else {
|
|
79615
79642
|
// this.insert(el.value);
|
|
79616
|
-
if (
|
|
79617
|
-
|
|
79618
|
-
|
|
79619
|
-
}
|
|
79620
|
-
|
|
79643
|
+
// if (hoeditorfactory.drawTree.paintStatus === PaintState.psReadOnly) {
|
|
79644
|
+
// el.value = '';
|
|
79645
|
+
// return;
|
|
79646
|
+
// }
|
|
79647
|
+
hoeditorfactory.docController.keyBoardInput(el.value);
|
|
79621
79648
|
// alert(el.value);
|
|
79622
79649
|
}
|
|
79623
79650
|
} finally {
|
|
@@ -79825,6 +79852,7 @@ var EditorController = /*#__PURE__*/function () {
|
|
|
79825
79852
|
return;
|
|
79826
79853
|
} else if (keyCode === 32) {
|
|
79827
79854
|
// 空格
|
|
79855
|
+
|
|
79828
79856
|
var aiInfo = hoeditorfactory.drawTree.caret.aiInfo;
|
|
79829
79857
|
if (aiInfo.aiText && aiInfo.pageIndex === aiInfo.lastPosition[0] && aiInfo.x === aiInfo.lastPosition[1] && aiInfo.y === aiInfo.lastPosition[2]) {
|
|
79830
79858
|
hoeditorfactory.vueController.insertText(aiInfo.aiText);
|
|
@@ -86953,7 +86981,9 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
86953
86981
|
hoEditorFactory.docTree.curDomRange.setSamePath(this._tmp.start);
|
|
86954
86982
|
hoEditorFactory.drawTree.moveCaretToPath(this._tmp.start);
|
|
86955
86983
|
aNode = currRange.npStart.node;
|
|
86956
|
-
|
|
86984
|
+
if (aNode) {
|
|
86985
|
+
pnode = aNode.parentNode;
|
|
86986
|
+
}
|
|
86957
86987
|
if (!(aNode && pnode)) {
|
|
86958
86988
|
_context2.next = 66;
|
|
86959
86989
|
break;
|
|
@@ -195792,7 +195822,7 @@ var map = {
|
|
|
195792
195822
|
"./qrCode/QrCode.vue": 86349,
|
|
195793
195823
|
"./radioCheckBox/RadioCheckbox.vue": 91377,
|
|
195794
195824
|
"./selectDialog/SelectDialog.vue": 59075,
|
|
195795
|
-
"./sign/Sign.vue":
|
|
195825
|
+
"./sign/Sign.vue": 37930,
|
|
195796
195826
|
"./table/TableCellPoper.vue": 21277,
|
|
195797
195827
|
"./table/TableCellProperty.vue": 71176,
|
|
195798
195828
|
"./table/TableColProperty.vue": 2116,
|
|
@@ -231919,18 +231949,20 @@ Input.install = function (Vue) {
|
|
|
231919
231949
|
|
|
231920
231950
|
|
|
231921
231951
|
/* harmony default export */ var antd = ([es_button, input, input_number, es_checkbox, date_picker, time_picker, es_radio, es_select, es_tabs, es_dropdown, es_menu, es_upload, tooltip, table, popover, es_icon/* default */.Z, config_provider]);
|
|
231922
|
-
;// 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/HoDocs.vue?vue&type=template&id=
|
|
231952
|
+
;// 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/HoDocs.vue?vue&type=template&id=65441e6c&
|
|
231923
231953
|
var render = function render() {
|
|
231924
231954
|
var _vm = this,
|
|
231925
231955
|
_c = _vm._self._c;
|
|
231926
231956
|
return _vm.hoEditorFactoryIdList.length > 0 ? _c('div', {
|
|
231927
231957
|
staticClass: "ho-docs"
|
|
231928
231958
|
}, [_c('section', {
|
|
231959
|
+
ref: "hoEditorListNode",
|
|
231929
231960
|
class: _vm.defaultEditJson.isFooter ? 'ho-editor-list' : 'ho-editor-list editor-no-footer',
|
|
231930
231961
|
on: {
|
|
231931
231962
|
"contextmenu": function contextmenu($event) {
|
|
231932
231963
|
return _vm.blankAreaRightClick.apply(null, arguments);
|
|
231933
|
-
}
|
|
231964
|
+
},
|
|
231965
|
+
"mousedown": _vm.mouseDown
|
|
231934
231966
|
}
|
|
231935
231967
|
}, [_vm._l(_vm.hoEditorFactoryIdList, function (hoEditorId, index) {
|
|
231936
231968
|
return [_c('HoDoc', {
|
|
@@ -232037,8 +232069,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
232037
232069
|
var es_number_constructor = __webpack_require__(9653);
|
|
232038
232070
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
232039
232071
|
var es_json_stringify = __webpack_require__(38862);
|
|
232040
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=
|
|
232041
|
-
var
|
|
232072
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=0fdfe624&
|
|
232073
|
+
var HoDocvue_type_template_id_0fdfe624_render = function render() {
|
|
232042
232074
|
var _vm = this,
|
|
232043
232075
|
_c = _vm._self._c;
|
|
232044
232076
|
return _c('div', {
|
|
@@ -232183,7 +232215,7 @@ var HoDocvue_type_template_id_bc0f5c2a_render = function render() {
|
|
|
232183
232215
|
}
|
|
232184
232216
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
232185
232217
|
};
|
|
232186
|
-
var
|
|
232218
|
+
var HoDocvue_type_template_id_0fdfe624_staticRenderFns = [];
|
|
232187
232219
|
|
|
232188
232220
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
232189
232221
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -232314,6 +232346,8 @@ var DrawConfig = __webpack_require__(37616);
|
|
|
232314
232346
|
var DrawHeader = __webpack_require__(5328);
|
|
232315
232347
|
// EXTERNAL MODULE: ./src/editor/draw/drawArea/DrawFooter.ts
|
|
232316
232348
|
var DrawFooter = __webpack_require__(114);
|
|
232349
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TextInputFieldNode.ts
|
|
232350
|
+
var TextInputFieldNode = __webpack_require__(90161);
|
|
232317
232351
|
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawPageCell.ts + 1 modules
|
|
232318
232352
|
var DrawPageCell = __webpack_require__(59105);
|
|
232319
232353
|
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawTable.ts
|
|
@@ -232350,6 +232384,7 @@ var DrawTable = __webpack_require__(74298);
|
|
|
232350
232384
|
|
|
232351
232385
|
|
|
232352
232386
|
|
|
232387
|
+
|
|
232353
232388
|
|
|
232354
232389
|
|
|
232355
232390
|
var DrawSelectLevel = /*#__PURE__*/function () {
|
|
@@ -232485,7 +232520,6 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
232485
232520
|
if (pos.y < marea.dTop) {
|
|
232486
232521
|
pos.y = 0;
|
|
232487
232522
|
} else {
|
|
232488
|
-
//NOTE:指定位置到行下面 对表格有问题
|
|
232489
232523
|
var pt = marea.globalToLocal(aevent.stageX, aevent.stageY);
|
|
232490
232524
|
if (pt.y > 0 && pt.y < marea.dHeight) {
|
|
232491
232525
|
var startPos = hoEditorFactory.drawTree.getStagePosition(dPage, dPage.activeDrawRect, aevent.stageX, aevent.stageY);
|
|
@@ -232712,8 +232746,6 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
232712
232746
|
if (!hoeditorfactory.canvasListNode) {
|
|
232713
232747
|
hoeditorfactory.canvasListNode = document.querySelector(".ho-editor-list");
|
|
232714
232748
|
}
|
|
232715
|
-
hoeditorfactory.moveYParams.startY = aevent.stageY + this._pageIndex * hoeditorfactory.pageProperty.heightPixes;
|
|
232716
|
-
hoeditorfactory.moveYParams.moveHeight = 0;
|
|
232717
232749
|
if (aevent.currentTarget === this.stage) {
|
|
232718
232750
|
var _hoeditorfactory$draw;
|
|
232719
232751
|
if (aevent.nativeEvent.button === 0) {
|
|
@@ -232772,23 +232804,27 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
232772
232804
|
hoeditorfactory.docTree.curDomRange.setSamePath(startPos.path);
|
|
232773
232805
|
}
|
|
232774
232806
|
hoeditorfactory.drawTree.moveCaretToPath(startPos.path);
|
|
232775
|
-
|
|
232776
|
-
|
|
232777
|
-
|
|
232778
|
-
|
|
232779
|
-
|
|
232780
|
-
|
|
232781
|
-
|
|
232782
|
-
|
|
232783
|
-
|
|
232784
|
-
|
|
232785
|
-
|
|
232786
|
-
|
|
232787
|
-
|
|
232788
|
-
|
|
232807
|
+
if (aevent.nativeEvent.button === 0) {
|
|
232808
|
+
//鼠标点到文本域内容结尾时触发
|
|
232809
|
+
var curNP = hoeditorfactory.docTree.curDomRange.normalize().npEnd;
|
|
232810
|
+
if (curNP && curNP.node) {
|
|
232811
|
+
var nextNode = curNP.node.nextLeaf();
|
|
232812
|
+
if (nextNode && nextNode.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && nextNode.parentNode.inputFieldType == 0) {
|
|
232813
|
+
if (nextNode == nextNode.parentNode.EndMarkNode) {
|
|
232814
|
+
var lastPath = hoeditorfactory.docTree.getNodeLastPath(curNP.node);
|
|
232815
|
+
if (nextNode.parentNode.isEmpty()) {
|
|
232816
|
+
hoeditorfactory.vueController.getCaretPreviousText(nextNode.parentNode.name);
|
|
232817
|
+
} else {
|
|
232818
|
+
if (lastPath == startPos.path) {
|
|
232819
|
+
hoeditorfactory.vueController.getCaretPreviousText(nextNode.parentNode.text);
|
|
232820
|
+
}
|
|
232821
|
+
}
|
|
232822
|
+
}
|
|
232823
|
+
}
|
|
232824
|
+
}
|
|
232825
|
+
}
|
|
232789
232826
|
}
|
|
232790
232827
|
}
|
|
232791
|
-
|
|
232792
232828
|
return true;
|
|
232793
232829
|
}
|
|
232794
232830
|
}, {
|
|
@@ -232853,29 +232889,6 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
232853
232889
|
}
|
|
232854
232890
|
var endPos = hoeditorfactory.drawTree.getStagePosition(dPage, dPage.activeDrawRect, aevent.stageX, aevent.stageY);
|
|
232855
232891
|
if (endPos) {
|
|
232856
|
-
// const result = Math.abs(aevent.stageY + hoeditorfactory.moveYParams.startY) < (hoeditorfactory.pageProperty.heightPixes + 20) * hoeditorfactory.drawTree.drawPages.length;
|
|
232857
|
-
// console.log(Math.abs(aevent.stageY + hoeditorfactory.moveYParams.startY), (hoeditorfactory.pageProperty.heightPixes + 20) * hoeditorfactory.drawTree.drawPages.length);
|
|
232858
|
-
// if (result && hoeditorfactory.moveYParams.startY && hoeditorfactory.canvasListNode) {
|
|
232859
|
-
// const height = aevent.stageY + y - hoeditorfactory.moveYParams.startY;
|
|
232860
|
-
// if(height > 0) {
|
|
232861
|
-
// if (Math.abs(height) - hoeditorfactory.moveYParams.moveHeight > 0) {
|
|
232862
|
-
// hoeditorfactory.canvasListNode.scrollTop += 13;
|
|
232863
|
-
// console.log("初始 ↓ 一直向 ↓");
|
|
232864
|
-
// } else if(Math.abs(height) - hoeditorfactory.moveYParams.moveHeight < 0) {
|
|
232865
|
-
// console.log("初始 ↓ 中间转 ↑", Math.abs(height) - hoeditorfactory.moveYParams.moveHeight, height, hoeditorfactory.moveYParams.moveHeight);
|
|
232866
|
-
// hoeditorfactory.canvasListNode.scrollTop -= 13;
|
|
232867
|
-
// }
|
|
232868
|
-
// } else if(height < 0) {
|
|
232869
|
-
// if (Math.abs(height) - hoeditorfactory.moveYParams.moveHeight > 0) {
|
|
232870
|
-
// console.log("初始 ↑ 一直向 ↑")
|
|
232871
|
-
// hoeditorfactory.canvasListNode.scrollTop -= 13;
|
|
232872
|
-
// } else if(Math.abs(height) - hoeditorfactory.moveYParams.moveHeight < 0) {
|
|
232873
|
-
// console.log("初始 ↑ 中间转 ↓", Math.abs(height) - hoeditorfactory.moveYParams.moveHeight, height, hoeditorfactory.moveYParams.moveHeight)
|
|
232874
|
-
// hoeditorfactory.canvasListNode.scrollTop += 13;
|
|
232875
|
-
// }
|
|
232876
|
-
// }
|
|
232877
|
-
// hoeditorfactory.moveYParams.moveHeight = Math.abs(height);
|
|
232878
|
-
// }
|
|
232879
232892
|
hoeditorfactory.docTree.curDomRange.endPath = endPos.path;
|
|
232880
232893
|
hoeditorfactory.drawTree.selectRange.spEnd = endPos;
|
|
232881
232894
|
if (endPos.path != '') {
|
|
@@ -233734,8 +233747,6 @@ var TableCellPoper = __webpack_require__(21277);
|
|
|
233734
233747
|
var DateTimeNode = __webpack_require__(92501);
|
|
233735
233748
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/DownListNode.ts
|
|
233736
233749
|
var DownListNode = __webpack_require__(45712);
|
|
233737
|
-
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TextInputFieldNode.ts
|
|
233738
|
-
var TextInputFieldNode = __webpack_require__(90161);
|
|
233739
233750
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
|
|
233740
233751
|
var es_promise = __webpack_require__(88674);
|
|
233741
233752
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.trim.js
|
|
@@ -235422,7 +235433,7 @@ var ParagraphNode = __webpack_require__(67945);
|
|
|
235422
235433
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
|
|
235423
235434
|
var MarkNode = __webpack_require__(57727);
|
|
235424
235435
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
235425
|
-
/* harmony default export */ var version = ('3.0.
|
|
235436
|
+
/* harmony default export */ var version = ('3.0.49');
|
|
235426
235437
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
235427
235438
|
var PoperTipText = __webpack_require__(15845);
|
|
235428
235439
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -235785,6 +235796,12 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
235785
235796
|
nodeType: node.nodeType,
|
|
235786
235797
|
type: 'link'
|
|
235787
235798
|
});
|
|
235799
|
+
} else if ((node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j && node.MarkNodeType !== 2) && node.parentNode && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
235800
|
+
this.$emit('leftclick', {
|
|
235801
|
+
name: node.parentNode.name,
|
|
235802
|
+
nodeType: node.parentNode.nodeType,
|
|
235803
|
+
type: 'TextInputFieldNode'
|
|
235804
|
+
});
|
|
235788
235805
|
}
|
|
235789
235806
|
}
|
|
235790
235807
|
} else if (e.clickType === 'rightClick') {
|
|
@@ -235844,7 +235861,7 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
235844
235861
|
if (paintStatus === 4) {
|
|
235845
235862
|
if ((node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j) && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
235846
235863
|
var parentNode = node.parentNode;
|
|
235847
|
-
if (Number(parentNode.inputFieldType) === 0
|
|
235864
|
+
if (Number(parentNode.inputFieldType) === 0) {
|
|
235848
235865
|
this.$emit('dblNodeClick', {
|
|
235849
235866
|
node: this.getCurrentSelectNode,
|
|
235850
235867
|
type: 'modify_node',
|
|
@@ -236135,10 +236152,10 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
236135
236152
|
});
|
|
236136
236153
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
236137
236154
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
236138
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
236155
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=0fdfe624&prod&lang=scss&
|
|
236139
236156
|
// extracted by mini-css-extract-plugin
|
|
236140
236157
|
|
|
236141
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
236158
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=0fdfe624&prod&lang=scss&
|
|
236142
236159
|
|
|
236143
236160
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
236144
236161
|
|
|
@@ -236151,8 +236168,8 @@ var defaultHeight = Math.floor(1122 * DrawConfig/* DrawConfig.instance */.f.inst
|
|
|
236151
236168
|
|
|
236152
236169
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
236153
236170
|
components_HoDocvue_type_script_lang_js_,
|
|
236154
|
-
|
|
236155
|
-
|
|
236171
|
+
HoDocvue_type_template_id_0fdfe624_render,
|
|
236172
|
+
HoDocvue_type_template_id_0fdfe624_staticRenderFns,
|
|
236156
236173
|
false,
|
|
236157
236174
|
null,
|
|
236158
236175
|
null,
|
|
@@ -237542,13 +237559,9 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
|
|
|
237542
237559
|
// }
|
|
237543
237560
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
237544
237561
|
if (node instanceof TextNode/* TextNode */.R) {
|
|
237545
|
-
if (
|
|
237562
|
+
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psReview */.Dh.psReview || !hoEditorFactory.isHideComments) {
|
|
237546
237563
|
this._creatorIndex = hoEditorFactory.docTree.styles[node.styleIndex].creatorIndex;
|
|
237547
237564
|
this._deleterIndex = hoEditorFactory.docTree.styles[node.styleIndex].deleterIndex;
|
|
237548
|
-
// if(moveType === DmouseEventType.detOver) {
|
|
237549
|
-
// console.log(this._creatorIndex, this._deleterIndex);
|
|
237550
|
-
// console.log(HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.userHistories);
|
|
237551
|
-
// }
|
|
237552
237565
|
if (this._creatorIndex !== undefined && this._creatorIndex >= 0) {
|
|
237553
237566
|
var userHistories = hoEditorFactory.docTree.userHistories[this._creatorIndex];
|
|
237554
237567
|
this._moveType = moveType;
|
|
@@ -237564,12 +237577,12 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
|
|
|
237564
237577
|
this.computedPosition(node.drawNodes[0]);
|
|
237565
237578
|
}
|
|
237566
237579
|
} else {
|
|
237567
|
-
if (this._isUseTipText && this._deleterIndex !== 0 && node.parentNode && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && (hoEditorFactory.drawTree.paintStatus === 0 || hoEditorFactory.drawTree.paintStatus === 1
|
|
237580
|
+
if (this._isUseTipText && this._deleterIndex !== 0 && node.parentNode && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && (hoEditorFactory.drawTree.paintStatus === 0 || hoEditorFactory.drawTree.paintStatus === 1)) {
|
|
237568
237581
|
this._moveType = moveType;
|
|
237569
237582
|
if (node.parentNode.tipText) {
|
|
237570
237583
|
var text = JSON.stringify(node.parentNode.tipText);
|
|
237571
237584
|
text = text.slice(1, text.length - 1);
|
|
237572
|
-
var arr = text.split(
|
|
237585
|
+
var arr = text.split('\\n').filter(function (v) {
|
|
237573
237586
|
return v;
|
|
237574
237587
|
});
|
|
237575
237588
|
this._tipText = arr;
|
|
@@ -237581,12 +237594,12 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
|
|
|
237581
237594
|
}
|
|
237582
237595
|
}
|
|
237583
237596
|
} else if (node instanceof MarkNode/* MarkNode */.j) {
|
|
237584
|
-
if (this._isUseTipText && this._deleterIndex !== 0 && node.parentNode && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && (hoEditorFactory.drawTree.paintStatus === 0 || hoEditorFactory.drawTree.paintStatus === 1
|
|
237597
|
+
if (this._isUseTipText && this._deleterIndex !== 0 && node.parentNode && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && (hoEditorFactory.drawTree.paintStatus === 0 || hoEditorFactory.drawTree.paintStatus === 1)) {
|
|
237585
237598
|
this._moveType = moveType;
|
|
237586
237599
|
if (node.parentNode.tipText) {
|
|
237587
237600
|
var _text = JSON.stringify(node.parentNode.tipText);
|
|
237588
237601
|
_text = _text.slice(1, _text.length - 1);
|
|
237589
|
-
var _arr = _text.split(
|
|
237602
|
+
var _arr = _text.split('\\n').filter(function (v) {
|
|
237590
237603
|
return v;
|
|
237591
237604
|
});
|
|
237592
237605
|
this._tipText = _arr;
|
|
@@ -237603,7 +237616,7 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
|
|
|
237603
237616
|
if (node.tipText) {
|
|
237604
237617
|
var _text2 = JSON.stringify(node.tipText);
|
|
237605
237618
|
_text2 = _text2.slice(1, _text2.length - 1);
|
|
237606
|
-
var _arr2 = _text2.split(
|
|
237619
|
+
var _arr2 = _text2.split('\\n').filter(function (v) {
|
|
237607
237620
|
return v;
|
|
237608
237621
|
});
|
|
237609
237622
|
this._tipText = _arr2;
|
|
@@ -237623,7 +237636,7 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
|
|
|
237623
237636
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
237624
237637
|
if (node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh && moveType === DmouseEventType.detClick) {
|
|
237625
237638
|
var drawLine = hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]);
|
|
237626
|
-
var nodeClickEvent = new NodeClickEvent/* NodeClickEvent */.W(node,
|
|
237639
|
+
var nodeClickEvent = new NodeClickEvent/* NodeClickEvent */.W(node, 'click');
|
|
237627
237640
|
hoEditorFactory.docTree.nodeClick(nodeClickEvent);
|
|
237628
237641
|
node.drawNodes[0].parent = drawLine;
|
|
237629
237642
|
}
|
|
@@ -237674,10 +237687,10 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
|
|
|
237674
237687
|
value: function createParagraphTipHTML(caret, text) {
|
|
237675
237688
|
var _caret$cursor$parentN;
|
|
237676
237689
|
var tipdiv = document.createElement('div');
|
|
237677
|
-
tipdiv.id =
|
|
237678
|
-
tipdiv.style.left = caret.X +
|
|
237679
|
-
tipdiv.style.top = caret.Y + caret.height +
|
|
237680
|
-
tipdiv.innerHTML = text.join(
|
|
237690
|
+
tipdiv.id = 'ho_paragrapgh_tip';
|
|
237691
|
+
tipdiv.style.left = caret.X + 'px';
|
|
237692
|
+
tipdiv.style.top = caret.Y + caret.height + 'px';
|
|
237693
|
+
tipdiv.innerHTML = text.join('<br />');
|
|
237681
237694
|
(_caret$cursor$parentN = caret.cursor.parentNode) === null || _caret$cursor$parentN === void 0 ? void 0 : _caret$cursor$parentN.appendChild(tipdiv);
|
|
237682
237695
|
}
|
|
237683
237696
|
/**
|
|
@@ -237702,7 +237715,7 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
|
|
|
237702
237715
|
}]);
|
|
237703
237716
|
return NodeMouseMoveEvent;
|
|
237704
237717
|
}();
|
|
237705
|
-
(0,esm_defineProperty/* default */.Z)(NodeMouseMoveEvent, "eventName",
|
|
237718
|
+
(0,esm_defineProperty/* default */.Z)(NodeMouseMoveEvent, "eventName", 'nodeMouseMove');
|
|
237706
237719
|
// EXTERNAL MODULE: ./src/editor/runTimeInfo/UserInfo.ts
|
|
237707
237720
|
var UserInfo = __webpack_require__(14871);
|
|
237708
237721
|
;// CONCATENATED MODULE: ./src/editor/runTimeInfo/Option.ts
|
|
@@ -238260,7 +238273,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
238260
238273
|
//size = Math.round(hoeditorfactory.unitConvert.pxConversionMm(size, true) );
|
|
238261
238274
|
size = size / 96 * 72;
|
|
238262
238275
|
}
|
|
238263
|
-
if (size == 11) {
|
|
238276
|
+
if (size == 11 || size == 11.5) {
|
|
238264
238277
|
size = 12;
|
|
238265
238278
|
}
|
|
238266
238279
|
tmp.size = size;
|
|
@@ -242712,7 +242725,6 @@ var comment = __webpack_require__(32980);
|
|
|
242712
242725
|
|
|
242713
242726
|
|
|
242714
242727
|
|
|
242715
|
-
|
|
242716
242728
|
|
|
242717
242729
|
|
|
242718
242730
|
var VueController = /*#__PURE__*/function () {
|
|
@@ -248039,51 +248051,34 @@ var VueController = /*#__PURE__*/function () {
|
|
|
248039
248051
|
*/
|
|
248040
248052
|
}, {
|
|
248041
248053
|
key: "getCaretPreviousText",
|
|
248042
|
-
value: function getCaretPreviousText() {
|
|
248054
|
+
value: function getCaretPreviousText(value) {
|
|
248043
248055
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
248044
248056
|
if (hoEditorFactory.aiTextFunc) {
|
|
248045
|
-
var _node$parentNode;
|
|
248046
248057
|
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
248047
248058
|
var node = curDomRange.npEnd.node;
|
|
248048
|
-
var textFieldName = '';
|
|
248049
|
-
var text = '';
|
|
248050
|
-
if (
|
|
248051
|
-
|
|
248052
|
-
|
|
248053
|
-
|
|
248054
|
-
|
|
248055
|
-
|
|
248056
|
-
|
|
248057
|
-
|
|
248058
|
-
|
|
248059
|
-
var getText = function getText() {
|
|
248060
|
-
var previousNode = node === null || node === void 0 ? void 0 : node.previousLeaf();
|
|
248061
|
-
if (previousNode instanceof TextNode/* TextNode */.R) {
|
|
248062
|
-
text += previousNode.text;
|
|
248063
|
-
if (text.length < 20) {
|
|
248064
|
-
getText();
|
|
248065
|
-
}
|
|
248059
|
+
var textFieldName = value || '';
|
|
248060
|
+
var text = value || '';
|
|
248061
|
+
if (!text && !textFieldName) {
|
|
248062
|
+
var _node$parentNode;
|
|
248063
|
+
if ((node === null || node === void 0 ? void 0 : node.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
248064
|
+
textFieldName = node.parentNode.name.replace(/\s*/g, '');
|
|
248065
|
+
text = node.parentNode.text.replace(/\s*/g, '');
|
|
248066
|
+
} else if ((node === null || node === void 0 ? void 0 : (_node$parentNode = node.parentNode) === null || _node$parentNode === void 0 ? void 0 : _node$parentNode.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
248067
|
+
var _node$parentNode2;
|
|
248068
|
+
textFieldName = node === null || node === void 0 ? void 0 : (_node$parentNode2 = node.parentNode) === null || _node$parentNode2 === void 0 ? void 0 : _node$parentNode2.parentNode.name.replace(/\s*/g, '');
|
|
248069
|
+
text = node.parentNode.parentNode.text.replace(/\s*/g, '');
|
|
248066
248070
|
}
|
|
248067
|
-
}
|
|
248071
|
+
}
|
|
248068
248072
|
var callback = function callback(aiText) {
|
|
248069
248073
|
var aiInfo = hoEditorFactory.drawTree.caret.aiInfo;
|
|
248070
248074
|
hoEditorFactory.drawTree.caret.aiInfo.lastPosition = [aiInfo.pageIndex, aiInfo.x, aiInfo.y];
|
|
248071
248075
|
hoEditorFactory.drawTree.caret.aiInfo.aiText = aiText;
|
|
248072
248076
|
};
|
|
248073
|
-
if (text
|
|
248074
|
-
|
|
248075
|
-
}
|
|
248076
|
-
|
|
248077
|
-
|
|
248078
|
-
}
|
|
248079
|
-
if (text.length >= 20) {
|
|
248080
|
-
text = text.slice(text.length - 20, text.length);
|
|
248081
|
-
hoEditorFactory.aiTextFunc(text.replace(/\s*/g, ''), callback);
|
|
248082
|
-
} else if (text.length > 0) {
|
|
248083
|
-
hoEditorFactory.aiTextFunc(text.replace(/\s*/g, ''), callback);
|
|
248084
|
-
} else if (text.length === 0 && textFieldName.replace(/\s*/g, '')) {
|
|
248085
|
-
hoEditorFactory.aiTextFunc(textFieldName.replace(/\s*/g, ''), callback);
|
|
248086
|
-
}
|
|
248077
|
+
if (text) {
|
|
248078
|
+
hoEditorFactory.aiTextFunc(text, callback, textFieldName);
|
|
248079
|
+
} else if (textFieldName) {
|
|
248080
|
+
hoEditorFactory.aiTextFunc('', callback, textFieldName);
|
|
248081
|
+
} else {}
|
|
248087
248082
|
}
|
|
248088
248083
|
}
|
|
248089
248084
|
}, {
|
|
@@ -249498,6 +249493,25 @@ var VueController = /*#__PURE__*/function () {
|
|
|
249498
249493
|
});
|
|
249499
249494
|
return pathArr;
|
|
249500
249495
|
}
|
|
249496
|
+
}, {
|
|
249497
|
+
key: "showLineInfos",
|
|
249498
|
+
value: function showLineInfos() {
|
|
249499
|
+
var drawTree = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryID).drawTree;
|
|
249500
|
+
for (var i = 0; i < drawTree.drawPages.length; i++) {
|
|
249501
|
+
var dpage = drawTree.drawPages[i];
|
|
249502
|
+
var sc = dpage.selectContainer;
|
|
249503
|
+
var dc = dpage.drawMainDoc;
|
|
249504
|
+
for (var j = 0; j < dc.numChildren; j++) {
|
|
249505
|
+
var dobj = dc.children[j];
|
|
249506
|
+
if (dobj.dHeight) {
|
|
249507
|
+
var dText = new createjs.Text('y=' + dc.children[j].y + ' dHeight=' + dobj.dHeight, 'SimSun 12pt');
|
|
249508
|
+
dText.y = dc.localToGlobal(dobj.x, dobj.y).y;
|
|
249509
|
+
dText.x = 0;
|
|
249510
|
+
sc.addChild(dText);
|
|
249511
|
+
}
|
|
249512
|
+
}
|
|
249513
|
+
}
|
|
249514
|
+
}
|
|
249501
249515
|
}]);
|
|
249502
249516
|
return VueController;
|
|
249503
249517
|
}();
|
|
@@ -254613,11 +254627,8 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
254613
254627
|
(0,esm_defineProperty/* default */.Z)(this, "_printSilently", false);
|
|
254614
254628
|
(0,esm_defineProperty/* default */.Z)(this, "_limitCharNumber", 0);
|
|
254615
254629
|
(0,esm_defineProperty/* default */.Z)(this, "_reviewJson", void 0);
|
|
254616
|
-
(0,esm_defineProperty/* default */.Z)(this, "_moveYParams", {
|
|
254617
|
-
startY: 0,
|
|
254618
|
-
moveHeight: 0
|
|
254619
|
-
});
|
|
254620
254630
|
(0,esm_defineProperty/* default */.Z)(this, "_canvasListNode", void 0);
|
|
254631
|
+
(0,esm_defineProperty/* default */.Z)(this, "_numLetterOnOneLine", true);
|
|
254621
254632
|
this._hoEditorFactoryId = id;
|
|
254622
254633
|
}
|
|
254623
254634
|
(0,esm_createClass/* default */.Z)(HOEditorFactory, [{
|
|
@@ -254639,6 +254650,7 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
254639
254650
|
// 待加载的图片数量
|
|
254640
254651
|
// 图片加载完成回调
|
|
254641
254652
|
// 获取ai文本函数
|
|
254653
|
+
//private _aiText = ""; // ai文本
|
|
254642
254654
|
|
|
254643
254655
|
// 医生签名图片高度
|
|
254644
254656
|
// 患者签名签字图片高度
|
|
@@ -254658,6 +254670,7 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
254658
254670
|
// 限制复制病历文本的字符数
|
|
254659
254671
|
// 审阅列表菜单权限
|
|
254660
254672
|
|
|
254673
|
+
//连续的数字或字母是否在一行显示
|
|
254661
254674
|
/**
|
|
254662
254675
|
* Getter hoLocalStorage
|
|
254663
254676
|
* @return {HoLocalStorage}
|
|
@@ -255178,6 +255191,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
255178
255191
|
this._limitCharNumber = value;
|
|
255179
255192
|
}
|
|
255180
255193
|
}
|
|
255194
|
+
}, {
|
|
255195
|
+
key: "numLetterOnOneLine",
|
|
255196
|
+
get: function get() {
|
|
255197
|
+
return this._numLetterOnOneLine;
|
|
255198
|
+
},
|
|
255199
|
+
set: function set(value) {
|
|
255200
|
+
if (this._numLetterOnOneLine !== value) {
|
|
255201
|
+
this._numLetterOnOneLine = value;
|
|
255202
|
+
}
|
|
255203
|
+
}
|
|
255181
255204
|
}, {
|
|
255182
255205
|
key: "reviewJson",
|
|
255183
255206
|
get: function get() {
|
|
@@ -255251,7 +255274,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
255251
255274
|
key: "aiTextFunc",
|
|
255252
255275
|
get: function get() {
|
|
255253
255276
|
return this._aiTextFunc;
|
|
255254
|
-
}
|
|
255277
|
+
}
|
|
255278
|
+
// set aiText(value: string) {
|
|
255279
|
+
// if (this._aiText !== value) {
|
|
255280
|
+
// this._aiText = value;
|
|
255281
|
+
// }
|
|
255282
|
+
// }
|
|
255283
|
+
// get aiText(): string {
|
|
255284
|
+
// return this._aiText;
|
|
255285
|
+
// }
|
|
255286
|
+
,
|
|
255255
255287
|
set: function set(value) {
|
|
255256
255288
|
if (this._aiTextFunc !== value) {
|
|
255257
255289
|
this._aiTextFunc = value;
|
|
@@ -255417,16 +255449,6 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
255417
255449
|
this._canvasListNode = value;
|
|
255418
255450
|
}
|
|
255419
255451
|
}
|
|
255420
|
-
}, {
|
|
255421
|
-
key: "moveYParams",
|
|
255422
|
-
get: function get() {
|
|
255423
|
-
return this._moveYParams;
|
|
255424
|
-
},
|
|
255425
|
-
set: function set(value) {
|
|
255426
|
-
if (value && this._moveYParams !== value) {
|
|
255427
|
-
this._moveYParams = value;
|
|
255428
|
-
}
|
|
255429
|
-
}
|
|
255430
255452
|
}, {
|
|
255431
255453
|
key: "clear",
|
|
255432
255454
|
value: function clear() {
|
|
@@ -255909,9 +255931,31 @@ var commondata = __webpack_require__(76285);
|
|
|
255909
255931
|
// 测试
|
|
255910
255932
|
|
|
255911
255933
|
isFooter: true
|
|
255912
|
-
}
|
|
255934
|
+
},
|
|
255935
|
+
isMouseDown: false,
|
|
255936
|
+
// 鼠标是否处于按下状态
|
|
255937
|
+
mouseParams: {
|
|
255938
|
+
speed: 10,
|
|
255939
|
+
// 定时器触发时间 值越大滚动越慢
|
|
255940
|
+
distance: 16,
|
|
255941
|
+
// 每次滚动页面的距离 值越大滚动越快
|
|
255942
|
+
margin: 72,
|
|
255943
|
+
// 容器上下边距触发范围
|
|
255944
|
+
startY: 0,
|
|
255945
|
+
// 鼠标按下时初始位置
|
|
255946
|
+
scrollHeight: 0,
|
|
255947
|
+
// 容器可滚动高度
|
|
255948
|
+
clientHeight: 0,
|
|
255949
|
+
// 容器高度
|
|
255950
|
+
topMargin: 0,
|
|
255951
|
+
bottomMargin: 0
|
|
255952
|
+
},
|
|
255953
|
+
scrollDirection: 0,
|
|
255954
|
+
// 页面滚动方向:1表示向下,-1表示向上
|
|
255955
|
+
scrollTimer: null // 鼠标滑动时页面滚动定时器
|
|
255913
255956
|
};
|
|
255914
255957
|
},
|
|
255958
|
+
|
|
255915
255959
|
watch: {
|
|
255916
255960
|
contentIsModify: {
|
|
255917
255961
|
deep: true,
|
|
@@ -256094,25 +256138,35 @@ var commondata = __webpack_require__(76285);
|
|
|
256094
256138
|
}
|
|
256095
256139
|
}
|
|
256096
256140
|
},
|
|
256097
|
-
|
|
256141
|
+
mounted: function mounted() {
|
|
256098
256142
|
var _this3 = this;
|
|
256143
|
+
if (this.$refs.hoEditorListNode) {
|
|
256144
|
+
document.addEventListener('mouseup', function () {
|
|
256145
|
+
_this3.isMouseDown = false;
|
|
256146
|
+
clearInterval(_this3.scrollTimer);
|
|
256147
|
+
});
|
|
256148
|
+
document.addEventListener('mousemove', this.mouseMove);
|
|
256149
|
+
}
|
|
256150
|
+
},
|
|
256151
|
+
created: function created() {
|
|
256152
|
+
var _this4 = this;
|
|
256099
256153
|
// 禁掉默认的左键菜单
|
|
256100
256154
|
window.oncontextmenu = function (e) {
|
|
256101
256155
|
e.preventDefault();
|
|
256102
256156
|
};
|
|
256103
256157
|
this.$nextTick(function () {
|
|
256104
|
-
if (
|
|
256158
|
+
if (_this4.editJson && _this4.editJson.findModal) {
|
|
256105
256159
|
document.onkeydown = function (event) {
|
|
256106
256160
|
var keyCode = event.keyCode || event.which || event.charCode;
|
|
256107
256161
|
var ctrlKey = event.ctrlKey || event.metaKey;
|
|
256108
256162
|
// ctrl + F组合键 覆盖浏览器自身查询替换功能
|
|
256109
256163
|
if (ctrlKey && keyCode === 70) {
|
|
256110
256164
|
event.preventDefault();
|
|
256111
|
-
|
|
256165
|
+
_this4.hoEditorProvider.controlFindType = !_this4.hoEditorProvider.controlFindType;
|
|
256112
256166
|
}
|
|
256113
256167
|
// esc快捷键 自动关闭查询替换弹窗
|
|
256114
256168
|
if (keyCode === 27) {
|
|
256115
|
-
|
|
256169
|
+
_this4.hoEditorProvider.controlFindType = false;
|
|
256116
256170
|
}
|
|
256117
256171
|
};
|
|
256118
256172
|
}
|
|
@@ -256121,25 +256175,25 @@ var commondata = __webpack_require__(76285);
|
|
|
256121
256175
|
this.docList.forEach(function () {
|
|
256122
256176
|
var id = (0,plugins_util/* generateID */.y)('HO');
|
|
256123
256177
|
var hoEditor = new HOEditorFactory(id);
|
|
256124
|
-
|
|
256125
|
-
if (Array.isArray(
|
|
256126
|
-
hoEditor.superiorSigns = (0,esm_toConsumableArray/* default */.Z)(
|
|
256178
|
+
_this4.hoEditorFactoryIdList.push(id);
|
|
256179
|
+
if (Array.isArray(_this4.superiorSigns) && _this4.superiorSigns.length > 0) {
|
|
256180
|
+
hoEditor.superiorSigns = (0,esm_toConsumableArray/* default */.Z)(_this4.superiorSigns);
|
|
256127
256181
|
}
|
|
256128
|
-
if (
|
|
256182
|
+
if (_this4.isFixedPrintToA4 === true) {
|
|
256129
256183
|
hoEditor.isFixedPrintToA4 = '1';
|
|
256130
|
-
} else if (
|
|
256184
|
+
} else if (_this4.isFixedPrintToA4 === false) {
|
|
256131
256185
|
hoEditor.isFixedPrintToA4 = '';
|
|
256132
256186
|
} else {
|
|
256133
|
-
hoEditor.isFixedPrintToA4 =
|
|
256134
|
-
}
|
|
256135
|
-
hoEditor.isUseImagePrint =
|
|
256136
|
-
hoEditor.isUseForm =
|
|
256137
|
-
hoEditor.printBlack =
|
|
256138
|
-
hoEditor.isEnabledGlobalColor =
|
|
256139
|
-
hoEditor.isSameColorWithEmptyVlaue =
|
|
256140
|
-
hoEditor.contentIsModify =
|
|
256141
|
-
hoEditor.isCanEditHeadFoot =
|
|
256142
|
-
hoEditor.docTree.docProperty =
|
|
256187
|
+
hoEditor.isFixedPrintToA4 = _this4.isFixedPrintToA4;
|
|
256188
|
+
}
|
|
256189
|
+
hoEditor.isUseImagePrint = _this4.isUseImagePrint;
|
|
256190
|
+
hoEditor.isUseForm = _this4.isUseForm;
|
|
256191
|
+
hoEditor.printBlack = _this4.printBlack;
|
|
256192
|
+
hoEditor.isEnabledGlobalColor = _this4.isEnabledGlobalColor;
|
|
256193
|
+
hoEditor.isSameColorWithEmptyVlaue = _this4.isSameColorWithEmptyVlaue;
|
|
256194
|
+
hoEditor.contentIsModify = _this4.contentIsModify;
|
|
256195
|
+
hoEditor.isCanEditHeadFoot = _this4.isCanEditHeadFoot;
|
|
256196
|
+
hoEditor.docTree.docProperty = _this4.defaultDocProperty;
|
|
256143
256197
|
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().hoEditorFactoryMap.set(id, hoEditor);
|
|
256144
256198
|
});
|
|
256145
256199
|
// 监听编辑器删除的url图片节点变化
|
|
@@ -256149,9 +256203,9 @@ var commondata = __webpack_require__(76285);
|
|
|
256149
256203
|
this.setActiveDocIndex(this.hoEditorFactoryIdList[0]);
|
|
256150
256204
|
this.$nextTick(function () {
|
|
256151
256205
|
if (!commondata/* CommonData.instance */.G.instance().modalStatusObject) {
|
|
256152
|
-
commondata/* CommonData.instance */.G.instance().modalStatusObject =
|
|
256206
|
+
commondata/* CommonData.instance */.G.instance().modalStatusObject = _this4.modalStatusObject;
|
|
256153
256207
|
}
|
|
256154
|
-
if (
|
|
256208
|
+
if (_this4.pageProperty && Object.keys(_this4.pageProperty).length > 0) _this4.initPageProperty((0,objectSpread2/* default */.Z)({}, _this4.pageProperty));
|
|
256155
256209
|
});
|
|
256156
256210
|
},
|
|
256157
256211
|
methods: {
|
|
@@ -256159,10 +256213,10 @@ var commondata = __webpack_require__(76285);
|
|
|
256159
256213
|
* 右键菜单触发
|
|
256160
256214
|
*/
|
|
256161
256215
|
rightClickEventIn: function rightClickEventIn(rightPosition) {
|
|
256162
|
-
var
|
|
256216
|
+
var _this5 = this;
|
|
256163
256217
|
var nodeInfoes = {
|
|
256164
256218
|
node: function node() {
|
|
256165
|
-
return
|
|
256219
|
+
return _this5.hoEditorProvider.getUpdateNode();
|
|
256166
256220
|
},
|
|
256167
256221
|
type: this.hoEditorProvider.rightType,
|
|
256168
256222
|
style: this.hoEditorProvider.expressStyle,
|
|
@@ -256175,7 +256229,7 @@ var commondata = __webpack_require__(76285);
|
|
|
256175
256229
|
nodeInfoes.labelNode = function () {
|
|
256176
256230
|
var labelNode = [];
|
|
256177
256231
|
var isIncludes = '';
|
|
256178
|
-
var hoEditor = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(
|
|
256232
|
+
var hoEditor = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(_this5.hoEditorProvider.activeDocId);
|
|
256179
256233
|
var currentDomRange = hoEditor.vueController.getDomRange();
|
|
256180
256234
|
if (currentDomRange !== null && currentDomRange !== void 0 && currentDomRange.isEmpty) {
|
|
256181
256235
|
if (node instanceof LabelNode/* LabelNode */.P) {
|
|
@@ -256186,7 +256240,7 @@ var commondata = __webpack_require__(76285);
|
|
|
256186
256240
|
isIncludes = 'toLabel';
|
|
256187
256241
|
var startPath = currentDomRange.startPath;
|
|
256188
256242
|
var endPath = currentDomRange.endPath;
|
|
256189
|
-
var selectNodes = DomRange/* DomRange.getSelectDomNodes */.a.getSelectDomNodes(
|
|
256243
|
+
var selectNodes = DomRange/* DomRange.getSelectDomNodes */.a.getSelectDomNodes(_this5.hoEditorProvider.activeDocId, startPath, endPath, true)[0];
|
|
256190
256244
|
if (selectNodes.length > 0) {
|
|
256191
256245
|
selectNodes.forEach(function (v) {
|
|
256192
256246
|
if (v instanceof LabelNode/* LabelNode */.P) {
|
|
@@ -256245,24 +256299,24 @@ var commondata = __webpack_require__(76285);
|
|
|
256245
256299
|
* 初始化事件
|
|
256246
256300
|
*/
|
|
256247
256301
|
initListener: function initListener() {
|
|
256248
|
-
var
|
|
256302
|
+
var _this6 = this;
|
|
256249
256303
|
// 禁掉默认的左键菜单
|
|
256250
256304
|
window.oncontextmenu = function (e) {
|
|
256251
256305
|
e.preventDefault();
|
|
256252
256306
|
};
|
|
256253
256307
|
this.$nextTick(function () {
|
|
256254
|
-
if (
|
|
256308
|
+
if (_this6.editJson.findModal) {
|
|
256255
256309
|
document.onkeydown = function (event) {
|
|
256256
256310
|
var keyCode = event.keyCode || event.which || event.charCode;
|
|
256257
256311
|
var ctrlKey = event.ctrlKey || event.metaKey;
|
|
256258
256312
|
// ctrl + F组合键 覆盖浏览器自身查询替换功能
|
|
256259
256313
|
if (ctrlKey && keyCode === 70) {
|
|
256260
256314
|
event.preventDefault();
|
|
256261
|
-
|
|
256315
|
+
_this6.hoEditorProvider.controlFindType = !_this6.hoEditorProvider.controlFindType;
|
|
256262
256316
|
}
|
|
256263
256317
|
// esc快捷键 自动关闭查询替换弹窗
|
|
256264
256318
|
if (keyCode === 27) {
|
|
256265
|
-
|
|
256319
|
+
_this6.hoEditorProvider.controlFindType = false;
|
|
256266
256320
|
}
|
|
256267
256321
|
};
|
|
256268
256322
|
}
|
|
@@ -256514,7 +256568,7 @@ var commondata = __webpack_require__(76285);
|
|
|
256514
256568
|
},
|
|
256515
256569
|
// 设置字体
|
|
256516
256570
|
setFontStyle: function setFontStyle() {
|
|
256517
|
-
var
|
|
256571
|
+
var _this7 = this;
|
|
256518
256572
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorProvider.activeDocId);
|
|
256519
256573
|
var elementNode = document.querySelector('#ho_table_auxiliary');
|
|
256520
256574
|
if (elementNode) {
|
|
@@ -256534,17 +256588,90 @@ var commondata = __webpack_require__(76285);
|
|
|
256534
256588
|
}
|
|
256535
256589
|
var style = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, hoEditorFactory.vueController.getCaretTextStyle({})), hoEditorFactory.vueController.getCaretParagraphStyle({})), hoEditorFactory.vueController.getCaretTableStyle({}));
|
|
256536
256590
|
Object.keys(this.hoEditorProvider.textStyle).forEach(function (key) {
|
|
256537
|
-
if (style[key] !== undefined && style[key] !== null)
|
|
256591
|
+
if (style[key] !== undefined && style[key] !== null) _this7.hoEditorProvider.textStyle[key] = style[key];
|
|
256538
256592
|
});
|
|
256593
|
+
},
|
|
256594
|
+
/**
|
|
256595
|
+
* canvas容器内监听鼠标按下事件
|
|
256596
|
+
*/
|
|
256597
|
+
mouseDown: function mouseDown(e) {
|
|
256598
|
+
if (e.button == 0 && this.$refs.hoEditorListNode) {
|
|
256599
|
+
var rect = this.$refs.hoEditorListNode.getBoundingClientRect();
|
|
256600
|
+
this.isMouseDown = true;
|
|
256601
|
+
this.mouseParams.startY = e.offsetY;
|
|
256602
|
+
this.scrollDirection = 0;
|
|
256603
|
+
this.mouseParams.topMargin = rect.top + this.mouseParams.margin; // 鼠标位置靠近容器顶部
|
|
256604
|
+
this.mouseParams.bottomMargin = rect.bottom - this.mouseParams.margin; // 鼠标位置靠近容器底部
|
|
256605
|
+
this.mouseParams.scrollHeight = this.$refs.hoEditorListNode.scrollHeight; // 容器可滚动高度
|
|
256606
|
+
this.mouseParams.clientHeight = this.$refs.hoEditorListNode.clientHeight; // 容器高度
|
|
256607
|
+
clearInterval(this.scrollTimer);
|
|
256608
|
+
}
|
|
256609
|
+
},
|
|
256610
|
+
/**
|
|
256611
|
+
* canvas容器内监听鼠标按下后滚动页面事件
|
|
256612
|
+
*/
|
|
256613
|
+
mouseMove: function mouseMove(e) {
|
|
256614
|
+
if (this.isMouseDown && this.$refs.hoEditorListNode) {
|
|
256615
|
+
var deltaY = e.clientY - this.mouseParams.startY;
|
|
256616
|
+
var scrollY = this.$refs.hoEditorListNode.scrollTop;
|
|
256617
|
+
if (deltaY > 0) {
|
|
256618
|
+
if (scrollY < this.mouseParams.scrollHeight - this.mouseParams.clientHeight) {
|
|
256619
|
+
if (this.mouseParams.startY >= this.mouseParams.bottomMargin) {
|
|
256620
|
+
// 鼠标在容器底部附近 触发向下滚动事件
|
|
256621
|
+
this.$refs.hoEditorListNode.scrollTop += deltaY;
|
|
256622
|
+
if (this.scrollDirection !== 1) {
|
|
256623
|
+
this.scrollDirection = 1;
|
|
256624
|
+
this.startScrollTimer();
|
|
256625
|
+
}
|
|
256626
|
+
} else {
|
|
256627
|
+
// 鼠标在向下滚动时变更方向 停止页面滚动事件 并重置滚动方向
|
|
256628
|
+
this.scrollDirection = 0;
|
|
256629
|
+
clearInterval(this.scrollTimer);
|
|
256630
|
+
}
|
|
256631
|
+
}
|
|
256632
|
+
} else if (deltaY < 0) {
|
|
256633
|
+
if (scrollY > 0) {
|
|
256634
|
+
if (this.mouseParams.startY <= this.mouseParams.topMargin) {
|
|
256635
|
+
// 鼠标在容器顶部附近 触发向上滚动事件
|
|
256636
|
+
this.$refs.hoEditorListNode.scrollTop -= -deltaY;
|
|
256637
|
+
if (this.scrollDirection !== -1) {
|
|
256638
|
+
this.scrollDirection = -1;
|
|
256639
|
+
this.startScrollTimer();
|
|
256640
|
+
}
|
|
256641
|
+
} else {
|
|
256642
|
+
// 鼠标在向上滚动时变更方向 停止页面滚动事件 并重置滚动方向
|
|
256643
|
+
this.scrollDirection = 0;
|
|
256644
|
+
clearInterval(this.scrollTimer);
|
|
256645
|
+
}
|
|
256646
|
+
}
|
|
256647
|
+
}
|
|
256648
|
+
this.mouseParams.startY = e.clientY;
|
|
256649
|
+
}
|
|
256650
|
+
},
|
|
256651
|
+
startScrollTimer: function startScrollTimer() {
|
|
256652
|
+
var _this8 = this;
|
|
256653
|
+
if (this.$refs.hoEditorListNode) {
|
|
256654
|
+
this.scrollTimer = setInterval(function () {
|
|
256655
|
+
var delta = _this8.scrollDirection === 1 ? _this8.mouseParams.distance : -_this8.mouseParams.distance;
|
|
256656
|
+
var scrollY = _this8.$refs.hoEditorListNode.scrollTop;
|
|
256657
|
+
if (_this8.scrollDirection === 1 && scrollY < _this8.mouseParams.scrollHeight - _this8.mouseParams.clientHeight) {
|
|
256658
|
+
_this8.$refs.hoEditorListNode.scrollTop += delta;
|
|
256659
|
+
} else if (_this8.scrollDirection === -1 && scrollY > 0) {
|
|
256660
|
+
_this8.$refs.hoEditorListNode.scrollTop -= -delta;
|
|
256661
|
+
} else {
|
|
256662
|
+
clearInterval(_this8.scrollTimer);
|
|
256663
|
+
}
|
|
256664
|
+
}, this.mouseParams.speed);
|
|
256665
|
+
}
|
|
256539
256666
|
}
|
|
256540
256667
|
}
|
|
256541
256668
|
});
|
|
256542
256669
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=script&lang=js&
|
|
256543
256670
|
/* harmony default export */ var components_HoDocsvue_type_script_lang_js_ = (HoDocsvue_type_script_lang_js_);
|
|
256544
|
-
;// 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/HoDocs.vue?vue&type=style&index=0&id=
|
|
256671
|
+
;// 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/HoDocs.vue?vue&type=style&index=0&id=65441e6c&prod&lang=scss&media=print&
|
|
256545
256672
|
// extracted by mini-css-extract-plugin
|
|
256546
256673
|
|
|
256547
|
-
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=
|
|
256674
|
+
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=65441e6c&prod&lang=scss&media=print&
|
|
256548
256675
|
|
|
256549
256676
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue
|
|
256550
256677
|
|
|
@@ -256567,8 +256694,8 @@ var HoDocs_component = (0,componentNormalizer/* default */.Z)(
|
|
|
256567
256694
|
)
|
|
256568
256695
|
|
|
256569
256696
|
/* harmony default export */ var HoDocs = (HoDocs_component.exports);
|
|
256570
|
-
;// 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=
|
|
256571
|
-
var
|
|
256697
|
+
;// 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=13ecac50&
|
|
256698
|
+
var ToolBarvue_type_template_id_13ecac50_render = function render() {
|
|
256572
256699
|
var _vm = this,
|
|
256573
256700
|
_c = _vm._self._c;
|
|
256574
256701
|
return _c('div', {
|
|
@@ -256646,7 +256773,7 @@ var ToolBarvue_type_template_id_1aaee2f0_render = function render() {
|
|
|
256646
256773
|
on: {
|
|
256647
256774
|
"click": _vm.printSelected
|
|
256648
256775
|
}
|
|
256649
|
-
}, [_vm._v("
|
|
256776
|
+
}, [_vm._v("选中区打印")]) : _vm._e()]), _c('div', {
|
|
256650
256777
|
staticClass: "ho-emr-tool-item",
|
|
256651
256778
|
staticStyle: {
|
|
256652
256779
|
"border-right": "1px solid #e6e6e6"
|
|
@@ -256656,7 +256783,7 @@ var ToolBarvue_type_template_id_1aaee2f0_render = function render() {
|
|
|
256656
256783
|
on: {
|
|
256657
256784
|
"click": _vm.printCaret
|
|
256658
256785
|
}
|
|
256659
|
-
}, [_vm._v("
|
|
256786
|
+
}, [_vm._v("光标处打印")]) : _vm._e()]), _c('div', {
|
|
256660
256787
|
staticClass: "ho-emr-tool-item",
|
|
256661
256788
|
staticStyle: {
|
|
256662
256789
|
"border": "0"
|
|
@@ -256801,7 +256928,7 @@ var ToolBarvue_type_template_id_1aaee2f0_render = function render() {
|
|
|
256801
256928
|
}, [_vm._v(_vm._s(item.title))]);
|
|
256802
256929
|
}), 1)], 1) : _vm._e()], 1);
|
|
256803
256930
|
};
|
|
256804
|
-
var
|
|
256931
|
+
var ToolBarvue_type_template_id_13ecac50_staticRenderFns = [];
|
|
256805
256932
|
|
|
256806
256933
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
|
|
256807
256934
|
var es_array_map = __webpack_require__(21249);
|
|
@@ -257747,7 +257874,7 @@ var HoColorPickers = __webpack_require__(84214);
|
|
|
257747
257874
|
"props": (0,objectSpread2/* default */.Z)({}, {
|
|
257748
257875
|
title: '字体',
|
|
257749
257876
|
poperStyle: {
|
|
257750
|
-
width: '
|
|
257877
|
+
width: '165px',
|
|
257751
257878
|
textAlign: 'left'
|
|
257752
257879
|
}
|
|
257753
257880
|
})
|
|
@@ -262016,10 +262143,10 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
|
262016
262143
|
});
|
|
262017
262144
|
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=script&lang=js&
|
|
262018
262145
|
/* harmony default export */ var toolbar_ToolBarvue_type_script_lang_js_ = (ToolBarvue_type_script_lang_js_);
|
|
262019
|
-
;// 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=
|
|
262146
|
+
;// 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=13ecac50&prod&lang=scss&
|
|
262020
262147
|
// extracted by mini-css-extract-plugin
|
|
262021
262148
|
|
|
262022
|
-
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=
|
|
262149
|
+
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue?vue&type=style&index=0&id=13ecac50&prod&lang=scss&
|
|
262023
262150
|
|
|
262024
262151
|
;// CONCATENATED MODULE: ./src/components/toolbar/ToolBar.vue
|
|
262025
262152
|
|
|
@@ -262032,8 +262159,8 @@ var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
|
262032
262159
|
|
|
262033
262160
|
var ToolBar_component = (0,componentNormalizer/* default */.Z)(
|
|
262034
262161
|
toolbar_ToolBarvue_type_script_lang_js_,
|
|
262035
|
-
|
|
262036
|
-
|
|
262162
|
+
ToolBarvue_type_template_id_13ecac50_render,
|
|
262163
|
+
ToolBarvue_type_template_id_13ecac50_staticRenderFns,
|
|
262037
262164
|
false,
|
|
262038
262165
|
null,
|
|
262039
262166
|
null,
|