Skip to content

Interface: ILeafLayout

Implemented by

Table of contents

Properties

Methods

Properties

leaf

leaf: ILeaf

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:9


proxyZoom

proxyZoom: boolean

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:11


contentBounds

contentBounds: IBoundsData

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:15


boxBounds

boxBounds: IBoundsData

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:16


strokeBounds

strokeBounds: IBoundsData

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:17


renderBounds

renderBounds: IBoundsData

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:18


localContentBounds

localContentBounds: IBoundsData

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:22


localStrokeBounds

localStrokeBounds: IBoundsData

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:24


localRenderBounds

localRenderBounds: IBoundsData

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:25


worldContentBounds

worldContentBounds: IBoundsData

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:29


worldBoxBounds

worldBoxBounds: IBoundsData

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:30


worldStrokeBounds

worldStrokeBounds: IBoundsData

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:31


resized

resized: boolean

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:35


waitAutoLayout

waitAutoLayout: boolean

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:36


matrixChanged

matrixChanged: boolean

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:39


scaleChanged

scaleChanged: boolean

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:40


rotationChanged

rotationChanged: boolean

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:41


boundsChanged

boundsChanged: boolean

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:44


boxChanged

boxChanged: boolean

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:46


strokeChanged

strokeChanged: boolean

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:47


renderChanged

renderChanged: boolean

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:48


localBoxChanged

localBoxChanged: boolean

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:50


surfaceChanged

surfaceChanged: boolean

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:53


opacityChanged

opacityChanged: boolean

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:54


hitCanvasChanged

hitCanvasChanged: boolean

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:56


childrenSortChanged

Optional childrenSortChanged: boolean

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:58


stateStyleChanged

Optional stateStyleChanged: boolean

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:59


affectScaleOrRotation

affectScaleOrRotation: boolean

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:62


affectRotation

affectRotation: boolean

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:63


affectChildrenSort

Optional affectChildrenSort: boolean

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:64


strokeSpread

strokeSpread: number

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:66


strokeBoxSpread

strokeBoxSpread: number

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:67


renderSpread

renderSpread: number

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:68


renderShapeSpread

renderShapeSpread: number

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:69


a

a: number

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:72


b

b: number

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:73


c

c: number

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:74


d

d: number

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:75


e

e: number

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:76


f

f: number

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:77


x

x: number

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:78


y

y: number

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:79


width

width: number

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:80


height

height: number

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:81

Methods

createLocal

createLocal(): void

Returns

void

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:83


update

update(): void

Returns

void

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:85


getTransform

getTransform(relative?): IMatrixData

Parameters

NameType
relative?ILeaf | ILocationType

Returns

IMatrixData

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:87


getBounds

getBounds(type?, relative?): IBoundsData

Parameters

NameType
type?IBoundsType
relative?ILeaf | ILocationType

Returns

IBoundsData

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:88


getLayoutBounds

getLayoutBounds(type?, relative?, unscale?): ILayoutBoundsData

Parameters

NameType
type?IBoundsType
relative?ILeaf | ILocationType
unscale?boolean

Returns

ILayoutBoundsData

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:89


getLayoutPoints

getLayoutPoints(type?, relative?): IPointData[]

Parameters

NameType
type?IBoundsType
relative?ILeaf | ILocationType

Returns

IPointData[]

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:90


shrinkContent

shrinkContent(): void

Returns

void

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:93


spreadStroke

spreadStroke(): void

Returns

void

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:94


spreadRender

spreadRender(): void

Returns

void

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:95


shrinkContentCancel

shrinkContentCancel(): void

Returns

void

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:96


spreadStrokeCancel

spreadStrokeCancel(): void

Returns

void

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:97


spreadRenderCancel

spreadRenderCancel(): void

Returns

void

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:98


boxChange

boxChange(): void

Returns

void

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:101


localBoxChange

localBoxChange(): void

Returns

void

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:102


strokeChange

strokeChange(): void

Returns

void

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:103


renderChange

renderChange(): void

Returns

void

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:104


scaleChange

scaleChange(): void

Returns

void

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:107


rotationChange

rotationChange(): void

Returns

void

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:108


matrixChange

matrixChange(): void

Returns

void

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:109


surfaceChange

surfaceChange(): void

Returns

void

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:112


opacityChange

opacityChange(): void

Returns

void

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:113


childrenSortChange

childrenSortChange(): void

Returns

void

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:115


destroy

destroy(): void

Returns

void

Defined in

leafer/packages/interface/src/layout/ILeafLayout.ts:117

Released under the MIT License.