fabricjs-object-fit / IObjectFitConstructor
Interface: IObjectFitConstructor
Defined in: src/packages/fabricjs-object-fit/src/types/i-object-fit-constructor.ts:6
Constructors
Constructor
new IObjectFitConstructor(
object?,options?):IObjectFit
Defined in: src/packages/fabricjs-object-fit/src/types/i-object-fit-constructor.ts:9
Parameters
object?
FabricObject<Partial<FabricObjectProps>, SerializedObjectProps, ObjectEvents> | null
options?
Partial<IGetFittedObjectPayload & object & Pick<IObjectFit, "useObjectTransform" | "enableRecomputeOnScaled" | "enableRecomputeOnScaling">>
Returns
Properties
type
type:
string
Defined in: src/packages/fabricjs-object-fit/src/types/i-object-fit-constructor.ts:7
Methods
fromObject()
fromObject(
objectSerialized):Promise<IObjectFit>
Defined in: src/packages/fabricjs-object-fit/src/types/i-object-fit-constructor.ts:14
Parameters
objectSerialized
Returns
Promise<IObjectFit>