hoeditor-web 3.1.15 → 3.1.17
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 +18406 -2
- package/lib/hoeditor.umd.js +105 -33
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -59541,7 +59541,7 @@ var BandDataSource = /*#__PURE__*/function () {
|
|
|
59541
59541
|
return BandDataSource;
|
|
59542
59542
|
}();
|
|
59543
59543
|
var RadioAndCheckBoxInstance = /*#__PURE__*/function () {
|
|
59544
|
-
//关联元素
|
|
59544
|
+
//关联元素
|
|
59545
59545
|
function RadioAndCheckBoxInstance() {
|
|
59546
59546
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(this, RadioAndCheckBoxInstance);
|
|
59547
59547
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "id", void 0);
|
|
@@ -59577,6 +59577,8 @@ var RadioAndCheckBoxInstance = /*#__PURE__*/function () {
|
|
|
59577
59577
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "groupHasOptions", false);
|
|
59578
59578
|
//同组保存时必须有选项不能全部为空
|
|
59579
59579
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "associatedElement", "");
|
|
59580
|
+
//关联元素必填标识
|
|
59581
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(this, "associatedId", "");
|
|
59580
59582
|
RadioAndCheckBoxInstance.makeDefaultValue(this);
|
|
59581
59583
|
}
|
|
59582
59584
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(RadioAndCheckBoxInstance, [{
|
|
@@ -59781,6 +59783,16 @@ var RadioAndCheckBoxInstance = /*#__PURE__*/function () {
|
|
|
59781
59783
|
this.associatedElement = value;
|
|
59782
59784
|
}
|
|
59783
59785
|
}
|
|
59786
|
+
}, {
|
|
59787
|
+
key: "AssociatedId",
|
|
59788
|
+
get: function get() {
|
|
59789
|
+
return this.associatedId;
|
|
59790
|
+
},
|
|
59791
|
+
set: function set(value) {
|
|
59792
|
+
if (this.associatedId !== value) {
|
|
59793
|
+
this.associatedId = value;
|
|
59794
|
+
}
|
|
59795
|
+
}
|
|
59784
59796
|
// get BandDataSource(): BandDataSource {
|
|
59785
59797
|
// return this.bandDataSource;
|
|
59786
59798
|
// }
|
|
@@ -59824,6 +59836,7 @@ var RadioAndCheckBoxInstance = /*#__PURE__*/function () {
|
|
|
59824
59836
|
ret.isTransToText = false;
|
|
59825
59837
|
ret.groupHasOptions = false;
|
|
59826
59838
|
ret.associatedElement = "";
|
|
59839
|
+
ret.associatedId = "";
|
|
59827
59840
|
return ret;
|
|
59828
59841
|
}
|
|
59829
59842
|
}]);
|
|
@@ -60142,6 +60155,7 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
60142
60155
|
ret.IsTransToText = this.isTransToText != undefined ? this.isTransToText : ret.IsTransToText;
|
|
60143
60156
|
ret.GroupHasOptions = this.groupHasOptions != undefined ? this.groupHasOptions : ret.GroupHasOptions;
|
|
60144
60157
|
ret.AssociatedElement = this.associatedElement != undefined ? this.associatedElement : ret.AssociatedElement;
|
|
60158
|
+
ret.AssociatedId = this.associatedId != undefined ? this.associatedId : ret.AssociatedId;
|
|
60145
60159
|
return ret;
|
|
60146
60160
|
}
|
|
60147
60161
|
/**
|
|
@@ -60270,6 +60284,7 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
60270
60284
|
readType: this.readType,
|
|
60271
60285
|
//bandDataSource: this.bandDataSource,
|
|
60272
60286
|
associatedElement: this.associatedElement,
|
|
60287
|
+
associatedId: this.associatedId,
|
|
60273
60288
|
remark: this.remark
|
|
60274
60289
|
};
|
|
60275
60290
|
}
|
|
@@ -60337,6 +60352,9 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
60337
60352
|
if (this.associatedElement) {
|
|
60338
60353
|
retObj.associatedElement = this.associatedElement;
|
|
60339
60354
|
}
|
|
60355
|
+
if (this.associatedId) {
|
|
60356
|
+
retObj.associatedId = this.associatedId;
|
|
60357
|
+
}
|
|
60340
60358
|
if (this.remark) {
|
|
60341
60359
|
retObj.remark = this.remark;
|
|
60342
60360
|
}
|
|
@@ -61018,11 +61036,12 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
61018
61036
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(SignNode, _BaseNode);
|
|
61019
61037
|
var _super = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(SignNode);
|
|
61020
61038
|
//其它属性{"isDisplayTitle":true,"title":"职称","isDisplayTime":true,"time":"签名日期","timePosition":"1"}
|
|
61021
|
-
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) {
|
|
61039
|
+
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, dataId) {
|
|
61022
61040
|
var _this;
|
|
61023
61041
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, SignNode);
|
|
61024
61042
|
_this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, nodeType);
|
|
61025
|
-
|
|
61043
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_dataId", "");
|
|
61044
|
+
//dataId
|
|
61026
61045
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_name", "");
|
|
61027
61046
|
//签名名称
|
|
61028
61047
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_signType", 0);
|
|
@@ -61082,6 +61101,11 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
61082
61101
|
// if(attribute == 1) { // 患者签名修改 type == 3
|
|
61083
61102
|
// this._type = 3;
|
|
61084
61103
|
// }
|
|
61104
|
+
if (dataId) {
|
|
61105
|
+
_this.dataId = dataId;
|
|
61106
|
+
} else {
|
|
61107
|
+
_this.dataId = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID("Sign");
|
|
61108
|
+
}
|
|
61085
61109
|
if (fingerPrintSrc) {
|
|
61086
61110
|
_this._fingerPrintSrc = fingerPrintSrc;
|
|
61087
61111
|
}
|
|
@@ -61144,6 +61168,16 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
61144
61168
|
// }
|
|
61145
61169
|
// }
|
|
61146
61170
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(SignNode, [{
|
|
61171
|
+
key: "dataId",
|
|
61172
|
+
get: function get() {
|
|
61173
|
+
return this._dataId;
|
|
61174
|
+
},
|
|
61175
|
+
set: function set(value) {
|
|
61176
|
+
if (this._dataId !== value) {
|
|
61177
|
+
this._dataId = value;
|
|
61178
|
+
}
|
|
61179
|
+
}
|
|
61180
|
+
}, {
|
|
61147
61181
|
key: "name",
|
|
61148
61182
|
get: function get() {
|
|
61149
61183
|
return this._name;
|
|
@@ -61470,7 +61504,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
61470
61504
|
nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_18__/* .NodeType */ .Jq[this.nodeType],
|
|
61471
61505
|
number: clearSign ? 0 : this.number,
|
|
61472
61506
|
type: clearSign ? 0 : this.type,
|
|
61473
|
-
|
|
61507
|
+
dataId: this.dataId,
|
|
61474
61508
|
name: this.name,
|
|
61475
61509
|
signType: this.signType,
|
|
61476
61510
|
signFormat: this.signFormat,
|
|
@@ -61509,7 +61543,11 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
61509
61543
|
}
|
|
61510
61544
|
}], [{
|
|
61511
61545
|
key: "json2Node",
|
|
61512
|
-
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isClearSign) {
|
|
61546
|
+
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isClearSign, isPaste) {
|
|
61547
|
+
if (isPaste) {
|
|
61548
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID);
|
|
61549
|
+
json.dataId = hoEditorFactory.gernerateCode.generateID("Sign");
|
|
61550
|
+
}
|
|
61513
61551
|
//const width = Number(json.width);
|
|
61514
61552
|
var number = isClearSign ? 0 : Number(json.number);
|
|
61515
61553
|
var type = isClearSign ? 0 : Number(json.type);
|
|
@@ -61521,7 +61559,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
61521
61559
|
if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(json.fingerPrintSrc) == 'object') {
|
|
61522
61560
|
json.fingerPrintSrc = '';
|
|
61523
61561
|
}
|
|
61524
|
-
var signNode = new SignNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_18__/* .NodeType */ .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);
|
|
61562
|
+
var signNode = new SignNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_18__/* .NodeType */ .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, json.dataId);
|
|
61525
61563
|
// if (json.id != "") {
|
|
61526
61564
|
// signNode.id = json.id;
|
|
61527
61565
|
// }
|
|
@@ -62313,7 +62351,7 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
62313
62351
|
}
|
|
62314
62352
|
|
|
62315
62353
|
var result = (0,_editor_utils_ExpressionCalculator__WEBPACK_IMPORTED_MODULE_30__/* .expressionCalculator */ .C)(strFormula);
|
|
62316
|
-
strRet = result
|
|
62354
|
+
strRet = result == "NaN" ? " " : result;
|
|
62317
62355
|
}
|
|
62318
62356
|
return strRet;
|
|
62319
62357
|
}
|
|
@@ -85665,22 +85703,26 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
85665
85703
|
}
|
|
85666
85704
|
}
|
|
85667
85705
|
//单复选带出关联元素
|
|
85668
|
-
var deleteAssociatedEle = function deleteAssociatedEle(node) {
|
|
85669
|
-
var
|
|
85670
|
-
changeEvent
|
|
85706
|
+
var deleteAssociatedEle = function deleteAssociatedEle(node, tPath) {
|
|
85707
|
+
var oldEndPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
85708
|
+
var changeEvent = new NodeChangeEvent/* NodeChangeEvent */.G(_this2._hoEditorFactoryID, DocTree/* DocAction */.gk.daDelete, tPath, "");
|
|
85709
|
+
changeEvent.oldEndPath = oldEndPath;
|
|
85710
|
+
changeEvent.oldDrawTreeLines = new SelectRange/* SelectRange */.E(_this2._hoEditorFactoryID).getRangeDrawTreeLines(nodePathCur, oldEndPath);
|
|
85671
85711
|
hoEditorFactory.docTree.deleteNode(node, "update");
|
|
85672
|
-
changeEvent.oldDrawTreeLines = new SelectRange/* SelectRange */.E(_this2._hoEditorFactoryID).getRangeDrawTreeLines(nodePathCur, changeEvent.oldEndPath);
|
|
85673
85712
|
changeEvent.afterChangePath = nodePathCur;
|
|
85674
85713
|
hoEditorFactory.docTree.change(changeEvent);
|
|
85675
85714
|
};
|
|
85676
85715
|
if (e.node.associatedId) {
|
|
85716
|
+
var newpath = nodePathCur;
|
|
85677
85717
|
if (this._onInsertNodeByID) {
|
|
85678
85718
|
if (e.node.isSelected) {
|
|
85679
|
-
this._onInsertNodeByID(
|
|
85719
|
+
this._onInsertNodeByID(newpath, e.node.associatedId).then(function (res) {
|
|
85720
|
+
newpath = res;
|
|
85721
|
+
});
|
|
85680
85722
|
} else {
|
|
85681
|
-
var _node2 = hoEditorFactory.vueController.
|
|
85723
|
+
var _node2 = hoEditorFactory.vueController.getNodeByID("main", e.node.associatedId);
|
|
85682
85724
|
if (_node2) {
|
|
85683
|
-
deleteAssociatedEle(_node2);
|
|
85725
|
+
deleteAssociatedEle(_node2, newpath);
|
|
85684
85726
|
}
|
|
85685
85727
|
}
|
|
85686
85728
|
}
|
|
@@ -85690,11 +85732,12 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
85690
85732
|
_step3;
|
|
85691
85733
|
try {
|
|
85692
85734
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
85693
|
-
var
|
|
85694
|
-
if (
|
|
85695
|
-
var _node3 = hoEditorFactory.vueController.
|
|
85735
|
+
var val = _step3.value;
|
|
85736
|
+
if (val.associatedId && val.controlStyle === "RadioBox" && val.groupName === groupName && groupName !== "") {
|
|
85737
|
+
var _node3 = hoEditorFactory.vueController.getNodeByID("main", val.associatedId);
|
|
85696
85738
|
if (_node3) {
|
|
85697
|
-
|
|
85739
|
+
var bpath = val.getNodePath();
|
|
85740
|
+
deleteAssociatedEle(_node3, bpath);
|
|
85698
85741
|
break;
|
|
85699
85742
|
}
|
|
85700
85743
|
}
|
|
@@ -93516,6 +93559,15 @@ var DrawSimpleText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
93516
93559
|
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
93517
93560
|
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(40561);
|
|
93518
93561
|
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
93562
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(41539);
|
|
93563
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
93564
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(39714);
|
|
93565
|
+
/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
93566
|
+
/* harmony import */ var core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(56977);
|
|
93567
|
+
/* harmony import */ var core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
93568
|
+
|
|
93569
|
+
|
|
93570
|
+
|
|
93519
93571
|
|
|
93520
93572
|
|
|
93521
93573
|
|
|
@@ -93788,7 +93840,17 @@ function expressionCalculator(expr) {
|
|
|
93788
93840
|
break;
|
|
93789
93841
|
}
|
|
93790
93842
|
}
|
|
93791
|
-
|
|
93843
|
+
if (stNum[0].toString() === "NaN") {
|
|
93844
|
+
return "NaN";
|
|
93845
|
+
} else {
|
|
93846
|
+
var valStr = stNum[0].toFixed(2);
|
|
93847
|
+
var valArr = valStr.split(".");
|
|
93848
|
+
if (valArr[1] == "00") {
|
|
93849
|
+
return valArr[0];
|
|
93850
|
+
} else {
|
|
93851
|
+
return valStr;
|
|
93852
|
+
}
|
|
93853
|
+
}
|
|
93792
93854
|
// console.log(stNum[0]);
|
|
93793
93855
|
}
|
|
93794
93856
|
|
|
@@ -106572,7 +106634,7 @@ if(frame.interlaced===true){scanstride+=width*4*7;// Pass 1.
|
|
|
106572
106634
|
for(var i=0,il=index_stream.length;i<il;++i){var index=index_stream[i];if(xleft===0){// Beginning of new scan line
|
|
106573
106635
|
op+=scanstride;xleft=framewidth;if(op>=opend){// Catch the wrap to switch passes when interlacing.
|
|
106574
106636
|
scanstride=framestride*4+width*4*(interlaceskip-1);// interlaceskip / 2 * 4 is interlaceskip << 1.
|
|
106575
|
-
op=opbeg+(framewidth+framestride)*(interlaceskip<<1);interlaceskip>>=1;}}if(index===trans){// 将Gif格式图片透明背景强制转换为白色 已测试不影响正常png格式图片
|
|
106637
|
+
op=opbeg+(framewidth+framestride)*(interlaceskip<<1);interlaceskip>>=1;}}if(index===trans){// 自定义修改 将Gif格式图片透明背景强制转换为白色 已测试不影响正常png格式图片
|
|
106576
106638
|
// op += 4;
|
|
106577
106639
|
pixels[op++]=255;pixels[op++]=255;pixels[op++]=255;pixels[op++]=255;}else{var r=buf[palette_offset+index*3];var g=buf[palette_offset+index*3+1];var b=buf[palette_offset+index*3+2];pixels[op++]=r;pixels[op++]=g;pixels[op++]=b;pixels[op++]=255;}--xleft;}};}function GifReaderLZWOutputIndexStream(code_stream,p,output,output_length){var min_code_size=code_stream[p++];var clear_code=1<<min_code_size;var eoi_code=clear_code+1;var next_code=eoi_code+1;var cur_code_size=min_code_size+1;// Number of bits per code.
|
|
106578
106640
|
// NOTE: This shares the same name as the encoder, but has a different
|
|
@@ -217832,7 +217894,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
217832
217894
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
217833
217895
|
var ParagraphNode = __webpack_require__(67945);
|
|
217834
217896
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
217835
|
-
/* harmony default export */ var version = ('3.1.
|
|
217897
|
+
/* harmony default export */ var version = ('3.1.17');
|
|
217836
217898
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
217837
217899
|
var PoperTipText = __webpack_require__(50987);
|
|
217838
217900
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -223443,7 +223505,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
223443
223505
|
} else if (temp.nodeType == BaseNode/* NodeType */.Jq.ntLabel) {
|
|
223444
223506
|
return LabelNode/* LabelNode */.P.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
223445
223507
|
} else if (temp.nodeType == BaseNode/* NodeType */.Jq.ntSign) {
|
|
223446
|
-
return SignNode/* SignNode */.N.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isClearSign);
|
|
223508
|
+
return SignNode/* SignNode */.N.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isClearSign, isPaste);
|
|
223447
223509
|
} else if (temp.nodeType == BaseNode/* NodeType */.Jq.ntGestation) {
|
|
223448
223510
|
return GestationNode/* GestationNode */.G.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
223449
223511
|
} else if (temp.nodeType == BaseNode/* NodeType */.Jq.ntRareChar) {
|
|
@@ -227586,7 +227648,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
227586
227648
|
var iteratesNodes = function iteratesNodes(nodes) {
|
|
227587
227649
|
for (var i = 0; i < nodes.length; i++) {
|
|
227588
227650
|
var anode = nodes[i];
|
|
227589
|
-
if (anode instanceof ControlNode/* ControlNode */.w || anode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
227651
|
+
if (anode instanceof ControlNode/* ControlNode */.w || anode instanceof TextInputFieldNode/* TextInputFieldNode */.re || anode instanceof SignNode/* SignNode */.N) {
|
|
227590
227652
|
if (anode.dataId === dataid) {
|
|
227591
227653
|
node = anode;
|
|
227592
227654
|
break;
|
|
@@ -230192,10 +230254,16 @@ var VueController = /*#__PURE__*/function () {
|
|
|
230192
230254
|
document.body.removeChild(document.querySelector('#hoDownLoadImageBtn'));
|
|
230193
230255
|
}, 300);
|
|
230194
230256
|
}
|
|
230257
|
+
//type=1:根据dataid定位元素 type=其它:根据id定位元素
|
|
230195
230258
|
}, {
|
|
230196
230259
|
key: "moveCaretToElement",
|
|
230197
|
-
value: function moveCaretToElement(scope, id) {
|
|
230198
|
-
var node
|
|
230260
|
+
value: function moveCaretToElement(scope, id, type) {
|
|
230261
|
+
var node;
|
|
230262
|
+
if (type == 1) {
|
|
230263
|
+
node = this.getNodeByDataID(scope, id);
|
|
230264
|
+
} else {
|
|
230265
|
+
node = this.getNodeByID(scope, id);
|
|
230266
|
+
}
|
|
230199
230267
|
if (node) {
|
|
230200
230268
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
230201
230269
|
var oldRange = hoEditorFactory.docTree.curDomRange;
|
|
@@ -230212,10 +230280,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
230212
230280
|
}
|
|
230213
230281
|
}
|
|
230214
230282
|
hoEditorFactory.drawTree.moveCaretToPath(topath);
|
|
230215
|
-
|
|
230216
|
-
|
|
230217
|
-
|
|
230218
|
-
|
|
230283
|
+
if (type !== 1) {
|
|
230284
|
+
var newRange = new DomRange/* DomRange */.a(this.hoEditorFactoryID, spath, epath);
|
|
230285
|
+
hoEditorFactory.docTree.curDomRange = newRange;
|
|
230286
|
+
var selectChangeEvent = new SelectionChangeEvent/* SelectionChangeEvent */.r(oldRange, newRange);
|
|
230287
|
+
hoEditorFactory.docTree.selectChange(selectChangeEvent);
|
|
230288
|
+
}
|
|
230219
230289
|
}
|
|
230220
230290
|
}
|
|
230221
230291
|
/**
|
|
@@ -230923,6 +230993,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
230923
230993
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
230924
230994
|
var commentsMap = hoEditorFactory.drawTree.commentsMap;
|
|
230925
230995
|
var arr = [];
|
|
230996
|
+
var transformScale = DrawConfig/* DrawConfig */.f.instance().transformScale;
|
|
230926
230997
|
commentsMap.forEach(function (comment) {
|
|
230927
230998
|
var pos = comment.getPosition();
|
|
230928
230999
|
if (arr[pos[0]] == undefined) {
|
|
@@ -230938,8 +231009,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
230938
231009
|
date: comment.date,
|
|
230939
231010
|
customProperty: comment.customProperty,
|
|
230940
231011
|
pageIndex: pos[0],
|
|
230941
|
-
endNodeX: Math.floor(pos[1]),
|
|
230942
|
-
endNodeY: Math.floor(pos[2]),
|
|
231012
|
+
endNodeX: Math.floor(pos[1] / transformScale),
|
|
231013
|
+
endNodeY: Math.floor(pos[2] / transformScale),
|
|
230943
231014
|
reviewJson: hoEditorFactory.reviewJson
|
|
230944
231015
|
};
|
|
230945
231016
|
arr[pos[0]].push(obj);
|
|
@@ -232833,8 +232904,8 @@ var BaseController = /*#__PURE__*/function () {
|
|
|
232833
232904
|
/*
|
|
232834
232905
|
* @Author: your name
|
|
232835
232906
|
* @Date: 2021-07-31 09:22:55
|
|
232836
|
-
* @LastEditTime:
|
|
232837
|
-
* @LastEditors:
|
|
232907
|
+
* @LastEditTime: 2023-10-11 16:29:33
|
|
232908
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
232838
232909
|
* @Description: In User Settings Edit
|
|
232839
232910
|
* @FilePath: \hoeditor-web\src\editor\externalCall\DomController.ts
|
|
232840
232911
|
*/
|
|
@@ -233197,6 +233268,7 @@ var DomController = /*#__PURE__*/function () {
|
|
|
233197
233268
|
value: function registOnNodeInsertByID(func) {
|
|
233198
233269
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
233199
233270
|
hoEditorFactory.docController.onInsertNodeByID = func;
|
|
233271
|
+
hoEditorFactory.drawTree.onInsertNodeByID = func;
|
|
233200
233272
|
}
|
|
233201
233273
|
}, {
|
|
233202
233274
|
key: "delCurPage",
|