# Interface: IObjectFitConstructor

# Table of contents

# Constructors

# Methods

# Constructors

# constructor

new IObjectFitConstructor(object?, options?)

# Parameters

Name Type
object? null | Object
options? Partial<IGetFittedObjectPayload & { mode: IFitMode } & Pick<IObjectFit, "useObjectTransform" | "enableRecomputeOnScaled" | "enableRecomputeOnScaling">>

# Defined in

src/types/IObjectFitConstructor.ts:7 (opens new window)

# Methods

# fromObject

fromObject(objectSerialized, callback?): void

# Parameters

Name Type
objectSerialized IObjectFitSerialized
callback? (object: IObjectFit) => void

# Returns

void

# Defined in

src/types/IObjectFitConstructor.ts:12 (opens new window)