Class: UI
Hierarchy
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
- __
- 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
- strokeAlign
- 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
- __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
- 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 UI(data?
): UI
Parameters
Name | Type |
---|---|
data? | IUIInputData |
Returns
Overrides
Defined in
ui/packages/display/src/UI.ts:364
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
__
• __: IUIData
Implementation of
Overrides
Defined in
ui/packages/display/src/UI.ts:19
proxyData
• Optional
proxyData: IUIInputData
Implementation of
Defined in
ui/packages/display/src/UI.ts:21
__proxyData
• Optional
__proxyData: IUIInputData
Implementation of
Defined in
ui/packages/display/src/UI.ts:22
leafer
• Optional
leafer: ILeafer
Implementation of
Overrides
Defined in
ui/packages/display/src/UI.ts:26
parent
• Optional
parent: IGroup
Implementation of
Overrides
Defined in
ui/packages/display/src/UI.ts:27
zoomLayer
• zoomLayer: IGroup
Implementation of
Defined in
ui/packages/display/src/UI.ts:30
children
• Optional
children: IUI
[]
Implementation of
Overrides
Defined in
ui/packages/display/src/UI.ts:34
id
• Optional
id: string
Implementation of
Defined in
ui/packages/display/src/UI.ts:40
name
• Optional
name: string
Implementation of
Defined in
ui/packages/display/src/UI.ts:43
className
• Optional
className: string
Implementation of
Defined in
ui/packages/display/src/UI.ts:46
blendMode
• Optional
blendMode: IBlendMode
Implementation of
Defined in
ui/packages/display/src/UI.ts:51
opacity
• Optional
opacity: number
Implementation of
Defined in
ui/packages/display/src/UI.ts:54
visible
• Optional
visible: boolean
| 0
Implementation of
Defined in
ui/packages/display/src/UI.ts:57
locked
• Optional
locked: boolean
Implementation of
Defined in
ui/packages/display/src/UI.ts:61
zIndex
• Optional
zIndex: number
Implementation of
Defined in
ui/packages/display/src/UI.ts:65
mask
• Optional
mask: boolean
| IMaskType
Implementation of
Defined in
ui/packages/display/src/UI.ts:69
eraser
• Optional
eraser: boolean
| IEraserType
Implementation of
Defined in
ui/packages/display/src/UI.ts:72
x
• Optional
x: number
Implementation of
Defined in
ui/packages/display/src/UI.ts:77
y
• Optional
y: number
Implementation of
Defined in
ui/packages/display/src/UI.ts:80
width
• Optional
width: number
Implementation of
Defined in
ui/packages/display/src/UI.ts:84
height
• Optional
height: number
Implementation of
Defined in
ui/packages/display/src/UI.ts:87
scaleX
• Optional
scaleX: number
Implementation of
Defined in
ui/packages/display/src/UI.ts:91
scaleY
• Optional
scaleY: number
Implementation of
Defined in
ui/packages/display/src/UI.ts:94
rotation
• Optional
rotation: number
Implementation of
Defined in
ui/packages/display/src/UI.ts:98
skewX
• Optional
skewX: number
Implementation of
Defined in
ui/packages/display/src/UI.ts:102
skewY
• Optional
skewY: number
Implementation of
Defined in
ui/packages/display/src/UI.ts:105
offsetX
• Optional
offsetX: number
Implementation of
Defined in
ui/packages/display/src/UI.ts:110
offsetY
• Optional
offsetY: number
Implementation of
Defined in
ui/packages/display/src/UI.ts:113
scrollX
• Optional
scrollX: number
Implementation of
Defined in
ui/packages/display/src/UI.ts:117
scrollY
• Optional
scrollY: number
Implementation of
Defined in
ui/packages/display/src/UI.ts:120
origin
• Optional
origin: IUnitPointData
| IDirection
Implementation of
Defined in
ui/packages/display/src/UI.ts:125
around
• Optional
around: IUnitPointData
| IDirection
Implementation of
Defined in
ui/packages/display/src/UI.ts:128
lazy
• Optional
lazy: boolean
Implementation of
Defined in
ui/packages/display/src/UI.ts:133
pixelRatio
• Optional
pixelRatio: number
Implementation of
Defined in
ui/packages/display/src/UI.ts:136
path
• Optional
path: string
| IPathCommandData
Implementation of
Defined in
ui/packages/display/src/UI.ts:141
windingRule
• Optional
windingRule: IWindingRule
Implementation of
Defined in
ui/packages/display/src/UI.ts:144
closed
• Optional
closed: boolean
Implementation of
Defined in
ui/packages/display/src/UI.ts:147
flow
• Optional
flow: IFlowType
Implementation of
Defined in
ui/packages/display/src/UI.ts:151
padding
• Optional
padding: IFourNumber
Implementation of
Defined in
ui/packages/display/src/UI.ts:154
gap
• Optional
gap: IGap
| IPointGap
Implementation of
Defined in
ui/packages/display/src/UI.ts:156
flowAlign
• Optional
flowAlign: IFlowAxisAlign
| IFlowAlign
Implementation of
Defined in
ui/packages/display/src/UI.ts:158
flowWrap
• Optional
flowWrap: IFlowWrap
Implementation of
Defined in
ui/packages/display/src/UI.ts:160
itemBox
• Optional
itemBox: IFlowBoxType
Implementation of
Defined in
ui/packages/display/src/UI.ts:163
inFlow
• Optional
inFlow: boolean
Implementation of
Defined in
ui/packages/display/src/UI.ts:165
autoWidth
• Optional
autoWidth: IAutoSize
Implementation of
Defined in
ui/packages/display/src/UI.ts:168
autoHeight
• Optional
autoHeight: IAutoSize
Implementation of
Defined in
ui/packages/display/src/UI.ts:170
lockRatio
• Optional
lockRatio: boolean
Implementation of
Defined in
ui/packages/display/src/UI.ts:172
autoBox
• Optional
autoBox: IAutoBoxData
| IConstraint
Implementation of
Defined in
ui/packages/display/src/UI.ts:174
widthRange
• Optional
widthRange: IRangeSize
Implementation of
Defined in
ui/packages/display/src/UI.ts:176
heightRange
• Optional
heightRange: IRangeSize
Implementation of
Defined in
ui/packages/display/src/UI.ts:178
draggable
• Optional
draggable: boolean
| IAxis
Implementation of
Defined in
ui/packages/display/src/UI.ts:183
dragBounds
• Optional
dragBounds: "parent"
| IBoundsData
Implementation of
Defined in
ui/packages/display/src/UI.ts:186
editable
• Optional
editable: boolean
Implementation of
Defined in
ui/packages/display/src/UI.ts:190
hittable
• Optional
hittable: boolean
Implementation of
Defined in
ui/packages/display/src/UI.ts:195
hitFill
• Optional
hitFill: IHitType
Implementation of
Defined in
ui/packages/display/src/UI.ts:198
hitStroke
• Optional
hitStroke: IHitType
Implementation of
Defined in
ui/packages/display/src/UI.ts:201
hitBox
• Optional
hitBox: boolean
Implementation of
Defined in
ui/packages/display/src/UI.ts:204
hitChildren
• Optional
hitChildren: boolean
Implementation of
Defined in
ui/packages/display/src/UI.ts:207
hitSelf
• Optional
hitSelf: boolean
Implementation of
Defined in
ui/packages/display/src/UI.ts:210
hitRadius
• Optional
hitRadius: number
Implementation of
Defined in
ui/packages/display/src/UI.ts:213
cursor
• Optional
cursor: ICursorType
| ICursorType
[]
Implementation of
Defined in
ui/packages/display/src/UI.ts:216
fill
• Optional
fill: IFill
Implementation of
Defined in
ui/packages/display/src/UI.ts:224
stroke
• Optional
stroke: IStroke
Implementation of
Defined in
ui/packages/display/src/UI.ts:229
strokeAlign
• Optional
strokeAlign: IStrokeAlign
Implementation of
Defined in
ui/packages/display/src/UI.ts:232
strokeWidth
• Optional
strokeWidth: string
| IFourNumber
Implementation of
Defined in
ui/packages/display/src/UI.ts:235
strokeWidthFixed
• Optional
strokeWidthFixed: boolean
Implementation of
Defined in
ui/packages/display/src/UI.ts:238
strokeCap
• Optional
strokeCap: IStrokeCap
Implementation of
Defined in
ui/packages/display/src/UI.ts:241
strokeJoin
• Optional
strokeJoin: IStrokeJoin
Implementation of
Defined in
ui/packages/display/src/UI.ts:244
dashPattern
• Optional
dashPattern: string
| number
[]
Implementation of
Defined in
ui/packages/display/src/UI.ts:247
dashOffset
• Optional
dashOffset: number
Implementation of
Defined in
ui/packages/display/src/UI.ts:250
miterLimit
• Optional
miterLimit: number
Implementation of
Defined in
ui/packages/display/src/UI.ts:253
startArrow
• Optional
startArrow: IArrowType
Implementation of
Defined in
ui/packages/display/src/UI.ts:258
endArrow
• Optional
endArrow: IArrowType
Implementation of
Defined in
ui/packages/display/src/UI.ts:260
cornerRadius
• Optional
cornerRadius: string
| IFourNumber
Implementation of
Defined in
ui/packages/display/src/UI.ts:265
cornerSmoothing
• Optional
cornerSmoothing: number
Implementation of
Defined in
ui/packages/display/src/UI.ts:268
shadow
• Optional
shadow: string
| IShadowEffect
| IShadowEffect
[]
Implementation of
Defined in
ui/packages/display/src/UI.ts:273
innerShadow
• Optional
innerShadow: string
| IShadowEffect
| IShadowEffect
[]
Implementation of
Defined in
ui/packages/display/src/UI.ts:276
blur
• Optional
blur: number
| IBlurEffect
Implementation of
Defined in
ui/packages/display/src/UI.ts:279
backgroundBlur
• Optional
backgroundBlur: number
| IBlurEffect
Implementation of
Defined in
ui/packages/display/src/UI.ts:282
grayscale
• Optional
grayscale: number
| IGrayscaleEffect
Implementation of
Defined in
ui/packages/display/src/UI.ts:285
animation
• Optional
animation: IAnimation
Implementation of
Defined in
ui/packages/display/src/UI.ts:290
animationOut
• Optional
animationOut: IAnimation
Implementation of
Defined in
ui/packages/display/src/UI.ts:292
transition
• Optional
transition: ITransition
Implementation of
Defined in
ui/packages/display/src/UI.ts:295
transitionOut
• Optional
transitionOut: ITransition
Implementation of
Defined in
ui/packages/display/src/UI.ts:297
motionPath
• Optional
motionPath: boolean
Implementation of
Defined in
ui/packages/display/src/UI.ts:302
motion
• Optional
motion: number
| IUnitData
Implementation of
Defined in
ui/packages/display/src/UI.ts:304
motionRotation
• Optional
motionRotation: number
| boolean
Implementation of
Defined in
ui/packages/display/src/UI.ts:306
states
• Optional
states: IStates
Implementation of
Defined in
ui/packages/display/src/UI.ts:311
state
• Optional
state: string
Implementation of
Defined in
ui/packages/display/src/UI.ts:313
selected
• Optional
selected: boolean
Implementation of
Defined in
ui/packages/display/src/UI.ts:316
disabled
• Optional
disabled: boolean
Implementation of
Defined in
ui/packages/display/src/UI.ts:318
normalStyle
• Optional
normalStyle: IUIInputData
Implementation of
Defined in
ui/packages/display/src/UI.ts:321
hoverStyle
• Optional
hoverStyle: IUIInputData
Implementation of
Defined in
ui/packages/display/src/UI.ts:323
pressStyle
• Optional
pressStyle: IUIInputData
Implementation of
Defined in
ui/packages/display/src/UI.ts:325
focusStyle
• Optional
focusStyle: IUIInputData
Implementation of
Defined in
ui/packages/display/src/UI.ts:327
selectedStyle
• Optional
selectedStyle: IUIInputData
Implementation of
Defined in
ui/packages/display/src/UI.ts:329
disabledStyle
• Optional
disabledStyle: IUIInputData
Implementation of
Defined in
ui/packages/display/src/UI.ts:331
button
• Optional
button: boolean
Implementation of
Defined in
ui/packages/display/src/UI.ts:334
data
• data: IObject
Implementation of
Defined in
ui/packages/display/src/UI.ts:339
__animate
• Optional
__animate: IAnimate
Implementation of
Defined in
ui/packages/display/src/UI.ts:345
Accessors
tag
• get
tag(): string
Returns
string
Implementation of
Inherited from
Leaf.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
Leaf.tag
Defined in
leafer/packages/display/src/Leaf.ts:26
__tag
• get
__tag(): string
Returns
string
Implementation of
Inherited from
Leaf.__tag
Defined in
leafer/packages/display/src/Leaf.ts:28
innerName
• get
innerName(): string
Returns
string
Implementation of
Inherited from
Leaf.innerName
Defined in
leafer/packages/display/src/Leaf.ts:31
__DataProcessor
• get
__DataProcessor(): typeof LeafData
Returns
typeof LeafData
Implementation of
Inherited from
Leaf.__DataProcessor
Defined in
leafer/packages/display/src/Leaf.ts:33
__LayoutProcessor
• get
__LayoutProcessor(): typeof LeafLayout
Returns
typeof LeafLayout
Implementation of
Inherited from
Leaf.__LayoutProcessor
Defined in
leafer/packages/display/src/Leaf.ts:34
leaferIsCreated
• get
leaferIsCreated(): boolean
Returns
boolean
Implementation of
Inherited from
Leaf.leaferIsCreated
Defined in
leafer/packages/display/src/Leaf.ts:39
leaferIsReady
• get
leaferIsReady(): boolean
Returns
boolean
Implementation of
Inherited from
Leaf.leaferIsReady
Defined in
leafer/packages/display/src/Leaf.ts:40
isLeafer
• get
isLeafer(): boolean
Returns
boolean
Implementation of
Inherited from
Leaf.isLeafer
Defined in
leafer/packages/display/src/Leaf.ts:42
isBranch
• get
isBranch(): boolean
Returns
boolean
Implementation of
Inherited from
Leaf.isBranch
Defined in
leafer/packages/display/src/Leaf.ts:43
isBranchLeaf
• get
isBranchLeaf(): boolean
Returns
boolean
Implementation of
Inherited from
Leaf.isBranchLeaf
Defined in
leafer/packages/display/src/Leaf.ts:44
__localMatrix
• get
__localMatrix(): IMatrixData
Returns
Implementation of
Inherited from
Leaf.__localMatrix
Defined in
leafer/packages/display/src/Leaf.ts:58
__localBoxBounds
• get
__localBoxBounds(): IBoundsData
Returns
Implementation of
Inherited from
Leaf.__localBoxBounds
Defined in
leafer/packages/display/src/Leaf.ts:59
worldTransform
• get
worldTransform(): IMatrixWithScaleData
Returns
Implementation of
Inherited from
Leaf.worldTransform
Defined in
leafer/packages/display/src/Leaf.ts:64
localTransform
• get
localTransform(): IMatrixData
Returns
Implementation of
Inherited from
Leaf.localTransform
Defined in
leafer/packages/display/src/Leaf.ts:65
boxBounds
• get
boxBounds(): IBoundsData
Returns
Implementation of
Inherited from
Leaf.boxBounds
Defined in
leafer/packages/display/src/Leaf.ts:68
renderBounds
• get
renderBounds(): IBoundsData
Returns
Implementation of
Inherited from
Leaf.renderBounds
Defined in
leafer/packages/display/src/Leaf.ts:69
worldBoxBounds
• get
worldBoxBounds(): IBoundsData
Returns
Implementation of
Inherited from
Leaf.worldBoxBounds
Defined in
leafer/packages/display/src/Leaf.ts:70
worldStrokeBounds
• get
worldStrokeBounds(): IBoundsData
Returns
Implementation of
Inherited from
Leaf.worldStrokeBounds
Defined in
leafer/packages/display/src/Leaf.ts:71
worldRenderBounds
• get
worldRenderBounds(): IBoundsData
Returns
Implementation of
Inherited from
Leaf.worldRenderBounds
Defined in
leafer/packages/display/src/Leaf.ts:72
worldOpacity
• get
worldOpacity(): number
Returns
number
Implementation of
Inherited from
Leaf.worldOpacity
Defined in
leafer/packages/display/src/Leaf.ts:75
__worldFlipped
• get
__worldFlipped(): boolean
Returns
boolean
Implementation of
Inherited from
Leaf.__worldFlipped
Defined in
leafer/packages/display/src/Leaf.ts:80
__onlyHitMask
• get
__onlyHitMask(): boolean
Returns
boolean
Implementation of
Inherited from
Leaf.__onlyHitMask
Defined in
leafer/packages/display/src/Leaf.ts:87
__ignoreHitWorld
• get
__ignoreHitWorld(): boolean
Returns
boolean
Implementation of
Inherited from
Leaf.__ignoreHitWorld
Defined in
leafer/packages/display/src/Leaf.ts:88
__inLazyBounds
• get
__inLazyBounds(): boolean
Returns
boolean
Implementation of
Inherited from
Leaf.__inLazyBounds
Defined in
leafer/packages/display/src/Leaf.ts:89
pathInputed
• get
pathInputed(): boolean
Returns
boolean
Implementation of
Inherited from
Leaf.pathInputed
Defined in
leafer/packages/display/src/Leaf.ts:91
event
• set
event(map
): void
Parameters
Name | Type |
---|---|
map | IEventMap |
Returns
void
Implementation of
Inherited from
Leaf.event
Defined in
leafer/packages/display/src/Leaf.ts:94
app
• get
app(): ILeafer
Returns
Implementation of
Defined in
ui/packages/display/src/UI.ts:24
isFrame
• get
isFrame(): boolean
Returns
boolean
Implementation of
Defined in
ui/packages/display/src/UI.ts:32
scale
• get
scale(): number
| IPointData
Returns
number
| IPointData
Implementation of
Defined in
ui/packages/display/src/UI.ts:343
• set
scale(value
): void
Parameters
Name | Type |
---|---|
value | number | IPointData |
Returns
void
Implementation of
Defined in
ui/packages/display/src/UI.ts:342
pen
• get
pen(): IPathCreator
Returns
Implementation of
Defined in
ui/packages/display/src/UI.ts:347
editConfig
• get
editConfig(): IEditorConfig
Returns
Implementation of
Defined in
ui/packages/display/src/UI.ts:357
editOuter
• get
editOuter(): string
Returns
string
Implementation of
Defined in
ui/packages/display/src/UI.ts:359
editInner
• get
editInner(): string
Returns
string
Implementation of
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
Inherited from
Leaf.__updateLocalStrokeBounds
Defined in
leafer/packages/display/src/Leaf.ts:274
__updateLocalRenderBounds
▸ __updateLocalRenderBounds(): void
Returns
void
Implementation of
Inherited from
Leaf.__updateLocalRenderBounds
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 |
_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
Overrides
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
Overrides
Defined in
ui/packages/display/src/UI.ts:375
get
▸ get(name?
): IValue
| IUIInputData
Parameters
Name | Type |
---|---|
name? | string | string [] | IUIInputData |
Returns
Implementation of
Overrides
Defined in
ui/packages/display/src/UI.ts:385
createProxyData
▸ createProxyData(): IUIInputData
Returns
Implementation of
Defined in
ui/packages/display/src/UI.ts:389
find
▸ find(_condition
, _options?
): IUI
[]
Parameters
Name | Type |
---|---|
_condition | string | number | IFindCondition | IFindUIMethod |
_options? | any |
Returns
IUI
[]
Implementation of
Overrides
Defined in
ui/packages/display/src/UI.ts:394
findTag
▸ findTag(tag
): IUI
[]
Parameters
Name | Type |
---|---|
tag | string | string [] |
Returns
IUI
[]
Implementation of
Overrides
Defined in
ui/packages/display/src/UI.ts:396
findOne
▸ findOne(_condition
, _options?
): IUI
Parameters
Name | Type |
---|---|
_condition | string | number | IFindCondition | IFindUIMethod |
_options? | any |
Returns
Implementation of
Overrides
Defined in
ui/packages/display/src/UI.ts:398
findId
▸ findId(id
): IUI
Parameters
Name | Type |
---|---|
id | string | number |
Returns
Implementation of
Overrides
Defined in
ui/packages/display/src/UI.ts:400
getPath
▸ getPath(curve?
, pathForRender?
): IPathCommandData
Parameters
Name | Type |
---|---|
curve? | boolean |
pathForRender? | boolean |
Returns
Implementation of
Defined in
ui/packages/display/src/UI.ts:405
getPathString
▸ getPathString(curve?
, pathForRender?
): string
Parameters
Name | Type |
---|---|
curve? | boolean |
pathForRender? | boolean |
Returns
string
Implementation of
Defined in
ui/packages/display/src/UI.ts:412
load
▸ load(): void
Returns
void
Implementation of
Defined in
ui/packages/display/src/UI.ts:417
__onUpdateSize
▸ __onUpdateSize(): void
Returns
void
Implementation of
Overrides
Defined in
ui/packages/display/src/UI.ts:421
__updateRenderPath
▸ __updateRenderPath(): void
Returns
void
Implementation of
Overrides
Defined in
ui/packages/display/src/UI.ts:428
__drawRenderPath
▸ __drawRenderPath(canvas
): void
Parameters
Name | Type |
---|---|
canvas | ILeaferCanvas |
Returns
void
Implementation of
Overrides
Defined in
ui/packages/display/src/UI.ts:436
__drawPath
▸ __drawPath(canvas
): void
Parameters
Name | Type |
---|---|
canvas | ILeaferCanvas |
Returns
void
Implementation of
Overrides
Defined in
ui/packages/display/src/UI.ts:441
__drawPathByData
▸ __drawPathByData(drawer
, data
): void
Parameters
Name | Type |
---|---|
drawer | IPathDrawer |
data | IPathCommandData |
Returns
void
Implementation of
Defined in
ui/packages/display/src/UI.ts:446
__drawPathByBox
▸ __drawPathByBox(drawer
): void
Parameters
Name | Type |
---|---|
drawer | IPathDrawer |
Returns
void
Implementation of
Defined in
ui/packages/display/src/UI.ts:450
animate
▸ animate(_keyframe?
, _options?
, _type?
, _isTemp?
): IAnimate
Parameters
Name | Type |
---|---|
_keyframe? | IAnimation | IUIInputData | IKeyframe [] |
_options? | ITransition |
_type? | IAnimateType |
_isTemp? | boolean |
Returns
Implementation of
Defined in
ui/packages/display/src/UI.ts:460
killAnimate
▸ killAnimate(_type?
): void
Parameters
Name | Type |
---|---|
_type? | IAnimateType |
Returns
void
Implementation of
Defined in
ui/packages/display/src/UI.ts:464
export
▸ export(filename
, options?
): Promise
<IExportResult
>
Parameters
Name | Type |
---|---|
filename | string |
options? | number | boolean | IExportOptions |
Returns
Promise
<IExportResult
>
Implementation of
Defined in
ui/packages/display/src/UI.ts:469
clone
▸ clone(data?
): IUI
Parameters
Name | Type |
---|---|
data? | IUIInputData |
Returns
Implementation of
Defined in
ui/packages/display/src/UI.ts:473
one
▸ one(data
, x?
, y?
, width?
, height?
): IUI
Parameters
Name | Type |
---|---|
data | IUIInputData |
x? | number |
y? | number |
width? | number |
height? | number |
Returns
Defined in
ui/packages/display/src/UI.ts:479
registerUI
▸ registerUI(): void
Returns
void
Defined in
ui/packages/display/src/UI.ts:483
registerData
▸ registerData(data
): void
Parameters
Name | Type |
---|---|
data | IUIData |
Returns
void
Defined in
ui/packages/display/src/UI.ts:487
setEditConfig
▸ setEditConfig(_config
): void
Parameters
Name | Type |
---|---|
_config | IEditorConfig | IEditorConfigFunction |
Returns
void
Defined in
ui/packages/display/src/UI.ts:494
setEditOuter
▸ setEditOuter(_toolName
): void
Parameters
Name | Type |
---|---|
_toolName | string | IEditToolFunction |
Returns
void
Defined in
ui/packages/display/src/UI.ts:496
setEditInner
▸ setEditInner(_editorName
): void
Parameters
Name | Type |
---|---|
_editorName | string | IEditToolFunction |
Returns
void
Defined in
ui/packages/display/src/UI.ts:498
destroy
▸ destroy(): void
Returns
void