customized-fabric 1.5.8 → 1.5.9
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/utils/index.d.ts +1 -1
- package/lib/utils/index.js +7 -0
- package/package.json +1 -1
package/lib/utils/index.d.ts
CHANGED
@@ -20,5 +20,5 @@ export declare const getObject: (object: any, options?: {
|
|
20
20
|
}) => Clipart | ImagePlaceholder | CurvedText | TextInput | undefined;
|
21
21
|
export declare const asyncGetObject: (object: any, options?: {
|
22
22
|
isOriginal?: boolean;
|
23
|
-
}) => Promise<fabric.Image | Clipart | ImagePlaceholder | TextInput | undefined>;
|
23
|
+
}) => Promise<fabric.Image | Clipart | ImagePlaceholder | CurvedText | TextInput | undefined>;
|
24
24
|
export default fabric;
|
package/lib/utils/index.js
CHANGED
@@ -196,6 +196,13 @@ const asyncGetObject = async (object, options) => {
|
|
196
196
|
}
|
197
197
|
return imagePlaceHolderObject;
|
198
198
|
}
|
199
|
+
case constants_1.OBJECT_TYPES.curvedText: {
|
200
|
+
const curvedTextObject = new CurvedTextObject_1.default({
|
201
|
+
...object,
|
202
|
+
isOriginal: options?.isOriginal,
|
203
|
+
});
|
204
|
+
return curvedTextObject;
|
205
|
+
}
|
199
206
|
default:
|
200
207
|
return;
|
201
208
|
}
|