customized-fabric 1.4.3 → 1.4.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -50,7 +50,10 @@ const ImagePlaceholderClass = fabric_1.fabric.util.createClass(fabric_1.fabric.G
50
50
  }
51
51
  }
52
52
  if (options?.imageType) {
53
- this.setImageType(options?.imageType, { color: options?.imageColor });
53
+ this.setImageType(options?.imageType);
54
+ }
55
+ if (options?.imageColor) {
56
+ this.setImageColor(options?.imageColor);
54
57
  }
55
58
  },
56
59
  loadImage: async function (image) {
@@ -148,6 +151,8 @@ const ImagePlaceholderClass = fabric_1.fabric.util.createClass(fabric_1.fabric.G
148
151
  skewX,
149
152
  skewY,
150
153
  opacity,
154
+ type: this.imageType ?? "",
155
+ color: this.imageColor ?? "",
151
156
  };
152
157
  }
153
158
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "customized-fabric",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
4
4
  "description": "Customized fabric",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",