็ฎไฝไธญๆ
Class: Leaf<TInputData> โ
Type parameters โ
Name | Type |
---|---|
TInputData | ILeafInputData |
Hierarchy โ
Implements โ
Table of contents โ
Constructors โ
Properties โ
- innerId
- leafer
- parent
- syncEventer
- lockNormalStyle
- __
- __layout
- __world
- __local
- __nowWorld
- __cameraWorld
- __worldOpacity
- __scrollWorld
- __level
- __tempNumber
- __hasAutoLayout
- __hasMask
- __hasEraser
- __hitCanvas
- __captureMap
- __bubbleMap
- __hasLocalEvent
- __hasWorldEvent
- children
- topChildren
- destroyed
Accessors โ
- tag
- __tag
- innerName
- __DataProcessor
- __LayoutProcessor
- leaferIsCreated
- leaferIsReady
- isLeafer
- isBranch
- isBranchLeaf
- __localMatrix
- __localBoxBounds
- worldTransform
- localTransform
- scrollWorldTransform
- boxBounds
- renderBounds
- worldBoxBounds
- worldStrokeBounds
- worldRenderBounds
- worldOpacity
- __worldFlipped
- __onlyHitMask
- __ignoreHitWorld
- __inLazyBounds
- pathInputed
- event
Methods โ
- 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
- __extraUpdate
- __updateWorldMatrix
- __updateLocalMatrix
- __updateWorldBounds
- __updateLocalBounds
- __updateLocalBoxBounds
- __updateLocalStrokeBounds
- __updateLocalRenderBounds
- __updateBoxBounds
- __updateContentBounds
- __updateStrokeBounds
- __updateRenderBounds
- __updateAutoLayout
- __updateFlowLayout
- __updateNaturalSize
- __updateStrokeSpread
- __updateRenderSpread
- __onUpdateSize
- __updateEraser
- __renderEraser
- __updateMask
- __renderMask
- __getNowWorld
- getClampRenderScale
- getRenderScaleData
- 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
- hit
- __hitWorld
- __hit
- __hitFill
- __hitStroke
- __hitPixel
- __drawHitPath
- __updateHitCanvas
- __render
- __drawFast
- __draw
- __clip
- __renderShape
- __drawShape
- __updateWorldOpacity
- __updateChange
- __drawPath
- __drawRenderPath
- __updatePath
- __updateRenderPath
- getMotionPathData
- getMotionPoint
- getMotionTotal
- __updateMotionPath
- __runAnimation
- __updateSortChildren
- add
- remove
- dropTo
- on
- off
- on_
- off_
- once
- emit
- emitEvent
- hasEvent
- changeAttr
- addAttr
- __emitLifeEvent
- destroy
Constructors โ
constructor โ
โข new Leaf<TInputData
>(data?
): Leaf
<TInputData
>
Type parameters โ
Name | Type |
---|---|
TInputData | ILeafInputData |
Parameters โ
Name | Type |
---|---|
data? | TInputData |
Returns โ
Leaf
<TInputData
>
Defined in โ
src/leafer/packages/display/src/Leaf.ts:114
Properties โ
innerId โ
โข Readonly
innerId: number
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:32
leafer โ
โข Optional
leafer: ILeaferBase
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:38
parent โ
โข Optional
parent: ILeaf
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:39
syncEventer โ
โข Optional
syncEventer: ILeaf
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:48
lockNormalStyle โ
โข Optional
lockNormalStyle: boolean
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:49
__ โ
โข __: ILeafData
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:51
__layout โ
โข __layout: ILeafLayout
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:52
__world โ
โข __world: IMatrixWithBoundsScaleData
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:54
__local โ
โข Optional
__local: IMatrixWithBoundsData
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:55
__nowWorld โ
โข Optional
__nowWorld: IMatrixWithBoundsScaleData
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:57
__cameraWorld โ
โข Optional
__cameraWorld: IMatrixWithBoundsScaleData
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:58
__worldOpacity โ
โข __worldOpacity: number
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:63
__scrollWorld โ
โข Optional
__scrollWorld: IMatrixWithBoundsScaleData
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:69
__level โ
โข __level: number
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:82
__tempNumber โ
โข __tempNumber: number
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:83
__hasAutoLayout โ
โข Optional
__hasAutoLayout: boolean
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:87
__hasMask โ
โข Optional
__hasMask: boolean
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:88
__hasEraser โ
โข Optional
__hasEraser: boolean
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:89
__hitCanvas โ
โข Optional
__hitCanvas: IHitCanvas
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:90
__captureMap โ
โข Optional
__captureMap: IEventListenerMap
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:101
__bubbleMap โ
โข Optional
__bubbleMap: IEventListenerMap
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:102
__hasLocalEvent โ
โข Optional
__hasLocalEvent: boolean
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:104
__hasWorldEvent โ
โข Optional
__hasWorldEvent: boolean
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:105
children โ
โข Optional
children: ILeaf
[]
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:108
topChildren โ
โข Optional
topChildren: ILeaf
[]
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:109
destroyed โ
โข destroyed: boolean
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:111
Accessors โ
tag โ
โข get
tag(): string
Returns โ
string
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:27
โข set
tag(_value
): void
Parameters โ
Name | Type |
---|---|
_value | string |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:28
__tag โ
โข get
__tag(): string
Returns โ
string
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:30
innerName โ
โข get
innerName(): string
Returns โ
string
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:33
__DataProcessor โ
โข get
__DataProcessor(): typeof LeafData
Returns โ
typeof LeafData
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:35
__LayoutProcessor โ
โข get
__LayoutProcessor(): typeof LeafLayout
Returns โ
typeof LeafLayout
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:36
leaferIsCreated โ
โข get
leaferIsCreated(): boolean
Returns โ
boolean
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:41
leaferIsReady โ
โข get
leaferIsReady(): boolean
Returns โ
boolean
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:42
isLeafer โ
โข get
isLeafer(): boolean
Returns โ
boolean
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:44
isBranch โ
โข get
isBranch(): boolean
Returns โ
boolean
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:45
isBranchLeaf โ
โข get
isBranchLeaf(): boolean
Returns โ
boolean
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:46
__localMatrix โ
โข get
__localMatrix(): IMatrixData
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:60
__localBoxBounds โ
โข get
__localBoxBounds(): IBoundsData
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:61
worldTransform โ
โข get
worldTransform(): IMatrixWithScaleData
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:66
localTransform โ
โข get
localTransform(): IMatrixData
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:67
scrollWorldTransform โ
โข get
scrollWorldTransform(): IMatrixWithScaleData
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:70
boxBounds โ
โข get
boxBounds(): IBoundsData
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:73
renderBounds โ
โข get
renderBounds(): IBoundsData
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:74
worldBoxBounds โ
โข get
worldBoxBounds(): IBoundsData
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:75
worldStrokeBounds โ
โข get
worldStrokeBounds(): IBoundsData
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:76
worldRenderBounds โ
โข get
worldRenderBounds(): IBoundsData
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:77
worldOpacity โ
โข get
worldOpacity(): number
Returns โ
number
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:80
__worldFlipped โ
โข get
__worldFlipped(): boolean
Returns โ
boolean
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:85
__onlyHitMask โ
โข get
__onlyHitMask(): boolean
Returns โ
boolean
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:92
__ignoreHitWorld โ
โข get
__ignoreHitWorld(): boolean
Returns โ
boolean
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:93
__inLazyBounds โ
โข get
__inLazyBounds(): boolean
Returns โ
boolean
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:94
pathInputed โ
โข get
pathInputed(): boolean
Returns โ
boolean
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:96
event โ
โข set
event(map
): void
Parameters โ
Name | Type |
---|---|
map | IEventParamsMap |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:99
Methods โ
reset โ
โธ reset(data?
): void
Parameters โ
Name | Type |
---|---|
data? | ILeafInputData |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:121
resetCustom โ
โธ resetCustom(): void
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:141
waitParent โ
โธ waitParent(item
, bind?
): void
Parameters โ
Name | Type |
---|---|
item | IFunction |
bind? | IObject |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:147
waitLeafer โ
โธ waitLeafer(item
, bind?
): void
Parameters โ
Name | Type |
---|---|
item | IFunction |
bind? | IObject |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:152
nextRender โ
โธ nextRender(item
, bind?
, off?
): void
Parameters โ
Name | Type |
---|---|
item | IFunction |
bind? | IObject |
off? | "off" |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:157
removeNextRender โ
โธ removeNextRender(item
): void
Parameters โ
Name | Type |
---|---|
item | IFunction |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:161
__bindLeafer โ
โธ __bindLeafer(leafer
): void
Parameters โ
Name | Type |
---|---|
leafer | ILeaferBase |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:165
set โ
โธ set(_data
, _isTemp?
): void
Parameters โ
Name | Type |
---|---|
_data | IObject |
_isTemp? | boolean |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:191
get โ
โธ get(_name?
): IValue
| ILeafInputData
Parameters โ
Name | Type |
---|---|
_name? | string |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:192
setAttr โ
โธ setAttr(name
, value
): void
Parameters โ
Name | Type |
---|---|
name | string |
value | any |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:194
getAttr โ
โธ getAttr(name
): any
Parameters โ
Name | Type |
---|---|
name | string |
Returns โ
any
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:195
getComputedAttr โ
โธ getComputedAttr(name
): any
Parameters โ
Name | Type |
---|---|
name | string |
Returns โ
any
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:197
toJSON โ
โธ toJSON(options?
): IObject
Parameters โ
Name | Type |
---|---|
options? | IJSONOptions |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:199
toString โ
โธ toString(options?
): string
Parameters โ
Name | Type |
---|---|
options? | IJSONOptions |
Returns โ
string
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:204
toSVG โ
โธ toSVG(): string
Returns โ
string
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:208
__SVG โ
โธ __SVG(_data
): void
Parameters โ
Name | Type |
---|---|
_data | IObject |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:210
toHTML โ
โธ toHTML(): string
Returns โ
string
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:212
__setAttr โ
โธ __setAttr(_attrName
, _newValue
): boolean
Parameters โ
Name | Type |
---|---|
_attrName | string |
_newValue | IValue |
Returns โ
boolean
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:216
__getAttr โ
โธ __getAttr(_attrName
): IValue
Parameters โ
Name | Type |
---|---|
_attrName | string |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:218
setProxyAttr โ
โธ setProxyAttr(_attrName
, _newValue
): void
Parameters โ
Name | Type |
---|---|
_attrName | string |
_newValue | IValue |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:220
getProxyAttr โ
โธ getProxyAttr(_attrName
): IValue
Parameters โ
Name | Type |
---|---|
_attrName | string |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:222
find โ
โธ find(_condition
, _options?
): ILeaf
[]
Parameters โ
Name | Type |
---|---|
_condition | string | number | IFindMethod |
_options? | any |
Returns โ
ILeaf
[]
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:229
findTag โ
โธ findTag(_tag
): ILeaf
[]
Parameters โ
Name | Type |
---|---|
_tag | string | string [] |
Returns โ
ILeaf
[]
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:231
findOne โ
โธ findOne(_condition
, _options?
): ILeaf
Parameters โ
Name | Type |
---|---|
_condition | string | number | IFindMethod |
_options? | any |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:233
findId โ
โธ findId(_id
): ILeaf
Parameters โ
Name | Type |
---|---|
_id | string | number |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:235
focus โ
โธ focus(_value?
): void
Parameters โ
Name | Type |
---|---|
_value? | boolean |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:242
updateState โ
โธ updateState(): void
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:244
updateLayout โ
โธ updateLayout(): void
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:249
forceUpdate โ
โธ forceUpdate(attrName?
): void
Parameters โ
Name | Type |
---|---|
attrName? | string |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:253
forceRender โ
โธ forceRender(_bounds?
, _sync?
): void
Parameters โ
Name | Type |
---|---|
_bounds? | IBoundsData |
_sync? | boolean |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:261
__extraUpdate โ
โธ __extraUpdate(): void
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:265
__updateWorldMatrix โ
โธ __updateWorldMatrix(): void
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:271
__updateLocalMatrix โ
โธ __updateLocalMatrix(): void
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:273
__updateWorldBounds โ
โธ __updateWorldBounds(): void
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:279
__updateLocalBounds โ
โธ __updateLocalBounds(): void
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:281
__updateLocalBoxBounds โ
โธ __updateLocalBoxBounds(): void
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:284
__updateLocalStrokeBounds โ
โธ __updateLocalStrokeBounds(): void
Returns โ
void
Implementation of โ
ILeaf.__updateLocalStrokeBounds
Defined in โ
src/leafer/packages/display/src/Leaf.ts:286
__updateLocalRenderBounds โ
โธ __updateLocalRenderBounds(): void
Returns โ
void
Implementation of โ
ILeaf.__updateLocalRenderBounds
Defined in โ
src/leafer/packages/display/src/Leaf.ts:288
__updateBoxBounds โ
โธ __updateBoxBounds(_secondLayout?
, _bounds?
): void
Parameters โ
Name | Type |
---|---|
_secondLayout? | boolean |
_bounds? | IBoundsData |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:292
__updateContentBounds โ
โธ __updateContentBounds(): void
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:294
__updateStrokeBounds โ
โธ __updateStrokeBounds(_bounds?
): void
Parameters โ
Name | Type |
---|---|
_bounds? | IBoundsData |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:296
__updateRenderBounds โ
โธ __updateRenderBounds(_bounds?
): void
Parameters โ
Name | Type |
---|---|
_bounds? | IBoundsData |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:298
__updateAutoLayout โ
โธ __updateAutoLayout(): void
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:301
__updateFlowLayout โ
โธ __updateFlowLayout(): void
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:303
__updateNaturalSize โ
โธ __updateNaturalSize(): void
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:305
__updateStrokeSpread โ
โธ __updateStrokeSpread(): number
Returns โ
number
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:308
__updateRenderSpread โ
โธ __updateRenderSpread(): number
Returns โ
number
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:310
__onUpdateSize โ
โธ __onUpdateSize(): void
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:312
__updateEraser โ
โธ __updateEraser(value?
): void
Parameters โ
Name | Type |
---|---|
value? | boolean |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:317
__renderEraser โ
โธ __renderEraser(canvas
, options
): void
Parameters โ
Name | Type |
---|---|
canvas | ILeaferCanvas |
options | IRenderOptions |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:321
__updateMask โ
โธ __updateMask(_value?
): void
Parameters โ
Name | Type |
---|---|
_value? | boolean |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:329
__renderMask โ
โธ __renderMask(_canvas
, _options
): void
Parameters โ
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:335
__getNowWorld โ
โธ __getNowWorld(options
): IMatrixWithBoundsScaleData
Parameters โ
Name | Type |
---|---|
options | IRenderOptions |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:343
getClampRenderScale โ
โธ getClampRenderScale(): number
Returns โ
number
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:356
getRenderScaleData โ
โธ getRenderScaleData(abs?
, scaleFixed?
): IScaleData
Parameters โ
Name | Type |
---|---|
abs? | boolean |
scaleFixed? | IScaleFixed |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:362
getTransform โ
โธ getTransform(relative?
): IMatrixData
Parameters โ
Name | Type |
---|---|
relative? | ILeaf | ILocationType |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:371
getBounds โ
โธ getBounds(type?
, relative?
): IBoundsData
Parameters โ
Name | Type |
---|---|
type? | IBoundsType |
relative? | ILeaf | ILocationType |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:376
getLayoutBounds โ
โธ getLayoutBounds(type?
, relative?
, unscale?
): ILayoutBoundsData
Parameters โ
Name | Type |
---|---|
type? | IBoundsType |
relative? | ILeaf | ILocationType |
unscale? | boolean |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:380
getLayoutPoints โ
โธ getLayoutPoints(type?
, relative?
): IPointData
[]
Parameters โ
Name | Type |
---|---|
type? | IBoundsType |
relative? | ILeaf | ILocationType |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:384
getWorldBounds โ
โธ getWorldBounds(inner
, relative?
, change?
): IBoundsData
Parameters โ
Name | Type |
---|---|
inner | IBoundsData |
relative? | ILeaf |
change? | boolean |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:389
worldToLocal โ
โธ worldToLocal(world
, to?
, distance?
, relative?
): void
Parameters โ
Name | Type |
---|---|
world | IPointData |
to? | IPointData |
distance? | boolean |
relative? | ILeaf |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:397
localToWorld โ
โธ localToWorld(local
, to?
, distance?
, relative?
): void
Parameters โ
Name | Type |
---|---|
local | IPointData |
to? | IPointData |
distance? | boolean |
relative? | ILeaf |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:405
worldToInner โ
โธ worldToInner(world
, to?
, distance?
, relative?
): void
Parameters โ
Name | Type |
---|---|
world | IPointData |
to? | IPointData |
distance? | boolean |
relative? | ILeaf |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:413
innerToWorld โ
โธ innerToWorld(inner
, to?
, distance?
, relative?
): void
Parameters โ
Name | Type |
---|---|
inner | IPointData |
to? | IPointData |
distance? | boolean |
relative? | ILeaf |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:421
getBoxPoint โ
โธ getBoxPoint(world
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
world | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:428
getBoxPointByInner โ
โธ getBoxPointByInner(inner
, _relative?
, _distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
inner | IPointData |
_relative? | ILeaf |
_distance? | boolean |
change? | boolean |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:432
getInnerPoint โ
โธ getInnerPoint(world
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
world | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:438
getInnerPointByBox โ
โธ getInnerPointByBox(box
, _relative?
, _distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
box | IPointData |
_relative? | ILeaf |
_distance? | boolean |
change? | boolean |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:444
getInnerPointByLocal โ
โธ getInnerPointByLocal(local
, _relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
local | IPointData |
_relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:450
getLocalPoint โ
โธ getLocalPoint(world
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
world | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:454
getLocalPointByInner โ
โธ getLocalPointByInner(inner
, _relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
inner | IPointData |
_relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:460
getPagePoint โ
โธ getPagePoint(world
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
world | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:464
getWorldPoint โ
โธ getWorldPoint(inner
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
inner | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:469
getWorldPointByBox โ
โธ getWorldPointByBox(box
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
box | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:475
getWorldPointByLocal โ
โธ getWorldPointByLocal(local
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
local | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:479
getWorldPointByPage โ
โธ getWorldPointByPage(page
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
page | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:485
setTransform โ
โธ setTransform(matrix
, resize?
, transition?
): void
Parameters โ
Name | Type |
---|---|
matrix | IMatrixData |
resize? | boolean |
transition? | ITransition |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:493
transform โ
โธ transform(matrix
, resize?
, transition?
): void
Parameters โ
Name | Type |
---|---|
matrix | IMatrixData |
resize? | boolean |
transition? | ITransition |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:497
move โ
โธ move(x
, y?
, transition?
): void
Parameters โ
Name | Type |
---|---|
x | number | IPointData |
y? | number |
transition? | ITransition |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:501
moveInner โ
โธ moveInner(x
, y?
, transition?
): void
Parameters โ
Name | Type |
---|---|
x | number | IPointData |
y? | number |
transition? | ITransition |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:506
scaleOf โ
โธ scaleOf(origin
, scaleX
, scaleY?
, resize?
, transition?
): void
Parameters โ
Name | Type |
---|---|
origin | IPointData | IDirection |
scaleX | number |
scaleY? | ITransition |
resize? | boolean |
transition? | ITransition |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:510
rotateOf โ
โธ rotateOf(origin
, rotation
, transition?
): void
Parameters โ
Name | Type |
---|---|
origin | IPointData | IDirection |
rotation | number |
transition? | ITransition |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:514
skewOf โ
โธ skewOf(origin
, skewX
, skewY?
, resize?
, transition?
): void
Parameters โ
Name | Type |
---|---|
origin | IPointData | IDirection |
skewX | number |
skewY? | number |
resize? | boolean |
transition? | ITransition |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:518
transformWorld โ
โธ transformWorld(worldTransform?
, resize?
, transition?
): void
Parameters โ
Name | Type |
---|---|
worldTransform? | IMatrixData |
resize? | boolean |
transition? | ITransition |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:523
moveWorld โ
โธ moveWorld(x
, y?
, transition?
): void
Parameters โ
Name | Type |
---|---|
x | number | IPointData |
y? | number |
transition? | ITransition |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:527
scaleOfWorld โ
โธ scaleOfWorld(worldOrigin
, scaleX
, scaleY?
, resize?
, transition?
): void
Parameters โ
Name | Type |
---|---|
worldOrigin | IPointData |
scaleX | number |
scaleY? | ITransition |
resize? | boolean |
transition? | ITransition |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:531
rotateOfWorld โ
โธ rotateOfWorld(worldOrigin
, rotation
): void
Parameters โ
Name | Type |
---|---|
worldOrigin | IPointData |
rotation | number |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:535
skewOfWorld โ
โธ skewOfWorld(worldOrigin
, skewX
, skewY?
, resize?
, transition?
): void
Parameters โ
Name | Type |
---|---|
worldOrigin | IPointData |
skewX | number |
skewY? | number |
resize? | boolean |
transition? | ITransition |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:539
flip โ
โธ flip(axis
, transition?
): void
Parameters โ
Name | Type |
---|---|
axis | IAxis |
transition? | ITransition |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:543
scaleResize โ
โธ scaleResize(scaleX
, scaleY?
, _noResize?
): void
Parameters โ
Name | Type | Default value |
---|---|---|
scaleX | number | undefined |
scaleY | number | scaleX |
_noResize? | boolean | undefined |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:550
__scaleResize โ
โธ __scaleResize(_scaleX
, _scaleY
): void
Parameters โ
Name | Type |
---|---|
_scaleX | number |
_scaleY | number |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:555
resizeWidth โ
โธ resizeWidth(_width
): void
Parameters โ
Name | Type |
---|---|
_width | number |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:558
resizeHeight โ
โธ resizeHeight(_height
): void
Parameters โ
Name | Type |
---|---|
_height | number |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:560
hit โ
โธ hit(_world
, _hitRadius?
): boolean
Parameters โ
Name | Type |
---|---|
_world | IPointData |
_hitRadius? | number |
Returns โ
boolean
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:565
__hitWorld โ
โธ __hitWorld(_point
): boolean
Parameters โ
Name | Type |
---|---|
_point | IRadiusPointData |
Returns โ
boolean
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:567
__hit โ
โธ __hit(_local
): boolean
Parameters โ
Name | Type |
---|---|
_local | IRadiusPointData |
Returns โ
boolean
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:569
__hitFill โ
โธ __hitFill(_inner
): boolean
Parameters โ
Name | Type |
---|---|
_inner | IRadiusPointData |
Returns โ
boolean
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:571
__hitStroke โ
โธ __hitStroke(_inner
, _strokeWidth
): boolean
Parameters โ
Name | Type |
---|---|
_inner | IRadiusPointData |
_strokeWidth | number |
Returns โ
boolean
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:573
__hitPixel โ
โธ __hitPixel(_inner
): boolean
Parameters โ
Name | Type |
---|---|
_inner | IRadiusPointData |
Returns โ
boolean
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:575
__drawHitPath โ
โธ __drawHitPath(_canvas
): void
Parameters โ
Name | Type |
---|---|
_canvas | ILeaferCanvas |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:577
__updateHitCanvas โ
โธ __updateHitCanvas(): void
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:579
__render โ
โธ __render(_canvas
, _options
): void
Parameters โ
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:586
__drawFast โ
โธ __drawFast(_canvas
, _options
): void
Parameters โ
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:588
__draw โ
โธ __draw(_canvas
, _options
, _originCanvas?
): void
Parameters โ
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
_originCanvas? | ILeaferCanvas |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:590
__clip โ
โธ __clip(_canvas
, _options
): void
Parameters โ
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:593
__renderShape โ
โธ __renderShape(_canvas
, _options
): void
Parameters โ
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:595
__drawShape โ
โธ __drawShape(_canvas
, _options
): void
Parameters โ
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:597
__updateWorldOpacity โ
โธ __updateWorldOpacity(): void
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:600
__updateChange โ
โธ __updateChange(): void
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:602
__drawPath โ
โธ __drawPath(_canvas
): void
Parameters โ
Name | Type |
---|---|
_canvas | ILeaferCanvas |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:609
__drawRenderPath โ
โธ __drawRenderPath(_canvas
): void
Parameters โ
Name | Type |
---|---|
_canvas | ILeaferCanvas |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:611
__updatePath โ
โธ __updatePath(): void
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:613
__updateRenderPath โ
โธ __updateRenderPath(): void
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:615
getMotionPathData โ
โธ getMotionPathData(): IMotionPathData
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:622
getMotionPoint โ
โธ getMotionPoint(_motionDistance
): IRotationPointData
Parameters โ
Name | Type |
---|---|
_motionDistance | number | IUnitData |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:626
getMotionTotal โ
โธ getMotionTotal(): number
Returns โ
number
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:630
__updateMotionPath โ
โธ __updateMotionPath(): void
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:634
__runAnimation โ
โธ __runAnimation(_type
, _complete?
): void
Parameters โ
Name | Type |
---|---|
_type | "in" | "out" |
_complete? | IFunction |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:640
__updateSortChildren โ
โธ __updateSortChildren(): void
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:645
add โ
โธ add(_child
, _index?
): void
Parameters โ
Name | Type |
---|---|
_child | ILeaf | ILeafInputData | ILeaf [] | ILeafInputData [] |
_index? | number |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:647
remove โ
โธ remove(_child?
, destroy?
): void
Parameters โ
Name | Type |
---|---|
_child? | string | number | ILeaf | IFindMethod |
destroy? | boolean |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:649
dropTo โ
โธ dropTo(parent
, index?
, resize?
): void
Parameters โ
Name | Type |
---|---|
parent | ILeaf |
index? | number |
resize? | boolean |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:653
on โ
โธ on(_type
, _listener?
, _options?
): void
Parameters โ
Name | Type |
---|---|
_type | string | string [] | IEventParamsMap | IEventParams [] |
_listener? | IFunction |
_options? | IEventOption |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:662
off โ
โธ off(_type?
, _listener?
, _options?
): void
Parameters โ
Name | Type |
---|---|
_type? | string | string [] |
_listener? | IFunction |
_options? | IEventOption |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:664
on_ โ
โธ on_(_type
, _listener?
, _bind?
, _options?
): IEventListenerId
Parameters โ
Name | Type |
---|---|
_type | string | string [] | IEventParams [] |
_listener? | IFunction |
_bind? | IObject |
_options? | IEventOption |
Returns โ
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:666
off_ โ
โธ off_(_id
): void
Parameters โ
Name | Type |
---|---|
_id | IEventListenerId | IEventListenerId [] |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:668
once โ
โธ once(_type
, _listener?
, _captureOrBind?
, _capture?
): void
Parameters โ
Name | Type |
---|---|
_type | string | string [] | IEventParams [] |
_listener? | IFunction |
_captureOrBind? | boolean | IObject |
_capture? | boolean |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:670
emit โ
โธ emit(_type
, _event?
, _capture?
): void
Parameters โ
Name | Type |
---|---|
_type | string |
_event? | IObject | IEvent |
_capture? | boolean |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:672
emitEvent โ
โธ emitEvent(_event?
, _capture?
): void
Parameters โ
Name | Type |
---|---|
_event? | IEvent |
_capture? | boolean |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:674
hasEvent โ
โธ hasEvent(_type
, _capture?
): boolean
Parameters โ
Name | Type |
---|---|
_type | string |
_capture? | boolean |
Returns โ
boolean
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:676
changeAttr โ
โธ changeAttr(attrName
, defaultValue
, fn?
): void
Parameters โ
Name | Type |
---|---|
attrName | string |
defaultValue | IValueFunction | IValue |
fn? | IAttrDecorator |
Returns โ
void
Defined in โ
src/leafer/packages/display/src/Leaf.ts:680
addAttr โ
โธ addAttr(attrName
, defaultValue
, fn?
, helpValue?
): void
Parameters โ
Name | Type |
---|---|
attrName | string |
defaultValue | IValueFunction | IValue |
fn? | IAttrDecorator |
helpValue? | IValue |
Returns โ
void
Defined in โ
src/leafer/packages/display/src/Leaf.ts:684
__emitLifeEvent โ
โธ __emitLifeEvent(type
): void
Parameters โ
Name | Type |
---|---|
type | string |
Returns โ
void
Implementation of โ
Defined in โ
src/leafer/packages/display/src/Leaf.ts:690
destroy โ
โธ destroy(): void
Returns โ
void