Interface: ILeaf โ
Hierarchy โ
Implemented by โ
Table of contents โ
Properties โ
- id
- name
- className
- blendMode
- opacity
- visible
- selected
- disabled
- locked
- zIndex
- mask
- eraser
- x
- y
- width
- height
- scaleX
- scaleY
- rotation
- skewX
- skewY
- scale
- offsetX
- offsetY
- scrollX
- scrollY
- origin
- around
- lazy
- pixelRatio
- path
- windingRule
- closed
- flow
- padding
- gap
- flowAlign
- flowWrap
- itemBox
- inFlow
- autoWidth
- autoHeight
- lockRatio
- autoBox
- widthRange
- heightRange
- draggable
- dragBounds
- editable
- hittable
- hitFill
- hitStroke
- hitBox
- hitChildren
- hitSelf
- hitRadius
- button
- cursor
- motionPath
- motion
- motionRotation
- normalStyle
- event
- data
- noBounds
- tag
- __tag
- innerName
- __DataProcessor
- __LayoutProcessor
- app
- leafer
- parent
- zoomLayer
- leaferIsCreated
- leaferIsReady
- isApp
- isLeafer
- isBranch
- isBranchLeaf
- isOutside
- __
- proxyData
- __proxyData
- syncEventer
- lockNormalStyle
- __layout
- __world
- __local
- __nowWorld
- __cameraWorld
- __localMatrix
- __localBoxBounds
- __worldOpacity
- worldTransform
- localTransform
- boxBounds
- renderBounds
- worldBoxBounds
- worldStrokeBounds
- worldRenderBounds
- worldOpacity
- __level
- __tempNumber
- __worldFlipped
- animation
- animationOut
- __hasAutoLayout
- __hasMotionPath
- __hasMask
- __hasEraser
- __hitCanvas
- __flowBounds
- __widthGrow
- __heightGrow
- __hasGrow
- __onlyHitMask
- __ignoreHitWorld
- __inLazyBounds
- pathInputed
- destroyed
- children
- innerId
- __captureMap
- __bubbleMap
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
- __updateContentBounds
- __updateBoxBounds
- __updateStrokeBounds
- __updateRenderBounds
- __updateAutoLayout
- __updateFlowLayout
- __updateNaturalSize
- __updateStrokeSpread
- __updateRenderSpread
- __onUpdateSize
- __updateEraser
- __updateMask
- __renderMask
- __renderEraser
- __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
- __emitLifeEvent
- __updateSortChildren
- add
- remove
- dropTo
- __realSetAttr
- destroyEventer
- on
- off
- on_
- off_
- once
- emit
- emitEvent
- hasEvent
- destroy
Properties โ
id โ
โข Optional
id: string
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:210
name โ
โข Optional
name: string
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:211
className โ
โข Optional
className: string
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:212
blendMode โ
โข Optional
blendMode: IBlendMode
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:214
opacity โ
โข Optional
opacity: number
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:215
visible โ
โข Optional
visible: boolean
| 0
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:216
selected โ
โข Optional
selected: boolean
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:217
disabled โ
โข Optional
disabled: boolean
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:218
locked โ
โข Optional
locked: boolean
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:219
zIndex โ
โข Optional
zIndex: number
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:220
mask โ
โข Optional
mask: boolean
| IMaskType
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:222
eraser โ
โข Optional
eraser: boolean
| IEraserType
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:223
x โ
โข Optional
x: number
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:226
y โ
โข Optional
y: number
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:227
width โ
โข Optional
width: number
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:228
height โ
โข Optional
height: number
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:229
scaleX โ
โข Optional
scaleX: number
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:230
scaleY โ
โข Optional
scaleY: number
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:231
rotation โ
โข Optional
rotation: number
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:232
skewX โ
โข Optional
skewX: number
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:233
skewY โ
โข Optional
skewY: number
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:234
scale โ
โข Optional
scale: number
| IPointData
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:236
offsetX โ
โข Optional
offsetX: number
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:238
offsetY โ
โข Optional
offsetY: number
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:239
scrollX โ
โข Optional
scrollX: number
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:240
scrollY โ
โข Optional
scrollY: number
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:241
origin โ
โข Optional
origin: IUnitPointData
| IDirection
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:243
around โ
โข Optional
around: IUnitPointData
| IDirection
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:244
lazy โ
โข Optional
lazy: boolean
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:246
pixelRatio โ
โข Optional
pixelRatio: number
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:247
path โ
โข Optional
path: string
| IPathCommandData
| IPathCommandObject
[]
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:249
windingRule โ
โข Optional
windingRule: IWindingRule
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:250
closed โ
โข Optional
closed: boolean
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:251
flow โ
โข Optional
flow: IFlowType
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:254
padding โ
โข Optional
padding: IFourNumber
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:255
gap โ
โข Optional
gap: IGap
| IPointGap
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:256
flowAlign โ
โข Optional
flowAlign: IFlowAxisAlign
| IFlowAlign
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:257
flowWrap โ
โข Optional
flowWrap: IFlowWrap
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:258
itemBox โ
โข Optional
itemBox: IFlowBoxType
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:259
inFlow โ
โข Optional
inFlow: boolean
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:261
autoWidth โ
โข Optional
autoWidth: IAutoSize
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:262
autoHeight โ
โข Optional
autoHeight: IAutoSize
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:263
lockRatio โ
โข Optional
lockRatio: boolean
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:264
autoBox โ
โข Optional
autoBox: IAutoBoxData
| IConstraint
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:265
widthRange โ
โข Optional
widthRange: IRangeSize
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:267
heightRange โ
โข Optional
heightRange: IRangeSize
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:268
draggable โ
โข Optional
draggable: boolean
| IAxis
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:271
dragBounds โ
โข Optional
dragBounds: "parent"
| IBoundsData
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:272
editable โ
โข Optional
editable: boolean
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:274
hittable โ
โข Optional
hittable: boolean
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:276
hitFill โ
โข Optional
hitFill: IHitType
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:277
hitStroke โ
โข Optional
hitStroke: IHitType
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:278
hitBox โ
โข Optional
hitBox: boolean
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:279
hitChildren โ
โข Optional
hitChildren: boolean
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:280
hitSelf โ
โข Optional
hitSelf: boolean
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:281
hitRadius โ
โข Optional
hitRadius: number
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:282
button โ
โข Optional
button: boolean
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:284
cursor โ
โข Optional
cursor: ICursorType
| ICursorType
[]
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:285
motionPath โ
โข Optional
motionPath: boolean
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:287
motion โ
โข Optional
motion: number
| IUnitData
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:288
motionRotation โ
โข Optional
motionRotation: number
| boolean
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:289
normalStyle โ
โข Optional
normalStyle: IObject
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:291
event โ
โข Optional
event: IEventMap
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:293
data โ
โข Optional
data: IObject
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:296
noBounds โ
โข Optional
noBounds: boolean
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:305
tag โ
โข tag: string
Overrides โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:420
__tag โ
โข Readonly
__tag: string
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:421
innerName โ
โข Readonly
innerName: string
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:422
__DataProcessor โ
โข Readonly
__DataProcessor: IObject
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:424
__LayoutProcessor โ
โข Readonly
__LayoutProcessor: IObject
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:425
app โ
โข Optional
Readonly
app: ILeaferBase
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:427
leafer โ
โข Optional
leafer: ILeaferBase
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:428
parent โ
โข Optional
parent: ILeaf
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:429
zoomLayer โ
โข Optional
zoomLayer: ILeaf
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:430
leaferIsCreated โ
โข Readonly
leaferIsCreated: boolean
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:432
leaferIsReady โ
โข Readonly
leaferIsReady: boolean
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:433
isApp โ
โข Optional
Readonly
isApp: boolean
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:435
isLeafer โ
โข Optional
Readonly
isLeafer: boolean
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:436
isBranch โ
โข Optional
Readonly
isBranch: boolean
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:437
isBranchLeaf โ
โข Optional
Readonly
isBranchLeaf: boolean
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:438
isOutside โ
โข Optional
Readonly
isOutside: boolean
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:439
__ โ
โข __: ILeafData
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:441
proxyData โ
โข Optional
proxyData: ILeafInputData
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:443
__proxyData โ
โข Optional
__proxyData: ILeafInputData
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:444
syncEventer โ
โข Optional
syncEventer: ILeaf
Overrides โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:446
lockNormalStyle โ
โข Optional
lockNormalStyle: boolean
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:447
__layout โ
โข __layout: ILeafLayout
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:449
__world โ
โข __world: IMatrixWithBoundsScaleData
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:451
__local โ
โข Optional
__local: IMatrixWithBoundsData
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:452
__nowWorld โ
โข Optional
__nowWorld: IMatrixWithBoundsScaleData
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:454
__cameraWorld โ
โข Optional
__cameraWorld: IMatrixWithBoundsScaleData
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:455
__localMatrix โ
โข Readonly
__localMatrix: IMatrixData
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:457
__localBoxBounds โ
โข Readonly
__localBoxBounds: IBoundsData
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:458
__worldOpacity โ
โข __worldOpacity: number
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:460
worldTransform โ
โข Readonly
worldTransform: IMatrixWithScaleData
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:462
localTransform โ
โข Readonly
localTransform: IMatrixData
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:463
boxBounds โ
โข Readonly
boxBounds: IBoundsData
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:465
renderBounds โ
โข Readonly
renderBounds: IBoundsData
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:466
worldBoxBounds โ
โข Readonly
worldBoxBounds: IBoundsData
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:467
worldStrokeBounds โ
โข Readonly
worldStrokeBounds: IBoundsData
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:468
worldRenderBounds โ
โข Readonly
worldRenderBounds: IBoundsData
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:469
worldOpacity โ
โข Readonly
worldOpacity: number
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:471
__level โ
โข __level: number
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:473
__tempNumber โ
โข Optional
__tempNumber: number
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:474
__worldFlipped โ
โข Readonly
__worldFlipped: boolean
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:476
animation โ
โข Optional
animation: IObject
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:478
animationOut โ
โข Optional
animationOut: IObject
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:479
__hasAutoLayout โ
โข Optional
__hasAutoLayout: boolean
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:481
__hasMotionPath โ
โข Optional
__hasMotionPath: boolean
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:482
__hasMask โ
โข Optional
__hasMask: boolean
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:484
__hasEraser โ
โข Optional
__hasEraser: boolean
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:485
__hitCanvas โ
โข Optional
__hitCanvas: IHitCanvas
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:486
__flowBounds โ
โข Optional
__flowBounds: IBoundsData
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:488
__widthGrow โ
โข Optional
__widthGrow: number
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:489
__heightGrow โ
โข Optional
__heightGrow: number
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:490
__hasGrow โ
โข Optional
__hasGrow: boolean
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:491
__onlyHitMask โ
โข Readonly
__onlyHitMask: boolean
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:493
__ignoreHitWorld โ
โข Readonly
__ignoreHitWorld: boolean
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:494
__inLazyBounds โ
โข Readonly
__inLazyBounds: boolean
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:495
pathInputed โ
โข Readonly
pathInputed: boolean
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:497
destroyed โ
โข destroyed: boolean
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:499
children โ
โข Optional
children: ILeaf
[]
Overrides โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:665
innerId โ
โข Readonly
innerId: number
Inherited from โ
Defined in โ
leafer/packages/interface/src/event/IEventer.ts:39
__captureMap โ
โข Optional
__captureMap: IEventListenerMap
Inherited from โ
Defined in โ
leafer/packages/interface/src/event/IEventer.ts:40
__bubbleMap โ
โข Optional
__bubbleMap: IEventListenerMap
Inherited from โ
Defined in โ
leafer/packages/interface/src/event/IEventer.ts:41
Methods โ
reset โ
โธ reset(data?
): void
Parameters โ
Name | Type |
---|---|
data? | ILeafInputData |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:501
resetCustom โ
โธ resetCustom(): void
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:502
waitParent โ
โธ waitParent(item
, bind?
): void
Parameters โ
Name | Type |
---|---|
item | IFunction |
bind? | IObject |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:504
waitLeafer โ
โธ waitLeafer(item
, bind?
): void
Parameters โ
Name | Type |
---|---|
item | IFunction |
bind? | IObject |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:505
nextRender โ
โธ nextRender(item
, bind?
, off?
): void
Parameters โ
Name | Type |
---|---|
item | IFunction |
bind? | IObject |
off? | "off" |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:506
removeNextRender โ
โธ removeNextRender(item
): void
Parameters โ
Name | Type |
---|---|
item | IFunction |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:507
__bindLeafer โ
โธ __bindLeafer(leafer
): void
Parameters โ
Name | Type |
---|---|
leafer | ILeaferBase |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:509
set โ
โธ set(data
, isTemp?
): void
Parameters โ
Name | Type |
---|---|
data | IObject |
isTemp? | boolean |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:511
get โ
โธ get(name?
): IValue
| ILeafInputData
Parameters โ
Name | Type |
---|---|
name? | string | string [] | IObject |
Returns โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:512
setAttr โ
โธ setAttr(name
, value
): void
Parameters โ
Name | Type |
---|---|
name | string |
value | any |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:513
getAttr โ
โธ getAttr(name
): any
Parameters โ
Name | Type |
---|---|
name | string |
Returns โ
any
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:514
getComputedAttr โ
โธ getComputedAttr(name
): any
Parameters โ
Name | Type |
---|---|
name | string |
Returns โ
any
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:515
toJSON โ
โธ toJSON(options?
): IObject
Parameters โ
Name | Type |
---|---|
options? | IJSONOptions |
Returns โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:517
toString โ
โธ toString(options?
): string
Parameters โ
Name | Type |
---|---|
options? | IJSONOptions |
Returns โ
string
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:518
toSVG โ
โธ toSVG(): string
Returns โ
string
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:519
__SVG โ
โธ __SVG(data
): void
Parameters โ
Name | Type |
---|---|
data | IObject |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:520
toHTML โ
โธ toHTML(): string
Returns โ
string
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:521
__setAttr โ
โธ __setAttr(attrName
, newValue
, checkFiniteNumber?
): boolean
Parameters โ
Name | Type |
---|---|
attrName | string |
newValue | IValue |
checkFiniteNumber? | boolean |
Returns โ
boolean
Overrides โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:524
__getAttr โ
โธ __getAttr(attrName
): IValue
Parameters โ
Name | Type |
---|---|
attrName | string |
Returns โ
Overrides โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:525
setProxyAttr โ
โธ setProxyAttr(name
, newValue
): void
Parameters โ
Name | Type |
---|---|
name | string |
newValue | IValue |
Returns โ
void
Overrides โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:526
getProxyAttr โ
โธ getProxyAttr(name
): IValue
Parameters โ
Name | Type |
---|---|
name | string |
Returns โ
Overrides โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:527
find โ
โธ find(condition
, options?
): ILeaf
[]
Parameters โ
Name | Type |
---|---|
condition | string | number | IFindMethod |
options? | any |
Returns โ
ILeaf
[]
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:530
findTag โ
โธ findTag(tag
): ILeaf
[]
Parameters โ
Name | Type |
---|---|
tag | string | string [] |
Returns โ
ILeaf
[]
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:531
findOne โ
โธ findOne(condition
, options?
): ILeaf
Parameters โ
Name | Type |
---|---|
condition | string | number | IFindMethod |
options? | any |
Returns โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:532
findId โ
โธ findId(id
): ILeaf
Parameters โ
Name | Type |
---|---|
id | string | number |
Returns โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:533
focus โ
โธ focus(value?
): void
Parameters โ
Name | Type |
---|---|
value? | boolean |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:535
updateState โ
โธ updateState(): void
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:537
updateLayout โ
โธ updateLayout(): void
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:538
forceUpdate โ
โธ forceUpdate(attrName?
): void
Parameters โ
Name | Type |
---|---|
attrName? | string |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:539
forceRender โ
โธ forceRender(_bounds?
): void
Parameters โ
Name | Type |
---|---|
_bounds? | IBoundsData |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:540
__updateWorldMatrix โ
โธ __updateWorldMatrix(): void
Returns โ
void
Overrides โ
ILeafMatrix.__updateWorldMatrix
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:543
__updateLocalMatrix โ
โธ __updateLocalMatrix(): void
Returns โ
void
Overrides โ
ILeafMatrix.__updateLocalMatrix
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:544
__updateWorldBounds โ
โธ __updateWorldBounds(): void
Returns โ
void
Overrides โ
ILeafBounds.__updateWorldBounds
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:547
__updateLocalBounds โ
โธ __updateLocalBounds(): void
Returns โ
void
Overrides โ
ILeafBounds.__updateLocalBounds
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:548
__updateLocalBoxBounds โ
โธ __updateLocalBoxBounds(): void
Returns โ
void
Overrides โ
ILeafBounds.__updateLocalBoxBounds
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:550
__updateLocalStrokeBounds โ
โธ __updateLocalStrokeBounds(): void
Returns โ
void
Overrides โ
ILeafBounds.__updateLocalStrokeBounds
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:551
__updateLocalRenderBounds โ
โธ __updateLocalRenderBounds(): void
Returns โ
void
Overrides โ
ILeafBounds.__updateLocalRenderBounds
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:552
__updateContentBounds โ
โธ __updateContentBounds(): void
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:554
__updateBoxBounds โ
โธ __updateBoxBounds(secondLayout?
): void
Parameters โ
Name | Type |
---|---|
secondLayout? | boolean |
Returns โ
void
Overrides โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:555
__updateStrokeBounds โ
โธ __updateStrokeBounds(): void
Returns โ
void
Overrides โ
ILeafBounds.__updateStrokeBounds
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:556
__updateRenderBounds โ
โธ __updateRenderBounds(): void
Returns โ
void
Overrides โ
ILeafBounds.__updateRenderBounds
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:557
__updateAutoLayout โ
โธ __updateAutoLayout(): void
Returns โ
void
Overrides โ
ILeafBounds.__updateAutoLayout
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:559
__updateFlowLayout โ
โธ __updateFlowLayout(): void
Returns โ
void
Overrides โ
ILeafBounds.__updateFlowLayout
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:560
__updateNaturalSize โ
โธ __updateNaturalSize(): void
Returns โ
void
Overrides โ
ILeafBounds.__updateNaturalSize
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:561
__updateStrokeSpread โ
โธ __updateStrokeSpread(): number
Returns โ
number
Overrides โ
ILeafBounds.__updateStrokeSpread
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:563
__updateRenderSpread โ
โธ __updateRenderSpread(): number
Returns โ
number
Overrides โ
ILeafBounds.__updateRenderSpread
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:564
__onUpdateSize โ
โธ __onUpdateSize(): void
Returns โ
void
Overrides โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:566
__updateEraser โ
โธ __updateEraser(value?
): void
Parameters โ
Name | Type |
---|---|
value? | boolean |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:569
__updateMask โ
โธ __updateMask(value?
): void
Parameters โ
Name | Type |
---|---|
value? | boolean |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:570
__renderMask โ
โธ __renderMask(canvas
, options
): void
Parameters โ
Name | Type |
---|---|
canvas | ILeaferCanvas |
options | IRenderOptions |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:571
__renderEraser โ
โธ __renderEraser(canvas
, options
): void
Parameters โ
Name | Type |
---|---|
canvas | ILeaferCanvas |
options | IRenderOptions |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:572
__getNowWorld โ
โธ __getNowWorld(options
): IMatrixWithBoundsScaleData
Parameters โ
Name | Type |
---|---|
options | IRenderOptions |
Returns โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:575
getTransform โ
โธ getTransform(relative?
): IMatrixData
Parameters โ
Name | Type |
---|---|
relative? | ILeaf | ILocationType |
Returns โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:577
getBounds โ
โธ getBounds(type?
, relative?
): IBoundsData
Parameters โ
Name | Type |
---|---|
type? | IBoundsType |
relative? | ILeaf | ILocationType |
Returns โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:579
getLayoutBounds โ
โธ getLayoutBounds(type?
, relative?
, unscale?
): ILayoutBoundsData
Parameters โ
Name | Type |
---|---|
type? | IBoundsType |
relative? | ILeaf | ILocationType |
unscale? | boolean |
Returns โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:580
getLayoutPoints โ
โธ getLayoutPoints(type?
, relative?
): IPointData
[]
Parameters โ
Name | Type |
---|---|
type? | IBoundsType |
relative? | ILeaf | ILocationType |
Returns โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:581
getWorldBounds โ
โธ getWorldBounds(inner
, relative?
, change?
): IBoundsData
Parameters โ
Name | Type |
---|---|
inner | IBoundsData |
relative? | ILeaf |
change? | boolean |
Returns โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:583
worldToLocal โ
โธ worldToLocal(world
, to?
, distance?
, relative?
): void
Parameters โ
Name | Type |
---|---|
world | IPointData |
to? | IPointData |
distance? | boolean |
relative? | ILeaf |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:585
localToWorld โ
โธ localToWorld(local
, to?
, distance?
, relative?
): void
Parameters โ
Name | Type |
---|---|
local | IPointData |
to? | IPointData |
distance? | boolean |
relative? | ILeaf |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:586
worldToInner โ
โธ worldToInner(world
, to?
, distance?
, relative?
): void
Parameters โ
Name | Type |
---|---|
world | IPointData |
to? | IPointData |
distance? | boolean |
relative? | ILeaf |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:587
innerToWorld โ
โธ innerToWorld(inner
, to?
, distance?
, relative?
): void
Parameters โ
Name | Type |
---|---|
inner | IPointData |
to? | IPointData |
distance? | boolean |
relative? | ILeaf |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:588
getBoxPoint โ
โธ getBoxPoint(world
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
world | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:590
getBoxPointByInner โ
โธ getBoxPointByInner(inner
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
inner | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:591
getInnerPoint โ
โธ getInnerPoint(world
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
world | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:592
getInnerPointByBox โ
โธ getInnerPointByBox(box
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
box | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:593
getInnerPointByLocal โ
โธ getInnerPointByLocal(local
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
local | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:594
getLocalPoint โ
โธ getLocalPoint(world
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
world | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:595
getLocalPointByInner โ
โธ getLocalPointByInner(inner
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
inner | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:596
getPagePoint โ
โธ getPagePoint(world
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
world | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:597
getWorldPoint โ
โธ getWorldPoint(inner
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
inner | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:598
getWorldPointByBox โ
โธ getWorldPointByBox(box
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
box | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:599
getWorldPointByLocal โ
โธ getWorldPointByLocal(local
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
local | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:600
getWorldPointByPage โ
โธ getWorldPointByPage(page
, relative?
, distance?
, change?
): IPointData
Parameters โ
Name | Type |
---|---|
page | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:601
setTransform โ
โธ setTransform(transform?
, resize?
): void
Parameters โ
Name | Type |
---|---|
transform? | IMatrixData |
resize? | boolean |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:604
transform โ
โธ transform(transform?
, resize?
): void
Parameters โ
Name | Type |
---|---|
transform? | IMatrixData |
resize? | boolean |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:605
move โ
โธ move(x
, y?
): void
Parameters โ
Name | Type |
---|---|
x | number | IPointData |
y? | number |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:606
moveInner โ
โธ moveInner(x
, y?
): void
Parameters โ
Name | Type |
---|---|
x | number | IPointData |
y? | number |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:608
scaleOf โ
โธ scaleOf(origin
, scaleX
, scaleY?
, resize?
): void
Parameters โ
Name | Type |
---|---|
origin | IPointData | IDirection |
scaleX | number |
scaleY? | number |
resize? | boolean |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:609
rotateOf โ
โธ rotateOf(origin
, rotation
): void
Parameters โ
Name | Type |
---|---|
origin | IPointData | IDirection |
rotation | number |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:610
skewOf โ
โธ skewOf(origin
, skewX
, skewY?
, resize?
): void
Parameters โ
Name | Type |
---|---|
origin | IPointData | IDirection |
skewX | number |
skewY? | number |
resize? | boolean |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:611
transformWorld โ
โธ transformWorld(worldTransform?
, resize?
): void
Parameters โ
Name | Type |
---|---|
worldTransform? | IMatrixData |
resize? | boolean |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:613
moveWorld โ
โธ moveWorld(x
, y?
): void
Parameters โ
Name | Type |
---|---|
x | number | IPointData |
y? | number |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:614
scaleOfWorld โ
โธ scaleOfWorld(worldOrigin
, scaleX
, scaleY?
, resize?
): void
Parameters โ
Name | Type |
---|---|
worldOrigin | IPointData |
scaleX | number |
scaleY? | number |
resize? | boolean |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:615
rotateOfWorld โ
โธ rotateOfWorld(worldOrigin
, rotation
): void
Parameters โ
Name | Type |
---|---|
worldOrigin | IPointData |
rotation | number |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:616
skewOfWorld โ
โธ skewOfWorld(worldOrigin
, skewX
, skewY?
, resize?
): void
Parameters โ
Name | Type |
---|---|
worldOrigin | IPointData |
skewX | number |
skewY? | number |
resize? | boolean |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:617
flip โ
โธ flip(axis
): void
Parameters โ
Name | Type |
---|---|
axis | IAxis |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:619
scaleResize โ
โธ scaleResize(scaleX
, scaleY
, noResize?
): void
Parameters โ
Name | Type |
---|---|
scaleX | number |
scaleY | number |
noResize? | boolean |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:621
__scaleResize โ
โธ __scaleResize(scaleX
, scaleY
): void
Parameters โ
Name | Type |
---|---|
scaleX | number |
scaleY | number |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:622
resizeWidth โ
โธ resizeWidth(width
): void
Parameters โ
Name | Type |
---|---|
width | number |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:624
resizeHeight โ
โธ resizeHeight(height
): void
Parameters โ
Name | Type |
---|---|
height | number |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:625
__hitWorld โ
โธ __hitWorld(point
): boolean
Parameters โ
Name | Type |
---|---|
point | IRadiusPointData |
Returns โ
boolean
Overrides โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:628
__hit โ
โธ __hit(local
): boolean
Parameters โ
Name | Type |
---|---|
local | IRadiusPointData |
Returns โ
boolean
Overrides โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:629
__hitFill โ
โธ __hitFill(inner
): boolean
Parameters โ
Name | Type |
---|---|
inner | IRadiusPointData |
Returns โ
boolean
Overrides โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:630
__hitStroke โ
โธ __hitStroke(inner
, strokeWidth
): boolean
Parameters โ
Name | Type |
---|---|
inner | IRadiusPointData |
strokeWidth | number |
Returns โ
boolean
Overrides โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:631
__hitPixel โ
โธ __hitPixel(inner
): boolean
Parameters โ
Name | Type |
---|---|
inner | IRadiusPointData |
Returns โ
boolean
Overrides โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:632
__drawHitPath โ
โธ __drawHitPath(canvas
): void
Parameters โ
Name | Type |
---|---|
canvas | ILeaferCanvas |
Returns โ
void
Overrides โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:633
__updateHitCanvas โ
โธ __updateHitCanvas(): void
Returns โ
void
Overrides โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:634
__render โ
โธ __render(canvas
, options
): void
Parameters โ
Name | Type |
---|---|
canvas | ILeaferCanvas |
options | IRenderOptions |
Returns โ
void
Overrides โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:637
__drawFast โ
โธ __drawFast(canvas
, options
): void
Parameters โ
Name | Type |
---|---|
canvas | ILeaferCanvas |
options | IRenderOptions |
Returns โ
void
Overrides โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:638
__draw โ
โธ __draw(canvas
, options
): void
Parameters โ
Name | Type |
---|---|
canvas | ILeaferCanvas |
options | IRenderOptions |
Returns โ
void
Overrides โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:639
__clip โ
โธ __clip(canvas
, options
): void
Parameters โ
Name | Type |
---|---|
canvas | ILeaferCanvas |
options | IRenderOptions |
Returns โ
void
Overrides โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:641
__renderShape โ
โธ __renderShape(canvas
, options
, ignoreFill?
, ignoreStroke?
): void
Parameters โ
Name | Type |
---|---|
canvas | ILeaferCanvas |
options | IRenderOptions |
ignoreFill? | boolean |
ignoreStroke? | boolean |
Returns โ
void
Overrides โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:642
__updateWorldOpacity โ
โธ __updateWorldOpacity(): void
Returns โ
void
Overrides โ
ILeafRender.__updateWorldOpacity
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:644
__updateChange โ
โธ __updateChange(): void
Returns โ
void
Overrides โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:645
__drawPath โ
โธ __drawPath(canvas
): void
Parameters โ
Name | Type |
---|---|
canvas | ILeaferCanvas |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:648
__drawRenderPath โ
โธ __drawRenderPath(canvas
): void
Parameters โ
Name | Type |
---|---|
canvas | ILeaferCanvas |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:649
__updatePath โ
โธ __updatePath(): void
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:650
__updateRenderPath โ
โธ __updateRenderPath(): void
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:651
getMotionPathData โ
โธ getMotionPathData(): IMotionPathData
Returns โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:654
getMotionPoint โ
โธ getMotionPoint(motionDistance
): IRotationPointData
Parameters โ
Name | Type |
---|---|
motionDistance | number | IUnitData |
Returns โ
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:655
getMotionTotal โ
โธ getMotionTotal(): number
Returns โ
number
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:656
__updateMotionPath โ
โธ __updateMotionPath(): void
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:658
__runAnimation โ
โธ __runAnimation(type
, complete?
): void
Parameters โ
Name | Type |
---|---|
type | "in" | "out" |
complete? | IFunction |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:660
__emitLifeEvent โ
โธ __emitLifeEvent(type
): void
Parameters โ
Name | Type |
---|---|
type | string |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:662
__updateSortChildren โ
โธ __updateSortChildren(): void
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:667
add โ
โธ add(child
, index?
): void
Parameters โ
Name | Type |
---|---|
child | ILeaf | ILeafInputData | ILeaf [] | ILeafInputData [] |
index? | number |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:668
remove โ
โธ remove(child?
, destroy?
): void
Parameters โ
Name | Type |
---|---|
child? | string | number | ILeaf | IFindMethod |
destroy? | boolean |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:669
dropTo โ
โธ dropTo(parent
, index?
, resize?
): void
Parameters โ
Name | Type |
---|---|
parent | ILeaf |
index? | number |
resize? | boolean |
Returns โ
void
Defined in โ
leafer/packages/interface/src/display/ILeaf.ts:670
__realSetAttr โ
โธ __realSetAttr(name
, newValue
): void
Parameters โ
Name | Type |
---|---|
name | string |
newValue | IValue |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/module/ILeafDataProxy.ts:9
destroyEventer โ
โธ destroyEventer(): void
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/interface/src/display/module/ILeafEventer.ts:18
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/interface/src/event/IEventer.ts:45
off โ
โธ off(type?
, listener?
, options?
): void
Parameters โ
Name | Type |
---|---|
type? | string | string [] |
listener? | IFunction |
options? | IEventOption |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/interface/src/event/IEventer.ts:46
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/interface/src/event/IEventer.ts:47
off_ โ
โธ off_(id
): void
Parameters โ
Name | Type |
---|---|
id | IEventListenerId | IEventListenerId [] |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/interface/src/event/IEventer.ts:48
once โ
โธ once(type
, listener
): void
Parameters โ
Name | Type |
---|---|
type | string | string [] |
listener | IFunction |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/interface/src/event/IEventer.ts:49
emit โ
โธ emit(type
, event?
, capture?
): void
Parameters โ
Name | Type |
---|---|
type | string |
event? | IObject | IEvent |
capture? | boolean |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/interface/src/event/IEventer.ts:50
emitEvent โ
โธ emitEvent(event?
, capture?
): void
Parameters โ
Name | Type |
---|---|
event? | IEvent |
capture? | boolean |
Returns โ
void
Inherited from โ
Defined in โ
leafer/packages/interface/src/event/IEventer.ts:51
hasEvent โ
โธ hasEvent(type
, capture?
): boolean
Parameters โ
Name | Type |
---|---|
type | string |
capture? | boolean |
Returns โ
boolean
Inherited from โ
Defined in โ
leafer/packages/interface/src/event/IEventer.ts:52
destroy โ
โธ destroy(): void
Returns โ
void