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
|
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 {
|