įŽäŊä¸æ
Class: Path â
Hierarchy â
âŗ
Path
Implements â
Table of contents â
Constructors â
Properties â
- innerId
- syncEventer
- lockNormalStyle
- __layout
- __world
- __local
- __nowWorld
- __cameraWorld
- __worldOpacity
- __level
- __tempNumber
- __hasAutoLayout
- __hasMask
- __hasEraser
- __hitCanvas
- __captureMap
- __bubbleMap
- noBounds
- destroyed
- __
- strokeAlign
- proxyData
- __proxyData
- leafer
- parent
- zoomLayer
- children
- id
- name
- className
- blendMode
- opacity
- visible
- locked
- zIndex
- mask
- eraser
- x
- y
- width
- height
- scaleX
- scaleY
- rotation
- skewX
- skewY
- 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
- cursor
- fill
- stroke
- strokeWidth
- strokeWidthFixed
- strokeCap
- strokeJoin
- dashPattern
- dashOffset
- miterLimit
- startArrow
- endArrow
- cornerRadius
- cornerSmoothing
- shadow
- innerShadow
- blur
- backgroundBlur
- grayscale
- animation
- animationOut
- transition
- transitionOut
- motionPath
- motion
- motionRotation
- states
- state
- selected
- disabled
- normalStyle
- hoverStyle
- pressStyle
- focusStyle
- selectedStyle
- disabledStyle
- button
- data
- __animate
Accessors â
- 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
- __tag
- app
- isFrame
- scale
- pen
- editConfig
- editOuter
- editInner
Methods â
- resetCustom
- waitParent
- waitLeafer
- nextRender
- removeNextRender
- __bindLeafer
- setAttr
- getAttr
- getComputedAttr
- toJSON
- toString
- toSVG
- __SVG
- toHTML
- __setAttr
- __getAttr
- setProxyAttr
- getProxyAttr
- focus
- updateState
- updateLayout
- forceUpdate
- forceRender
- __updateWorldMatrix
- __updateLocalMatrix
- __updateWorldBounds
- __updateLocalBounds
- __updateLocalBoxBounds
- __updateLocalStrokeBounds
- __updateLocalRenderBounds
- __updateBoxBounds
- __updateContentBounds
- __updateStrokeBounds
- __updateRenderBounds
- __updateAutoLayout
- __updateFlowLayout
- __updateNaturalSize
- __updateStrokeSpread
- __updateRenderSpread
- __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
- __updatePath
- getMotionPathData
- getMotionPoint
- getMotionTotal
- __updateMotionPath
- __runAnimation
- __updateSortChildren
- add
- remove
- dropTo
- on
- off
- on_
- off_
- once
- emit
- emitEvent
- hasEvent
- changeAttr
- addAttr
- __emitLifeEvent
- reset
- set
- get
- createProxyData
- find
- findTag
- findOne
- findId
- getPath
- getPathString
- load
- __onUpdateSize
- __updateRenderPath
- __drawRenderPath
- __drawPath
- __drawPathByData
- __drawPathByBox
- animate
- killAnimate
- export
- clone
- one
- registerUI
- registerData
- setEditConfig
- setEditOuter
- setEditInner
- destroy
Constructors â
constructor â
âĸ new Path(data?
): Path
Parameters â
Name | Type |
---|---|
data? | IPathInputData |
Returns â
Overrides â
Defined in â
ui/packages/display/src/Path.ts:20
Properties â
innerId â
âĸ Readonly
innerId: number
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:30
syncEventer â
âĸ Optional
syncEventer: ILeaf
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:46
lockNormalStyle â
âĸ Optional
lockNormalStyle: boolean
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:47
__layout â
âĸ __layout: ILeafLayout
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:50
__world â
âĸ __world: IMatrixWithBoundsScaleData
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:52
__local â
âĸ Optional
__local: IMatrixWithBoundsData
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:53
__nowWorld â
âĸ Optional
__nowWorld: IMatrixWithBoundsScaleData
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:55
__cameraWorld â
âĸ Optional
__cameraWorld: IMatrixWithBoundsScaleData
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:56
__worldOpacity â
âĸ __worldOpacity: number
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:61
__level â
âĸ __level: number
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:77
__tempNumber â
âĸ __tempNumber: number
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:78
__hasAutoLayout â
âĸ Optional
__hasAutoLayout: boolean
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:82
__hasMask â
âĸ Optional
__hasMask: boolean
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:83
__hasEraser â
âĸ Optional
__hasEraser: boolean
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:84
__hitCanvas â
âĸ Optional
__hitCanvas: IHitCanvas
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:85
__captureMap â
âĸ Optional
__captureMap: IEventListenerMap
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:96
__bubbleMap â
âĸ Optional
__bubbleMap: IEventListenerMap
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:97
noBounds â
âĸ Optional
noBounds: boolean
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:103
destroyed â
âĸ destroyed: boolean
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:105
__ â
âĸ __: IPathData
Implementation of â
Overrides â
Defined in â
ui/packages/display/src/Path.ts:15
strokeAlign â
âĸ Optional
strokeAlign: IStrokeAlign
Implementation of â
Overrides â
Defined in â
ui/packages/display/src/Path.ts:18
proxyData â
âĸ Optional
proxyData: IUIInputData
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:21
__proxyData â
âĸ Optional
__proxyData: IUIInputData
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:22
leafer â
âĸ Optional
leafer: ILeafer
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:26
parent â
âĸ Optional
parent: IGroup
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:27
zoomLayer â
âĸ zoomLayer: IGroup
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:30
children â
âĸ Optional
children: IUI
[]
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:34
id â
âĸ Optional
id: string
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:40
name â
âĸ Optional
name: string
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:43
className â
âĸ Optional
className: string
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:46
blendMode â
âĸ Optional
blendMode: IBlendMode
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:51
opacity â
âĸ Optional
opacity: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:54
visible â
âĸ Optional
visible: boolean
| 0
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:57
locked â
âĸ Optional
locked: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:61
zIndex â
âĸ Optional
zIndex: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:65
mask â
âĸ Optional
mask: boolean
| IMaskType
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:69
eraser â
âĸ Optional
eraser: boolean
| IEraserType
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:72
x â
âĸ Optional
x: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:77
y â
âĸ Optional
y: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:80
width â
âĸ Optional
width: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:84
height â
âĸ Optional
height: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:87
scaleX â
âĸ Optional
scaleX: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:91
scaleY â
âĸ Optional
scaleY: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:94
rotation â
âĸ Optional
rotation: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:98
skewX â
âĸ Optional
skewX: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:102
skewY â
âĸ Optional
skewY: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:105
offsetX â
âĸ Optional
offsetX: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:110
offsetY â
âĸ Optional
offsetY: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:113
scrollX â
âĸ Optional
scrollX: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:117
scrollY â
âĸ Optional
scrollY: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:120
origin â
âĸ Optional
origin: IUnitPointData
| IDirection
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:125
around â
âĸ Optional
around: IUnitPointData
| IDirection
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:128
lazy â
âĸ Optional
lazy: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:133
pixelRatio â
âĸ Optional
pixelRatio: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:136
path â
âĸ Optional
path: string
| IPathCommandData
| IPathCommandObject
[]
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:141
windingRule â
âĸ Optional
windingRule: IWindingRule
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:144
closed â
âĸ Optional
closed: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:147
flow â
âĸ Optional
flow: IFlowType
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:151
padding â
âĸ Optional
padding: IFourNumber
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:154
gap â
âĸ Optional
gap: IGap
| IPointGap
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:156
flowAlign â
âĸ Optional
flowAlign: IFlowAxisAlign
| IFlowAlign
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:158
flowWrap â
âĸ Optional
flowWrap: IFlowWrap
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:160
itemBox â
âĸ Optional
itemBox: IFlowBoxType
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:163
inFlow â
âĸ Optional
inFlow: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:165
autoWidth â
âĸ Optional
autoWidth: IAutoSize
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:168
autoHeight â
âĸ Optional
autoHeight: IAutoSize
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:170
lockRatio â
âĸ Optional
lockRatio: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:172
autoBox â
âĸ Optional
autoBox: IAutoBoxData
| IConstraint
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:174
widthRange â
âĸ Optional
widthRange: IRangeSize
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:176
heightRange â
âĸ Optional
heightRange: IRangeSize
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:178
draggable â
âĸ Optional
draggable: boolean
| IAxis
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:183
dragBounds â
âĸ Optional
dragBounds: "parent"
| IBoundsData
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:186
editable â
âĸ Optional
editable: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:190
hittable â
âĸ Optional
hittable: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:195
hitFill â
âĸ Optional
hitFill: IHitType
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:198
hitStroke â
âĸ Optional
hitStroke: IHitType
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:201
hitBox â
âĸ Optional
hitBox: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:204
hitChildren â
âĸ Optional
hitChildren: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:207
hitSelf â
âĸ Optional
hitSelf: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:210
hitRadius â
âĸ Optional
hitRadius: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:213
cursor â
âĸ Optional
cursor: ICursorType
| ICursorType
[]
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:216
fill â
âĸ Optional
fill: IFill
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:224
stroke â
âĸ Optional
stroke: IStroke
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:229
strokeWidth â
âĸ Optional
strokeWidth: string
| IFourNumber
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:235
strokeWidthFixed â
âĸ Optional
strokeWidthFixed: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:238
strokeCap â
âĸ Optional
strokeCap: IStrokeCap
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:241
strokeJoin â
âĸ Optional
strokeJoin: IStrokeJoin
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:244
dashPattern â
âĸ Optional
dashPattern: string
| number
[]
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:247
dashOffset â
âĸ Optional
dashOffset: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:250
miterLimit â
âĸ Optional
miterLimit: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:253
startArrow â
âĸ Optional
startArrow: IArrowType
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:258
endArrow â
âĸ Optional
endArrow: IArrowType
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:260
cornerRadius â
âĸ Optional
cornerRadius: string
| IFourNumber
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:265
cornerSmoothing â
âĸ Optional
cornerSmoothing: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:268
shadow â
âĸ Optional
shadow: string
| IShadowEffect
| IShadowEffect
[]
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:273
innerShadow â
âĸ Optional
innerShadow: string
| IShadowEffect
| IShadowEffect
[]
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:276
blur â
âĸ Optional
blur: number
| IBlurEffect
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:279
backgroundBlur â
âĸ Optional
backgroundBlur: number
| IBlurEffect
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:282
grayscale â
âĸ Optional
grayscale: number
| IGrayscaleEffect
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:285
animation â
âĸ Optional
animation: IAnimation
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:290
animationOut â
âĸ Optional
animationOut: IAnimation
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:292
transition â
âĸ Optional
transition: ITransition
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:295
transitionOut â
âĸ Optional
transitionOut: ITransition
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:297
motionPath â
âĸ Optional
motionPath: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:302
motion â
âĸ Optional
motion: number
| IUnitData
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:304
motionRotation â
âĸ Optional
motionRotation: number
| boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:306
states â
âĸ Optional
states: IStates
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:311
state â
âĸ Optional
state: string
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:313
selected â
âĸ Optional
selected: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:316
disabled â
âĸ Optional
disabled: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:318
normalStyle â
âĸ Optional
normalStyle: IUIInputData
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:321
hoverStyle â
âĸ Optional
hoverStyle: IUIInputData
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:323
pressStyle â
âĸ Optional
pressStyle: IUIInputData
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:325
focusStyle â
âĸ Optional
focusStyle: IUIInputData
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:327
selectedStyle â
âĸ Optional
selectedStyle: IUIInputData
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:329
disabledStyle â
âĸ Optional
disabledStyle: IUIInputData
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:331
button â
âĸ Optional
button: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:334
data â
âĸ data: IObject
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:339
__animate â
âĸ Optional
__animate: IAnimate
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:345
Accessors â
tag â
âĸ get
tag(): string
Returns â
string
Implementation of â
Inherited from â
UI.tag
Defined in â
leafer/packages/display/src/Leaf.ts:25
âĸ set
tag(_value
): void
Parameters â
Name | Type |
---|---|
_value | string |
Returns â
void
Implementation of â
Inherited from â
UI.tag
Defined in â
leafer/packages/display/src/Leaf.ts:26
innerName â
âĸ get
innerName(): string
Returns â
string
Implementation of â
Inherited from â
UI.innerName
Defined in â
leafer/packages/display/src/Leaf.ts:31
__DataProcessor â
âĸ get
__DataProcessor(): typeof LeafData
Returns â
typeof LeafData
Implementation of â
Inherited from â
UI.__DataProcessor
Defined in â
leafer/packages/display/src/Leaf.ts:33
__LayoutProcessor â
âĸ get
__LayoutProcessor(): typeof LeafLayout
Returns â
typeof LeafLayout
Implementation of â
Inherited from â
UI.__LayoutProcessor
Defined in â
leafer/packages/display/src/Leaf.ts:34
leaferIsCreated â
âĸ get
leaferIsCreated(): boolean
Returns â
boolean
Implementation of â
Inherited from â
UI.leaferIsCreated
Defined in â
leafer/packages/display/src/Leaf.ts:39
leaferIsReady â
âĸ get
leaferIsReady(): boolean
Returns â
boolean
Implementation of â
Inherited from â
UI.leaferIsReady
Defined in â
leafer/packages/display/src/Leaf.ts:40
isLeafer â
âĸ get
isLeafer(): boolean
Returns â
boolean
Implementation of â
Inherited from â
UI.isLeafer
Defined in â
leafer/packages/display/src/Leaf.ts:42
isBranch â
âĸ get
isBranch(): boolean
Returns â
boolean
Implementation of â
Inherited from â
UI.isBranch
Defined in â
leafer/packages/display/src/Leaf.ts:43
isBranchLeaf â
âĸ get
isBranchLeaf(): boolean
Returns â
boolean
Implementation of â
Inherited from â
UI.isBranchLeaf
Defined in â
leafer/packages/display/src/Leaf.ts:44
__localMatrix â
âĸ get
__localMatrix(): IMatrixData
Returns â
Implementation of â
Inherited from â
UI.__localMatrix
Defined in â
leafer/packages/display/src/Leaf.ts:58
__localBoxBounds â
âĸ get
__localBoxBounds(): IBoundsData
Returns â
Implementation of â
Inherited from â
UI.__localBoxBounds
Defined in â
leafer/packages/display/src/Leaf.ts:59
worldTransform â
âĸ get
worldTransform(): IMatrixWithScaleData
Returns â
Implementation of â
Inherited from â
UI.worldTransform
Defined in â
leafer/packages/display/src/Leaf.ts:64
localTransform â
âĸ get
localTransform(): IMatrixData
Returns â
Implementation of â
Inherited from â
UI.localTransform
Defined in â
leafer/packages/display/src/Leaf.ts:65
boxBounds â
âĸ get
boxBounds(): IBoundsData
Returns â
Implementation of â
Inherited from â
UI.boxBounds
Defined in â
leafer/packages/display/src/Leaf.ts:68
renderBounds â
âĸ get
renderBounds(): IBoundsData
Returns â
Implementation of â
Inherited from â
UI.renderBounds
Defined in â
leafer/packages/display/src/Leaf.ts:69
worldBoxBounds â
âĸ get
worldBoxBounds(): IBoundsData
Returns â
Implementation of â
Inherited from â
UI.worldBoxBounds
Defined in â
leafer/packages/display/src/Leaf.ts:70
worldStrokeBounds â
âĸ get
worldStrokeBounds(): IBoundsData
Returns â
Implementation of â
Inherited from â
UI.worldStrokeBounds
Defined in â
leafer/packages/display/src/Leaf.ts:71
worldRenderBounds â
âĸ get
worldRenderBounds(): IBoundsData
Returns â
Implementation of â
Inherited from â
UI.worldRenderBounds
Defined in â
leafer/packages/display/src/Leaf.ts:72
worldOpacity â
âĸ get
worldOpacity(): number
Returns â
number
Implementation of â
Inherited from â
UI.worldOpacity
Defined in â
leafer/packages/display/src/Leaf.ts:75
__worldFlipped â
âĸ get
__worldFlipped(): boolean
Returns â
boolean
Implementation of â
Inherited from â
UI.__worldFlipped
Defined in â
leafer/packages/display/src/Leaf.ts:80
__onlyHitMask â
âĸ get
__onlyHitMask(): boolean
Returns â
boolean
Implementation of â
Inherited from â
UI.__onlyHitMask
Defined in â
leafer/packages/display/src/Leaf.ts:87
__ignoreHitWorld â
âĸ get
__ignoreHitWorld(): boolean
Returns â
boolean
Implementation of â
Inherited from â
UI.__ignoreHitWorld
Defined in â
leafer/packages/display/src/Leaf.ts:88
__inLazyBounds â
âĸ get
__inLazyBounds(): boolean
Returns â
boolean
Implementation of â
Inherited from â
UI.__inLazyBounds
Defined in â
leafer/packages/display/src/Leaf.ts:89
pathInputed â
âĸ get
pathInputed(): boolean
Returns â
boolean
Implementation of â
Inherited from â
UI.pathInputed
Defined in â
leafer/packages/display/src/Leaf.ts:91
event â
âĸ set
event(map
): void
Parameters â
Name | Type |
---|---|
map | IEventMap |
Returns â
void
Implementation of â
Inherited from â
UI.event
Defined in â
leafer/packages/display/src/Leaf.ts:94
__tag â
âĸ get
__tag(): string
Returns â
string
Implementation of â
Overrides â
UI.__tag
Defined in â
ui/packages/display/src/Path.ts:12
app â
âĸ get
app(): ILeafer
Returns â
Implementation of â
Inherited from â
UI.app
Defined in â
ui/packages/display/src/UI.ts:24
isFrame â
âĸ get
isFrame(): boolean
Returns â
boolean
Implementation of â
Inherited from â
UI.isFrame
Defined in â
ui/packages/display/src/UI.ts:32
scale â
âĸ get
scale(): number
| IPointData
Returns â
number
| IPointData
Implementation of â
Inherited from â
UI.scale
Defined in â
ui/packages/display/src/UI.ts:343
âĸ set
scale(value
): void
Parameters â
Name | Type |
---|---|
value | number | IPointData |
Returns â
void
Implementation of â
Inherited from â
UI.scale
Defined in â
ui/packages/display/src/UI.ts:342
pen â
âĸ get
pen(): IPathCreator
Returns â
Implementation of â
Inherited from â
UI.pen
Defined in â
ui/packages/display/src/UI.ts:347
editConfig â
âĸ get
editConfig(): IEditorConfig
Returns â
Implementation of â
Inherited from â
UI.editConfig
Defined in â
ui/packages/display/src/UI.ts:357
editOuter â
âĸ get
editOuter(): string
Returns â
string
Implementation of â
Inherited from â
UI.editOuter
Defined in â
ui/packages/display/src/UI.ts:359
editInner â
âĸ get
editInner(): string
Returns â
string
Implementation of â
Inherited from â
UI.editInner
Defined in â
ui/packages/display/src/UI.ts:361
Methods â
resetCustom â
⸠resetCustom(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:133
waitParent â
⸠waitParent(item
, bind?
): void
Parameters â
Name | Type |
---|---|
item | IFunction |
bind? | IObject |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:139
waitLeafer â
⸠waitLeafer(item
, bind?
): void
Parameters â
Name | Type |
---|---|
item | IFunction |
bind? | IObject |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:144
nextRender â
⸠nextRender(item
, bind?
, off?
): void
Parameters â
Name | Type |
---|---|
item | IFunction |
bind? | IObject |
off? | "off" |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:149
removeNextRender â
⸠removeNextRender(item
): void
Parameters â
Name | Type |
---|---|
item | IFunction |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:153
__bindLeafer â
⸠__bindLeafer(leafer
): void
Parameters â
Name | Type |
---|---|
leafer | ILeaferBase |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:157
setAttr â
⸠setAttr(name
, value
): void
Parameters â
Name | Type |
---|---|
name | string |
value | any |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:186
getAttr â
⸠getAttr(name
): any
Parameters â
Name | Type |
---|---|
name | string |
Returns â
any
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:187
getComputedAttr â
⸠getComputedAttr(name
): any
Parameters â
Name | Type |
---|---|
name | string |
Returns â
any
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:189
toJSON â
⸠toJSON(options?
): IObject
Parameters â
Name | Type |
---|---|
options? | IJSONOptions |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:191
toString â
⸠toString(options?
): string
Parameters â
Name | Type |
---|---|
options? | IJSONOptions |
Returns â
string
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:196
toSVG â
⸠toSVG(): string
Returns â
string
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:200
__SVG â
⸠__SVG(_data
): void
Parameters â
Name | Type |
---|---|
_data | IObject |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:202
toHTML â
⸠toHTML(): string
Returns â
string
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:204
__setAttr â
⸠__setAttr(_attrName
, _newValue
): boolean
Parameters â
Name | Type |
---|---|
_attrName | string |
_newValue | IValue |
Returns â
boolean
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:208
__getAttr â
⸠__getAttr(_attrName
): IValue
Parameters â
Name | Type |
---|---|
_attrName | string |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:210
setProxyAttr â
⸠setProxyAttr(_attrName
, _newValue
): void
Parameters â
Name | Type |
---|---|
_attrName | string |
_newValue | IValue |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:212
getProxyAttr â
⸠getProxyAttr(_attrName
): IValue
Parameters â
Name | Type |
---|---|
_attrName | string |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:214
focus â
⸠focus(_value?
): void
Parameters â
Name | Type |
---|---|
_value? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:234
updateState â
⸠updateState(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:236
updateLayout â
⸠updateLayout(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:241
forceUpdate â
⸠forceUpdate(attrName?
): void
Parameters â
Name | Type |
---|---|
attrName? | string |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:245
forceRender â
⸠forceRender(_bounds?
): void
Parameters â
Name | Type |
---|---|
_bounds? | IBoundsData |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:253
__updateWorldMatrix â
⸠__updateWorldMatrix(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:259
__updateLocalMatrix â
⸠__updateLocalMatrix(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:261
__updateWorldBounds â
⸠__updateWorldBounds(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:267
__updateLocalBounds â
⸠__updateLocalBounds(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:269
__updateLocalBoxBounds â
⸠__updateLocalBoxBounds(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:272
__updateLocalStrokeBounds â
⸠__updateLocalStrokeBounds(): void
Returns â
void
Implementation of â
IPath.__updateLocalStrokeBounds
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:274
__updateLocalRenderBounds â
⸠__updateLocalRenderBounds(): void
Returns â
void
Implementation of â
IPath.__updateLocalRenderBounds
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:276
__updateBoxBounds â
⸠__updateBoxBounds(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:280
__updateContentBounds â
⸠__updateContentBounds(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:282
__updateStrokeBounds â
⸠__updateStrokeBounds(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:284
__updateRenderBounds â
⸠__updateRenderBounds(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:286
__updateAutoLayout â
⸠__updateAutoLayout(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:289
__updateFlowLayout â
⸠__updateFlowLayout(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:291
__updateNaturalSize â
⸠__updateNaturalSize(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:293
__updateStrokeSpread â
⸠__updateStrokeSpread(): number
Returns â
number
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:296
__updateRenderSpread â
⸠__updateRenderSpread(): number
Returns â
number
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:298
__updateEraser â
⸠__updateEraser(value?
): void
Parameters â
Name | Type |
---|---|
value? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:305
__renderEraser â
⸠__renderEraser(canvas
, options
): void
Parameters â
Name | Type |
---|---|
canvas | ILeaferCanvas |
options | IRenderOptions |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:309
__updateMask â
⸠__updateMask(value?
): void
Parameters â
Name | Type |
---|---|
value? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:317
__renderMask â
⸠__renderMask(_canvas
, _options
): void
Parameters â
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:323
__getNowWorld â
⸠__getNowWorld(options
): IMatrixWithBoundsScaleData
Parameters â
Name | Type |
---|---|
options | IRenderOptions |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:331
getTransform â
⸠getTransform(relative?
): IMatrixData
Parameters â
Name | Type |
---|---|
relative? | ILeaf | ILocationType |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:343
getBounds â
⸠getBounds(type?
, relative?
): IBoundsData
Parameters â
Name | Type |
---|---|
type? | IBoundsType |
relative? | ILeaf | ILocationType |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:348
getLayoutBounds â
⸠getLayoutBounds(type?
, relative?
, unscale?
): ILayoutBoundsData
Parameters â
Name | Type |
---|---|
type? | IBoundsType |
relative? | ILeaf | ILocationType |
unscale? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:352
getLayoutPoints â
⸠getLayoutPoints(type?
, relative?
): IPointData
[]
Parameters â
Name | Type |
---|---|
type? | IBoundsType |
relative? | ILeaf | ILocationType |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:356
getWorldBounds â
⸠getWorldBounds(inner
, relative?
, change?
): IBoundsData
Parameters â
Name | Type |
---|---|
inner | IBoundsData |
relative? | ILeaf |
change? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:361
worldToLocal â
⸠worldToLocal(world
, to?
, distance?
, relative?
): void
Parameters â
Name | Type |
---|---|
world | IPointData |
to? | IPointData |
distance? | boolean |
relative? | ILeaf |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:369
localToWorld â
⸠localToWorld(local
, to?
, distance?
, relative?
): void
Parameters â
Name | Type |
---|---|
local | IPointData |
to? | IPointData |
distance? | boolean |
relative? | ILeaf |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:377
worldToInner â
⸠worldToInner(world
, to?
, distance?
, relative?
): void
Parameters â
Name | Type |
---|---|
world | IPointData |
to? | IPointData |
distance? | boolean |
relative? | ILeaf |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:385
innerToWorld â
⸠innerToWorld(inner
, to?
, distance?
, relative?
): void
Parameters â
Name | Type |
---|---|
inner | IPointData |
to? | IPointData |
distance? | boolean |
relative? | ILeaf |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:393
getBoxPoint â
⸠getBoxPoint(world
, relative?
, distance?
, change?
): IPointData
Parameters â
Name | Type |
---|---|
world | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:400
getBoxPointByInner â
⸠getBoxPointByInner(inner
, _relative?
, _distance?
, change?
): IPointData
Parameters â
Name | Type |
---|---|
inner | IPointData |
_relative? | ILeaf |
_distance? | boolean |
change? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:404
getInnerPoint â
⸠getInnerPoint(world
, relative?
, distance?
, change?
): IPointData
Parameters â
Name | Type |
---|---|
world | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:410
getInnerPointByBox â
⸠getInnerPointByBox(box
, _relative?
, _distance?
, change?
): IPointData
Parameters â
Name | Type |
---|---|
box | IPointData |
_relative? | ILeaf |
_distance? | boolean |
change? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:416
getInnerPointByLocal â
⸠getInnerPointByLocal(local
, _relative?
, distance?
, change?
): IPointData
Parameters â
Name | Type |
---|---|
local | IPointData |
_relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:422
getLocalPoint â
⸠getLocalPoint(world
, relative?
, distance?
, change?
): IPointData
Parameters â
Name | Type |
---|---|
world | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:426
getLocalPointByInner â
⸠getLocalPointByInner(inner
, _relative?
, distance?
, change?
): IPointData
Parameters â
Name | Type |
---|---|
inner | IPointData |
_relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:432
getPagePoint â
⸠getPagePoint(world
, relative?
, distance?
, change?
): IPointData
Parameters â
Name | Type |
---|---|
world | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:436
getWorldPoint â
⸠getWorldPoint(inner
, relative?
, distance?
, change?
): IPointData
Parameters â
Name | Type |
---|---|
inner | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:441
getWorldPointByBox â
⸠getWorldPointByBox(box
, relative?
, distance?
, change?
): IPointData
Parameters â
Name | Type |
---|---|
box | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:447
getWorldPointByLocal â
⸠getWorldPointByLocal(local
, relative?
, distance?
, change?
): IPointData
Parameters â
Name | Type |
---|---|
local | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:451
getWorldPointByPage â
⸠getWorldPointByPage(page
, relative?
, distance?
, change?
): IPointData
Parameters â
Name | Type |
---|---|
page | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:457
setTransform â
⸠setTransform(matrix
, resize?
): void
Parameters â
Name | Type |
---|---|
matrix | IMatrixData |
resize? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:465
transform â
⸠transform(matrix
, resize?
): void
Parameters â
Name | Type |
---|---|
matrix | IMatrixData |
resize? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:469
move â
⸠move(x
, y?
): void
Parameters â
Name | Type |
---|---|
x | number | IPointData |
y? | number |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:473
moveInner â
⸠moveInner(x
, y?
): void
Parameters â
Name | Type |
---|---|
x | number | IPointData |
y? | number |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:478
scaleOf â
⸠scaleOf(origin
, scaleX
, scaleY?
, resize?
): void
Parameters â
Name | Type |
---|---|
origin | IPointData | IDirection |
scaleX | number |
scaleY? | number |
resize? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:482
rotateOf â
⸠rotateOf(origin
, rotation
): void
Parameters â
Name | Type |
---|---|
origin | IPointData | IDirection |
rotation | number |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:486
skewOf â
⸠skewOf(origin
, skewX
, skewY?
, resize?
): void
Parameters â
Name | Type |
---|---|
origin | IPointData | IDirection |
skewX | number |
skewY? | number |
resize? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:490
transformWorld â
⸠transformWorld(worldTransform?
, resize?
): void
Parameters â
Name | Type |
---|---|
worldTransform? | IMatrixData |
resize? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:495
moveWorld â
⸠moveWorld(x
, y?
): void
Parameters â
Name | Type |
---|---|
x | number | IPointData |
y? | number |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:499
scaleOfWorld â
⸠scaleOfWorld(worldOrigin
, scaleX
, scaleY?
, resize?
): void
Parameters â
Name | Type |
---|---|
worldOrigin | IPointData |
scaleX | number |
scaleY? | number |
resize? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:503
rotateOfWorld â
⸠rotateOfWorld(worldOrigin
, rotation
): void
Parameters â
Name | Type |
---|---|
worldOrigin | IPointData |
rotation | number |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:507
skewOfWorld â
⸠skewOfWorld(worldOrigin
, skewX
, skewY?
, resize?
): void
Parameters â
Name | Type |
---|---|
worldOrigin | IPointData |
skewX | number |
skewY? | number |
resize? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:511
flip â
⸠flip(axis
): void
Parameters â
Name | Type |
---|---|
axis | IAxis |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:515
scaleResize â
⸠scaleResize(scaleX
, scaleY?
, _noResize?
): void
Parameters â
Name | Type | Default value |
---|---|---|
scaleX | number | undefined |
scaleY | number | scaleX |
_noResize? | boolean | undefined |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:522
__scaleResize â
⸠__scaleResize(_scaleX
, _scaleY
): void
Parameters â
Name | Type |
---|---|
_scaleX | number |
_scaleY | number |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:527
resizeWidth â
⸠resizeWidth(_width
): void
Parameters â
Name | Type |
---|---|
_width | number |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:530
resizeHeight â
⸠resizeHeight(_height
): void
Parameters â
Name | Type |
---|---|
_height | number |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:532
__hitWorld â
⸠__hitWorld(_point
): boolean
Parameters â
Name | Type |
---|---|
_point | IRadiusPointData |
Returns â
boolean
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:537
__hit â
⸠__hit(_local
): boolean
Parameters â
Name | Type |
---|---|
_local | IRadiusPointData |
Returns â
boolean
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:539
__hitFill â
⸠__hitFill(_inner
): boolean
Parameters â
Name | Type |
---|---|
_inner | IRadiusPointData |
Returns â
boolean
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:541
__hitStroke â
⸠__hitStroke(_inner
, _strokeWidth
): boolean
Parameters â
Name | Type |
---|---|
_inner | IRadiusPointData |
_strokeWidth | number |
Returns â
boolean
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:543
__hitPixel â
⸠__hitPixel(_inner
): boolean
Parameters â
Name | Type |
---|---|
_inner | IRadiusPointData |
Returns â
boolean
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:545
__drawHitPath â
⸠__drawHitPath(_canvas
): void
Parameters â
Name | Type |
---|---|
_canvas | ILeaferCanvas |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:547
__updateHitCanvas â
⸠__updateHitCanvas(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:549
__render â
⸠__render(_canvas
, _options
): void
Parameters â
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:556
__drawFast â
⸠__drawFast(_canvas
, _options
): void
Parameters â
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:558
__draw â
⸠__draw(_canvas
, _options
): void
Parameters â
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:560
__clip â
⸠__clip(_canvas
, _options
): void
Parameters â
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:563
__renderShape â
⸠__renderShape(_canvas
, _options
, _ignoreFill?
, _ignoreStroke?
): void
Parameters â
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
_ignoreFill? | boolean |
_ignoreStroke? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:565
__updateWorldOpacity â
⸠__updateWorldOpacity(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:568
__updateChange â
⸠__updateChange(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:570
__updatePath â
⸠__updatePath(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:581
getMotionPathData â
⸠getMotionPathData(): IMotionPathData
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:590
getMotionPoint â
⸠getMotionPoint(_motionDistance
): IRotationPointData
Parameters â
Name | Type |
---|---|
_motionDistance | number | IUnitData |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:594
getMotionTotal â
⸠getMotionTotal(): number
Returns â
number
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:598
__updateMotionPath â
⸠__updateMotionPath(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:602
__runAnimation â
⸠__runAnimation(_type
, _complete?
): void
Parameters â
Name | Type |
---|---|
_type | "in" | "out" |
_complete? | IFunction |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:608
__updateSortChildren â
⸠__updateSortChildren(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:613
add â
⸠add(_child
, _index?
): void
Parameters â
Name | Type |
---|---|
_child | ILeaf | ILeafInputData | ILeaf [] | ILeafInputData [] |
_index? | number |
Returns â
void
Implementation of â
Inherited from â
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 â
Inherited from â
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 â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:621
on â
⸠on(_type
, _listener?
, _options?
): void
Parameters â
Name | Type |
---|---|
_type | string | string [] | IEventMap |
_listener? | IFunction |
_options? | IEventOption |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:630
off â
⸠off(_type?
, _listener?
, _options?
): void
Parameters â
Name | Type |
---|---|
_type? | string | string [] |
_listener? | IFunction |
_options? | IEventOption |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:632
on_ â
⸠on_(_type
, _listener
, _bind?
, _options?
): IEventListenerId
Parameters â
Name | Type |
---|---|
_type | string | string [] |
_listener | IFunction |
_bind? | IObject |
_options? | IEventOption |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:634
off_ â
⸠off_(_id
): void
Parameters â
Name | Type |
---|---|
_id | IEventListenerId | IEventListenerId [] |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:636
once â
⸠once(_type
, _listener
, _capture?
): void
Parameters â
Name | Type |
---|---|
_type | string | string [] |
_listener | IFunction |
_capture? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:638
emit â
⸠emit(_type
, _event?
, _capture?
): void
Parameters â
Name | Type |
---|---|
_type | string |
_event? | IObject | IEvent |
_capture? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:640
emitEvent â
⸠emitEvent(_event?
, _capture?
): void
Parameters â
Name | Type |
---|---|
_event? | IEvent |
_capture? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:642
hasEvent â
⸠hasEvent(_type
, _capture?
): boolean
Parameters â
Name | Type |
---|---|
_type | string |
_capture? | boolean |
Returns â
boolean
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:644
changeAttr â
⸠changeAttr(attrName
, defaultValue
, fn?
): void
Parameters â
Name | Type |
---|---|
attrName | string |
defaultValue | IValue |
fn? | IAttrDecorator |
Returns â
void
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:648
addAttr â
⸠addAttr(attrName
, defaultValue
, fn?
): void
Parameters â
Name | Type |
---|---|
attrName | string |
defaultValue | IValue |
fn? | IAttrDecorator |
Returns â
void
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:652
__emitLifeEvent â
⸠__emitLifeEvent(type
): void
Parameters â
Name | Type |
---|---|
type | string |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:658
reset â
⸠reset(_data?
): void
Parameters â
Name | Type |
---|---|
_data? | IUIInputData |
Returns â
void
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:372
set â
⸠set(data
, isTemp?
): void
Parameters â
Name | Type |
---|---|
data | IUIInputData |
isTemp? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:375
get â
⸠get(name?
): IValue
| IUIInputData
Parameters â
Name | Type |
---|---|
name? | string | string [] | IUIInputData |
Returns â
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:383
createProxyData â
⸠createProxyData(): IUIInputData
Returns â
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:387
find â
⸠find(_condition
, _options?
): IUI
[]
Parameters â
Name | Type |
---|---|
_condition | string | number | IFindCondition | IFindUIMethod |
_options? | any |
Returns â
IUI
[]
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:392
findTag â
⸠findTag(tag
): IUI
[]
Parameters â
Name | Type |
---|---|
tag | string | string [] |
Returns â
IUI
[]
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:394
findOne â
⸠findOne(_condition
, _options?
): IUI
Parameters â
Name | Type |
---|---|
_condition | string | number | IFindCondition | IFindUIMethod |
_options? | any |
Returns â
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:396
findId â
⸠findId(id
): IUI
Parameters â
Name | Type |
---|---|
id | string | number |
Returns â
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:398
getPath â
⸠getPath(curve?
, pathForRender?
): IPathCommandData
Parameters â
Name | Type |
---|---|
curve? | boolean |
pathForRender? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:403
getPathString â
⸠getPathString(curve?
, pathForRender?
): string
Parameters â
Name | Type |
---|---|
curve? | boolean |
pathForRender? | boolean |
Returns â
string
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:410
load â
⸠load(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:415
__onUpdateSize â
⸠__onUpdateSize(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:419
__updateRenderPath â
⸠__updateRenderPath(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:426
__drawRenderPath â
⸠__drawRenderPath(canvas
): void
Parameters â
Name | Type |
---|---|
canvas | ILeaferCanvas |
Returns â
void
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:434
__drawPath â
⸠__drawPath(canvas
): void
Parameters â
Name | Type |
---|---|
canvas | ILeaferCanvas |
Returns â
void
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:439
__drawPathByData â
⸠__drawPathByData(drawer
, data
): void
Parameters â
Name | Type |
---|---|
drawer | IPathDrawer |
data | IPathCommandData |
Returns â
void
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:444
__drawPathByBox â
⸠__drawPathByBox(drawer
): void
Parameters â
Name | Type |
---|---|
drawer | IPathDrawer |
Returns â
void
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:448
animate â
⸠animate(_keyframe?
, _options?
, _type?
, _isTemp?
): IAnimate
Parameters â
Name | Type |
---|---|
_keyframe? | IAnimation | IUIInputData | IKeyframe [] |
_options? | ITransition |
_type? | IAnimateType |
_isTemp? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:458
killAnimate â
⸠killAnimate(_type?
): void
Parameters â
Name | Type |
---|---|
_type? | IAnimateType |
Returns â
void
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:462
export â
⸠export(filename
, options?
): Promise
<IExportResult
>
Parameters â
Name | Type |
---|---|
filename | string |
options? | number | boolean | IExportOptions |
Returns â
Promise
<IExportResult
>
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:467
clone â
⸠clone(data?
): IUI
Parameters â
Name | Type |
---|---|
data? | IUIInputData |
Returns â
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:471
one â
⸠one(data
, x?
, y?
, width?
, height?
): IUI
Parameters â
Name | Type |
---|---|
data | IUIInputData |
x? | number |
y? | number |
width? | number |
height? | number |
Returns â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:477
registerUI â
⸠registerUI(): void
Returns â
void
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:481
registerData â
⸠registerData(data
): void
Parameters â
Name | Type |
---|---|
data | IUIData |
Returns â
void
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:485
setEditConfig â
⸠setEditConfig(_config
): void
Parameters â
Name | Type |
---|---|
_config | IEditorConfig | IEditorConfigFunction |
Returns â
void
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:492
setEditOuter â
⸠setEditOuter(_toolName
): void
Parameters â
Name | Type |
---|---|
_toolName | string | IEditToolFunction |
Returns â
void
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:494
setEditInner â
⸠setEditInner(_editorName
): void
Parameters â
Name | Type |
---|---|
_editorName | string | IEditToolFunction |
Returns â
void
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:496
destroy â
⸠destroy(): void
Returns â
void