็ฎไฝไธญๆ
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:374
destroy โ
โธ destroy(): void
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display-module/layout/src/LeafLayout.ts:381