customized-fabric 1.4.3 → 1.4.5
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.
|
@@ -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 {
|