hoeditor-web 3.1.234 → 3.1.235

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.
@@ -108291,7 +108291,7 @@ const textParams = {
108291
108291
  /***/ (function(__unused_webpack_module, __webpack_exports__) {
108292
108292
 
108293
108293
  "use strict";
108294
- /* harmony default export */ __webpack_exports__.A = ('3.1.234');
108294
+ /* harmony default export */ __webpack_exports__.A = ('3.1.235');
108295
108295
 
108296
108296
  /***/ }),
108297
108297
 
@@ -125169,6 +125169,9 @@ class DrawImageNode extends DrawCombineNode/* DrawCombineNode */.A {
125169
125169
  this._bitMap.y = this._imageY;
125170
125170
  this._bitMap.x = 0;
125171
125171
  this._bitMap.name = this.node.id;
125172
+ const hitArea = new createjs.Shape();
125173
+ hitArea.graphics.beginFill('#000').drawRect(0, 0, drawNode.dWidth, drawNode.dHeight);
125174
+ this._bitMap.hitArea = hitArea;
125172
125175
  this._bitMap.setBounds(0, 0, drawNode.dWidth, drawNode.dHeight);
125173
125176
  hoEditorFactory.loadImageCount++;
125174
125177
  this.addChild(this._bitMap);
@@ -147927,6 +147930,10 @@ class DrawSignNode extends _DrawCombineNode__WEBPACK_IMPORTED_MODULE_6__/* .Draw
147927
147930
  image.src = this.imgSrc;
147928
147931
  // image.crossOrigin = "Anonymous";
147929
147932
  const bitmap = new createjs.Bitmap(image);
147933
+ // 后续缩放签名图片前先设置下hitArea避免缩放时候createjs跨域报错
147934
+ const hitArea = new createjs.Shape();
147935
+ hitArea.graphics.beginFill('#000').drawRect(0, 0, drawNode.dWidth, drawNode.dHeight); //这里是图片大小
147936
+ bitmap.hitArea = hitArea;
147930
147937
  bitmap.y = -this.dHeight;
147931
147938
  bitmap.setBounds(0, 0, drawNode.dWidth, drawNode.dHeight);
147932
147939
  if (this.number === 1) {