hoeditor-web 2.0.110 → 2.0.111

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.
@@ -26081,19 +26081,18 @@ var DocController = /*#__PURE__*/function () {
26081
26081
  if (node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R && parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && parentNode.inputFieldType == 1 && isResetFieldText) {
26082
26082
  var firstPath = parentNode.StartMarkNode.getNodePath();
26083
26083
  var lastPath = parentNode.EndMarkNode.getNodePath();
26084
-
26085
- if (curRange.isEmpty) {
26086
- var ePath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
26087
- curRange.startPath = firstPath;
26088
- curRange.endPath = ePath;
26089
- }
26090
-
26091
- if (!curRange.isEmpty && curRange.endPath == lastPath) {
26092
- var _ePath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
26093
-
26094
- curRange.startPath = firstPath;
26095
- curRange.endPath = _ePath;
26096
- }
26084
+ var ePath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
26085
+ curRange.startPath = firstPath;
26086
+ curRange.endPath = ePath; // if (curRange.isEmpty) {
26087
+ // const ePath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf() as BaseNode);
26088
+ // curRange.startPath=firstPath;
26089
+ // curRange.endPath = ePath;
26090
+ // }
26091
+ // if (!curRange.isEmpty && curRange.endPath == lastPath) {
26092
+ // const ePath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf() as BaseNode);
26093
+ // curRange.startPath = firstPath;
26094
+ // curRange.endPath = ePath;
26095
+ // }
26097
26096
  }
26098
26097
 
26099
26098
  var isError;
@@ -36170,77 +36169,77 @@ var CombineStyle = /*#__PURE__*/function () {
36170
36169
 
36171
36170
  if (fontSize === 5.5) {
36172
36171
  //七号
36173
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(1.94, false);
36172
+ fontHeight = hoeditfactory.unitConvert.mmConversionPx(1.94, false);
36174
36173
  }
36175
36174
 
36176
36175
  if (fontSize === 6.5) {
36177
36176
  //小六
36178
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(2.29, false);
36177
+ fontHeight = hoeditfactory.unitConvert.mmConversionPx(2.29, false);
36179
36178
  }
36180
36179
 
36181
36180
  if (fontSize === 7.5) {
36182
36181
  //六号
36183
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(2.65, false);
36182
+ fontHeight = hoeditfactory.unitConvert.mmConversionPx(2.65, false);
36184
36183
  }
36185
36184
 
36186
36185
  if (fontSize === 9) {
36187
36186
  //小五
36188
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(3.18, false);
36187
+ fontHeight = hoeditfactory.unitConvert.mmConversionPx(3.18, false);
36189
36188
  }
36190
36189
 
36191
36190
  if (fontSize === 10.5 || fontSize === 10) {
36192
36191
  //五号
36193
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(3.70, false);
36192
+ fontHeight = hoeditfactory.unitConvert.mmConversionPx(3.70, false);
36194
36193
  }
36195
36194
 
36196
36195
  if (fontSize === 12) {
36197
36196
  //小四
36198
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(4.23, false);
36197
+ fontHeight = hoeditfactory.unitConvert.mmConversionPx(4.23, false);
36199
36198
  }
36200
36199
 
36201
36200
  if (fontSize === 14) {
36202
36201
  //四号
36203
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(4.94, false);
36202
+ fontHeight = hoeditfactory.unitConvert.mmConversionPx(4.94, false);
36204
36203
  }
36205
36204
 
36206
36205
  if (fontSize === 15) {
36207
36206
  //小三
36208
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(5.29, false);
36207
+ fontHeight = hoeditfactory.unitConvert.mmConversionPx(5.29, false);
36209
36208
  }
36210
36209
 
36211
36210
  if (fontSize === 16) {
36212
36211
  //三号
36213
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(5.64, false);
36212
+ fontHeight = hoeditfactory.unitConvert.mmConversionPx(5.64, false);
36214
36213
  }
36215
36214
 
36216
36215
  if (fontSize === 18) {
36217
36216
  //小二
36218
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(6.35, false);
36217
+ fontHeight = hoeditfactory.unitConvert.mmConversionPx(6.35, false);
36219
36218
  }
36220
36219
 
36221
36220
  if (fontSize === 22) {
36222
36221
  //二号
36223
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(7.76, false);
36222
+ fontHeight = hoeditfactory.unitConvert.mmConversionPx(7.76, false);
36224
36223
  }
36225
36224
 
36226
36225
  if (fontSize === 24) {
36227
36226
  //小一
36228
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(8.47, false);
36227
+ fontHeight = hoeditfactory.unitConvert.mmConversionPx(8.47, false);
36229
36228
  }
36230
36229
 
36231
36230
  if (fontSize === 26) {
36232
36231
  //一号
36233
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(9.17, false);
36232
+ fontHeight = hoeditfactory.unitConvert.mmConversionPx(9.17, false);
36234
36233
  }
36235
36234
 
36236
36235
  if (fontSize === 36) {
36237
36236
  //小初
36238
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(12.7, false);
36237
+ fontHeight = hoeditfactory.unitConvert.mmConversionPx(12.7, false);
36239
36238
  }
36240
36239
 
36241
36240
  if (fontSize === 42) {
36242
36241
  //初号
36243
- fontHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_13__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).unitConvert.mmConversionPx(14.82, false);
36242
+ fontHeight = hoeditfactory.unitConvert.mmConversionPx(14.82, false);
36244
36243
  }
36245
36244
 
36246
36245
  return fontHeight;
@@ -40723,8 +40722,8 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
40723
40722
  _this._keyValue = ""; //选中项的key值
40724
40723
 
40725
40724
  _this._downListContent = []; //列表内容
40725
+ //private _bandDataSource = new BandDataSource();
40726
40726
 
40727
- _this._bandDataSource = new BandDataSource();
40728
40727
  _this._charSpace = 0;
40729
40728
  _this._value = ""; //选中项的value值
40730
40729
 
@@ -40839,16 +40838,18 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
40839
40838
 
40840
40839
  var assignvalue = function assignvalue(target, source) {
40841
40840
  Object.keys(source).forEach(function (value) {
40842
- if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(target[value]) == "object") {
40843
- if (Object.prototype.toString.call(source[value]) === "[object Object]") {
40844
- assignvalue(target[value], source[value]);
40845
- } else {
40846
- if (source[value] !== "" && source[value] !== null) {
40847
- assignvalue(target[value], eval("(" + source[value] + ")"));
40841
+ if (value != "dataSource") {
40842
+ if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(target[value]) == "object") {
40843
+ if (Object.prototype.toString.call(source[value]) === "[object Object]") {
40844
+ assignvalue(target[value], source[value]);
40845
+ } else {
40846
+ if (source[value] !== "" && source[value] !== null) {
40847
+ assignvalue(target[value], eval("(" + source[value] + ")"));
40848
+ }
40848
40849
  }
40850
+ } else {
40851
+ target[value] = source[value];
40849
40852
  }
40850
- } else {
40851
- target[value] = source[value];
40852
40853
  }
40853
40854
  });
40854
40855
  };
@@ -40938,17 +40939,15 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
40938
40939
  // this._valuesObject = value;
40939
40940
  // }
40940
40941
  // }
40942
+ // get bandDataSource(): BandDataSource {
40943
+ // return this._bandDataSource;
40944
+ // }
40945
+ // set bandDataSource(value: BandDataSource) {
40946
+ // if (this._bandDataSource !== value) {
40947
+ // this._bandDataSource = value;
40948
+ // }
40949
+ // }
40941
40950
 
40942
- }, {
40943
- key: "bandDataSource",
40944
- get: function get() {
40945
- return this._bandDataSource;
40946
- },
40947
- set: function set(value) {
40948
- if (this._bandDataSource !== value) {
40949
- this._bandDataSource = value;
40950
- }
40951
- }
40952
40951
  }, {
40953
40952
  key: "charSpace",
40954
40953
  get: function get() {
@@ -40972,8 +40971,8 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
40972
40971
  ret.TipText = this.tipText !== undefined ? this.tipText : ret.TipText;
40973
40972
  ret.IsAllowDelete = this.isAllowDelete !== undefined ? this.isAllowDelete : ret.IsAllowDelete;
40974
40973
  ret.AllowMultiSelect = this.allowMultiSelect !== undefined ? this.allowMultiSelect : ret.AllowMultiSelect;
40975
- ret.IsReadOnly = this.isReadOnly !== undefined ? this.isReadOnly : ret.IsReadOnly;
40976
- ret.BandDataSource = this.bandDataSource;
40974
+ ret.IsReadOnly = this.isReadOnly !== undefined ? this.isReadOnly : ret.IsReadOnly; //ret.BandDataSource = this.bandDataSource;
40975
+
40977
40976
  return ret;
40978
40977
  }
40979
40978
  }, {
@@ -41172,7 +41171,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
41172
41171
  allowMultiSelect: this.allowMultiSelect,
41173
41172
  readType: this.readType,
41174
41173
  downLists: downLists,
41175
- dataSource: this.bandDataSource,
41174
+ //dataSource: this.bandDataSource,
41176
41175
  remark: this.remark,
41177
41176
  customProperty: this.customProperty
41178
41177
  };
@@ -41208,7 +41207,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
41208
41207
  allowMultiSelect: this.allowMultiSelect,
41209
41208
  readType: this.readType,
41210
41209
  downLists: downLists,
41211
- dataSource: this.bandDataSource,
41210
+ //dataSource: this.bandDataSource,
41212
41211
  remark: this.remark,
41213
41212
  customProperty: this.customProperty
41214
41213
  };
@@ -46313,7 +46312,7 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
46313
46312
 
46314
46313
  var assignvalue = function assignvalue(target, source) {
46315
46314
  Object.keys(source).forEach(function (value) {
46316
- if (value !== "appendText") {
46315
+ if (value !== "appendText" && value != "bandDataSource") {
46317
46316
  if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(target[value]) == "object") {
46318
46317
  if (Object.prototype.toString.call(source[value]) === "[object Object]") {
46319
46318
  assignvalue(target[value], source[value]);
@@ -52161,7 +52160,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
52161
52160
  /*
52162
52161
  * @Author: your name
52163
52162
  * @Date: 2020-11-03 15:17:54
52164
- * @LastEditTime: 2022-10-14 17:24:29
52163
+ * @LastEditTime: 2022-10-18 09:36:56
52165
52164
  * @LastEditors: liyanan 2441631434@qq.com
52166
52165
  * @Description: In User Settings Edit
52167
52166
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
@@ -52752,25 +52751,30 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
52752
52751
  key: "setValuesObject",
52753
52752
  value: function setValuesObject(valuesObject) {
52754
52753
  // const valuesObj = eval("(" + valuesObject + ")");
52754
+ console.time("".concat(valuesObject.name, "--setValuesObject"));
52755
52755
  var valuesObj = valuesObject;
52756
52756
 
52757
52757
  var assignvalue = function assignvalue(target, source) {
52758
52758
  Object.keys(source).forEach(function (value) {
52759
- if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(target[value]) == 'object') {
52760
- if (Object.prototype.toString.call(source[value]) === '[object Object]') {
52761
- assignvalue(target[value], source[value]);
52762
- } else {
52763
- if (source[value] !== '' && source[value] !== null) {
52764
- assignvalue(target[value], eval('(' + source[value] + ')'));
52759
+ if (value != "childNodes" && value != "bandDataSource") {
52760
+ if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(target[value]) == 'object') {
52761
+ if (Object.prototype.toString.call(source[value]) === '[object Object]') {
52762
+ assignvalue(target[value], source[value]);
52763
+ } else {
52764
+ if (source[value] !== '' && source[value] !== null) {
52765
+ // assignvalue(target[value], eval('(' + + ')'));
52766
+ assignvalue(target[value], JSON.parse(source[value]));
52767
+ }
52765
52768
  }
52769
+ } else {
52770
+ target[value] = source[value];
52766
52771
  }
52767
- } else {
52768
- target[value] = source[value];
52769
52772
  }
52770
52773
  });
52771
52774
  };
52772
52775
 
52773
52776
  assignvalue(this, valuesObj);
52777
+ console.timeEnd("".concat(valuesObject.name, "--setValuesObject"));
52774
52778
  }
52775
52779
  }, {
52776
52780
  key: "mouseEvent",
@@ -52873,11 +52877,9 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
52873
52877
  },
52874
52878
  set: function set(value) {
52875
52879
  if (this._labelText !== value) {
52876
- this._labelText = value;
52877
-
52878
- if (this.text === '') {
52879
- this.node2DrawNodeRange(0, 0);
52880
- }
52880
+ this._labelText = value; // if (this.text === '') {
52881
+ // this.node2DrawNodeRange(0, 0);
52882
+ // }
52881
52883
  }
52882
52884
  }
52883
52885
  }, {
@@ -54389,8 +54391,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54389
54391
  }
54390
54392
  }
54391
54393
  } else {
54392
- var textNode1 = new _TextNode__WEBPACK_IMPORTED_MODULE_55__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_40__/* .NodeType.ntText */ .Jq.ntText, textArr[0], styleIndex);
54393
- temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode1);
54394
+ if (textArr[0] != "") {
54395
+ var textNode1 = new _TextNode__WEBPACK_IMPORTED_MODULE_55__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_40__/* .NodeType.ntText */ .Jq.ntText, textArr[0], styleIndex);
54396
+ temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode1);
54397
+ }
54394
54398
  }
54395
54399
 
54396
54400
  if (textArr.length > 1) {
@@ -119026,7 +119030,7 @@ this.clear();}var p=Graphics.prototype;var G=Graphics;// shortcut
119026
119030
  * @static
119027
119031
  * @protected
119028
119032
  * @type {CanvasRenderingContext2D}
119029
- **/var canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");if(canvas.getContext){Graphics._ctx=canvas.getContext("2d");canvas.width=canvas.height=1;}// getter / setters:
119033
+ **/var canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");if(canvas.getContext){Graphics._ctx=canvas.getContext("2d",{willReadFrequently:true});canvas.width=canvas.height=1;}// getter / setters:
119030
119034
  /**
119031
119035
  * Use the {{#crossLink "Graphics/instructions:property"}}{{/crossLink}} property instead.
119032
119036
  * @method _getInstructions
@@ -120606,7 +120610,7 @@ this.createjs=this.createjs||{};(function(){"use strict";// constructor:
120606
120610
  * @static
120607
120611
  * @protected
120608
120612
  **/var canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");// prevent errors on load in browsers without canvas.
120609
- if(canvas.getContext){DisplayObject._hitTestCanvas=canvas;DisplayObject._hitTestContext=canvas.getContext("2d");canvas.width=canvas.height=1;}// events:
120613
+ if(canvas.getContext){DisplayObject._hitTestCanvas=canvas;DisplayObject._hitTestContext=canvas.getContext("2d",{willReadFrequently:true});canvas.width=canvas.height=1;}// events:
120610
120614
  /**
120611
120615
  * Dispatched when the user presses their left mouse button over the display object. See the
120612
120616
  * {{#crossLink "MouseEvent"}}{{/crossLink}} class for a listing of event properties.
@@ -121653,7 +121657,7 @@ this.enableDOMEvents(true);}var p=createjs.extend(Stage,createjs.Container);// e
121653
121657
  *
121654
121658
  * @method update
121655
121659
  * @param {Object} [props] Props object to pass to `tick()`. Should usually be a {{#crossLink "Ticker"}}{{/crossLink}} event object, or similar object with a delta property.
121656
- **/p.update=function(props){if(!this.canvas){return;}if(this.tickOnUpdate){this.tick(props);}if(this.dispatchEvent("drawstart",false,true)===false){return;}createjs.DisplayObject._snapToPixelEnabled=this.snapToPixelEnabled;var r=this.drawRect,ctx=this.canvas.getContext("2d");ctx.setTransform(1,0,0,1,0,0);if(this.autoClear){if(r){ctx.clearRect(r.x,r.y,r.width,r.height);}else{ctx.clearRect(0,0,this.canvas.width+1,this.canvas.height+1);}}ctx.save();if(this.drawRect){ctx.beginPath();ctx.rect(r.x,r.y,r.width,r.height);ctx.clip();}this.updateContext(ctx);this.draw(ctx,false);ctx.restore();this.dispatchEvent("drawend");};/**
121660
+ **/p.update=function(props){if(!this.canvas){return;}if(this.tickOnUpdate){this.tick(props);}if(this.dispatchEvent("drawstart",false,true)===false){return;}createjs.DisplayObject._snapToPixelEnabled=this.snapToPixelEnabled;var r=this.drawRect,ctx=this.canvas.getContext("2d",{willReadFrequently:true});ctx.setTransform(1,0,0,1,0,0);if(this.autoClear){if(r){ctx.clearRect(r.x,r.y,r.width,r.height);}else{ctx.clearRect(0,0,this.canvas.width+1,this.canvas.height+1);}}ctx.save();if(this.drawRect){ctx.beginPath();ctx.rect(r.x,r.y,r.width,r.height);ctx.clip();}this.updateContext(ctx);this.draw(ctx,false);ctx.restore();this.dispatchEvent("drawend");};/**
121657
121661
  * Propagates a tick event through the display list. This is automatically called by {{#crossLink "Stage/update"}}{{/crossLink}}
121658
121662
  * unless {{#crossLink "Stage/tickOnUpdate:property"}}{{/crossLink}} is set to false.
121659
121663
  *
@@ -121696,7 +121700,7 @@ this.enableDOMEvents(true);}var p=createjs.extend(Stage,createjs.Container);// e
121696
121700
  **/p.handleEvent=function(evt){if(evt.type=="tick"){this.update(evt);}};/**
121697
121701
  * Clears the target canvas. Useful if {{#crossLink "Stage/autoClear:property"}}{{/crossLink}} is set to `false`.
121698
121702
  * @method clear
121699
- **/p.clear=function(){if(!this.canvas){return;}var ctx=this.canvas.getContext("2d");ctx.setTransform(1,0,0,1,0,0);ctx.clearRect(0,0,this.canvas.width+1,this.canvas.height+1);};/**
121703
+ **/p.clear=function(){if(!this.canvas){return;}var ctx=this.canvas.getContext("2d",{willReadFrequently:true});ctx.setTransform(1,0,0,1,0,0);ctx.clearRect(0,0,this.canvas.width+1,this.canvas.height+1);};/**
121700
121704
  * Returns a data url that contains a Base64-encoded image of the contents of the stage. The returned data url can
121701
121705
  * be specified as the src value of an image element.
121702
121706
  * @method toDataURL
@@ -122387,7 +122391,7 @@ this._webGLContext.clearColor(this._clearColor.r,this._clearColor.g,this._clearC
122387
122391
  * Docced in superclass
122388
122392
  */p.update=function(props){if(!this.canvas){return;}if(this.tickOnUpdate){this.tick(props);}this.dispatchEvent("drawstart");if(this.autoClear){this.clear();}if(this._webGLContext){// Use WebGL.
122389
122393
  this._batchDraw(this,this._webGLContext);if(this._autoPurge!=-1&&!(this._drawID%(this._autoPurge/2|0))){this.purgeTextures(this._autoPurge);}}else{// Use 2D.
122390
- var ctx=this.canvas.getContext("2d");ctx.save();this.updateContext(ctx);this.draw(ctx,false);ctx.restore();}this.dispatchEvent("drawend");};/**
122394
+ var ctx=this.canvas.getContext("2d",{willReadFrequently:true});ctx.save();this.updateContext(ctx);this.draw(ctx,false);ctx.restore();}this.dispatchEvent("drawend");};/**
122391
122395
  * Docced in superclass
122392
122396
  */p.clear=function(){if(!this.canvas){return;}if(StageGL.isWebGLActive(this._webGLContext)){var gl=this._webGLContext;var cc=this._clearColor;var adjust=this._transparent?cc.a:1.0;// Use WebGL settings; adjust for pre multiplied alpha appropriate to scenario
122393
122397
  this._webGLContext.clearColor(cc.r*adjust,cc.g*adjust,cc.b*adjust,adjust);gl.clear(gl.COLOR_BUFFER_BIT);this._webGLContext.clearColor(cc.r,cc.g,cc.b,cc.a);}else{// Use 2D.
@@ -123293,7 +123297,7 @@ this.createjs=this.createjs||{};(function(){"use strict";// constructor:
123293
123297
  * @property _workingContext
123294
123298
  * @type CanvasRenderingContext2D
123295
123299
  * @private
123296
- **/var canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");if(canvas.getContext){Text._workingContext=canvas.getContext("2d");canvas.width=canvas.height=1;}// constants:
123300
+ **/var canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");if(canvas.getContext){Text._workingContext=canvas.getContext("2d",{willReadFrequently:true});canvas.width=canvas.height=1;}// constants:
123297
123301
  /**
123298
123302
  * Lookup table for the ratio to offset bounds x calculations based on the textAlign property.
123299
123303
  * @property H_OFFSETS
@@ -123954,7 +123958,7 @@ this.createjs=this.createjs||{};(function(){"use strict";// constructor:
123954
123958
  * @static
123955
123959
  * @type CanvasRenderingContext2D
123956
123960
  * @protected
123957
- */var canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");if(canvas.getContext){SpriteSheetUtils._workingCanvas=canvas;SpriteSheetUtils._workingContext=canvas.getContext("2d");canvas.width=canvas.height=1;}// public static methods:
123961
+ */var canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");if(canvas.getContext){SpriteSheetUtils._workingCanvas=canvas;SpriteSheetUtils._workingContext=canvas.getContext("2d",{willReadFrequently:true});canvas.width=canvas.height=1;}// public static methods:
123958
123962
  /**
123959
123963
  * Returns a single frame of the specified sprite sheet as a new PNG image. An example of when this may be useful is
123960
123964
  * to use a spritesheet frame as the source for a bitmap fill.
@@ -124203,7 +124207,7 @@ SpriteSheetBuilder.ERR_DIMENSIONS="frame dimensions exceed max spritesheet dimen
124203
124207
  * @method _drawNext
124204
124208
  * @protected
124205
124209
  * @return Boolean Returns false if this is the last draw.
124206
- **/p._drawNext=function(){var frame=this._frames[this._index];var sc=frame.scale*this._scale;var rect=frame.rect;var sourceRect=frame.sourceRect;var canvas=this._data.images[frame.img];var ctx=canvas.getContext("2d");frame.funct&&frame.funct(frame.source,frame.data);ctx.save();ctx.beginPath();ctx.rect(rect.x,rect.y,rect.width,rect.height);ctx.clip();ctx.translate(Math.ceil(rect.x-sourceRect.x*sc),Math.ceil(rect.y-sourceRect.y*sc));ctx.scale(sc,sc);frame.source.draw(ctx);// display object will draw itself.
124210
+ **/p._drawNext=function(){var frame=this._frames[this._index];var sc=frame.scale*this._scale;var rect=frame.rect;var sourceRect=frame.sourceRect;var canvas=this._data.images[frame.img];var ctx=canvas.getContext("2d",{willReadFrequently:true});frame.funct&&frame.funct(frame.source,frame.data);ctx.save();ctx.beginPath();ctx.rect(rect.x,rect.y,rect.width,rect.height);ctx.clip();ctx.translate(Math.ceil(rect.x-sourceRect.x*sc),Math.ceil(rect.y-sourceRect.y*sc));ctx.scale(sc,sc);frame.source.draw(ctx);// display object will draw itself.
124207
124211
  ctx.restore();return++this._index<this._frames.length;};createjs.SpriteSheetBuilder=createjs.promote(SpriteSheetBuilder,"EventDispatcher");})();//##############################################################################
124208
124212
  // DOMElement.js
124209
124213
  //##############################################################################
@@ -124674,7 +124678,7 @@ if(!stageGL.isCacheControlled){stageGL.getTargetRenderTexture(this.target,this._
124674
124678
  * @protected
124675
124679
  **/p._drawToCache=function(compositeOperation){var surface=this.target.cacheCanvas;var target=this.target;var webGL=this._webGLCache;if(webGL){//TODO: auto split blur into an x/y pass
124676
124680
  webGL.cacheDraw(target,target.filters,this);// we may of swapped around which element the surface is, so we re-fetch it
124677
- surface=this.target.cacheCanvas;surface.width=this._drawWidth;surface.height=this._drawHeight;}else{var ctx=surface.getContext("2d");if(!compositeOperation){ctx.clearRect(0,0,this._drawWidth+1,this._drawHeight+1);}ctx.save();ctx.globalCompositeOperation=compositeOperation;ctx.setTransform(this.scale,0,0,this.scale,-this._filterOffX,-this._filterOffY);ctx.translate(-this.x,-this.y);target.draw(ctx,true);ctx.restore();if(target.filters&&target.filters.length){this._applyFilters(ctx);}}surface._invalid=true;};/**
124681
+ surface=this.target.cacheCanvas;surface.width=this._drawWidth;surface.height=this._drawHeight;}else{var ctx=surface.getContext("2d",{willReadFrequently:true});if(!compositeOperation){ctx.clearRect(0,0,this._drawWidth+1,this._drawHeight+1);}ctx.save();ctx.globalCompositeOperation=compositeOperation;ctx.setTransform(this.scale,0,0,this.scale,-this._filterOffX,-this._filterOffY);ctx.translate(-this.x,-this.y);target.draw(ctx,true);ctx.restore();if(target.filters&&target.filters.length){this._applyFilters(ctx);}}surface._invalid=true;};/**
124678
124682
  * Work through every filter and apply its individual visual transformation.
124679
124683
  * @method _applyFilters
124680
124684
  * @protected
@@ -124814,7 +124818,7 @@ this.createjs=this.createjs||{};(function(){"use strict";// constructor:
124814
124818
  var data=imageData.data;var map=this._mapData;for(var i=0,l=data.length;i<l;i+=4){data[i+3]=map[i]||0;}return true;};/**
124815
124819
  * @method _prepAlphaMap
124816
124820
  * @protected
124817
- **/p._prepAlphaMap=function(){if(!this.alphaMap){return false;}if(this.alphaMap==this._alphaMap&&this._mapData){return true;}this._mapData=null;var map=this._alphaMap=this.alphaMap;var canvas=map;var ctx;if(map instanceof HTMLCanvasElement){ctx=canvas.getContext("2d");}else{canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");canvas.width=map.width;canvas.height=map.height;ctx=canvas.getContext("2d");ctx.drawImage(map,0,0);}try{var imgData=ctx.getImageData(0,0,map.width,map.height);}catch(e){//if (!this.suppressCrossDomainErrors) throw new Error("unable to access local image data: " + e);
124821
+ **/p._prepAlphaMap=function(){if(!this.alphaMap){return false;}if(this.alphaMap==this._alphaMap&&this._mapData){return true;}this._mapData=null;var map=this._alphaMap=this.alphaMap;var canvas=map;var ctx;if(map instanceof HTMLCanvasElement){ctx=canvas.getContext("2d",{willReadFrequently:true});}else{canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");canvas.width=map.width;canvas.height=map.height;ctx=canvas.getContext("2d",{willReadFrequently:true});ctx.drawImage(map,0,0);}try{var imgData=ctx.getImageData(0,0,map.width,map.height);}catch(e){//if (!this.suppressCrossDomainErrors) throw new Error("unable to access local image data: " + e);
124818
124822
  return false;}this._mapData=imgData.data;return true;};createjs.AlphaMapFilter=createjs.promote(AlphaMapFilter,"Filter");})();//##############################################################################
124819
124823
  // AlphaMaskFilter.js
124820
124824
  //##############################################################################
@@ -214894,7 +214898,7 @@ var SignNode = __webpack_require__(34450);
214894
214898
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
214895
214899
  var ParagraphNode = __webpack_require__(14208);
214896
214900
  ;// CONCATENATED MODULE: ./src/components/version.ts
214897
- /* harmony default export */ var version = ('2.0.110');
214901
+ /* harmony default export */ var version = ('2.0.111');
214898
214902
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
214899
214903
  var PoperTipText = __webpack_require__(44523);
214900
214904
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -220903,53 +220907,51 @@ var StructureConvert = /*#__PURE__*/function () {
220903
220907
  var formularNodes = hoEditorFactory.drawTree.formularNodes;
220904
220908
  var tableArr = [];
220905
220909
  formularNodes.forEach(function (value, key) {
220906
- if ( //value.formularType === FormularType.ftSum
220907
- //|| value.formularType === FormularType.ftFormular
220908
- value.formularType === TableFormula/* FormularType.ftBMI */.a.ftBMI || value.formularType === TableFormula/* FormularType.ftLaborProcess */.a.ftLaborProcess || value.formularType === TableFormula/* FormularType.ftExpectedBirthDate */.a.ftExpectedBirthDate || value.formularType === TableFormula/* FormularType.ftPregnantWeeks */.a.ftPregnantWeeks || value.formularType === TableFormula/* FormularType.ftScoreMapping */.a.ftScoreMapping) {
220910
+ if (value.formularType === TableFormula/* FormularType.ftSum */.a.ftSum || value.formularType === TableFormula/* FormularType.ftFormular */.a.ftFormular || value.formularType === TableFormula/* FormularType.ftBMI */.a.ftBMI || value.formularType === TableFormula/* FormularType.ftLaborProcess */.a.ftLaborProcess || value.formularType === TableFormula/* FormularType.ftExpectedBirthDate */.a.ftExpectedBirthDate || value.formularType === TableFormula/* FormularType.ftPregnantWeeks */.a.ftPregnantWeeks || value.formularType === TableFormula/* FormularType.ftScoreMapping */.a.ftScoreMapping) {
220909
220911
  value.updateResult();
220910
220912
  value.getParentCell().drawCell.needUpdate = true; // const prevNode = value.previousLeaf();
220911
220913
  // if (!prevNode) {
220912
220914
  // throw new Error('错误的绘制位置');
220913
220915
  // }
220914
- // const startPath = hoEditorFactory.docTree.getNodeLastPath(prevNode);
220915
- // const changeEvent = new NodeChangeEvent(this._hoEditorFactoryID,
220916
- // DocAction.daModifyStyle, startPath, startPath)
220917
- // changeEvent.oldEndPath = startPath;
220918
- // changeEvent.oldDrawLines = new SelectRange(this._hoEditorFactoryID).getRangeDrawLines(startPath, startPath, false)
220919
- // changeEvent.repaintImmediate=false;
220920
- // hoEditorFactory.docTree.change(changeEvent);
220921
220916
 
220922
220917
  var table = value.getParentCell().table;
220923
220918
 
220924
220919
  if (!tableArr.includes(table)) {
220925
220920
  tableArr.push(table);
220926
- }
220921
+ } // const startPath = hoEditorFactory.docTree.getNodeLastPath(prevNode);
220922
+ // const changeEvent = new NodeChangeEvent(this._hoEditorFactoryID,
220923
+ // DocAction.daModifyStyle, startPath, startPath)
220924
+ // changeEvent.oldEndPath = startPath;
220925
+ // changeEvent.oldDrawLines = new SelectRange(this._hoEditorFactoryID).getRangeDrawLines(startPath, startPath, false)
220926
+ // hangeEvent.repaintImmediate=false;
220927
+ //hoEditorFactory.docTree.change(changeEvent);
220928
+
220927
220929
  }
220928
220930
  });
220929
220931
 
220930
220932
  for (var t = 0; t < tableArr.length; t++) {
220931
- //const table=tableArr[t];
220932
- tableArr[t].update(); // const dpos = hoEditorFactory.drawTree.getDlineDrawRootLists(
220933
- // table.drawTable
220934
- // );
220935
- // const mainArea = hoEditorFactory.drawPageTree.getMainRootArea(
220936
- // table.drawTable.drawPageTables[0]
220937
- // );
220938
- // if (mainArea) {
220939
- // let drawTop = table.drawTable.drawPageTables[0].y;
220940
- // if (mainArea.contains(table.drawTable.drawPageTables[0]) && table.drawTable.drawPageTables[0] instanceof DrawPageTable
220941
- // && (table.drawTable.drawPageTables[0] as DrawPageTable).table.drawTable.drawPageTables.indexOf(table.drawTable.drawPageTables[0] as DrawPageTable) > 0
220942
- // ) {
220943
- // drawTop = 0
220944
- // }
220945
- // hoEditorFactory.drawPageTree.update(
220946
- // mainArea,
220947
- // dpos[0].drawRoots,
220948
- // drawTop,
220949
- // dpos[0].index,
220950
- // dpos[0].index
220933
+ // const table=tableArr[t];
220934
+ tableArr[t].update(); // const dpos = hoEditorFactory.drawTree.getDlineDrawRootLists(
220935
+ // table.drawTable
220951
220936
  // );
220952
- // }
220937
+ // const mainArea = hoEditorFactory.drawPageTree.getMainRootArea(
220938
+ // table.drawTable.drawPageTables[0]
220939
+ // );
220940
+ // if (mainArea) {
220941
+ // let drawTop = table.drawTable.drawPageTables[0].y;
220942
+ // if (mainArea.contains(table.drawTable.drawPageTables[0]) && table.drawTable.drawPageTables[0] instanceof DrawPageTable
220943
+ // && (table.drawTable.drawPageTables[0] as DrawPageTable).table.drawTable.drawPageTables.indexOf(table.drawTable.drawPageTables[0] as DrawPageTable) > 0
220944
+ // ) {
220945
+ // drawTop = 0
220946
+ // }
220947
+ // hoEditorFactory.drawPageTree.update(
220948
+ // mainArea,
220949
+ // dpos[0].drawRoots,
220950
+ // drawTop,
220951
+ // dpos[0].index,
220952
+ // dpos[0].index
220953
+ // );
220954
+ // }
220953
220955
  } //模板加载完成后 开始加载数据集
220954
220956
  // if (test) {
220955
220957
  // const data =hoEditorFactory.testDataSet.getTestJsonData();