Skip to content

Class: LeafLayout ​

Implements ​

Table of contents ​

Constructors ​

Properties ​

Accessors ​

Methods ​

Constructors ​

constructor ​

• new LeafLayout(leaf): LeafLayout

Parameters ​

NameType
leafILeaf

Returns ​

LeafLayout

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:105

Properties ​

leaf ​

• leaf: ILeaf

Implementation of ​

ILeafLayout.leaf

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:15


proxyZoom ​

• proxyZoom: boolean

Implementation of ​

ILeafLayout.proxyZoom

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:17


boxBounds ​

• boxBounds: IBoundsData

Implementation of ​

ILeafLayout.boxBounds

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:23


_contentBounds ​

• _contentBounds: IBoundsData

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:28


_strokeBounds ​

• _strokeBounds: IBoundsData

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:29


_renderBounds ​

• _renderBounds: IBoundsData

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:30


_localContentBounds ​

• Protected Optional _localContentBounds: IBoundsData

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:39


_localStrokeBounds ​

• Protected Optional _localStrokeBounds: IBoundsData

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:40


_localRenderBounds ​

• Protected Optional _localRenderBounds: IBoundsData

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:41


_worldContentBounds ​

• Protected _worldContentBounds: IBoundsData

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:50


_worldBoxBounds ​

• Protected _worldBoxBounds: IBoundsData

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:51


_worldStrokeBounds ​

• Protected _worldStrokeBounds: IBoundsData

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:52


resized ​

• resized: "scale" | "local" | "inner"

Implementation of ​

ILeafLayout.resized

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:56


waitAutoLayout ​

• waitAutoLayout: boolean

Implementation of ​

ILeafLayout.waitAutoLayout

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:57


matrixChanged ​

• matrixChanged: boolean

Implementation of ​

ILeafLayout.matrixChanged

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:60


scaleChanged ​

• scaleChanged: boolean

Implementation of ​

ILeafLayout.scaleChanged

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:61


rotationChanged ​

• rotationChanged: boolean

Implementation of ​

ILeafLayout.rotationChanged

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:62


boundsChanged ​

• boundsChanged: boolean

Implementation of ​

ILeafLayout.boundsChanged

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:65


boxChanged ​

• boxChanged: boolean

Implementation of ​

ILeafLayout.boxChanged

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:67


strokeChanged ​

• strokeChanged: boolean

Implementation of ​

ILeafLayout.strokeChanged

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:68


renderChanged ​

• renderChanged: boolean

Implementation of ​

ILeafLayout.renderChanged

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:69


localBoxChanged ​

• localBoxChanged: boolean

Implementation of ​

ILeafLayout.localBoxChanged

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:71


surfaceChanged ​

• surfaceChanged: boolean

Implementation of ​

ILeafLayout.surfaceChanged

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:74


opacityChanged ​

• opacityChanged: boolean

Implementation of ​

ILeafLayout.opacityChanged

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:75


hitCanvasChanged ​

• hitCanvasChanged: boolean

Implementation of ​

ILeafLayout.hitCanvasChanged

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:77


childrenSortChanged ​

• Optional childrenSortChanged: boolean

Implementation of ​

ILeafLayout.childrenSortChanged

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:79


stateStyleChanged ​

• Optional stateStyleChanged: boolean

Implementation of ​

ILeafLayout.stateStyleChanged

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:80


affectScaleOrRotation ​

• affectScaleOrRotation: boolean

Implementation of ​

ILeafLayout.affectScaleOrRotation

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:83


affectRotation ​

• affectRotation: boolean

Implementation of ​

ILeafLayout.affectRotation

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:84


affectChildrenSort ​

• Optional affectChildrenSort: boolean

Implementation of ​

ILeafLayout.affectChildrenSort

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:85


strokeSpread ​

• strokeSpread: number

Implementation of ​

ILeafLayout.strokeSpread

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:87


strokeBoxSpread ​

• strokeBoxSpread: number

Implementation of ​

ILeafLayout.strokeBoxSpread

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:88


renderSpread ​

• renderSpread: number

Implementation of ​

ILeafLayout.renderSpread

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:89


renderShapeSpread ​

• renderShapeSpread: number

Implementation of ​

ILeafLayout.renderShapeSpread

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:90

Accessors ​

contentBounds ​

• get contentBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

ILeafLayout.contentBounds

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:21

• set contentBounds(bounds): void

Parameters ​

NameType
boundsIBoundsData

Returns ​

void

Implementation of ​

ILeafLayout.contentBounds

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:22


strokeBounds ​

• get strokeBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

ILeafLayout.strokeBounds

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:24


renderBounds ​

• get renderBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

ILeafLayout.renderBounds

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:25

• set renderBounds(bounds): void

Parameters ​

NameType
boundsIBoundsData

Returns ​

void

Implementation of ​

ILeafLayout.renderBounds

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:26


localContentBounds ​

• get localContentBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

ILeafLayout.localContentBounds

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:34


localStrokeBounds ​

• get localStrokeBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

ILeafLayout.localStrokeBounds

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:36


localRenderBounds ​

• get localRenderBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

ILeafLayout.localRenderBounds

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:37


worldContentBounds ​

• get worldContentBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

ILeafLayout.worldContentBounds

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:45


worldBoxBounds ​

• get worldBoxBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

ILeafLayout.worldBoxBounds

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:46


worldStrokeBounds ​

• get worldStrokeBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

ILeafLayout.worldStrokeBounds

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:47


a ​

• get a(): number

Returns ​

number

Implementation of ​

ILeafLayout.a

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:93


b ​

• get b(): number

Returns ​

number

Implementation of ​

ILeafLayout.b

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:94


c ​

• get c(): number

Returns ​

number

Implementation of ​

ILeafLayout.c

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:95


d ​

• get d(): number

Returns ​

number

Implementation of ​

ILeafLayout.d

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:96


e ​

• get e(): number

Returns ​

number

Implementation of ​

ILeafLayout.e

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:97


f ​

• get f(): number

Returns ​

number

Implementation of ​

ILeafLayout.f

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:98


x ​

• get x(): number

Returns ​

number

Implementation of ​

ILeafLayout.x

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:99


y ​

• get y(): number

Returns ​

number

Implementation of ​

ILeafLayout.y

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:100


width ​

• get width(): number

Returns ​

number

Implementation of ​

ILeafLayout.width

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:101


height ​

• get height(): number

Returns ​

number

Implementation of ​

ILeafLayout.height

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:102

Methods ​

createLocal ​

â–¸ createLocal(): void

Returns ​

void

Implementation of ​

ILeafLayout.createLocal

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:115


update ​

â–¸ update(): void

Returns ​

void

Implementation of ​

ILeafLayout.update

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:121


getTransform ​

â–¸ getTransform(relative?): IMatrixData

Parameters ​

NameTypeDefault value
relativeILeaf | ILocationType'world'

Returns ​

IMatrixData

Implementation of ​

ILeafLayout.getTransform

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:138


getBounds ​

â–¸ getBounds(type?, relative?): IBoundsData

Parameters ​

NameTypeDefault value
type?IBoundsTypeundefined
relativeILeaf | ILocationType'world'

Returns ​

IBoundsData

Implementation of ​

ILeafLayout.getBounds

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:155


getInnerBounds ​

â–¸ getInnerBounds(type?): IBoundsData

Parameters ​

NameTypeDefault value
typeIBoundsType'box'

Returns ​

IBoundsData

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:171


getLocalBounds ​

â–¸ getLocalBounds(type?): IBoundsData

Parameters ​

NameTypeDefault value
typeIBoundsType'box'

Returns ​

IBoundsData

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:184


getWorldBounds ​

â–¸ getWorldBounds(type?): IBoundsData

Parameters ​

NameTypeDefault value
typeIBoundsType'box'

Returns ​

IBoundsData

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:197


getLayoutBounds ​

â–¸ getLayoutBounds(type?, relative?, unscale?): ILayoutBoundsData

Parameters ​

NameTypeDefault value
type?IBoundsTypeundefined
relativeILeaf | ILocationType'world'
unscale?booleanundefined

Returns ​

ILayoutBoundsData

Implementation of ​

ILeafLayout.getLayoutBounds

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:210


getLayoutPoints ​

â–¸ getLayoutPoints(type?, relative?): IPointData[]

Parameters ​

NameTypeDefault value
type?IBoundsTypeundefined
relativeILeaf | ILocationType'world'

Returns ​

IPointData[]

Implementation of ​

ILeafLayout.getLayoutPoints

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:254


shrinkContent ​

â–¸ shrinkContent(): void

Returns ​

void

Implementation of ​

ILeafLayout.shrinkContent

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:278


spreadStroke ​

â–¸ spreadStroke(): void

Returns ​

void

Implementation of ​

ILeafLayout.spreadStroke

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:283


spreadRender ​

â–¸ spreadRender(): void

Returns ​

void

Implementation of ​

ILeafLayout.spreadRender

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:289


shrinkContentCancel ​

â–¸ shrinkContentCancel(): void

Returns ​

void

Implementation of ​

ILeafLayout.shrinkContentCancel

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:295


spreadStrokeCancel ​

â–¸ spreadStrokeCancel(): void

Returns ​

void

Implementation of ​

ILeafLayout.spreadStrokeCancel

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:299


spreadRenderCancel ​

â–¸ spreadRenderCancel(): void

Returns ​

void

Implementation of ​

ILeafLayout.spreadRenderCancel

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:305


boxChange ​

â–¸ boxChange(): void

Returns ​

void

Implementation of ​

ILeafLayout.boxChange

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:313


localBoxChange ​

â–¸ localBoxChange(): void

Returns ​

void

Implementation of ​

ILeafLayout.localBoxChange

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:319


strokeChange ​

â–¸ strokeChange(): void

Returns ​

void

Implementation of ​

ILeafLayout.strokeChange

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:324


renderChange ​

â–¸ renderChange(): void

Returns ​

void

Implementation of ​

ILeafLayout.renderChange

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:331


scaleChange ​

â–¸ scaleChange(): void

Returns ​

void

Implementation of ​

ILeafLayout.scaleChange

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:340


rotationChange ​

â–¸ rotationChange(): void

Returns ​

void

Implementation of ​

ILeafLayout.rotationChange

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:345


_scaleOrRotationChange ​

â–¸ _scaleOrRotationChange(): void

Returns ​

void

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:351


matrixChange ​

â–¸ matrixChange(): void

Returns ​

void

Implementation of ​

ILeafLayout.matrixChange

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:357


surfaceChange ​

â–¸ surfaceChange(): void

Returns ​

void

Implementation of ​

ILeafLayout.surfaceChange

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:365


opacityChange ​

â–¸ opacityChange(): void

Returns ​

void

Implementation of ​

ILeafLayout.opacityChange

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:369


childrenSortChange ​

â–¸ childrenSortChange(): void

Returns ​

void

Implementation of ​

ILeafLayout.childrenSortChange

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:373


destroy ​

â–¸ destroy(): void

Returns ​

void

Implementation of ​

ILeafLayout.destroy

Defined in ​

src/leafer/packages/display-module/layout/src/LeafLayout.ts:380

Released under the MIT License.