Class: ItemAspectRatioLockExtension
An extension to be used when working with a aspect ratio locking behavior
Dependencies
[DesignExtensionSystem, ItemMetadataExtension]
Hierarchy
BaseExtension
↳
ItemAspectRatioLockExtension
Constructors
constructor
• new ItemAspectRatioLockExtension(designState
, designExtensionSystem
)
Parameters
Name | Type |
---|---|
designState | DesignState |
designExtensionSystem | DesignExtensionSystem |
Overrides
BaseExtension.constructor
Defined in
Properties
designExtensionSystem
• Private
designExtensionSystem: DesignExtensionSystem
Defined in
designState
• designState: ItemState
<Item
>
Overrides
BaseExtension.designState
Defined in
inject
▪ Static
inject: string
[]
Overrides
BaseExtension.inject
Defined in
Accessors
canBeAspectRatioLocked
• get
canBeAspectRatioLocked(): boolean
Reflects whether the item can have it's aspect ratio locked
Returns
boolean
Defined in
isAspectRatioLocked
• get
isAspectRatioLocked(): boolean
Reflects whether the item currently has it's aspect ratio locked
Remarks
This property is a computed attribute that is dependent on metadata retrieved from the ItemMetadataExtension
Returns
boolean
Defined in
Methods
supports
▸ Static
supports(state
): boolean
Parameters
Name | Type |
---|---|
state | DesignState |
Returns
boolean
Overrides
BaseExtension.supports