customized-fabric 1.7.5 → 1.7.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -33,7 +33,6 @@ const ImagePlaceholderClass = fabric_1.fabric.util.createClass(fabric_1.fabric.G
|
|
33
33
|
imageType: "Full color",
|
34
34
|
objectCaching: false,
|
35
35
|
objectFit: "cover",
|
36
|
-
clipPath: this.rectObject,
|
37
36
|
});
|
38
37
|
if (options?.isOriginal) {
|
39
38
|
this.rectObject?.set({ strokeWidth: 0 });
|
@@ -52,7 +51,7 @@ const ImagePlaceholderClass = fabric_1.fabric.util.createClass(fabric_1.fabric.G
|
|
52
51
|
}
|
53
52
|
}
|
54
53
|
if (options?.imageSettings) {
|
55
|
-
const { type, color, removeBackground, faceCutout, advancedFilter, objectFit, } = options?.imageSettings;
|
54
|
+
const { type, color, removeBackground, faceCutout, advancedFilter, objectFit = "cover", } = options?.imageSettings;
|
56
55
|
if (type) {
|
57
56
|
this.setImageType(type);
|
58
57
|
}
|