çŽä˝ä¸ć
Class: Leaf â
Hierarchy â
Implements â
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 â
- 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
- __updateBoxBounds
- __updateContentBounds
- __updateStrokeBounds
- __updateRenderBounds
- __updateAutoLayout
- __updateFlowLayout
- __updateNaturalSize
- __updateStrokeSpread
- __updateRenderSpread
- __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
- __updateSortChildren
- add
- remove
- dropTo
- on
- off
- on_
- off_
- once
- emit
- emitEvent
- hasEvent
- changeAttr
- addAttr
- __emitLifeEvent
- destroy
Constructors â
constructor â
⢠new Leaf(data?
): Leaf
Parameters â
Name | Type |
---|---|
data? | ILeafInputData |
Returns â
Defined in â
leafer/packages/display/src/Leaf.ts:108
Properties â
innerId â
⢠Readonly
innerId: number
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:30
leafer â
⢠Optional
leafer: ILeaferBase
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:36
parent â
⢠Optional
parent: ILeaf
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:37
syncEventer â
⢠Optional
syncEventer: ILeaf
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:46
lockNormalStyle â
⢠Optional
lockNormalStyle: boolean
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:47
__ â
⢠__: ILeafData
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:49
__layout â
⢠__layout: ILeafLayout
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:50
__world â
⢠__world: IMatrixWithBoundsScaleData
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:52
__local â
⢠Optional
__local: IMatrixWithBoundsData
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:53
__nowWorld â
⢠Optional
__nowWorld: IMatrixWithBoundsScaleData
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:55
__cameraWorld â
⢠Optional
__cameraWorld: IMatrixWithBoundsScaleData
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:56
__worldOpacity â
⢠__worldOpacity: number
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:61
__level â
⢠__level: number
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:77
__tempNumber â
⢠__tempNumber: number
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:78
__hasAutoLayout â
⢠Optional
__hasAutoLayout: boolean
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:82
__hasMask â
⢠Optional
__hasMask: boolean
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:83
__hasEraser â
⢠Optional
__hasEraser: boolean
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:84
__hitCanvas â
⢠Optional
__hitCanvas: IHitCanvas
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:85
__captureMap â
⢠Optional
__captureMap: IEventListenerMap
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:96
__bubbleMap â
⢠Optional
__bubbleMap: IEventListenerMap
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:97
children â
⢠Optional
children: ILeaf
[]
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:100
noBounds â
⢠Optional
noBounds: boolean
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:103
destroyed â
⢠destroyed: boolean
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:105
Accessors â
tag â
⢠get
tag(): string
Returns â
string
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:25
⢠set
tag(_value
): void
Parameters â
Name | Type |
---|---|
_value | string |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:26
__tag â
⢠get
__tag(): string
Returns â
string
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:28
innerName â
⢠get
innerName(): string
Returns â
string
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:31
__DataProcessor â
⢠get
__DataProcessor(): typeof LeafData
Returns â
typeof LeafData
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:33
__LayoutProcessor â
⢠get
__LayoutProcessor(): typeof LeafLayout
Returns â
typeof LeafLayout
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:34
leaferIsCreated â
⢠get
leaferIsCreated(): boolean
Returns â
boolean
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:39
leaferIsReady â
⢠get
leaferIsReady(): boolean
Returns â
boolean
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:40
isLeafer â
⢠get
isLeafer(): boolean
Returns â
boolean
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:42
isBranch â
⢠get
isBranch(): boolean
Returns â
boolean
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:43
isBranchLeaf â
⢠get
isBranchLeaf(): boolean
Returns â
boolean
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:44
__localMatrix â
⢠get
__localMatrix(): IMatrixData
Returns â
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:58
__localBoxBounds â
⢠get
__localBoxBounds(): IBoundsData
Returns â
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:59
worldTransform â
⢠get
worldTransform(): IMatrixWithScaleData
Returns â
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:64
localTransform â
⢠get
localTransform(): IMatrixData
Returns â
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:65
boxBounds â
⢠get
boxBounds(): IBoundsData
Returns â
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:68
renderBounds â
⢠get
renderBounds(): IBoundsData
Returns â
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:69
worldBoxBounds â
⢠get
worldBoxBounds(): IBoundsData
Returns â
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:70
worldStrokeBounds â
⢠get
worldStrokeBounds(): IBoundsData
Returns â
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:71
worldRenderBounds â
⢠get
worldRenderBounds(): IBoundsData
Returns â
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:72
worldOpacity â
⢠get
worldOpacity(): number
Returns â
number
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:75
__worldFlipped â
⢠get
__worldFlipped(): boolean
Returns â
boolean
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:80
__onlyHitMask â
⢠get
__onlyHitMask(): boolean
Returns â
boolean
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:87
__ignoreHitWorld â
⢠get
__ignoreHitWorld(): boolean
Returns â
boolean
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:88
__inLazyBounds â
⢠get
__inLazyBounds(): boolean
Returns â
boolean
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:89
pathInputed â
⢠get
pathInputed(): boolean
Returns â
boolean
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:91
event â
⢠set
event(map
): void
Parameters â
Name | Type |
---|---|
map | IEventMap |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:94
Methods â
reset â
⸠reset(data?
): void
Parameters â
Name | Type |
---|---|
data? | ILeafInputData |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:115
resetCustom â
⸠resetCustom(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:133
waitParent â
⸠waitParent(item
, bind?
): void
Parameters â
Name | Type |
---|---|
item | IFunction |
bind? | IObject |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:139
waitLeafer â
⸠waitLeafer(item
, bind?
): void
Parameters â
Name | Type |
---|---|
item | IFunction |
bind? | IObject |
Returns â
void
Implementation of â
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
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:149
removeNextRender â
⸠removeNextRender(item
): void
Parameters â
Name | Type |
---|---|
item | IFunction |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:153
__bindLeafer â
⸠__bindLeafer(leafer
): void
Parameters â
Name | Type |
---|---|
leafer | ILeaferBase |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:157
set â
⸠set(_data
, _isTemp?
): void
Parameters â
Name | Type |
---|---|
_data | IObject |
_isTemp? | boolean |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:183
get â
⸠get(_name?
): IValue
| ILeafInputData
Parameters â
Name | Type |
---|---|
_name? | string |
Returns â
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:184
setAttr â
⸠setAttr(name
, value
): void
Parameters â
Name | Type |
---|---|
name | string |
value | any |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:186
getAttr â
⸠getAttr(name
): any
Parameters â
Name | Type |
---|---|
name | string |
Returns â
any
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:187
getComputedAttr â
⸠getComputedAttr(name
): any
Parameters â
Name | Type |
---|---|
name | string |
Returns â
any
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:189
toJSON â
⸠toJSON(options?
): IObject
Parameters â
Name | Type |
---|---|
options? | IJSONOptions |
Returns â
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:191
toString â
⸠toString(options?
): string
Parameters â
Name | Type |
---|---|
options? | IJSONOptions |
Returns â
string
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:196
toSVG â
⸠toSVG(): string
Returns â
string
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:200
__SVG â
⸠__SVG(_data
): void
Parameters â
Name | Type |
---|---|
_data | IObject |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:202
toHTML â
⸠toHTML(): string
Returns â
string
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:204
__setAttr â
⸠__setAttr(_attrName
, _newValue
): boolean
Parameters â
Name | Type |
---|---|
_attrName | string |
_newValue | IValue |
Returns â
boolean
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:208
__getAttr â
⸠__getAttr(_attrName
): IValue
Parameters â
Name | Type |
---|---|
_attrName | string |
Returns â
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:210
setProxyAttr â
⸠setProxyAttr(_attrName
, _newValue
): void
Parameters â
Name | Type |
---|---|
_attrName | string |
_newValue | IValue |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:212
getProxyAttr â
⸠getProxyAttr(_attrName
): IValue
Parameters â
Name | Type |
---|---|
_attrName | string |
Returns â
Implementation of â
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
[]
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:221
findTag â
⸠findTag(_tag
): ILeaf
[]
Parameters â
Name | Type |
---|---|
_tag | string | string [] |
Returns â
ILeaf
[]
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:223
findOne â
⸠findOne(_condition
, _options?
): ILeaf
Parameters â
Name | Type |
---|---|
_condition | string | number | IFindMethod |
_options? | any |
Returns â
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:225
findId â
⸠findId(_id
): ILeaf
Parameters â
Name | Type |
---|---|
_id | string | number |
Returns â
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:227
focus â
⸠focus(_value?
): void
Parameters â
Name | Type |
---|---|
_value? | boolean |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:234
updateState â
⸠updateState(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:236
updateLayout â
⸠updateLayout(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:241
forceUpdate â
⸠forceUpdate(attrName?
): void
Parameters â
Name | Type |
---|---|
attrName? | string |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:245
forceRender â
⸠forceRender(_bounds?
): void
Parameters â
Name | Type |
---|---|
_bounds? | IBoundsData |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:253
__updateWorldMatrix â
⸠__updateWorldMatrix(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:259
__updateLocalMatrix â
⸠__updateLocalMatrix(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:261
__updateWorldBounds â
⸠__updateWorldBounds(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:267
__updateLocalBounds â
⸠__updateLocalBounds(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:269
__updateLocalBoxBounds â
⸠__updateLocalBoxBounds(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:272
__updateLocalStrokeBounds â
⸠__updateLocalStrokeBounds(): void
Returns â
void
Implementation of â
ILeaf.__updateLocalStrokeBounds
Defined in â
leafer/packages/display/src/Leaf.ts:274
__updateLocalRenderBounds â
⸠__updateLocalRenderBounds(): void
Returns â
void
Implementation of â
ILeaf.__updateLocalRenderBounds
Defined in â
leafer/packages/display/src/Leaf.ts:276
__updateBoxBounds â
⸠__updateBoxBounds(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:280
__updateContentBounds â
⸠__updateContentBounds(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:282
__updateStrokeBounds â
⸠__updateStrokeBounds(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:284
__updateRenderBounds â
⸠__updateRenderBounds(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:286
__updateAutoLayout â
⸠__updateAutoLayout(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:289
__updateFlowLayout â
⸠__updateFlowLayout(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:291
__updateNaturalSize â
⸠__updateNaturalSize(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:293
__updateStrokeSpread â
⸠__updateStrokeSpread(): number
Returns â
number
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:296
__updateRenderSpread â
⸠__updateRenderSpread(): number
Returns â
number
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:298
__onUpdateSize â
⸠__onUpdateSize(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:300
__updateEraser â
⸠__updateEraser(value?
): void
Parameters â
Name | Type |
---|---|
value? | boolean |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:305
__renderEraser â
⸠__renderEraser(canvas
, options
): void
Parameters â
Name | Type |
---|---|
canvas | ILeaferCanvas |
options | IRenderOptions |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:309
__updateMask â
⸠__updateMask(value?
): void
Parameters â
Name | Type |
---|---|
value? | boolean |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:317
__renderMask â
⸠__renderMask(_canvas
, _options
): void
Parameters â
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:323
__getNowWorld â
⸠__getNowWorld(options
): IMatrixWithBoundsScaleData
Parameters â
Name | Type |
---|---|
options | IRenderOptions |
Returns â
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:331
getTransform â
⸠getTransform(relative?
): IMatrixData
Parameters â
Name | Type |
---|---|
relative? | ILeaf | ILocationType |
Returns â
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:343
getBounds â
⸠getBounds(type?
, relative?
): IBoundsData
Parameters â
Name | Type |
---|---|
type? | IBoundsType |
relative? | ILeaf | ILocationType |
Returns â
Implementation of â
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 â
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:352
getLayoutPoints â
⸠getLayoutPoints(type?
, relative?
): IPointData
[]
Parameters â
Name | Type |
---|---|
type? | IBoundsType |
relative? | ILeaf | ILocationType |
Returns â
Implementation of â
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 â
Implementation of â
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
Implementation of â
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
Implementation of â
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
Implementation of â
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
Implementation of â
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 â
Implementation of â
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 â
Implementation of â
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 â
Implementation of â
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 â
Implementation of â
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 â
Implementation of â
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 â
Implementation of â
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 â
Implementation of â
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 â
Implementation of â
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 â
Implementation of â
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 â
Implementation of â
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 â
Implementation of â
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 â
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:457
setTransform â
⸠setTransform(matrix
, resize?
): void
Parameters â
Name | Type |
---|---|
matrix | IMatrixData |
resize? | boolean |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:465
transform â
⸠transform(matrix
, resize?
): void
Parameters â
Name | Type |
---|---|
matrix | IMatrixData |
resize? | boolean |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:469
move â
⸠move(x
, y?
): void
Parameters â
Name | Type |
---|---|
x | number | IPointData |
y? | number |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:473
moveInner â
⸠moveInner(x
, y?
): void
Parameters â
Name | Type |
---|---|
x | number | IPointData |
y? | number |
Returns â
void
Implementation of â
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
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:482
rotateOf â
⸠rotateOf(origin
, rotation
): void
Parameters â
Name | Type |
---|---|
origin | IPointData | IDirection |
rotation | number |
Returns â
void
Implementation of â
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
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:490
transformWorld â
⸠transformWorld(worldTransform?
, resize?
): void
Parameters â
Name | Type |
---|---|
worldTransform? | IMatrixData |
resize? | boolean |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:495
moveWorld â
⸠moveWorld(x
, y?
): void
Parameters â
Name | Type |
---|---|
x | number | IPointData |
y? | number |
Returns â
void
Implementation of â
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
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:503
rotateOfWorld â
⸠rotateOfWorld(worldOrigin
, rotation
): void
Parameters â
Name | Type |
---|---|
worldOrigin | IPointData |
rotation | number |
Returns â
void
Implementation of â
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
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:511
flip â
⸠flip(axis
): void
Parameters â
Name | Type |
---|---|
axis | IAxis |
Returns â
void
Implementation of â
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
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:522
__scaleResize â
⸠__scaleResize(_scaleX
, _scaleY
): void
Parameters â
Name | Type |
---|---|
_scaleX | number |
_scaleY | number |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:527
resizeWidth â
⸠resizeWidth(_width
): void
Parameters â
Name | Type |
---|---|
_width | number |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:530
resizeHeight â
⸠resizeHeight(_height
): void
Parameters â
Name | Type |
---|---|
_height | number |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:532
__hitWorld â
⸠__hitWorld(_point
): boolean
Parameters â
Name | Type |
---|---|
_point | IRadiusPointData |
Returns â
boolean
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:537
__hit â
⸠__hit(_local
): boolean
Parameters â
Name | Type |
---|---|
_local | IRadiusPointData |
Returns â
boolean
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:539
__hitFill â
⸠__hitFill(_inner
): boolean
Parameters â
Name | Type |
---|---|
_inner | IRadiusPointData |
Returns â
boolean
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:541
__hitStroke â
⸠__hitStroke(_inner
, _strokeWidth
): boolean
Parameters â
Name | Type |
---|---|
_inner | IRadiusPointData |
_strokeWidth | number |
Returns â
boolean
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:543
__hitPixel â
⸠__hitPixel(_inner
): boolean
Parameters â
Name | Type |
---|---|
_inner | IRadiusPointData |
Returns â
boolean
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:545
__drawHitPath â
⸠__drawHitPath(_canvas
): void
Parameters â
Name | Type |
---|---|
_canvas | ILeaferCanvas |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:547
__updateHitCanvas â
⸠__updateHitCanvas(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:549
__render â
⸠__render(_canvas
, _options
): void
Parameters â
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:556
__drawFast â
⸠__drawFast(_canvas
, _options
): void
Parameters â
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:558
__draw â
⸠__draw(_canvas
, _options
): void
Parameters â
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:560
__clip â
⸠__clip(_canvas
, _options
): void
Parameters â
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns â
void
Implementation of â
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
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:565
__updateWorldOpacity â
⸠__updateWorldOpacity(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:568
__updateChange â
⸠__updateChange(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:570
__drawPath â
⸠__drawPath(_canvas
): void
Parameters â
Name | Type |
---|---|
_canvas | ILeaferCanvas |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:577
__drawRenderPath â
⸠__drawRenderPath(_canvas
): void
Parameters â
Name | Type |
---|---|
_canvas | ILeaferCanvas |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:579
__updatePath â
⸠__updatePath(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:581
__updateRenderPath â
⸠__updateRenderPath(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:583
getMotionPathData â
⸠getMotionPathData(): IMotionPathData
Returns â
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:590
getMotionPoint â
⸠getMotionPoint(_motionDistance
): IRotationPointData
Parameters â
Name | Type |
---|---|
_motionDistance | number | IUnitData |
Returns â
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:594
getMotionTotal â
⸠getMotionTotal(): number
Returns â
number
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:598
__updateMotionPath â
⸠__updateMotionPath(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:602
__runAnimation â
⸠__runAnimation(_type
, _complete?
): void
Parameters â
Name | Type |
---|---|
_type | "in" | "out" |
_complete? | IFunction |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:608
__updateSortChildren â
⸠__updateSortChildren(): void
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:613
add â
⸠add(_child
, _index?
): void
Parameters â
Name | Type |
---|---|
_child | ILeaf | ILeafInputData |
_index? | number |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:615
remove â
⸠remove(_child?
, destroy?
): void
Parameters â
Name | Type |
---|---|
_child? | string | number | ILeaf | IFindMethod |
destroy? | boolean |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:617
dropTo â
⸠dropTo(parent
, index?
, resize?
): void
Parameters â
Name | Type |
---|---|
parent | ILeaf |
index? | number |
resize? | boolean |
Returns â
void
Implementation of â
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
Implementation of â
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
Implementation of â
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 â
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:634
off_ â
⸠off_(_id
): void
Parameters â
Name | Type |
---|---|
_id | IEventListenerId | IEventListenerId [] |
Returns â
void
Implementation of â
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
Implementation of â
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
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:640
emitEvent â
⸠emitEvent(_event?
, _capture?
): void
Parameters â
Name | Type |
---|---|
_event? | IEvent |
_capture? | boolean |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:642
hasEvent â
⸠hasEvent(_type
, _capture?
): boolean
Parameters â
Name | Type |
---|---|
_type | string |
_capture? | boolean |
Returns â
boolean
Implementation of â
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
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
Defined in â
leafer/packages/display/src/Leaf.ts:652
__emitLifeEvent â
⸠__emitLifeEvent(type
): void
Parameters â
Name | Type |
---|---|
type | string |
Returns â
void
Implementation of â
Defined in â
leafer/packages/display/src/Leaf.ts:658
destroy â
⸠destroy(): void
Returns â
void