Class: Branch โ
Hierarchy โ
โณ
Branch
Table of contents โ
Constructors โ
Properties โ
- innerId
- leafer
- parent
- syncEventer
- lockNormalStyle
- __
- __layout
- __world
- __local
- __nowWorld
- __cameraWorld
- __worldOpacity
- __level
- __tempNumber
- __hasAutoLayout
- __hasMask
- __hasEraser
- __hitCanvas
- __captureMap
- __bubbleMap
- children
- noBounds
- destroyed
Accessors โ
- tag
- __tag
- innerName
- __DataProcessor
- __LayoutProcessor
- leaferIsCreated
- leaferIsReady
- isLeafer
- isBranch
- isBranchLeaf
- __localMatrix
- __localBoxBounds
- worldTransform
- localTransform
- boxBounds
- renderBounds
- worldBoxBounds
- worldStrokeBounds
- worldRenderBounds
- worldOpacity
- __worldFlipped
- __onlyHitMask
- __ignoreHitWorld
- __inLazyBounds
- pathInputed
- event
Methods โ
- __updateStrokeSpread
- __updateRenderSpread
- __updateBoxBounds
- __updateStrokeBounds
- __updateRenderBounds
- __updateSortChildren
- add
- addMany
- remove
- removeAll
- clear
- __remove
- __preRemove
- __realRemoveChild
- __emitChildEvent
- reset
- resetCustom
- waitParent
- waitLeafer
- nextRender
- removeNextRender
- __bindLeafer
- set
- get
- setAttr
- getAttr
- getComputedAttr
- toJSON
- toString
- toSVG
- __SVG
- toHTML
- __setAttr
- __getAttr
- setProxyAttr
- getProxyAttr
- find
- findTag
- findOne
- findId
- focus
- updateState
- updateLayout
- forceUpdate
- forceRender
- __updateWorldMatrix
- __updateLocalMatrix
- __updateWorldBounds
- __updateLocalBounds
- __updateLocalBoxBounds
- __updateLocalStrokeBounds
- __updateLocalRenderBounds
- __updateContentBounds
- __updateAutoLayout
- __updateFlowLayout
- __updateNaturalSize
- __onUpdateSize
- __updateEraser
- __renderEraser
- __updateMask
- __renderMask
- __getNowWorld
- getTransform
- getBounds
- getLayoutBounds
- getLayoutPoints
- getWorldBounds
- worldToLocal
- localToWorld
- worldToInner
- innerToWorld
- getBoxPoint
- getBoxPointByInner
- getInnerPoint
- getInnerPointByBox
- getInnerPointByLocal
- getLocalPoint
- getLocalPointByInner
- getPagePoint
- getWorldPoint
- getWorldPointByBox
- getWorldPointByLocal
- getWorldPointByPage
- setTransform
- transform
- move
- moveInner
- scaleOf
- rotateOf
- skewOf
- transformWorld
- moveWorld
- scaleOfWorld
- rotateOfWorld
- skewOfWorld
- flip
- scaleResize
- __scaleResize
- resizeWidth
- resizeHeight
- __hitWorld
- __hit
- __hitFill
- __hitStroke
- __hitPixel
- __drawHitPath
- __updateHitCanvas
- __render
- __drawFast
- __draw
- __clip
- __renderShape
- __updateWorldOpacity
- __updateChange
- __drawPath
- __drawRenderPath
- __updatePath
- __updateRenderPath
- getMotionPathData
- getMotionPoint
- getMotionTotal
- __updateMotionPath
- __runAnimation
- dropTo
- on
- off
- on_
- off_
- once
- emit
- emitEvent
- hasEvent
- changeAttr
- addAttr
- __emitLifeEvent
- destroy
Constructors โ
constructor โ
โข new Branch(data?
): Branch
Parameters โ
Name | Type |
---|---|
data? | ILeafInputData |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:108
Properties โ
innerId โ
โข Readonly
innerId: number
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:30
leafer โ
โข Optional
leafer: ILeaferBase
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:36
parent โ
โข Optional
parent: ILeaf
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:37
syncEventer โ
โข Optional
syncEventer: ILeaf
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:46
lockNormalStyle โ
โข Optional
lockNormalStyle: boolean
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:47
__ โ
โข __: ILeafData
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:49
__layout โ
โข __layout: ILeafLayout
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:50
__world โ
โข __world: IMatrixWithBoundsScaleData
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:52
__local โ
โข Optional
__local: IMatrixWithBoundsData
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:53
__nowWorld โ
โข Optional
__nowWorld: IMatrixWithBoundsScaleData
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:55
__cameraWorld โ
โข Optional
__cameraWorld: IMatrixWithBoundsScaleData
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:56
__worldOpacity โ
โข __worldOpacity: number
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:61
__level โ
โข __level: number
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:77
__tempNumber โ
โข __tempNumber: number
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:78
__hasAutoLayout โ
โข Optional
__hasAutoLayout: boolean
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:82
__hasMask โ
โข Optional
__hasMask: boolean
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:83
__hasEraser โ
โข Optional
__hasEraser: boolean
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:84
__hitCanvas โ
โข Optional
__hitCanvas: IHitCanvas
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:85
__captureMap โ
โข Optional
__captureMap: IEventListenerMap
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:96
__bubbleMap โ
โข Optional
__bubbleMap: IEventListenerMap
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:97
children โ
โข Optional
children: ILeaf
[]
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:100
noBounds โ
โข Optional
noBounds: boolean
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:103
destroyed โ
โข destroyed: boolean
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:105
Accessors โ
tag โ
โข get
tag(): string
Returns โ
string
Inherited from โ
Leaf.tag
Defined in โ
leafer/packages/display/src/Leaf.ts:25
โข set
tag(_value
): void
Parameters โ
Name | Type |
---|---|
_value | string |
Returns โ
void
Inherited from โ
Leaf.tag
Defined in โ
leafer/packages/display/src/Leaf.ts:26
__tag โ
โข get
__tag(): string
Returns โ
string
Inherited from โ
Leaf.__tag
Defined in โ
leafer/packages/display/src/Leaf.ts:28
innerName โ
โข get
innerName(): string
Returns โ
string
Inherited from โ
Leaf.innerName
Defined in โ
leafer/packages/display/src/Leaf.ts:31
__DataProcessor โ
โข get
__DataProcessor(): typeof LeafData
Returns โ
typeof LeafData
Inherited from โ
Leaf.__DataProcessor
Defined in โ
leafer/packages/display/src/Leaf.ts:33
__LayoutProcessor โ
โข get
__LayoutProcessor(): typeof LeafLayout
Returns โ
typeof LeafLayout
Inherited from โ
Leaf.__LayoutProcessor
Defined in โ
leafer/packages/display/src/Leaf.ts:34
leaferIsCreated โ
โข get
leaferIsCreated(): boolean
Returns โ
boolean
Inherited from โ
Leaf.leaferIsCreated
Defined in โ
leafer/packages/display/src/Leaf.ts:39
leaferIsReady โ
โข get
leaferIsReady(): boolean
Returns โ
boolean
Inherited from โ
Leaf.leaferIsReady
Defined in โ
leafer/packages/display/src/Leaf.ts:40
isLeafer โ
โข get
isLeafer(): boolean
Returns โ
boolean
Inherited from โ
Leaf.isLeafer
Defined in โ
leafer/packages/display/src/Leaf.ts:42
isBranch โ
โข get
isBranch(): boolean
Returns โ
boolean
Inherited from โ
Leaf.isBranch
Defined in โ
leafer/packages/display/src/Leaf.ts:43
isBranchLeaf โ
โข get
isBranchLeaf(): boolean
Returns โ
boolean
Inherited from โ
Leaf.isBranchLeaf
Defined in โ
leafer/packages/display/src/Leaf.ts:44
__localMatrix โ
โข get
__localMatrix(): IMatrixData
Returns โ
Inherited from โ
Leaf.__localMatrix
Defined in โ
leafer/packages/display/src/Leaf.ts:58
__localBoxBounds โ
โข get
__localBoxBounds(): IBoundsData
Returns โ
Inherited from โ
Leaf.__localBoxBounds
Defined in โ
leafer/packages/display/src/Leaf.ts:59
worldTransform โ
โข get
worldTransform(): IMatrixWithScaleData
Returns โ
Inherited from โ
Leaf.worldTransform
Defined in โ
leafer/packages/display/src/Leaf.ts:64
localTransform โ
โข get
localTransform(): IMatrixData
Returns โ
Inherited from โ
Leaf.localTransform
Defined in โ
leafer/packages/display/src/Leaf.ts:65
boxBounds โ
โข get
boxBounds(): IBoundsData
Returns โ
Inherited from โ
Leaf.boxBounds
Defined in โ
leafer/packages/display/src/Leaf.ts:68
renderBounds โ
โข get
renderBounds(): IBoundsData
Returns โ
Inherited from โ
Leaf.renderBounds
Defined in โ
leafer/packages/display/src/Leaf.ts:69
worldBoxBounds โ
โข get
worldBoxBounds(): IBoundsData
Returns โ
Inherited from โ
Leaf.worldBoxBounds
Defined in โ
leafer/packages/display/src/Leaf.ts:70
worldStrokeBounds โ
โข get
worldStrokeBounds(): IBoundsData
Returns โ
Inherited from โ
Leaf.worldStrokeBounds
Defined in โ
leafer/packages/display/src/Leaf.ts:71
worldRenderBounds โ
โข get
worldRenderBounds(): IBoundsData
Returns โ
Inherited from โ
Leaf.worldRenderBounds
Defined in โ
leafer/packages/display/src/Leaf.ts:72
worldOpacity โ
โข get
worldOpacity(): number
Returns โ
number
Inherited from โ
Leaf.worldOpacity
Defined in โ
leafer/packages/display/src/Leaf.ts:75
__worldFlipped โ
โข get
__worldFlipped(): boolean
Returns โ
boolean
Inherited from โ
Leaf.__worldFlipped
Defined in โ
leafer/packages/display/src/Leaf.ts:80
__onlyHitMask โ
โข get
__onlyHitMask(): boolean
Returns โ
boolean
Inherited from โ
Leaf.__onlyHitMask
Defined in โ
leafer/packages/display/src/Leaf.ts:87
__ignoreHitWorld โ
โข get
__ignoreHitWorld(): boolean
Returns โ
boolean
Inherited from โ
Leaf.__ignoreHitWorld
Defined in โ
leafer/packages/display/src/Leaf.ts:88
__inLazyBounds โ
โข get
__inLazyBounds(): boolean
Returns โ
boolean
Inherited from โ
Leaf.__inLazyBounds
Defined in โ
leafer/packages/display/src/Leaf.ts:89
pathInputed โ
โข get
pathInputed(): boolean
Returns โ
boolean
Inherited from โ
Leaf.pathInputed
Defined in โ
leafer/packages/display/src/Leaf.ts:91
event โ
โข set
event(map
): void
Parameters โ
Name | Type |
---|---|
map | IEventMap |
Returns โ
void
Inherited from โ
Leaf.event
Defined in โ
leafer/packages/display/src/Leaf.ts:94
Methods โ
__updateStrokeSpread โ
โธ __updateStrokeSpread(): number
Returns โ
number
Overrides โ
Defined in โ
leafer/packages/display/src/Branch.ts:22
__updateRenderSpread โ
โธ __updateRenderSpread(): number
Returns โ
number
Overrides โ
Defined in โ
leafer/packages/display/src/Branch.ts:30
__updateBoxBounds โ
โธ __updateBoxBounds(): void
Returns โ
void
Overrides โ
Defined in โ
leafer/packages/display/src/Branch.ts:38
__updateStrokeBounds โ
โธ __updateStrokeBounds(): void
Returns โ
void
Overrides โ
Defined in โ
leafer/packages/display/src/Branch.ts:42
__updateRenderBounds โ
โธ __updateRenderBounds(): void
Returns โ
void
Overrides โ
Defined in โ
leafer/packages/display/src/Branch.ts:46
__updateSortChildren โ
โธ __updateSortChildren(): void
Returns โ
void
Overrides โ
Defined in โ
leafer/packages/display/src/Branch.ts:53
add โ
โธ add(child
, index?
): void
Parameters โ
Name | Type |
---|---|
child | ILeaf |
index? | number |
Returns โ
void
Overrides โ
Defined in โ
leafer/packages/display/src/Branch.ts:66
addMany โ
โธ addMany(...children
): void
Parameters โ
Name | Type |
---|---|
...children | ILeaf [] |
Returns โ
void
Defined in โ
leafer/packages/display/src/Branch.ts:93
remove โ
โธ remove(child?
, destroy?
): void
Parameters โ
Name | Type |
---|---|
child? | ILeaf |
destroy? | boolean |
Returns โ
void
Overrides โ
Defined in โ
leafer/packages/display/src/Branch.ts:95
removeAll โ
โธ removeAll(destroy?
): void
Parameters โ
Name | Type |
---|---|
destroy? | boolean |
Returns โ
void
Defined in โ
leafer/packages/display/src/Branch.ts:110
clear โ
โธ clear(): void
Returns โ
void
Defined in โ
leafer/packages/display/src/Branch.ts:123
__remove โ
โธ __remove(child?
, destroy?
): void
Parameters โ
Name | Type |
---|---|
child? | ILeaf |
destroy? | boolean |
Returns โ
void
Defined in โ
leafer/packages/display/src/Branch.ts:127
__preRemove โ
โธ __preRemove(): void
Returns โ
void
Defined in โ
leafer/packages/display/src/Branch.ts:138
__realRemoveChild โ
โธ __realRemoveChild(child
): void
Parameters โ
Name | Type |
---|---|
child | ILeaf |
Returns โ
void
Defined in โ
leafer/packages/display/src/Branch.ts:145
__emitChildEvent โ
โธ __emitChildEvent(type
, child
): void
Parameters โ
Name | Type |
---|---|
type | string |
child | ILeaf |
Returns โ
void
Defined in โ
leafer/packages/display/src/Branch.ts:157
reset โ
โธ reset(data?
): void
Parameters โ
Name | Type |
---|---|
data? | ILeafInputData |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:115
resetCustom โ
โธ resetCustom(): void
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:133
waitParent โ
โธ waitParent(item
, bind?
): void
Parameters โ
Name | Type |
---|---|
item | IFunction |
bind? | IObject |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:139
waitLeafer โ
โธ waitLeafer(item
, bind?
): void
Parameters โ
Name | Type |
---|---|
item | IFunction |
bind? | IObject |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:144
nextRender โ
โธ nextRender(item
, bind?
, off?
): void
Parameters โ
Name | Type |
---|---|
item | IFunction |
bind? | IObject |
off? | "off" |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:149
removeNextRender โ
โธ removeNextRender(item
): void
Parameters โ
Name | Type |
---|---|
item | IFunction |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:153
__bindLeafer โ
โธ __bindLeafer(leafer
): void
Parameters โ
Name | Type |
---|---|
leafer | ILeaferBase |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:157
set โ
โธ set(_data
, _isTemp?
): void
Parameters โ
Name | Type |
---|---|
_data | IObject |
_isTemp? | boolean |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:183
get โ
โธ get(_name?
): IValue
| ILeafInputData
Parameters โ
Name | Type |
---|---|
_name? | string |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:184
setAttr โ
โธ setAttr(name
, value
): void
Parameters โ
Name | Type |
---|---|
name | string |
value | any |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:186
getAttr โ
โธ getAttr(name
): any
Parameters โ
Name | Type |
---|---|
name | string |
Returns โ
any
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:187
getComputedAttr โ
โธ getComputedAttr(name
): any
Parameters โ
Name | Type |
---|---|
name | string |
Returns โ
any
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:189
toJSON โ
โธ toJSON(options?
): IObject
Parameters โ
Name | Type |
---|---|
options? | IJSONOptions |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:191
toString โ
โธ toString(options?
): string
Parameters โ
Name | Type |
---|---|
options? | IJSONOptions |
Returns โ
string
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:196
toSVG โ
โธ toSVG(): string
Returns โ
string
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:200
__SVG โ
โธ __SVG(_data
): void
Parameters โ
Name | Type |
---|---|
_data | IObject |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:202
toHTML โ
โธ toHTML(): string
Returns โ
string
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:204
__setAttr โ
โธ __setAttr(_attrName
, _newValue
): boolean
Parameters โ
Name | Type |
---|---|
_attrName | string |
_newValue | IValue |
Returns โ
boolean
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:208
__getAttr โ
โธ __getAttr(_attrName
): IValue
Parameters โ
Name | Type |
---|---|
_attrName | string |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:210
setProxyAttr โ
โธ setProxyAttr(_attrName
, _newValue
): void
Parameters โ
Name | Type |
---|---|
_attrName | string |
_newValue | IValue |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:212
getProxyAttr โ
โธ getProxyAttr(_attrName
): IValue
Parameters โ
Name | Type |
---|---|
_attrName | string |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:214
find โ
โธ find(_condition
, _options?
): ILeaf
[]
Parameters โ
Name | Type |
---|---|
_condition | string | number | IFindMethod |
_options? | any |
Returns โ
ILeaf
[]
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:221
findTag โ
โธ findTag(_tag
): ILeaf
[]
Parameters โ
Name | Type |
---|---|
_tag | string | string [] |
Returns โ
ILeaf
[]
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:223
findOne โ
โธ findOne(_condition
, _options?
): ILeaf
Parameters โ
Name | Type |
---|---|
_condition | string | number | IFindMethod |
_options? | any |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:225
findId โ
โธ findId(_id
): ILeaf
Parameters โ
Name | Type |
---|---|
_id | string | number |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:227
focus โ
โธ focus(_value?
): void
Parameters โ
Name | Type |
---|---|
_value? | boolean |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:234
updateState โ
โธ updateState(): void
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:236
updateLayout โ
โธ updateLayout(): void
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:241
forceUpdate โ
โธ forceUpdate(attrName?
): void
Parameters โ
Name | Type |
---|---|
attrName? | string |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:245
forceRender โ
โธ forceRender(_bounds?
): void
Parameters โ
Name | Type |
---|---|
_bounds? | IBoundsData |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:253
__updateWorldMatrix โ
โธ __updateWorldMatrix(): void
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:259
__updateLocalMatrix โ
โธ __updateLocalMatrix(): void
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:261
__updateWorldBounds โ
โธ __updateWorldBounds(): void
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:267
__updateLocalBounds โ
โธ __updateLocalBounds(): void
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:269
__updateLocalBoxBounds โ
โธ __updateLocalBoxBounds(): void
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:272
__updateLocalStrokeBounds โ
โธ __updateLocalStrokeBounds(): void
Returns โ
void
Inherited from โ
Leaf.__updateLocalStrokeBounds
Defined in โ
leafer/packages/display/src/Leaf.ts:274
__updateLocalRenderBounds โ
โธ __updateLocalRenderBounds(): void
Returns โ
void
Inherited from โ
Leaf.__updateLocalRenderBounds
Defined in โ
leafer/packages/display/src/Leaf.ts:276
__updateContentBounds โ
โธ __updateContentBounds(): void
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:282
__updateAutoLayout โ
โธ __updateAutoLayout(): void
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:289
__updateFlowLayout โ
โธ __updateFlowLayout(): void
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:291
__updateNaturalSize โ
โธ __updateNaturalSize(): void
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:293
__onUpdateSize โ
โธ __onUpdateSize(): void
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:300
__updateEraser โ
โธ __updateEraser(value?
): void
Parameters โ
Name | Type |
---|---|
value? | boolean |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:305
__renderEraser โ
โธ __renderEraser(canvas
, options
): void
Parameters โ
Name | Type |
---|---|
canvas | ILeaferCanvas |
options | IRenderOptions |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:309
__updateMask โ
โธ __updateMask(value?
): void
Parameters โ
Name | Type |
---|---|
value? | boolean |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:317
__renderMask โ
โธ __renderMask(_canvas
, _options
): void
Parameters โ
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:323
__getNowWorld โ
โธ __getNowWorld(options
): IMatrixWithBoundsScaleData
Parameters โ
Name | Type |
---|---|
options | IRenderOptions |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:331
getTransform โ
โธ getTransform(relative?
): IMatrixData
Parameters โ
Name | Type |
---|---|
relative? | ILeaf | ILocationType |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:343
getBounds โ
โธ getBounds(type?
, relative?
): IBoundsData
Parameters โ
Name | Type |
---|---|
type? | IBoundsType |
relative? | ILeaf | ILocationType |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:348
getLayoutBounds โ
โธ getLayoutBounds(type?
, relative?
, unscale?
): ILayoutBoundsData
Parameters โ
Name | Type |
---|---|
type? | IBoundsType |
relative? | ILeaf | ILocationType |
unscale? | boolean |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:352
getLayoutPoints โ
โธ getLayoutPoints(type?
, relative?
): IPointData
[]
Parameters โ
Name | Type |
---|---|
type? | IBoundsType |
relative? | ILeaf | ILocationType |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:356
getWorldBounds โ
โธ getWorldBounds(inner
, relative?
, change?
): IBoundsData
Parameters โ
Name | Type |
---|---|
inner | IBoundsData |
relative? | ILeaf |
change? | boolean |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:361
worldToLocal โ
โธ worldToLocal(world
, to?
, distance?
, relative?
): void
Parameters โ
Name | Type |
---|---|
world | IPointData |
to? | IPointData |
distance? | boolean |
relative? | ILeaf |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:369
localToWorld โ
โธ localToWorld(local
, to?
, distance?
, relative?
): void
Parameters โ
Name | Type |
---|---|
local | IPointData |
to? | IPointData |
distance? | boolean |
relative? | ILeaf |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:377
worldToInner โ
โธ worldToInner(world
, to?
, distance?
, relative?
): void
Parameters โ
Name | Type |
---|---|
world | IPointData |
to? | IPointData |
distance? | boolean |
relative? | ILeaf |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:385
innerToWorld โ
โธ innerToWorld(inner
, to?
, distance?
, relative?
): void
Parameters โ
Name | Type |
---|---|
inner | IPointData |
to? | IPointData |
distance? | boolean |
relative? | ILeaf |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:393
getBoxPoint โ
โธ getBoxPoint(world
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
world | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:400
getBoxPointByInner โ
โธ getBoxPointByInner(inner
, _relative?
, _distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
inner | IPointData |
_relative? | ILeaf |
_distance? | boolean |
change? | boolean |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:404
getInnerPoint โ
โธ getInnerPoint(world
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
world | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:410
getInnerPointByBox โ
โธ getInnerPointByBox(box
, _relative?
, _distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
box | IPointData |
_relative? | ILeaf |
_distance? | boolean |
change? | boolean |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:416
getInnerPointByLocal โ
โธ getInnerPointByLocal(local
, _relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
local | IPointData |
_relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:422
getLocalPoint โ
โธ getLocalPoint(world
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
world | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:426
getLocalPointByInner โ
โธ getLocalPointByInner(inner
, _relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
inner | IPointData |
_relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:432
getPagePoint โ
โธ getPagePoint(world
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
world | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:436
getWorldPoint โ
โธ getWorldPoint(inner
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
inner | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:441
getWorldPointByBox โ
โธ getWorldPointByBox(box
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
box | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:447
getWorldPointByLocal โ
โธ getWorldPointByLocal(local
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
local | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:451
getWorldPointByPage โ
โธ getWorldPointByPage(page
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
page | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:457
setTransform โ
โธ setTransform(matrix
, resize?
): void
Parameters โ
Name | Type |
---|---|
matrix | IMatrixData |
resize? | boolean |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:465
transform โ
โธ transform(matrix
, resize?
): void
Parameters โ
Name | Type |
---|---|
matrix | IMatrixData |
resize? | boolean |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:469
move โ
โธ move(x
, y?
): void
Parameters โ
Name | Type |
---|---|
x | number | IPointData |
y? | number |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:473
moveInner โ
โธ moveInner(x
, y?
): void
Parameters โ
Name | Type |
---|---|
x | number | IPointData |
y? | number |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:478
scaleOf โ
โธ scaleOf(origin
, scaleX
, scaleY?
, resize?
): void
Parameters โ
Name | Type |
---|---|
origin | IPointData | IDirection |
scaleX | number |
scaleY? | number |
resize? | boolean |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:482
rotateOf โ
โธ rotateOf(origin
, rotation
): void
Parameters โ
Name | Type |
---|---|
origin | IPointData | IDirection |
rotation | number |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:486
skewOf โ
โธ skewOf(origin
, skewX
, skewY?
, resize?
): void
Parameters โ
Name | Type |
---|---|
origin | IPointData | IDirection |
skewX | number |
skewY? | number |
resize? | boolean |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:490
transformWorld โ
โธ transformWorld(worldTransform?
, resize?
): void
Parameters โ
Name | Type |
---|---|
worldTransform? | IMatrixData |
resize? | boolean |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:495
moveWorld โ
โธ moveWorld(x
, y?
): void
Parameters โ
Name | Type |
---|---|
x | number | IPointData |
y? | number |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:499
scaleOfWorld โ
โธ scaleOfWorld(worldOrigin
, scaleX
, scaleY?
, resize?
): void
Parameters โ
Name | Type |
---|---|
worldOrigin | IPointData |
scaleX | number |
scaleY? | number |
resize? | boolean |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:503
rotateOfWorld โ
โธ rotateOfWorld(worldOrigin
, rotation
): void
Parameters โ
Name | Type |
---|---|
worldOrigin | IPointData |
rotation | number |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:507
skewOfWorld โ
โธ skewOfWorld(worldOrigin
, skewX
, skewY?
, resize?
): void
Parameters โ
Name | Type |
---|---|
worldOrigin | IPointData |
skewX | number |
skewY? | number |
resize? | boolean |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:511
flip โ
โธ flip(axis
): void
Parameters โ
Name | Type |
---|---|
axis | IAxis |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:515
scaleResize โ
โธ scaleResize(scaleX
, scaleY?
, _noResize?
): void
Parameters โ
Name | Type | Default value |
---|---|---|
scaleX | number | undefined |
scaleY | number | scaleX |
_noResize? | boolean | undefined |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:522
__scaleResize โ
โธ __scaleResize(_scaleX
, _scaleY
): void
Parameters โ
Name | Type |
---|---|
_scaleX | number |
_scaleY | number |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:527
resizeWidth โ
โธ resizeWidth(_width
): void
Parameters โ
Name | Type |
---|---|
_width | number |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:530
resizeHeight โ
โธ resizeHeight(_height
): void
Parameters โ
Name | Type |
---|---|
_height | number |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:532
__hitWorld โ
โธ __hitWorld(_point
): boolean
Parameters โ
Name | Type |
---|---|
_point | IRadiusPointData |
Returns โ
boolean
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:537
__hit โ
โธ __hit(_local
): boolean
Parameters โ
Name | Type |
---|---|
_local | IRadiusPointData |
Returns โ
boolean
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:539
__hitFill โ
โธ __hitFill(_inner
): boolean
Parameters โ
Name | Type |
---|---|
_inner | IRadiusPointData |
Returns โ
boolean
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:541
__hitStroke โ
โธ __hitStroke(_inner
, _strokeWidth
): boolean
Parameters โ
Name | Type |
---|---|
_inner | IRadiusPointData |
_strokeWidth | number |
Returns โ
boolean
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:543
__hitPixel โ
โธ __hitPixel(_inner
): boolean
Parameters โ
Name | Type |
---|---|
_inner | IRadiusPointData |
Returns โ
boolean
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:545
__drawHitPath โ
โธ __drawHitPath(_canvas
): void
Parameters โ
Name | Type |
---|---|
_canvas | ILeaferCanvas |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:547
__updateHitCanvas โ
โธ __updateHitCanvas(): void
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:549
__render โ
โธ __render(_canvas
, _options
): void
Parameters โ
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:556
__drawFast โ
โธ __drawFast(_canvas
, _options
): void
Parameters โ
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:558
__draw โ
โธ __draw(_canvas
, _options
): void
Parameters โ
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:560
__clip โ
โธ __clip(_canvas
, _options
): void
Parameters โ
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:563
__renderShape โ
โธ __renderShape(_canvas
, _options
, _ignoreFill?
, _ignoreStroke?
): void
Parameters โ
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
_ignoreFill? | boolean |
_ignoreStroke? | boolean |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:565
__updateWorldOpacity โ
โธ __updateWorldOpacity(): void
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:568
__updateChange โ
โธ __updateChange(): void
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:570
__drawPath โ
โธ __drawPath(_canvas
): void
Parameters โ
Name | Type |
---|---|
_canvas | ILeaferCanvas |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:577
__drawRenderPath โ
โธ __drawRenderPath(_canvas
): void
Parameters โ
Name | Type |
---|---|
_canvas | ILeaferCanvas |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:579
__updatePath โ
โธ __updatePath(): void
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:581
__updateRenderPath โ
โธ __updateRenderPath(): void
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:583
getMotionPathData โ
โธ getMotionPathData(): IMotionPathData
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:590
getMotionPoint โ
โธ getMotionPoint(_motionDistance
): IRotationPointData
Parameters โ
Name | Type |
---|---|
_motionDistance | number | IUnitData |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:594
getMotionTotal โ
โธ getMotionTotal(): number
Returns โ
number
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:598
__updateMotionPath โ
โธ __updateMotionPath(): void
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:602
__runAnimation โ
โธ __runAnimation(_type
, _complete?
): void
Parameters โ
Name | Type |
---|---|
_type | "in" | "out" |
_complete? | IFunction |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:608
dropTo โ
โธ dropTo(parent
, index?
, resize?
): void
Parameters โ
Name | Type |
---|---|
parent | ILeaf |
index? | number |
resize? | boolean |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:621
on โ
โธ on(_type
, _listener?
, _options?
): void
Parameters โ
Name | Type |
---|---|
_type | string | string [] | IEventMap |
_listener? | IFunction |
_options? | IEventOption |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:630
off โ
โธ off(_type?
, _listener?
, _options?
): void
Parameters โ
Name | Type |
---|---|
_type? | string | string [] |
_listener? | IFunction |
_options? | IEventOption |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:632
on_ โ
โธ on_(_type
, _listener
, _bind?
, _options?
): IEventListenerId
Parameters โ
Name | Type |
---|---|
_type | string | string [] |
_listener | IFunction |
_bind? | IObject |
_options? | IEventOption |
Returns โ
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:634
off_ โ
โธ off_(_id
): void
Parameters โ
Name | Type |
---|---|
_id | IEventListenerId | IEventListenerId [] |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:636
once โ
โธ once(_type
, _listener
, _capture?
): void
Parameters โ
Name | Type |
---|---|
_type | string | string [] |
_listener | IFunction |
_capture? | boolean |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:638
emit โ
โธ emit(_type
, _event?
, _capture?
): void
Parameters โ
Name | Type |
---|---|
_type | string |
_event? | IObject | IEvent |
_capture? | boolean |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:640
emitEvent โ
โธ emitEvent(_event?
, _capture?
): void
Parameters โ
Name | Type |
---|---|
_event? | IEvent |
_capture? | boolean |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:642
hasEvent โ
โธ hasEvent(_type
, _capture?
): boolean
Parameters โ
Name | Type |
---|---|
_type | string |
_capture? | boolean |
Returns โ
boolean
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:644
changeAttr โ
โธ changeAttr(attrName
, defaultValue
, fn?
): void
Parameters โ
Name | Type |
---|---|
attrName | string |
defaultValue | IValue |
fn? | IAttrDecorator |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:648
addAttr โ
โธ addAttr(attrName
, defaultValue
, fn?
): void
Parameters โ
Name | Type |
---|---|
attrName | string |
defaultValue | IValue |
fn? | IAttrDecorator |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:652
__emitLifeEvent โ
โธ __emitLifeEvent(type
): void
Parameters โ
Name | Type |
---|---|
type | string |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/display/src/Leaf.ts:658
destroy โ
โธ destroy(): void
Returns โ
void