Class: Rect<TInputData> ​
Type parameters ​
| Name | Type |
|---|---|
TInputData | IRectInputData |
Hierarchy ​
Implements ​
Table of contents ​
Constructors ​
Properties ​
- innerId
- skipJSON
- syncEventer
- lockNormalStyle
- __layout
- __world
- __local
- __nowWorld
- __cameraWorld
- __worldOpacity
- __scrollWorld
- __level
- __tempNumber
- __hasAutoLayout
- __hasMask
- __hasEraser
- __hitCanvas
- __captureMap
- __bubbleMap
- __hasLocalEvent
- __hasWorldEvent
- topChildren
- destroyed
- __
- proxyData
- __proxyData
- leafer
- parent
- zoomLayer
- children
- startLinker
- endLinker
- id
- name
- className
- blendMode
- opacity
- visible
- locked
- dim
- dimskip
- bright
- zIndex
- mask
- eraser
- x
- y
- width
- height
- scaleX
- scaleY
- scaleFixed
- rotation
- skewX
- skewY
- offsetX
- offsetY
- scrollX
- scrollY
- origin
- around
- lazy
- pixelRatio
- renderSpread
- path
- windingRule
- closed
- flow
- padding
- gap
- flowAlign
- flowWrap
- itemBox
- inFlow
- autoWidth
- autoHeight
- lockRatio
- autoBox
- widthRange
- heightRange
- draggable
- dragBounds
- dragBoundsType
- editable
- hittable
- hitFill
- hitStroke
- hitBox
- hitChildren
- hitSelf
- hitRadius
- cursor
- fill
- stroke
- strokeAlign
- strokeWidth
- strokeScaleFixed
- strokeCap
- strokeJoin
- dashPattern
- dashOffset
- miterLimit
- startArrow
- endArrow
- cornerRadius
- cornerSmoothing
- shadow
- innerShadow
- blur
- backgroundBlur
- grayscale
- filter
- complex
- animation
- animationOut
- transition
- transitionOut
- motionPath
- motionPrecision
- motion
- motionRotation
- states
- state
- selected
- disabled
- normalStyle
- hoverStyle
- pressStyle
- focusStyle
- selectedStyle
- disabledStyle
- placeholderStyle
- placeholderColor
- placeholderDelay
- button
- editConfig
- editOuter
- editInner
- data
- useFastShadow
- __box
- __animate
Accessors ​
- tag
- innerName
- __DataProcessor
- __LayoutProcessor
- leaferIsCreated
- leaferIsReady
- isLeafer
- isBranch
- isBranchLeaf
- __localMatrix
- __localBoxBounds
- worldTransform
- localTransform
- scrollWorldTransform
- boxBounds
- renderBounds
- worldBoxBounds
- worldStrokeBounds
- worldRenderBounds
- worldOpacity
- __worldFlipped
- __onlyHitMask
- __ignoreHitWorld
- __inLazyBounds
- pathInputed
- event
- __tag
- app
- isFrame
- strokeWidthFixed
- scale
- isAutoWidth
- isAutoHeight
- pen
Methods ​
- resetCustom
- waitParent
- waitLeafer
- nextRender
- removeNextRender
- __bindLeafer
- setAttr
- getAttr
- getComputedAttr
- toJSON
- toString
- toSVG
- __SVG
- toHTML
- __setAttr
- __getAttr
- setProxyAttr
- getProxyAttr
- focus
- updateState
- updateLayout
- forceUpdate
- forceRender
- __extraUpdate
- __updateWorldMatrix
- __updateLocalMatrix
- __updateWorldBounds
- __updateLocalBounds
- __updateLocalBoxBounds
- __updateLocalStrokeBounds
- __updateLocalRenderBounds
- __updateBoxBounds
- __updateContentBounds
- __updateStrokeBounds
- __updateRenderBounds
- __updateAutoLayout
- __updateFlowLayout
- __updateNaturalSize
- __updateStrokeSpread
- __updateRenderSpread
- __updateEraser
- __renderEraser
- __updateMask
- __renderMask
- __getNowWorld
- getClampRenderScale
- getRenderScaleData
- getTransform
- getBounds
- getLayoutBounds
- getLayoutPoints
- getWorldBounds
- worldToLocal
- localToWorld
- worldToInner
- innerToWorld
- getBoxPoint
- getBoxPointByInner
- getInnerPoint
- getInnerPointByBox
- getInnerPointByLocal
- getLocalPoint
- getLocalPointByInner
- getPagePoint
- getWorldPoint
- getWorldPointByBox
- getWorldPointByLocal
- getWorldPointByPage
- setTransform
- transform
- move
- moveInner
- scaleOf
- rotateOf
- skewOf
- transformWorld
- moveWorld
- scaleOfWorld
- rotateOfWorld
- skewOfWorld
- flip
- scaleResize
- __scaleResize
- resizeWidth
- resizeHeight
- hit
- __hitWorld
- __hit
- __hitFill
- __hitStroke
- __hitPixel
- __drawHitPath
- __updateHitCanvas
- __render
- __drawFast
- __draw
- __clip
- __renderShape
- __drawShape
- __updateWorldOpacity
- __updateChange
- __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
- clearProxyData
- find
- findTag
- findOne
- findId
- getPath
- getPathString
- asPath
- load
- __onUpdateSize
- __updateRenderPath
- __drawRenderPath
- __drawPath
- __drawPathByData
- __drawPathByBox
- drawImagePlaceholder
- animate
- killAnimate
- export
- syncExport
- clone
- one
- registerUI
- registerData
- setEditConfig
- setEditOuter
- setEditInner
- destroy
Constructors ​
constructor ​
• new Rect<TInputData>(data?): Rect<TInputData>
Type parameters ​
| Name | Type |
|---|---|
TInputData | IRectInputData |
Parameters ​
| Name | Type |
|---|---|
data? | TInputData |
Returns ​
Rect<TInputData>
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:116
Properties ​
innerId ​
• Readonly innerId: number
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:33
skipJSON ​
• Optional skipJSON: boolean
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:49
syncEventer ​
• Optional syncEventer: ILeaf
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:50
lockNormalStyle ​
• Optional lockNormalStyle: boolean
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:51
__layout ​
• __layout: ILeafLayout
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:54
__world ​
• __world: IMatrixWithBoundsScaleData
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:56
__local ​
• Optional __local: IMatrixWithBoundsData
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:57
__nowWorld ​
• Optional __nowWorld: IMatrixWithBoundsScaleData
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:59
__cameraWorld ​
• Optional __cameraWorld: IMatrixWithBoundsScaleData
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:60
__worldOpacity ​
• __worldOpacity: number
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:65
__scrollWorld ​
• Optional __scrollWorld: IMatrixWithBoundsScaleData
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:71
__level ​
• __level: number
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:84
__tempNumber ​
• __tempNumber: number
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:85
__hasAutoLayout ​
• Optional __hasAutoLayout: boolean
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:89
__hasMask ​
• Optional __hasMask: boolean
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:90
__hasEraser ​
• Optional __hasEraser: boolean
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:91
__hitCanvas ​
• Optional __hitCanvas: IHitCanvas
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:92
__captureMap ​
• Optional __captureMap: IEventListenerMap
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:103
__bubbleMap ​
• Optional __bubbleMap: IEventListenerMap
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:104
__hasLocalEvent ​
• Optional __hasLocalEvent: boolean
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:106
__hasWorldEvent ​
• Optional __hasWorldEvent: boolean
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:107
topChildren ​
• Optional topChildren: ILeaf[]
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:111
destroyed ​
• destroyed: boolean
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:113
__ ​
• __: IRectData
Implementation of ​
Overrides ​
Defined in ​
src/ui/packages/display/src/Rect.ts:18
proxyData ​
• Optional proxyData: IUIInputData
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:21
__proxyData ​
• Optional __proxyData: IUIInputData
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:22
leafer ​
• Optional leafer: ILeafer
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:26
parent ​
• Optional parent: IGroup
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:27
zoomLayer ​
• zoomLayer: IGroup
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:30
children ​
• Optional children: IUI[]
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:34
startLinker ​
• Optional startLinker: ILinker[]
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:37
endLinker ​
• Optional endLinker: ILinker[]
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:38
id ​
• Optional id: string
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:44
name ​
• Optional name: string
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:47
className ​
• Optional className: string
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:50
blendMode ​
• Optional blendMode: IBlendMode
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:55
opacity ​
• Optional opacity: number
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:58
visible ​
• Optional visible: boolean | 0
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:61
locked ​
• Optional locked: boolean
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:65
dim ​
• Optional dim: number | boolean
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:71
dimskip ​
• Optional dimskip: boolean
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:74
bright ​
• Optional bright: boolean
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:76
zIndex ​
• Optional zIndex: number
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:80
mask ​
• Optional mask: boolean | IMaskType
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:84
eraser ​
• Optional eraser: boolean | IEraserType
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:87
x ​
• Optional x: number
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:92
y ​
• Optional y: number
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:95
width ​
• Optional width: number
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:99
height ​
• Optional height: number
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:102
scaleX ​
• Optional scaleX: number
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:106
scaleY ​
• Optional scaleY: number
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:109
scaleFixed ​
• Optional scaleFixed: IScaleFixed
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:112
rotation ​
• Optional rotation: number
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:116
skewX ​
• Optional skewX: number
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:120
skewY ​
• Optional skewY: number
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:123
offsetX ​
• Optional offsetX: number
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:128
offsetY ​
• Optional offsetY: number
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:131
scrollX ​
• Optional scrollX: number
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:135
scrollY ​
• Optional scrollY: number
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:138
origin ​
• Optional origin: IUnitPointData | IDirection
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:143
around ​
• Optional around: IUnitPointData | IDirection
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:146
lazy ​
• Optional lazy: boolean
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:151
pixelRatio ​
• Optional pixelRatio: number
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:154
renderSpread ​
• Optional renderSpread: IFourNumber
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:158
path ​
• Optional path: string | IPathCommandData | IPathCommandNode[] | IPathCommandObject[]
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:163
windingRule ​
• Optional windingRule: IWindingRule
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:166
closed ​
• Optional closed: boolean
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:169
flow ​
• Optional flow: IFlowType
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:173
padding ​
• Optional padding: IFourNumber
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:176
gap ​
• Optional gap: IGap | IPointGap
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:178
flowAlign ​
• Optional flowAlign: IFlowAxisAlign | IFlowAlign
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:180
flowWrap ​
• Optional flowWrap: IFlowWrap
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:182
itemBox ​
• Optional itemBox: IFlowBoxType
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:185
inFlow ​
• Optional inFlow: boolean
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:187
autoWidth ​
• Optional autoWidth: IAutoSize
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:190
autoHeight ​
• Optional autoHeight: IAutoSize
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:192
lockRatio ​
• Optional lockRatio: boolean
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:195
autoBox ​
• Optional autoBox: IAutoBoxData | IConstraint
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:197
widthRange ​
• Optional widthRange: IRangeSize
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:200
heightRange ​
• Optional heightRange: IRangeSize
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:203
draggable ​
• Optional draggable: boolean | IAxis
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:208
dragBounds ​
• Optional dragBounds: "parent" | IBoundsData
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:211
dragBoundsType ​
• Optional dragBoundsType: IDragBoundsType
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:214
editable ​
• Optional editable: boolean
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:218
hittable ​
• Optional hittable: boolean
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:223
hitFill ​
• Optional hitFill: IHitType
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:226
hitStroke ​
• Optional hitStroke: IHitType
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:229
hitBox ​
• Optional hitBox: boolean
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:232
hitChildren ​
• Optional hitChildren: boolean
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:235
hitSelf ​
• Optional hitSelf: boolean
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:238
hitRadius ​
• Optional hitRadius: number
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:241
cursor ​
• Optional cursor: ICursorType | ICursorType[]
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:244
fill ​
• Optional fill: IFill
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:252
stroke ​
• Optional stroke: IStroke
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:257
strokeAlign ​
• Optional strokeAlign: IStrokeAlign
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:260
strokeWidth ​
• Optional strokeWidth: string | IFourNumber
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:263
strokeScaleFixed ​
• Optional strokeScaleFixed: IScaleFixed
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:266
strokeCap ​
• Optional strokeCap: IStrokeCap
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:273
strokeJoin ​
• Optional strokeJoin: IStrokeJoin
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:276
dashPattern ​
• Optional dashPattern: string | number[]
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:279
dashOffset ​
• Optional dashOffset: number
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:282
miterLimit ​
• Optional miterLimit: number
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:285
startArrow ​
• Optional startArrow: IArrowStyle
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:290
endArrow ​
• Optional endArrow: IArrowStyle
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:292
cornerRadius ​
• Optional cornerRadius: string | IFourNumber
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:297
cornerSmoothing ​
• Optional cornerSmoothing: number
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:300
shadow ​
• Optional shadow: string | IShadowEffect | IShadowEffect[]
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:305
innerShadow ​
• Optional innerShadow: string | IShadowEffect | IShadowEffect[]
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:308
blur ​
• Optional blur: number | IBlurEffect
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:311
backgroundBlur ​
• Optional backgroundBlur: number | IBlurEffect
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:314
grayscale ​
• Optional grayscale: number | IGrayscaleEffect
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:317
filter ​
• Optional filter: IFilter | IFilter[]
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:320
complex ​
• Optional complex: boolean
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:325
animation ​
• Optional animation: IAnimation | IAnimation[]
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:330
animationOut ​
• Optional animationOut: IAnimation | IAnimation[]
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:332
transition ​
• Optional transition: ITransition
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:335
transitionOut ​
• Optional transitionOut: ITransition
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:337
motionPath ​
• Optional motionPath: boolean
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:342
motionPrecision ​
• Optional motionPrecision: number
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:344
motion ​
• Optional motion: number | IUnitData
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:347
motionRotation ​
• Optional motionRotation: number | boolean
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:349
states ​
• Optional states: IStates
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:354
state ​
• Optional state: string
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:356
selected ​
• Optional selected: boolean
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:359
disabled ​
• Optional disabled: boolean
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:361
normalStyle ​
• Optional normalStyle: IStateStyle
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:364
hoverStyle ​
• Optional hoverStyle: IStateStyle
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:366
pressStyle ​
• Optional pressStyle: IStateStyle
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:368
focusStyle ​
• Optional focusStyle: IStateStyle
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:370
selectedStyle ​
• Optional selectedStyle: IStateStyle
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:372
disabledStyle ​
• Optional disabledStyle: IStateStyle
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:374
placeholderStyle ​
• Optional placeholderStyle: IStateStyle
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:377
placeholderColor ​
• Optional placeholderColor: string
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:380
placeholderDelay ​
• Optional placeholderDelay: number
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:383
button ​
• Optional button: boolean
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:386
editConfig ​
• editConfig: IEditorConfig
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:391
editOuter ​
• editOuter: string
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:393
editInner ​
• editInner: string
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:395
data ​
• data: IObject
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:400
useFastShadow ​
• Optional useFastShadow: boolean
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:409
__box ​
• Optional __box: IUI
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:411
__animate ​
• Optional __animate: IAnimate | IAnimateList
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:412
Accessors ​
tag ​
• get tag(): string
Returns ​
string
Implementation of ​
Inherited from ​
UI.tag
Defined in ​
src/leafer/packages/display/src/Leaf.ts:28
• set tag(_value): void
Parameters ​
| Name | Type |
|---|---|
_value | string |
Returns ​
void
Implementation of ​
Inherited from ​
UI.tag
Defined in ​
src/leafer/packages/display/src/Leaf.ts:29
innerName ​
• get innerName(): string
Returns ​
string
Implementation of ​
Inherited from ​
UI.innerName
Defined in ​
src/leafer/packages/display/src/Leaf.ts:34
__DataProcessor ​
• get __DataProcessor(): typeof LeafData
Returns ​
typeof LeafData
Implementation of ​
Inherited from ​
UI.__DataProcessor
Defined in ​
src/leafer/packages/display/src/Leaf.ts:36
__LayoutProcessor ​
• get __LayoutProcessor(): typeof LeafLayout
Returns ​
typeof LeafLayout
Implementation of ​
Inherited from ​
UI.__LayoutProcessor
Defined in ​
src/leafer/packages/display/src/Leaf.ts:37
leaferIsCreated ​
• get leaferIsCreated(): boolean
Returns ​
boolean
Implementation of ​
Inherited from ​
UI.leaferIsCreated
Defined in ​
src/leafer/packages/display/src/Leaf.ts:42
leaferIsReady ​
• get leaferIsReady(): boolean
Returns ​
boolean
Implementation of ​
Inherited from ​
UI.leaferIsReady
Defined in ​
src/leafer/packages/display/src/Leaf.ts:43
isLeafer ​
• get isLeafer(): boolean
Returns ​
boolean
Implementation of ​
Inherited from ​
UI.isLeafer
Defined in ​
src/leafer/packages/display/src/Leaf.ts:45
isBranch ​
• get isBranch(): boolean
Returns ​
boolean
Implementation of ​
Inherited from ​
UI.isBranch
Defined in ​
src/leafer/packages/display/src/Leaf.ts:46
isBranchLeaf ​
• get isBranchLeaf(): boolean
Returns ​
boolean
Implementation of ​
Inherited from ​
UI.isBranchLeaf
Defined in ​
src/leafer/packages/display/src/Leaf.ts:47
__localMatrix ​
• get __localMatrix(): IMatrixData
Returns ​
Implementation of ​
Inherited from ​
UI.__localMatrix
Defined in ​
src/leafer/packages/display/src/Leaf.ts:62
__localBoxBounds ​
• get __localBoxBounds(): IBoundsData
Returns ​
Implementation of ​
Inherited from ​
UI.__localBoxBounds
Defined in ​
src/leafer/packages/display/src/Leaf.ts:63
worldTransform ​
• get worldTransform(): IMatrixWithScaleData
Returns ​
Implementation of ​
Inherited from ​
UI.worldTransform
Defined in ​
src/leafer/packages/display/src/Leaf.ts:68
localTransform ​
• get localTransform(): IMatrixData
Returns ​
Implementation of ​
Inherited from ​
UI.localTransform
Defined in ​
src/leafer/packages/display/src/Leaf.ts:69
scrollWorldTransform ​
• get scrollWorldTransform(): IMatrixWithScaleData
Returns ​
Implementation of ​
Inherited from ​
UI.scrollWorldTransform
Defined in ​
src/leafer/packages/display/src/Leaf.ts:72
boxBounds ​
• get boxBounds(): IBoundsData
Returns ​
Implementation of ​
Inherited from ​
UI.boxBounds
Defined in ​
src/leafer/packages/display/src/Leaf.ts:75
renderBounds ​
• get renderBounds(): IBoundsData
Returns ​
Implementation of ​
Inherited from ​
UI.renderBounds
Defined in ​
src/leafer/packages/display/src/Leaf.ts:76
worldBoxBounds ​
• get worldBoxBounds(): IBoundsData
Returns ​
Implementation of ​
Inherited from ​
UI.worldBoxBounds
Defined in ​
src/leafer/packages/display/src/Leaf.ts:77
worldStrokeBounds ​
• get worldStrokeBounds(): IBoundsData
Returns ​
Implementation of ​
Inherited from ​
UI.worldStrokeBounds
Defined in ​
src/leafer/packages/display/src/Leaf.ts:78
worldRenderBounds ​
• get worldRenderBounds(): IBoundsData
Returns ​
Implementation of ​
Inherited from ​
UI.worldRenderBounds
Defined in ​
src/leafer/packages/display/src/Leaf.ts:79
worldOpacity ​
• get worldOpacity(): number
Returns ​
number
Implementation of ​
Inherited from ​
UI.worldOpacity
Defined in ​
src/leafer/packages/display/src/Leaf.ts:82
__worldFlipped ​
• get __worldFlipped(): boolean
Returns ​
boolean
Implementation of ​
Inherited from ​
UI.__worldFlipped
Defined in ​
src/leafer/packages/display/src/Leaf.ts:87
__onlyHitMask ​
• get __onlyHitMask(): boolean
Returns ​
boolean
Implementation of ​
Inherited from ​
UI.__onlyHitMask
Defined in ​
src/leafer/packages/display/src/Leaf.ts:94
__ignoreHitWorld ​
• get __ignoreHitWorld(): boolean
Returns ​
boolean
Implementation of ​
Inherited from ​
UI.__ignoreHitWorld
Defined in ​
src/leafer/packages/display/src/Leaf.ts:95
__inLazyBounds ​
• get __inLazyBounds(): boolean
Returns ​
boolean
Implementation of ​
Inherited from ​
UI.__inLazyBounds
Defined in ​
src/leafer/packages/display/src/Leaf.ts:96
pathInputed ​
• get pathInputed(): boolean
Returns ​
boolean
Implementation of ​
Inherited from ​
UI.pathInputed
Defined in ​
src/leafer/packages/display/src/Leaf.ts:98
event ​
• set event(map): void
Parameters ​
| Name | Type |
|---|---|
map | IEventParamsMap |
Returns ​
void
Implementation of ​
Inherited from ​
UI.event
Defined in ​
src/leafer/packages/display/src/Leaf.ts:101
__tag ​
• get __tag(): string
Returns ​
string
Implementation of ​
Overrides ​
UI.__tag
Defined in ​
src/ui/packages/display/src/Rect.ts:15
app ​
• get app(): ILeafer
Returns ​
Implementation of ​
Inherited from ​
UI.app
Defined in ​
src/ui/packages/display/src/UI.ts:24
isFrame ​
• get isFrame(): boolean
Returns ​
boolean
Implementation of ​
Inherited from ​
UI.isFrame
Defined in ​
src/ui/packages/display/src/UI.ts:32
strokeWidthFixed ​
• get strokeWidthFixed(): IScaleFixed
Returns ​
Inherited from ​
UI.strokeWidthFixed
Defined in ​
src/ui/packages/display/src/UI.ts:270
• set strokeWidthFixed(value): void
Parameters ​
| Name | Type |
|---|---|
value | IScaleFixed |
Returns ​
void
Inherited from ​
UI.strokeWidthFixed
Defined in ​
src/ui/packages/display/src/UI.ts:269
scale ​
• get scale(): number | IPointData
Returns ​
number | IPointData
Implementation of ​
Inherited from ​
UI.scale
Defined in ​
src/ui/packages/display/src/UI.ts:404
• set scale(value): void
Parameters ​
| Name | Type |
|---|---|
value | number | IPointData |
Returns ​
void
Implementation of ​
Inherited from ​
UI.scale
Defined in ​
src/ui/packages/display/src/UI.ts:403
isAutoWidth ​
• get isAutoWidth(): boolean
Returns ​
boolean
Implementation of ​
Inherited from ​
UI.isAutoWidth
Defined in ​
src/ui/packages/display/src/UI.ts:406
isAutoHeight ​
• get isAutoHeight(): boolean
Returns ​
boolean
Implementation of ​
Inherited from ​
UI.isAutoHeight
Defined in ​
src/ui/packages/display/src/UI.ts:407
pen ​
• get pen(): IPathCreator
Returns ​
Implementation of ​
Inherited from ​
UI.pen
Defined in ​
src/ui/packages/display/src/UI.ts:414
Methods ​
resetCustom ​
â–¸ resetCustom(): void
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:143
waitParent ​
â–¸ waitParent(item, bind?): void
Parameters ​
| Name | Type |
|---|---|
item | IFunction |
bind? | IObject |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:149
waitLeafer ​
â–¸ waitLeafer(item, bind?): void
Parameters ​
| Name | Type |
|---|---|
item | IFunction |
bind? | IObject |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:154
nextRender ​
â–¸ nextRender(item, bind?, off?): void
Parameters ​
| Name | Type |
|---|---|
item | IFunction |
bind? | IObject |
off? | "off" |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:159
removeNextRender ​
â–¸ removeNextRender(item): void
Parameters ​
| Name | Type |
|---|---|
item | IFunction |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:163
__bindLeafer ​
â–¸ __bindLeafer(leafer): void
Parameters ​
| Name | Type |
|---|---|
leafer | ILeaferBase |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:167
setAttr ​
â–¸ setAttr(name, value): void
Parameters ​
| Name | Type |
|---|---|
name | string |
value | any |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:198
getAttr ​
â–¸ getAttr(name): any
Parameters ​
| Name | Type |
|---|---|
name | string |
Returns ​
any
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:199
getComputedAttr ​
â–¸ getComputedAttr(name): any
Parameters ​
| Name | Type |
|---|---|
name | string |
Returns ​
any
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:201
toJSON ​
â–¸ toJSON(options?): IObject
Parameters ​
| Name | Type |
|---|---|
options? | IJSONOptions |
Returns ​
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:203
toString ​
â–¸ toString(options?): string
Parameters ​
| Name | Type |
|---|---|
options? | IJSONOptions |
Returns ​
string
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:208
toSVG ​
â–¸ toSVG(): string
Returns ​
string
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:212
__SVG ​
â–¸ __SVG(_data): void
Parameters ​
| Name | Type |
|---|---|
_data | IObject |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:214
toHTML ​
â–¸ toHTML(): string
Returns ​
string
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:216
__setAttr ​
â–¸ __setAttr(_attrName, _newValue): boolean
Parameters ​
| Name | Type |
|---|---|
_attrName | string |
_newValue | IValue |
Returns ​
boolean
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:220
__getAttr ​
â–¸ __getAttr(_attrName): IValue
Parameters ​
| Name | Type |
|---|---|
_attrName | string |
Returns ​
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:222
setProxyAttr ​
â–¸ setProxyAttr(_attrName, _newValue): void
Parameters ​
| Name | Type |
|---|---|
_attrName | string |
_newValue | IValue |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:224
getProxyAttr ​
â–¸ getProxyAttr(_attrName): IValue
Parameters ​
| Name | Type |
|---|---|
_attrName | string |
Returns ​
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:226
focus ​
â–¸ focus(_value?): void
Parameters ​
| Name | Type |
|---|---|
_value? | boolean |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:246
updateState ​
â–¸ updateState(): void
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:248
updateLayout ​
â–¸ updateLayout(): void
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:253
forceUpdate ​
â–¸ forceUpdate(attrName?): void
Parameters ​
| Name | Type |
|---|---|
attrName? | string |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:257
forceRender ​
â–¸ forceRender(_bounds?, _sync?): void
Parameters ​
| Name | Type |
|---|---|
_bounds? | IBoundsData |
_sync? | boolean |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:265
__extraUpdate ​
â–¸ __extraUpdate(): void
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:269
__updateWorldMatrix ​
â–¸ __updateWorldMatrix(): void
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:275
__updateLocalMatrix ​
â–¸ __updateLocalMatrix(): void
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:277
__updateWorldBounds ​
â–¸ __updateWorldBounds(): void
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:283
__updateLocalBounds ​
â–¸ __updateLocalBounds(): void
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:285
__updateLocalBoxBounds ​
â–¸ __updateLocalBoxBounds(): void
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:288
__updateLocalStrokeBounds ​
â–¸ __updateLocalStrokeBounds(): void
Returns ​
void
Implementation of ​
IRect.__updateLocalStrokeBounds
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:290
__updateLocalRenderBounds ​
â–¸ __updateLocalRenderBounds(): void
Returns ​
void
Implementation of ​
IRect.__updateLocalRenderBounds
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:292
__updateBoxBounds ​
â–¸ __updateBoxBounds(_secondLayout?, _bounds?): void
Parameters ​
| Name | Type |
|---|---|
_secondLayout? | boolean |
_bounds? | IBoundsData |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:296
__updateContentBounds ​
â–¸ __updateContentBounds(): void
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:298
__updateStrokeBounds ​
â–¸ __updateStrokeBounds(_bounds?): void
Parameters ​
| Name | Type |
|---|---|
_bounds? | IBoundsData |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:300
__updateRenderBounds ​
â–¸ __updateRenderBounds(_bounds?): void
Parameters ​
| Name | Type |
|---|---|
_bounds? | IBoundsData |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:302
__updateAutoLayout ​
â–¸ __updateAutoLayout(): void
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:305
__updateFlowLayout ​
â–¸ __updateFlowLayout(): void
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:307
__updateNaturalSize ​
â–¸ __updateNaturalSize(): void
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:309
__updateStrokeSpread ​
â–¸ __updateStrokeSpread(): IFourNumber
Returns ​
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:312
__updateRenderSpread ​
â–¸ __updateRenderSpread(): IFourNumber
Returns ​
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:314
__updateEraser ​
â–¸ __updateEraser(value?): void
Parameters ​
| Name | Type |
|---|---|
value? | boolean |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:321
__renderEraser ​
â–¸ __renderEraser(canvas, options): void
Parameters ​
| Name | Type |
|---|---|
canvas | ILeaferCanvas |
options | IRenderOptions |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:325
__updateMask ​
â–¸ __updateMask(_value?): void
Parameters ​
| Name | Type |
|---|---|
_value? | boolean |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:333
__renderMask ​
â–¸ __renderMask(_canvas, _options): void
Parameters ​
| Name | Type |
|---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:339
__getNowWorld ​
â–¸ __getNowWorld(options): IMatrixWithBoundsScaleData
Parameters ​
| Name | Type |
|---|---|
options | IRenderOptions |
Returns ​
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:347
getClampRenderScale ​
â–¸ getClampRenderScale(): number
Returns ​
number
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:361
getRenderScaleData ​
â–¸ getRenderScaleData(abs?, scaleFixed?, unscale?): IScaleData
Parameters ​
| Name | Type | Default value |
|---|---|---|
abs? | boolean | undefined |
scaleFixed? | IScaleFixed | undefined |
unscale | boolean | true |
Returns ​
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:367
getTransform ​
â–¸ getTransform(relative?): IMatrixData
Parameters ​
| Name | Type |
|---|---|
relative? | ILeaf | ILocationType |
Returns ​
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:371
getBounds ​
â–¸ getBounds(type?, relative?): IBoundsData
Parameters ​
| Name | Type |
|---|---|
type? | IBoundsType |
relative? | ILeaf | ILocationType |
Returns ​
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:376
getLayoutBounds ​
â–¸ getLayoutBounds(type?, relative?, unscale?): ILayoutBoundsData
Parameters ​
| Name | Type |
|---|---|
type? | IBoundsType |
relative? | ILeaf | ILocationType |
unscale? | boolean |
Returns ​
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:380
getLayoutPoints ​
â–¸ getLayoutPoints(type?, relative?): IPointData[]
Parameters ​
| Name | Type |
|---|---|
type? | IBoundsType |
relative? | ILeaf | ILocationType |
Returns ​
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:384
getWorldBounds ​
â–¸ getWorldBounds(inner, relative?, change?): IBoundsData
Parameters ​
| Name | Type |
|---|---|
inner | IBoundsData |
relative? | ILeaf |
change? | boolean |
Returns ​
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:389
worldToLocal ​
â–¸ worldToLocal(world, to?, distance?, relative?): void
Parameters ​
| Name | Type |
|---|---|
world | IPointData |
to? | IPointData |
distance? | boolean |
relative? | ILeaf |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:397
localToWorld ​
â–¸ localToWorld(local, to?, distance?, relative?): void
Parameters ​
| Name | Type |
|---|---|
local | IPointData |
to? | IPointData |
distance? | boolean |
relative? | ILeaf |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:405
worldToInner ​
â–¸ worldToInner(world, to?, distance?, relative?): void
Parameters ​
| Name | Type |
|---|---|
world | IPointData |
to? | IPointData |
distance? | boolean |
relative? | ILeaf |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:413
innerToWorld ​
â–¸ innerToWorld(inner, to?, distance?, relative?): void
Parameters ​
| Name | Type |
|---|---|
inner | IPointData |
to? | IPointData |
distance? | boolean |
relative? | ILeaf |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:421
getBoxPoint ​
â–¸ getBoxPoint(world, relative?, distance?, change?): IPointData
Parameters ​
| Name | Type |
|---|---|
world | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns ​
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:428
getBoxPointByInner ​
â–¸ getBoxPointByInner(inner, _relative?, _distance?, change?): IPointData
Parameters ​
| Name | Type |
|---|---|
inner | IPointData |
_relative? | ILeaf |
_distance? | boolean |
change? | boolean |
Returns ​
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:434
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 ​
src/leafer/packages/display/src/Leaf.ts:440
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 ​
src/leafer/packages/display/src/Leaf.ts:446
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 ​
src/leafer/packages/display/src/Leaf.ts:452
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 ​
src/leafer/packages/display/src/Leaf.ts:456
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 ​
src/leafer/packages/display/src/Leaf.ts:462
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 ​
src/leafer/packages/display/src/Leaf.ts:466
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 ​
src/leafer/packages/display/src/Leaf.ts:471
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 ​
src/leafer/packages/display/src/Leaf.ts:477
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 ​
src/leafer/packages/display/src/Leaf.ts:481
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 ​
src/leafer/packages/display/src/Leaf.ts:487
setTransform ​
â–¸ setTransform(matrix, resize?, transition?): void
Parameters ​
| Name | Type |
|---|---|
matrix | IMatrixData |
resize? | boolean |
transition? | ITransition |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:495
transform ​
â–¸ transform(matrix, resize?, transition?): void
Parameters ​
| Name | Type |
|---|---|
matrix | IMatrixData |
resize? | boolean |
transition? | ITransition |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:499
move ​
â–¸ move(x, y?, transition?): void
Parameters ​
| Name | Type |
|---|---|
x | number | IPointData |
y? | number |
transition? | ITransition |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:503
moveInner ​
â–¸ moveInner(x, y?, transition?): void
Parameters ​
| Name | Type |
|---|---|
x | number | IPointData |
y? | number |
transition? | ITransition |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:508
scaleOf ​
â–¸ scaleOf(origin, scaleX, scaleY?, resize?, transition?): void
Parameters ​
| Name | Type |
|---|---|
origin | IPointData | IDirection |
scaleX | number |
scaleY? | ITransition |
resize? | boolean |
transition? | ITransition |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:512
rotateOf ​
â–¸ rotateOf(origin, rotation, transition?): void
Parameters ​
| Name | Type |
|---|---|
origin | IPointData | IDirection |
rotation | number |
transition? | ITransition |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:516
skewOf ​
â–¸ skewOf(origin, skewX, skewY?, resize?, transition?): void
Parameters ​
| Name | Type |
|---|---|
origin | IPointData | IDirection |
skewX | number |
skewY? | number |
resize? | boolean |
transition? | ITransition |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:520
transformWorld ​
â–¸ transformWorld(worldTransform?, resize?, transition?): void
Parameters ​
| Name | Type |
|---|---|
worldTransform? | IMatrixData |
resize? | boolean |
transition? | ITransition |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:525
moveWorld ​
â–¸ moveWorld(x, y?, transition?): void
Parameters ​
| Name | Type |
|---|---|
x | number | IPointData |
y? | number |
transition? | ITransition |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:529
scaleOfWorld ​
â–¸ scaleOfWorld(worldOrigin, scaleX, scaleY?, resize?, transition?): void
Parameters ​
| Name | Type |
|---|---|
worldOrigin | IPointData |
scaleX | number |
scaleY? | ITransition |
resize? | boolean |
transition? | ITransition |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:533
rotateOfWorld ​
â–¸ rotateOfWorld(worldOrigin, rotation): void
Parameters ​
| Name | Type |
|---|---|
worldOrigin | IPointData |
rotation | number |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:537
skewOfWorld ​
â–¸ skewOfWorld(worldOrigin, skewX, skewY?, resize?, transition?): void
Parameters ​
| Name | Type |
|---|---|
worldOrigin | IPointData |
skewX | number |
skewY? | number |
resize? | boolean |
transition? | ITransition |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:541
flip ​
â–¸ flip(axis, transition?): void
Parameters ​
| Name | Type |
|---|---|
axis | IAxis |
transition? | ITransition |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:545
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 ​
src/leafer/packages/display/src/Leaf.ts:552
__scaleResize ​
â–¸ __scaleResize(_scaleX, _scaleY): void
Parameters ​
| Name | Type |
|---|---|
_scaleX | number |
_scaleY | number |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:557
resizeWidth ​
â–¸ resizeWidth(_width): void
Parameters ​
| Name | Type |
|---|---|
_width | number |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:560
resizeHeight ​
â–¸ resizeHeight(_height): void
Parameters ​
| Name | Type |
|---|---|
_height | number |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:562
hit ​
â–¸ hit(_world, _hitRadius?): boolean
Parameters ​
| Name | Type |
|---|---|
_world | IPointData |
_hitRadius? | number |
Returns ​
boolean
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:567
__hitWorld ​
â–¸ __hitWorld(_point, _forceHitFill?): boolean
Parameters ​
| Name | Type |
|---|---|
_point | IRadiusPointData |
_forceHitFill? | boolean |
Returns ​
boolean
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:569
__hit ​
â–¸ __hit(_local, _forceHitFill?): boolean
Parameters ​
| Name | Type |
|---|---|
_local | IRadiusPointData |
_forceHitFill? | boolean |
Returns ​
boolean
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:571
__hitFill ​
â–¸ __hitFill(_inner): boolean
Parameters ​
| Name | Type |
|---|---|
_inner | IRadiusPointData |
Returns ​
boolean
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:573
__hitStroke ​
â–¸ __hitStroke(_inner, _strokeWidth): boolean
Parameters ​
| Name | Type |
|---|---|
_inner | IRadiusPointData |
_strokeWidth | number |
Returns ​
boolean
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:575
__hitPixel ​
â–¸ __hitPixel(_inner): boolean
Parameters ​
| Name | Type |
|---|---|
_inner | IRadiusPointData |
Returns ​
boolean
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:577
__drawHitPath ​
â–¸ __drawHitPath(_canvas): void
Parameters ​
| Name | Type |
|---|---|
_canvas | ILeaferCanvas |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:579
__updateHitCanvas ​
â–¸ __updateHitCanvas(): void
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:581
__render ​
â–¸ __render(_canvas, _options): void
Parameters ​
| Name | Type |
|---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:588
__drawFast ​
â–¸ __drawFast(_canvas, _options): void
Parameters ​
| Name | Type |
|---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:590
__draw ​
â–¸ __draw(_canvas, _options, _originCanvas?): void
Parameters ​
| Name | Type |
|---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
_originCanvas? | ILeaferCanvas |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:592
__clip ​
â–¸ __clip(_canvas, _options): void
Parameters ​
| Name | Type |
|---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:595
__renderShape ​
â–¸ __renderShape(_canvas, _options): void
Parameters ​
| Name | Type |
|---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:597
__drawShape ​
â–¸ __drawShape(_canvas, _options): void
Parameters ​
| Name | Type |
|---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:599
__updateWorldOpacity ​
â–¸ __updateWorldOpacity(): void
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:602
__updateChange ​
â–¸ __updateChange(): void
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:604
__updatePath ​
â–¸ __updatePath(): void
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:615
getMotionPathData ​
â–¸ getMotionPathData(): IMotionPathData
Returns ​
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:624
getMotionPoint ​
â–¸ getMotionPoint(_motionDistance): IRotationPointData
Parameters ​
| Name | Type |
|---|---|
_motionDistance | number | IUnitData |
Returns ​
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:628
getMotionTotal ​
â–¸ getMotionTotal(): number
Returns ​
number
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:632
__updateMotionPath ​
â–¸ __updateMotionPath(): void
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:636
__runAnimation ​
â–¸ __runAnimation(_type, _complete?): void
Parameters ​
| Name | Type |
|---|---|
_type | "in" | "out" |
_complete? | IFunction |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:642
__updateSortChildren ​
â–¸ __updateSortChildren(): void
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:647
add ​
â–¸ add(_child, _index?): void
Parameters ​
| Name | Type |
|---|---|
_child | ILeaf | ILeaf[] | ILeafInputData | ILeafInputData[] |
_index? | number |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:649
remove ​
â–¸ remove(_child?, destroy?): void
Parameters ​
| Name | Type |
|---|---|
_child? | string | number | ILeaf | IFindMethod |
destroy? | boolean |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:651
dropTo ​
â–¸ dropTo(parent, index?, resize?): void
Parameters ​
| Name | Type |
|---|---|
parent | ILeaf |
index? | number |
resize? | boolean |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:655
on ​
â–¸ on(_type, _listener?, _options?): void
Parameters ​
| Name | Type |
|---|---|
_type | string | string[] | IEventParamsMap | IEventParams[] |
_listener? | IFunction |
_options? | IEventOption |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:664
off ​
â–¸ off(_type?, _listener?, _options?): void
Parameters ​
| Name | Type |
|---|---|
_type? | string | string[] |
_listener? | IFunction |
_options? | IEventOption |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:666
on_ ​
â–¸ on_(_type, _listener?, _bind?, _options?): IEventListenerId
Parameters ​
| Name | Type |
|---|---|
_type | string | string[] | IEventParams[] |
_listener? | IFunction |
_bind? | IObject |
_options? | IEventOption |
Returns ​
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:668
off_ ​
â–¸ off_(_id): void
Parameters ​
| Name | Type |
|---|---|
_id | IEventListenerId | IEventListenerId[] |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:670
once ​
â–¸ once(_type, _listener?, _captureOrBind?, _capture?): void
Parameters ​
| Name | Type |
|---|---|
_type | string | string[] | IEventParams[] |
_listener? | IFunction |
_captureOrBind? | boolean | IObject |
_capture? | boolean |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:672
emit ​
â–¸ emit(_type, _event?, _capture?): void
Parameters ​
| Name | Type |
|---|---|
_type | string |
_event? | IObject | IEvent |
_capture? | boolean |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:674
emitEvent ​
â–¸ emitEvent(_event?, _capture?): void
Parameters ​
| Name | Type |
|---|---|
_event? | IEvent |
_capture? | boolean |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:676
hasEvent ​
â–¸ hasEvent(_type, _capture?): boolean
Parameters ​
| Name | Type |
|---|---|
_type | string |
_capture? | boolean |
Returns ​
boolean
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:678
changeAttr ​
â–¸ changeAttr(attrName, defaultValue, fn?): void
Parameters ​
| Name | Type |
|---|---|
attrName | string |
defaultValue | IValueFunction | IValue |
fn? | IAttrDecorator |
Returns ​
void
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:682
addAttr ​
â–¸ addAttr(attrName, defaultValue, fn?, helpValue?): void
Parameters ​
| Name | Type |
|---|---|
attrName | string |
defaultValue | IValueFunction | IValue |
fn? | IAttrDecorator |
helpValue? | IValue |
Returns ​
void
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:686
__emitLifeEvent ​
â–¸ __emitLifeEvent(type): void
Parameters ​
| Name | Type |
|---|---|
type | string |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/leafer/packages/display/src/Leaf.ts:692
reset ​
â–¸ reset(_data?): void
Parameters ​
| Name | Type |
|---|---|
_data? | IUIInputData |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:425
set ​
â–¸ set(data, _transition?): void
Parameters ​
| Name | Type |
|---|---|
data | IUIInputData |
_transition? | ITransition | "temp" |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:430
get ​
â–¸ get<K>(name?): IUIInputData | Rect<TInputData>[K]
Type parameters ​
| Name | Type |
|---|---|
K | extends keyof Rect<TInputData> |
Parameters ​
| Name | Type |
|---|---|
name? | IUIInputData | K | K[] |
Returns ​
IUIInputData | Rect<TInputData>[K]
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:434
createProxyData ​
â–¸ createProxyData(): IUIInputData
Returns ​
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:438
clearProxyData ​
â–¸ clearProxyData(): void
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:439
find ​
â–¸ find(_condition, _options?): IUI[]
Parameters ​
| Name | Type |
|---|---|
_condition | string | number | IFindCondition | IFindUIMethod |
_options? | any |
Returns ​
IUI[]
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:444
findTag ​
â–¸ findTag(tag): IUI[]
Parameters ​
| Name | Type |
|---|---|
tag | string | string[] |
Returns ​
IUI[]
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:446
findOne ​
â–¸ findOne(_condition, _options?): IUI
Parameters ​
| Name | Type |
|---|---|
_condition | string | number | IFindCondition | IFindUIMethod |
_options? | any |
Returns ​
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:448
findId ​
â–¸ findId(id): IUI
Parameters ​
| Name | Type |
|---|---|
id | string | number |
Returns ​
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:450
getPath ​
â–¸ getPath(curve?, pathForRender?): IPathCommandData
Parameters ​
| Name | Type |
|---|---|
curve? | boolean |
pathForRender? | boolean |
Returns ​
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:455
getPathString ​
â–¸ getPathString(curve?, pathForRender?, floatLength?): string
Parameters ​
| Name | Type |
|---|---|
curve? | boolean |
pathForRender? | boolean |
floatLength? | number |
Returns ​
string
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:462
asPath ​
â–¸ asPath(curve?, pathForRender?): void
Parameters ​
| Name | Type |
|---|---|
curve? | boolean |
pathForRender? | boolean |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:466
load ​
â–¸ load(): void
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:470
__onUpdateSize ​
â–¸ __onUpdateSize(): void
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:474
__updateRenderPath ​
â–¸ __updateRenderPath(updateCache?): void
Parameters ​
| Name | Type |
|---|---|
updateCache? | boolean |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:481
__drawRenderPath ​
â–¸ __drawRenderPath(canvas): void
Parameters ​
| Name | Type |
|---|---|
canvas | ILeaferCanvas |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:489
__drawPath ​
â–¸ __drawPath(canvas): void
Parameters ​
| Name | Type |
|---|---|
canvas | ILeaferCanvas |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:496
__drawPathByData ​
â–¸ __drawPathByData(drawer, data, ignoreCornerRadius?): void
Parameters ​
| Name | Type |
|---|---|
drawer | IPathDrawer |
data | IPathCommandData |
ignoreCornerRadius? | boolean |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:501
__drawPathByBox ​
â–¸ __drawPathByBox(drawer, ignoreCornerRadius?): void
Parameters ​
| Name | Type |
|---|---|
drawer | IPathDrawer |
ignoreCornerRadius? | boolean |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:505
drawImagePlaceholder ​
â–¸ drawImagePlaceholder(_paint, canvas, renderOptions): void
Parameters ​
| Name | Type |
|---|---|
_paint | ILeafPaint |
canvas | ILeaferCanvas |
renderOptions | IRenderOptions |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:514
animate ​
â–¸ animate(keyframe?, _options?, _type?, _isTemp?): IAnimate
Parameters ​
| Name | Type |
|---|---|
keyframe? | IAnimation | IUIInputData | IKeyframe[] | IAnimation[] |
_options? | ITransition |
_type? | IAnimateType |
_isTemp? | boolean |
Returns ​
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:520
killAnimate ​
â–¸ killAnimate(_type?, _nextStyle?): void
Parameters ​
| Name | Type |
|---|---|
_type? | IAnimateType |
_nextStyle? | IUIInputData |
Returns ​
void
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:525
export ​
â–¸ export(_filename, _options?): Promise<IExportResult>
Parameters ​
| Name | Type |
|---|---|
_filename | string |
_options? | number | boolean | IExportOptions |
Returns ​
Promise<IExportResult>
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:531
syncExport ​
â–¸ syncExport(_filename, _options?): IExportResult
Parameters ​
| Name | Type |
|---|---|
_filename | string |
_options? | number | boolean | IExportOptions |
Returns ​
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:535
clone ​
â–¸ clone(data?): this
Parameters ​
| Name | Type |
|---|---|
data? | IUIInputData |
Returns ​
this
Implementation of ​
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:539
one ​
â–¸ one<T>(this, data, x?, y?, width?, height?): T
Type parameters ​
| Name | Type |
|---|---|
T | extends UI<IUIInputData> |
Parameters ​
| Name | Type |
|---|---|
this | (...args: any[]) => T |
data | IUIInputData |
x? | number |
y? | number |
width? | number |
height? | number |
Returns ​
T
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:546
registerUI ​
â–¸ registerUI(): void
Returns ​
void
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:550
registerData ​
â–¸ registerData(data): void
Parameters ​
| Name | Type |
|---|---|
data | IUIData |
Returns ​
void
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:554
setEditConfig ​
â–¸ setEditConfig(_config): void
Parameters ​
| Name | Type |
|---|---|
_config | IEditorConfig | IEditorConfigFunction |
Returns ​
void
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:561
setEditOuter ​
â–¸ setEditOuter(_toolName): void
Parameters ​
| Name | Type |
|---|---|
_toolName | string | IEditToolFunction |
Returns ​
void
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:563
setEditInner ​
â–¸ setEditInner(_editorName): void
Parameters ​
| Name | Type |
|---|---|
_editorName | string | IEditToolFunction |
Returns ​
void
Inherited from ​
Defined in ​
src/ui/packages/display/src/UI.ts:565
destroy ​
â–¸ destroy(): void
Returns ​
void