Class: LeafLayout â
Implements â
Table of contents â
Constructors â
Properties â
- leaf
- proxyZoom
- boxBounds
- _contentBounds
- _strokeBounds
- _renderBounds
- _localContentBounds
- _localStrokeBounds
- _localRenderBounds
- _worldContentBounds
- _worldBoxBounds
- _worldStrokeBounds
- resized
- waitAutoLayout
- matrixChanged
- scaleChanged
- rotationChanged
- boundsChanged
- boxChanged
- strokeChanged
- renderChanged
- localBoxChanged
- surfaceChanged
- opacityChanged
- hitCanvasChanged
- childrenSortChanged
- stateStyleChanged
- affectScaleOrRotation
- affectRotation
- affectChildrenSort
- strokeSpread
- strokeBoxSpread
- renderSpread
- renderShapeSpread
Accessors â
- contentBounds
- strokeBounds
- renderBounds
- localContentBounds
- localStrokeBounds
- localRenderBounds
- worldContentBounds
- worldBoxBounds
- worldStrokeBounds
- a
- b
- c
- d
- e
- f
- x
- y
- width
- height
Methods â
- createLocal
- update
- getTransform
- getBounds
- getInnerBounds
- getLocalBounds
- getWorldBounds
- getLayoutBounds
- getLayoutPoints
- shrinkContent
- spreadStroke
- spreadRender
- shrinkContentCancel
- spreadStrokeCancel
- spreadRenderCancel
- boxChange
- localBoxChange
- strokeChange
- renderChange
- scaleChange
- rotationChange
- _scaleOrRotationChange
- matrixChange
- surfaceChange
- opacityChange
- childrenSortChange
- destroy
Constructors â
constructor â
⢠new LeafLayout(leaf
): LeafLayout
Parameters â
Name | Type |
---|---|
leaf | ILeaf |
Returns â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:103
Properties â
leaf â
⢠leaf: ILeaf
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:14
proxyZoom â
⢠proxyZoom: boolean
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:16
boxBounds â
⢠boxBounds: IBoundsData
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:22
_contentBounds â
⢠_contentBounds: IBoundsData
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:26
_strokeBounds â
⢠_strokeBounds: IBoundsData
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:27
_renderBounds â
⢠_renderBounds: IBoundsData
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:28
_localContentBounds â
⢠Protected
Optional
_localContentBounds: IBoundsData
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:37
_localStrokeBounds â
⢠Protected
Optional
_localStrokeBounds: IBoundsData
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:38
_localRenderBounds â
⢠Protected
Optional
_localRenderBounds: IBoundsData
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:39
_worldContentBounds â
⢠Protected
_worldContentBounds: IBoundsData
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:48
_worldBoxBounds â
⢠Protected
_worldBoxBounds: IBoundsData
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:49
_worldStrokeBounds â
⢠Protected
_worldStrokeBounds: IBoundsData
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:50
resized â
⢠resized: boolean
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:54
waitAutoLayout â
⢠waitAutoLayout: boolean
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:55
matrixChanged â
⢠matrixChanged: boolean
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:58
scaleChanged â
⢠scaleChanged: boolean
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:59
rotationChanged â
⢠rotationChanged: boolean
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:60
boundsChanged â
⢠boundsChanged: boolean
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:63
boxChanged â
⢠boxChanged: boolean
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:65
strokeChanged â
⢠strokeChanged: boolean
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:66
renderChanged â
⢠renderChanged: boolean
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:67
localBoxChanged â
⢠localBoxChanged: boolean
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:69
surfaceChanged â
⢠surfaceChanged: boolean
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:72
opacityChanged â
⢠opacityChanged: boolean
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:73
hitCanvasChanged â
⢠hitCanvasChanged: boolean
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:75
childrenSortChanged â
⢠Optional
childrenSortChanged: boolean
Implementation of â
ILeafLayout.childrenSortChanged
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:77
stateStyleChanged â
⢠Optional
stateStyleChanged: boolean
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:78
affectScaleOrRotation â
⢠affectScaleOrRotation: boolean
Implementation of â
ILeafLayout.affectScaleOrRotation
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:81
affectRotation â
⢠affectRotation: boolean
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:82
affectChildrenSort â
⢠Optional
affectChildrenSort: boolean
Implementation of â
ILeafLayout.affectChildrenSort
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:83
strokeSpread â
⢠strokeSpread: number
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:85
strokeBoxSpread â
⢠strokeBoxSpread: number
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:86
renderSpread â
⢠renderSpread: number
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:87
renderShapeSpread â
⢠renderShapeSpread: number
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:88
Accessors â
contentBounds â
⢠get
contentBounds(): IBoundsData
Returns â
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:20
⢠set
contentBounds(bounds
): void
Parameters â
Name | Type |
---|---|
bounds | IBoundsData |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:21
strokeBounds â
⢠get
strokeBounds(): IBoundsData
Returns â
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:23
renderBounds â
⢠get
renderBounds(): IBoundsData
Returns â
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:24
localContentBounds â
⢠get
localContentBounds(): IBoundsData
Returns â
Implementation of â
ILeafLayout.localContentBounds
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:32
localStrokeBounds â
⢠get
localStrokeBounds(): IBoundsData
Returns â
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:34
localRenderBounds â
⢠get
localRenderBounds(): IBoundsData
Returns â
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:35
worldContentBounds â
⢠get
worldContentBounds(): IBoundsData
Returns â
Implementation of â
ILeafLayout.worldContentBounds
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:43
worldBoxBounds â
⢠get
worldBoxBounds(): IBoundsData
Returns â
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:44
worldStrokeBounds â
⢠get
worldStrokeBounds(): IBoundsData
Returns â
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:45
a â
⢠get
a(): number
Returns â
number
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:91
b â
⢠get
b(): number
Returns â
number
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:92
c â
⢠get
c(): number
Returns â
number
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:93
d â
⢠get
d(): number
Returns â
number
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:94
e â
⢠get
e(): number
Returns â
number
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:95
f â
⢠get
f(): number
Returns â
number
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:96
x â
⢠get
x(): number
Returns â
number
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:97
y â
⢠get
y(): number
Returns â
number
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:98
width â
⢠get
width(): number
Returns â
number
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:99
height â
⢠get
height(): number
Returns â
number
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:100
Methods â
createLocal â
⸠createLocal(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:111
update â
⸠update(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:117
getTransform â
⸠getTransform(relative?
): IMatrixData
Parameters â
Name | Type | Default value |
---|---|---|
relative | ILeaf | ILocationType | 'world' |
Returns â
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:129
getBounds â
⸠getBounds(type?
, relative?
): IBoundsData
Parameters â
Name | Type | Default value |
---|---|---|
type? | IBoundsType | undefined |
relative | ILeaf | ILocationType | 'world' |
Returns â
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:146
getInnerBounds â
⸠getInnerBounds(type?
): IBoundsData
Parameters â
Name | Type | Default value |
---|---|---|
type | IBoundsType | 'box' |
Returns â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:162
getLocalBounds â
⸠getLocalBounds(type?
): IBoundsData
Parameters â
Name | Type | Default value |
---|---|---|
type | IBoundsType | 'box' |
Returns â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:175
getWorldBounds â
⸠getWorldBounds(type?
): IBoundsData
Parameters â
Name | Type | Default value |
---|---|---|
type | IBoundsType | 'box' |
Returns â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:188
getLayoutBounds â
⸠getLayoutBounds(type?
, relative?
, unscale?
): ILayoutBoundsData
Parameters â
Name | Type | Default value |
---|---|---|
type? | IBoundsType | undefined |
relative | ILeaf | ILocationType | 'world' |
unscale? | boolean | undefined |
Returns â
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:201
getLayoutPoints â
⸠getLayoutPoints(type?
, relative?
): IPointData
[]
Parameters â
Name | Type | Default value |
---|---|---|
type? | IBoundsType | undefined |
relative | ILeaf | ILocationType | 'world' |
Returns â
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:245
shrinkContent â
⸠shrinkContent(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:269
spreadStroke â
⸠spreadStroke(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:274
spreadRender â
⸠spreadRender(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:280
shrinkContentCancel â
⸠shrinkContentCancel(): void
Returns â
void
Implementation of â
ILeafLayout.shrinkContentCancel
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:286
spreadStrokeCancel â
⸠spreadStrokeCancel(): void
Returns â
void
Implementation of â
ILeafLayout.spreadStrokeCancel
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:290
spreadRenderCancel â
⸠spreadRenderCancel(): void
Returns â
void
Implementation of â
ILeafLayout.spreadRenderCancel
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:296
boxChange â
⸠boxChange(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:304
localBoxChange â
⸠localBoxChange(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:310
strokeChange â
⸠strokeChange(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:315
renderChange â
⸠renderChange(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:322
scaleChange â
⸠scaleChange(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:331
rotationChange â
⸠rotationChange(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:336
_scaleOrRotationChange â
⸠_scaleOrRotationChange(): void
Returns â
void
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:342
matrixChange â
⸠matrixChange(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:348
surfaceChange â
⸠surfaceChange(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:356
opacityChange â
⸠opacityChange(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:360
childrenSortChange â
⸠childrenSortChange(): void
Returns â
void
Implementation of â
ILeafLayout.childrenSortChange
Defined in â
leafer/packages/display-module/layout/src/LeafLayout.ts:365
destroy â
⸠destroy(): void
Returns â
void