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 ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:105
Properties ​
leaf ​
• leaf: ILeaf
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:15
proxyZoom ​
• proxyZoom: boolean
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:17
boxBounds ​
• boxBounds: IBoundsData
Implementation of ​
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 ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:56
waitAutoLayout ​
• waitAutoLayout: boolean
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:57
matrixChanged ​
• matrixChanged: boolean
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:60
scaleChanged ​
• scaleChanged: boolean
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:61
rotationChanged ​
• rotationChanged: boolean
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:62
boundsChanged ​
• boundsChanged: boolean
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:65
boxChanged ​
• boxChanged: boolean
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:67
strokeChanged ​
• strokeChanged: boolean
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:68
renderChanged ​
• renderChanged: boolean
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:69
localBoxChanged ​
• localBoxChanged: boolean
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:71
surfaceChanged ​
• surfaceChanged: boolean
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:74
opacityChanged ​
• opacityChanged: boolean
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:75
hitCanvasChanged ​
• hitCanvasChanged: boolean
Implementation of ​
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 ​
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 ​
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 ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:87
strokeBoxSpread ​
• strokeBoxSpread: number
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:88
renderSpread ​
• renderSpread: number
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:89
renderShapeSpread ​
• renderShapeSpread: number
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:90
Accessors ​
contentBounds ​
• get contentBounds(): IBoundsData
Returns ​
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:21
• set contentBounds(bounds): void
Parameters ​
| Name | Type |
|---|---|
bounds | IBoundsData |
Returns ​
void
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:22
strokeBounds ​
• get strokeBounds(): IBoundsData
Returns ​
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:24
renderBounds ​
• get renderBounds(): IBoundsData
Returns ​
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:25
• set renderBounds(bounds): void
Parameters ​
| Name | Type |
|---|---|
bounds | IBoundsData |
Returns ​
void
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:26
localContentBounds ​
• get localContentBounds(): IBoundsData
Returns ​
Implementation of ​
ILeafLayout.localContentBounds
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:34
localStrokeBounds ​
• get localStrokeBounds(): IBoundsData
Returns ​
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:36
localRenderBounds ​
• get localRenderBounds(): IBoundsData
Returns ​
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:37
worldContentBounds ​
• get worldContentBounds(): IBoundsData
Returns ​
Implementation of ​
ILeafLayout.worldContentBounds
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:45
worldBoxBounds ​
• get worldBoxBounds(): IBoundsData
Returns ​
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:46
worldStrokeBounds ​
• get worldStrokeBounds(): IBoundsData
Returns ​
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:47
a ​
• get a(): number
Returns ​
number
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:93
b ​
• get b(): number
Returns ​
number
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:94
c ​
• get c(): number
Returns ​
number
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:95
d ​
• get d(): number
Returns ​
number
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:96
e ​
• get e(): number
Returns ​
number
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:97
f ​
• get f(): number
Returns ​
number
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:98
x ​
• get x(): number
Returns ​
number
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:99
y ​
• get y(): number
Returns ​
number
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:100
width ​
• get width(): number
Returns ​
number
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:101
height ​
• get height(): number
Returns ​
number
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:102
Methods ​
createLocal ​
â–¸ createLocal(): void
Returns ​
void
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:115
update ​
â–¸ update(): void
Returns ​
void
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:121
getTransform ​
â–¸ getTransform(relative?): IMatrixData
Parameters ​
| Name | Type | Default value |
|---|---|---|
relative | ILeaf | ILocationType | 'world' |
Returns ​
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:138
getBounds ​
â–¸ getBounds(type?, relative?): IBoundsData
Parameters ​
| Name | Type | Default value |
|---|---|---|
type? | IBoundsType | undefined |
relative | ILeaf | ILocationType | 'world' |
Returns ​
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:155
getInnerBounds ​
â–¸ getInnerBounds(type?): IBoundsData
Parameters ​
| Name | Type | Default value |
|---|---|---|
type | IBoundsType | 'box' |
Returns ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:171
getLocalBounds ​
â–¸ getLocalBounds(type?): IBoundsData
Parameters ​
| Name | Type | Default value |
|---|---|---|
type | IBoundsType | 'box' |
Returns ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:184
getWorldBounds ​
â–¸ getWorldBounds(type?): IBoundsData
Parameters ​
| Name | Type | Default value |
|---|---|---|
type | IBoundsType | 'box' |
Returns ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:197
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 ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:210
getLayoutPoints ​
â–¸ getLayoutPoints(type?, relative?): IPointData[]
Parameters ​
| Name | Type | Default value |
|---|---|---|
type? | IBoundsType | undefined |
relative | ILeaf | ILocationType | 'world' |
Returns ​
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:254
shrinkContent ​
â–¸ shrinkContent(): void
Returns ​
void
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:278
spreadStroke ​
â–¸ spreadStroke(): void
Returns ​
void
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:283
spreadRender ​
â–¸ spreadRender(): void
Returns ​
void
Implementation of ​
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 ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:313
localBoxChange ​
â–¸ localBoxChange(): void
Returns ​
void
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:319
strokeChange ​
â–¸ strokeChange(): void
Returns ​
void
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:324
renderChange ​
â–¸ renderChange(): void
Returns ​
void
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:331
scaleChange ​
â–¸ scaleChange(): void
Returns ​
void
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:340
rotationChange ​
â–¸ rotationChange(): void
Returns ​
void
Implementation of ​
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 ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:357
surfaceChange ​
â–¸ surfaceChange(): void
Returns ​
void
Implementation of ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:365
opacityChange ​
â–¸ opacityChange(): void
Returns ​
void
Implementation of ​
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 ​
Defined in ​
src/leafer/packages/display-module/layout/src/LeafLayout.ts:380