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