Skip to content

Class: UI ​

Hierarchy ​

Implements ​

Table of contents ​

Constructors ​

Properties ​

Accessors ​

Methods ​

Constructors ​

constructor ​

â€ĸ new UI(data?): UI

Parameters ​

NameType
data?IUIInputData

Returns ​

UI

Overrides ​

Leaf.constructor

Defined in ​

ui/packages/display/src/UI.ts:372

Properties ​

innerId ​

â€ĸ Readonly innerId: number

Implementation of ​

IUI.innerId

Inherited from ​

Leaf.innerId

Defined in ​

leafer/packages/display/src/Leaf.ts:30


syncEventer ​

â€ĸ Optional syncEventer: ILeaf

Implementation of ​

IUI.syncEventer

Inherited from ​

Leaf.syncEventer

Defined in ​

leafer/packages/display/src/Leaf.ts:46


lockNormalStyle ​

â€ĸ Optional lockNormalStyle: boolean

Implementation of ​

IUI.lockNormalStyle

Inherited from ​

Leaf.lockNormalStyle

Defined in ​

leafer/packages/display/src/Leaf.ts:47


__layout ​

â€ĸ __layout: ILeafLayout

Implementation of ​

IUI.__layout

Inherited from ​

Leaf.__layout

Defined in ​

leafer/packages/display/src/Leaf.ts:50


__world ​

â€ĸ __world: IMatrixWithBoundsScaleData

Implementation of ​

IUI.__world

Inherited from ​

Leaf.__world

Defined in ​

leafer/packages/display/src/Leaf.ts:52


__local ​

â€ĸ Optional __local: IMatrixWithBoundsData

Implementation of ​

IUI.__local

Inherited from ​

Leaf.__local

Defined in ​

leafer/packages/display/src/Leaf.ts:53


__nowWorld ​

â€ĸ Optional __nowWorld: IMatrixWithBoundsScaleData

Implementation of ​

IUI.__nowWorld

Inherited from ​

Leaf.__nowWorld

Defined in ​

leafer/packages/display/src/Leaf.ts:55


__cameraWorld ​

â€ĸ Optional __cameraWorld: IMatrixWithBoundsScaleData

Implementation of ​

IUI.__cameraWorld

Inherited from ​

Leaf.__cameraWorld

Defined in ​

leafer/packages/display/src/Leaf.ts:56


__worldOpacity ​

â€ĸ __worldOpacity: number

Implementation of ​

IUI.__worldOpacity

Inherited from ​

Leaf.__worldOpacity

Defined in ​

leafer/packages/display/src/Leaf.ts:61


__level ​

â€ĸ __level: number

Implementation of ​

IUI.__level

Inherited from ​

Leaf.__level

Defined in ​

leafer/packages/display/src/Leaf.ts:77


__tempNumber ​

â€ĸ __tempNumber: number

Implementation of ​

IUI.__tempNumber

Inherited from ​

Leaf.__tempNumber

Defined in ​

leafer/packages/display/src/Leaf.ts:78


__hasAutoLayout ​

â€ĸ Optional __hasAutoLayout: boolean

Implementation of ​

IUI.__hasAutoLayout

Inherited from ​

Leaf.__hasAutoLayout

Defined in ​

leafer/packages/display/src/Leaf.ts:82


__hasMask ​

â€ĸ Optional __hasMask: boolean

Implementation of ​

IUI.__hasMask

Inherited from ​

Leaf.__hasMask

Defined in ​

leafer/packages/display/src/Leaf.ts:83


__hasEraser ​

â€ĸ Optional __hasEraser: boolean

Implementation of ​

IUI.__hasEraser

Inherited from ​

Leaf.__hasEraser

Defined in ​

leafer/packages/display/src/Leaf.ts:84


__hitCanvas ​

â€ĸ Optional __hitCanvas: IHitCanvas

Implementation of ​

IUI.__hitCanvas

Inherited from ​

Leaf.__hitCanvas

Defined in ​

leafer/packages/display/src/Leaf.ts:85


__captureMap ​

â€ĸ Optional __captureMap: IEventListenerMap

Implementation of ​

IUI.__captureMap

Inherited from ​

Leaf.__captureMap

Defined in ​

leafer/packages/display/src/Leaf.ts:96


__bubbleMap ​

â€ĸ Optional __bubbleMap: IEventListenerMap

Implementation of ​

IUI.__bubbleMap

Inherited from ​

Leaf.__bubbleMap

Defined in ​

leafer/packages/display/src/Leaf.ts:97


noBounds ​

â€ĸ Optional noBounds: boolean

Implementation of ​

IUI.noBounds

Inherited from ​

Leaf.noBounds

Defined in ​

leafer/packages/display/src/Leaf.ts:103


destroyed ​

â€ĸ destroyed: boolean

Implementation of ​

IUI.destroyed

Inherited from ​

Leaf.destroyed

Defined in ​

leafer/packages/display/src/Leaf.ts:105


__ ​

â€ĸ __: IUIData

Implementation of ​

IUI.__

Overrides ​

Leaf.__

Defined in ​

ui/packages/display/src/UI.ts:19


proxyData ​

â€ĸ Optional proxyData: IUIInputData

Implementation of ​

IUI.proxyData

Defined in ​

ui/packages/display/src/UI.ts:21


__proxyData ​

â€ĸ Optional __proxyData: IUIInputData

Implementation of ​

IUI.__proxyData

Defined in ​

ui/packages/display/src/UI.ts:22


leafer ​

â€ĸ Optional leafer: ILeafer

Implementation of ​

IUI.leafer

Overrides ​

Leaf.leafer

Defined in ​

ui/packages/display/src/UI.ts:26


parent ​

â€ĸ Optional parent: IGroup

Implementation of ​

IUI.parent

Overrides ​

Leaf.parent

Defined in ​

ui/packages/display/src/UI.ts:27


zoomLayer ​

â€ĸ zoomLayer: IGroup

Implementation of ​

IUI.zoomLayer

Defined in ​

ui/packages/display/src/UI.ts:30


children ​

â€ĸ Optional children: IUI[]

Implementation of ​

IUI.children

Overrides ​

Leaf.children

Defined in ​

ui/packages/display/src/UI.ts:34


id ​

â€ĸ Optional id: string

Implementation of ​

IUI.id

Defined in ​

ui/packages/display/src/UI.ts:40


name ​

â€ĸ Optional name: string

Implementation of ​

IUI.name

Defined in ​

ui/packages/display/src/UI.ts:43


className ​

â€ĸ Optional className: string

Implementation of ​

IUI.className

Defined in ​

ui/packages/display/src/UI.ts:46


blendMode ​

â€ĸ Optional blendMode: IBlendMode

Implementation of ​

IUI.blendMode

Defined in ​

ui/packages/display/src/UI.ts:51


opacity ​

â€ĸ Optional opacity: number

Implementation of ​

IUI.opacity

Defined in ​

ui/packages/display/src/UI.ts:54


visible ​

â€ĸ Optional visible: boolean | 0

Implementation of ​

IUI.visible

Defined in ​

ui/packages/display/src/UI.ts:57


locked ​

â€ĸ Optional locked: boolean

Implementation of ​

IUI.locked

Defined in ​

ui/packages/display/src/UI.ts:61


zIndex ​

â€ĸ Optional zIndex: number

Implementation of ​

IUI.zIndex

Defined in ​

ui/packages/display/src/UI.ts:65


mask ​

â€ĸ Optional mask: boolean | IMaskType

Implementation of ​

IUI.mask

Defined in ​

ui/packages/display/src/UI.ts:69


eraser ​

â€ĸ Optional eraser: boolean | IEraserType

Implementation of ​

IUI.eraser

Defined in ​

ui/packages/display/src/UI.ts:72


x ​

â€ĸ Optional x: number

Implementation of ​

IUI.x

Defined in ​

ui/packages/display/src/UI.ts:77


y ​

â€ĸ Optional y: number

Implementation of ​

IUI.y

Defined in ​

ui/packages/display/src/UI.ts:80


width ​

â€ĸ Optional width: number

Implementation of ​

IUI.width

Defined in ​

ui/packages/display/src/UI.ts:84


height ​

â€ĸ Optional height: number

Implementation of ​

IUI.height

Defined in ​

ui/packages/display/src/UI.ts:87


scaleX ​

â€ĸ Optional scaleX: number

Implementation of ​

IUI.scaleX

Defined in ​

ui/packages/display/src/UI.ts:91


scaleY ​

â€ĸ Optional scaleY: number

Implementation of ​

IUI.scaleY

Defined in ​

ui/packages/display/src/UI.ts:94


rotation ​

â€ĸ Optional rotation: number

Implementation of ​

IUI.rotation

Defined in ​

ui/packages/display/src/UI.ts:98


skewX ​

â€ĸ Optional skewX: number

Implementation of ​

IUI.skewX

Defined in ​

ui/packages/display/src/UI.ts:102


skewY ​

â€ĸ Optional skewY: number

Implementation of ​

IUI.skewY

Defined in ​

ui/packages/display/src/UI.ts:105


offsetX ​

â€ĸ Optional offsetX: number

Implementation of ​

IUI.offsetX

Defined in ​

ui/packages/display/src/UI.ts:110


offsetY ​

â€ĸ Optional offsetY: number

Implementation of ​

IUI.offsetY

Defined in ​

ui/packages/display/src/UI.ts:113


scrollX ​

â€ĸ Optional scrollX: number

Implementation of ​

IUI.scrollX

Defined in ​

ui/packages/display/src/UI.ts:117


scrollY ​

â€ĸ Optional scrollY: number

Implementation of ​

IUI.scrollY

Defined in ​

ui/packages/display/src/UI.ts:120


origin ​

â€ĸ Optional origin: IUnitPointData | IDirection

Implementation of ​

IUI.origin

Defined in ​

ui/packages/display/src/UI.ts:125


around ​

â€ĸ Optional around: IUnitPointData | IDirection

Implementation of ​

IUI.around

Defined in ​

ui/packages/display/src/UI.ts:128


lazy ​

â€ĸ Optional lazy: boolean

Implementation of ​

IUI.lazy

Defined in ​

ui/packages/display/src/UI.ts:133


pixelRatio ​

â€ĸ Optional pixelRatio: number

Implementation of ​

IUI.pixelRatio

Defined in ​

ui/packages/display/src/UI.ts:136


path ​

â€ĸ Optional path: string | IPathCommandData | IPathCommandObject[]

Implementation of ​

IUI.path

Defined in ​

ui/packages/display/src/UI.ts:141


windingRule ​

â€ĸ Optional windingRule: IWindingRule

Implementation of ​

IUI.windingRule

Defined in ​

ui/packages/display/src/UI.ts:144


closed ​

â€ĸ Optional closed: boolean

Implementation of ​

IUI.closed

Defined in ​

ui/packages/display/src/UI.ts:147


flow ​

â€ĸ Optional flow: IFlowType

Implementation of ​

IUI.flow

Defined in ​

ui/packages/display/src/UI.ts:151


padding ​

â€ĸ Optional padding: IFourNumber

Implementation of ​

IUI.padding

Defined in ​

ui/packages/display/src/UI.ts:154


gap ​

â€ĸ Optional gap: IGap | IPointGap

Implementation of ​

IUI.gap

Defined in ​

ui/packages/display/src/UI.ts:156


flowAlign ​

â€ĸ Optional flowAlign: IFlowAxisAlign | IFlowAlign

Implementation of ​

IUI.flowAlign

Defined in ​

ui/packages/display/src/UI.ts:158


flowWrap ​

â€ĸ Optional flowWrap: IFlowWrap

Implementation of ​

IUI.flowWrap

Defined in ​

ui/packages/display/src/UI.ts:160


itemBox ​

â€ĸ Optional itemBox: IFlowBoxType

Implementation of ​

IUI.itemBox

Defined in ​

ui/packages/display/src/UI.ts:163


inFlow ​

â€ĸ Optional inFlow: boolean

Implementation of ​

IUI.inFlow

Defined in ​

ui/packages/display/src/UI.ts:165


autoWidth ​

â€ĸ Optional autoWidth: IAutoSize

Implementation of ​

IUI.autoWidth

Defined in ​

ui/packages/display/src/UI.ts:168


autoHeight ​

â€ĸ Optional autoHeight: IAutoSize

Implementation of ​

IUI.autoHeight

Defined in ​

ui/packages/display/src/UI.ts:170


lockRatio ​

â€ĸ Optional lockRatio: boolean

Implementation of ​

IUI.lockRatio

Defined in ​

ui/packages/display/src/UI.ts:173


autoBox ​

â€ĸ Optional autoBox: IAutoBoxData | IConstraint

Implementation of ​

IUI.autoBox

Defined in ​

ui/packages/display/src/UI.ts:175


widthRange ​

â€ĸ Optional widthRange: IRangeSize

Implementation of ​

IUI.widthRange

Defined in ​

ui/packages/display/src/UI.ts:178


heightRange ​

â€ĸ Optional heightRange: IRangeSize

Implementation of ​

IUI.heightRange

Defined in ​

ui/packages/display/src/UI.ts:181


draggable ​

â€ĸ Optional draggable: boolean | IAxis

Implementation of ​

IUI.draggable

Defined in ​

ui/packages/display/src/UI.ts:186


dragBounds ​

â€ĸ Optional dragBounds: "parent" | IBoundsData

Implementation of ​

IUI.dragBounds

Defined in ​

ui/packages/display/src/UI.ts:189


editable ​

â€ĸ Optional editable: boolean

Implementation of ​

IUI.editable

Defined in ​

ui/packages/display/src/UI.ts:193


hittable ​

â€ĸ Optional hittable: boolean

Implementation of ​

IUI.hittable

Defined in ​

ui/packages/display/src/UI.ts:198


hitFill ​

â€ĸ Optional hitFill: IHitType

Implementation of ​

IUI.hitFill

Defined in ​

ui/packages/display/src/UI.ts:201


hitStroke ​

â€ĸ Optional hitStroke: IHitType

Implementation of ​

IUI.hitStroke

Defined in ​

ui/packages/display/src/UI.ts:204


hitBox ​

â€ĸ Optional hitBox: boolean

Implementation of ​

IUI.hitBox

Defined in ​

ui/packages/display/src/UI.ts:207


hitChildren ​

â€ĸ Optional hitChildren: boolean

Implementation of ​

IUI.hitChildren

Defined in ​

ui/packages/display/src/UI.ts:210


hitSelf ​

â€ĸ Optional hitSelf: boolean

Implementation of ​

IUI.hitSelf

Defined in ​

ui/packages/display/src/UI.ts:213


hitRadius ​

â€ĸ Optional hitRadius: number

Implementation of ​

IUI.hitRadius

Defined in ​

ui/packages/display/src/UI.ts:216


cursor ​

â€ĸ Optional cursor: ICursorType | ICursorType[]

Implementation of ​

IUI.cursor

Defined in ​

ui/packages/display/src/UI.ts:219


fill ​

â€ĸ Optional fill: IFill

Implementation of ​

IUI.fill

Defined in ​

ui/packages/display/src/UI.ts:227


stroke ​

â€ĸ Optional stroke: IStroke

Implementation of ​

IUI.stroke

Defined in ​

ui/packages/display/src/UI.ts:232


strokeAlign ​

â€ĸ Optional strokeAlign: IStrokeAlign

Implementation of ​

IUI.strokeAlign

Defined in ​

ui/packages/display/src/UI.ts:235


strokeWidth ​

â€ĸ Optional strokeWidth: string | IFourNumber

Implementation of ​

IUI.strokeWidth

Defined in ​

ui/packages/display/src/UI.ts:238


strokeWidthFixed ​

â€ĸ Optional strokeWidthFixed: boolean

Implementation of ​

IUI.strokeWidthFixed

Defined in ​

ui/packages/display/src/UI.ts:241


strokeCap ​

â€ĸ Optional strokeCap: IStrokeCap

Implementation of ​

IUI.strokeCap

Defined in ​

ui/packages/display/src/UI.ts:244


strokeJoin ​

â€ĸ Optional strokeJoin: IStrokeJoin

Implementation of ​

IUI.strokeJoin

Defined in ​

ui/packages/display/src/UI.ts:247


dashPattern ​

â€ĸ Optional dashPattern: string | number[]

Implementation of ​

IUI.dashPattern

Defined in ​

ui/packages/display/src/UI.ts:250


dashOffset ​

â€ĸ Optional dashOffset: number

Implementation of ​

IUI.dashOffset

Defined in ​

ui/packages/display/src/UI.ts:253


miterLimit ​

â€ĸ Optional miterLimit: number

Implementation of ​

IUI.miterLimit

Defined in ​

ui/packages/display/src/UI.ts:256


startArrow ​

â€ĸ Optional startArrow: IArrowType

Implementation of ​

IUI.startArrow

Defined in ​

ui/packages/display/src/UI.ts:261


endArrow ​

â€ĸ Optional endArrow: IArrowType

Implementation of ​

IUI.endArrow

Defined in ​

ui/packages/display/src/UI.ts:263


cornerRadius ​

â€ĸ Optional cornerRadius: string | IFourNumber

Implementation of ​

IUI.cornerRadius

Defined in ​

ui/packages/display/src/UI.ts:268


cornerSmoothing ​

â€ĸ Optional cornerSmoothing: number

Implementation of ​

IUI.cornerSmoothing

Defined in ​

ui/packages/display/src/UI.ts:271


shadow ​

â€ĸ Optional shadow: string | IShadowEffect | IShadowEffect[]

Implementation of ​

IUI.shadow

Defined in ​

ui/packages/display/src/UI.ts:276


innerShadow ​

â€ĸ Optional innerShadow: string | IShadowEffect | IShadowEffect[]

Implementation of ​

IUI.innerShadow

Defined in ​

ui/packages/display/src/UI.ts:279


blur ​

â€ĸ Optional blur: number | IBlurEffect

Implementation of ​

IUI.blur

Defined in ​

ui/packages/display/src/UI.ts:282


backgroundBlur ​

â€ĸ Optional backgroundBlur: number | IBlurEffect

Implementation of ​

IUI.backgroundBlur

Defined in ​

ui/packages/display/src/UI.ts:285


grayscale ​

â€ĸ Optional grayscale: number | IGrayscaleEffect

Implementation of ​

IUI.grayscale

Defined in ​

ui/packages/display/src/UI.ts:288


filter ​

â€ĸ Optional filter: IObject | IObject[]

Defined in ​

ui/packages/display/src/UI.ts:290


animation ​

â€ĸ Optional animation: IAnimation

Implementation of ​

IUI.animation

Defined in ​

ui/packages/display/src/UI.ts:295


animationOut ​

â€ĸ Optional animationOut: IAnimation

Implementation of ​

IUI.animationOut

Defined in ​

ui/packages/display/src/UI.ts:297


transition ​

â€ĸ Optional transition: ITransition

Implementation of ​

IUI.transition

Defined in ​

ui/packages/display/src/UI.ts:300


transitionOut ​

â€ĸ Optional transitionOut: ITransition

Implementation of ​

IUI.transitionOut

Defined in ​

ui/packages/display/src/UI.ts:302


motionPath ​

â€ĸ Optional motionPath: boolean

Implementation of ​

IUI.motionPath

Defined in ​

ui/packages/display/src/UI.ts:307


motionPrecision ​

â€ĸ Optional motionPrecision: number

Implementation of ​

IUI.motionPrecision

Defined in ​

ui/packages/display/src/UI.ts:309


motion ​

â€ĸ Optional motion: number | IUnitData

Implementation of ​

IUI.motion

Defined in ​

ui/packages/display/src/UI.ts:312


motionRotation ​

â€ĸ Optional motionRotation: number | boolean

Implementation of ​

IUI.motionRotation

Defined in ​

ui/packages/display/src/UI.ts:314


states ​

â€ĸ Optional states: IStates

Implementation of ​

IUI.states

Defined in ​

ui/packages/display/src/UI.ts:319


state ​

â€ĸ Optional state: string

Implementation of ​

IUI.state

Defined in ​

ui/packages/display/src/UI.ts:321


selected ​

â€ĸ Optional selected: boolean

Implementation of ​

IUI.selected

Defined in ​

ui/packages/display/src/UI.ts:324


disabled ​

â€ĸ Optional disabled: boolean

Implementation of ​

IUI.disabled

Defined in ​

ui/packages/display/src/UI.ts:326


normalStyle ​

â€ĸ Optional normalStyle: IUIInputData

Implementation of ​

IUI.normalStyle

Defined in ​

ui/packages/display/src/UI.ts:329


hoverStyle ​

â€ĸ Optional hoverStyle: IUIInputData

Implementation of ​

IUI.hoverStyle

Defined in ​

ui/packages/display/src/UI.ts:331


pressStyle ​

â€ĸ Optional pressStyle: IUIInputData

Implementation of ​

IUI.pressStyle

Defined in ​

ui/packages/display/src/UI.ts:333


focusStyle ​

â€ĸ Optional focusStyle: IUIInputData

Implementation of ​

IUI.focusStyle

Defined in ​

ui/packages/display/src/UI.ts:335


selectedStyle ​

â€ĸ Optional selectedStyle: IUIInputData

Implementation of ​

IUI.selectedStyle

Defined in ​

ui/packages/display/src/UI.ts:337


disabledStyle ​

â€ĸ Optional disabledStyle: IUIInputData

Implementation of ​

IUI.disabledStyle

Defined in ​

ui/packages/display/src/UI.ts:339


button ​

â€ĸ Optional button: boolean

Implementation of ​

IUI.button

Defined in ​

ui/packages/display/src/UI.ts:342


data ​

â€ĸ data: IObject

Implementation of ​

IUI.data

Defined in ​

ui/packages/display/src/UI.ts:347


__animate ​

â€ĸ Optional __animate: IAnimate

Implementation of ​

IUI.__animate

Defined in ​

ui/packages/display/src/UI.ts:353

Accessors ​

tag ​

â€ĸ get tag(): string

Returns ​

string

Implementation of ​

IUI.tag

Inherited from ​

Leaf.tag

Defined in ​

leafer/packages/display/src/Leaf.ts:25

â€ĸ set tag(_value): void

Parameters ​

NameType
_valuestring

Returns ​

void

Implementation of ​

IUI.tag

Inherited from ​

Leaf.tag

Defined in ​

leafer/packages/display/src/Leaf.ts:26


__tag ​

â€ĸ get __tag(): string

Returns ​

string

Implementation of ​

IUI.__tag

Inherited from ​

Leaf.__tag

Defined in ​

leafer/packages/display/src/Leaf.ts:28


innerName ​

â€ĸ get innerName(): string

Returns ​

string

Implementation of ​

IUI.innerName

Inherited from ​

Leaf.innerName

Defined in ​

leafer/packages/display/src/Leaf.ts:31


__DataProcessor ​

â€ĸ get __DataProcessor(): typeof LeafData

Returns ​

typeof LeafData

Implementation of ​

IUI.__DataProcessor

Inherited from ​

Leaf.__DataProcessor

Defined in ​

leafer/packages/display/src/Leaf.ts:33


__LayoutProcessor ​

â€ĸ get __LayoutProcessor(): typeof LeafLayout

Returns ​

typeof LeafLayout

Implementation of ​

IUI.__LayoutProcessor

Inherited from ​

Leaf.__LayoutProcessor

Defined in ​

leafer/packages/display/src/Leaf.ts:34


leaferIsCreated ​

â€ĸ get leaferIsCreated(): boolean

Returns ​

boolean

Implementation of ​

IUI.leaferIsCreated

Inherited from ​

Leaf.leaferIsCreated

Defined in ​

leafer/packages/display/src/Leaf.ts:39


leaferIsReady ​

â€ĸ get leaferIsReady(): boolean

Returns ​

boolean

Implementation of ​

IUI.leaferIsReady

Inherited from ​

Leaf.leaferIsReady

Defined in ​

leafer/packages/display/src/Leaf.ts:40


isLeafer ​

â€ĸ get isLeafer(): boolean

Returns ​

boolean

Implementation of ​

IUI.isLeafer

Inherited from ​

Leaf.isLeafer

Defined in ​

leafer/packages/display/src/Leaf.ts:42


isBranch ​

â€ĸ get isBranch(): boolean

Returns ​

boolean

Implementation of ​

IUI.isBranch

Inherited from ​

Leaf.isBranch

Defined in ​

leafer/packages/display/src/Leaf.ts:43


isBranchLeaf ​

â€ĸ get isBranchLeaf(): boolean

Returns ​

boolean

Implementation of ​

IUI.isBranchLeaf

Inherited from ​

Leaf.isBranchLeaf

Defined in ​

leafer/packages/display/src/Leaf.ts:44


__localMatrix ​

â€ĸ get __localMatrix(): IMatrixData

Returns ​

IMatrixData

Implementation of ​

IUI.__localMatrix

Inherited from ​

Leaf.__localMatrix

Defined in ​

leafer/packages/display/src/Leaf.ts:58


__localBoxBounds ​

â€ĸ get __localBoxBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

IUI.__localBoxBounds

Inherited from ​

Leaf.__localBoxBounds

Defined in ​

leafer/packages/display/src/Leaf.ts:59


worldTransform ​

â€ĸ get worldTransform(): IMatrixWithScaleData

Returns ​

IMatrixWithScaleData

Implementation of ​

IUI.worldTransform

Inherited from ​

Leaf.worldTransform

Defined in ​

leafer/packages/display/src/Leaf.ts:64


localTransform ​

â€ĸ get localTransform(): IMatrixData

Returns ​

IMatrixData

Implementation of ​

IUI.localTransform

Inherited from ​

Leaf.localTransform

Defined in ​

leafer/packages/display/src/Leaf.ts:65


boxBounds ​

â€ĸ get boxBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

IUI.boxBounds

Inherited from ​

Leaf.boxBounds

Defined in ​

leafer/packages/display/src/Leaf.ts:68


renderBounds ​

â€ĸ get renderBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

IUI.renderBounds

Inherited from ​

Leaf.renderBounds

Defined in ​

leafer/packages/display/src/Leaf.ts:69


worldBoxBounds ​

â€ĸ get worldBoxBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

IUI.worldBoxBounds

Inherited from ​

Leaf.worldBoxBounds

Defined in ​

leafer/packages/display/src/Leaf.ts:70


worldStrokeBounds ​

â€ĸ get worldStrokeBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

IUI.worldStrokeBounds

Inherited from ​

Leaf.worldStrokeBounds

Defined in ​

leafer/packages/display/src/Leaf.ts:71


worldRenderBounds ​

â€ĸ get worldRenderBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

IUI.worldRenderBounds

Inherited from ​

Leaf.worldRenderBounds

Defined in ​

leafer/packages/display/src/Leaf.ts:72


worldOpacity ​

â€ĸ get worldOpacity(): number

Returns ​

number

Implementation of ​

IUI.worldOpacity

Inherited from ​

Leaf.worldOpacity

Defined in ​

leafer/packages/display/src/Leaf.ts:75


__worldFlipped ​

â€ĸ get __worldFlipped(): boolean

Returns ​

boolean

Implementation of ​

IUI.__worldFlipped

Inherited from ​

Leaf.__worldFlipped

Defined in ​

leafer/packages/display/src/Leaf.ts:80


__onlyHitMask ​

â€ĸ get __onlyHitMask(): boolean

Returns ​

boolean

Implementation of ​

IUI.__onlyHitMask

Inherited from ​

Leaf.__onlyHitMask

Defined in ​

leafer/packages/display/src/Leaf.ts:87


__ignoreHitWorld ​

â€ĸ get __ignoreHitWorld(): boolean

Returns ​

boolean

Implementation of ​

IUI.__ignoreHitWorld

Inherited from ​

Leaf.__ignoreHitWorld

Defined in ​

leafer/packages/display/src/Leaf.ts:88


__inLazyBounds ​

â€ĸ get __inLazyBounds(): boolean

Returns ​

boolean

Implementation of ​

IUI.__inLazyBounds

Inherited from ​

Leaf.__inLazyBounds

Defined in ​

leafer/packages/display/src/Leaf.ts:89


pathInputed ​

â€ĸ get pathInputed(): boolean

Returns ​

boolean

Implementation of ​

IUI.pathInputed

Inherited from ​

Leaf.pathInputed

Defined in ​

leafer/packages/display/src/Leaf.ts:91


event ​

â€ĸ set event(map): void

Parameters ​

NameType
mapIEventMap

Returns ​

void

Implementation of ​

IUI.event

Inherited from ​

Leaf.event

Defined in ​

leafer/packages/display/src/Leaf.ts:94


app ​

â€ĸ get app(): ILeafer

Returns ​

ILeafer

Implementation of ​

IUI.app

Defined in ​

ui/packages/display/src/UI.ts:24


isFrame ​

â€ĸ get isFrame(): boolean

Returns ​

boolean

Implementation of ​

IUI.isFrame

Defined in ​

ui/packages/display/src/UI.ts:32


scale ​

â€ĸ get scale(): number | IPointData

Returns ​

number | IPointData

Implementation of ​

IUI.scale

Defined in ​

ui/packages/display/src/UI.ts:351

â€ĸ set scale(value): void

Parameters ​

NameType
valuenumber | IPointData

Returns ​

void

Implementation of ​

IUI.scale

Defined in ​

ui/packages/display/src/UI.ts:350


pen ​

â€ĸ get pen(): IPathCreator

Returns ​

IPathCreator

Implementation of ​

IUI.pen

Defined in ​

ui/packages/display/src/UI.ts:355


editConfig ​

â€ĸ get editConfig(): IEditorConfig

Returns ​

IEditorConfig

Implementation of ​

IUI.editConfig

Defined in ​

ui/packages/display/src/UI.ts:365


editOuter ​

â€ĸ get editOuter(): string

Returns ​

string

Implementation of ​

IUI.editOuter

Defined in ​

ui/packages/display/src/UI.ts:367


editInner ​

â€ĸ get editInner(): string

Returns ​

string

Implementation of ​

IUI.editInner

Defined in ​

ui/packages/display/src/UI.ts:369

Methods ​

resetCustom ​

▸ resetCustom(): void

Returns ​

void

Implementation of ​

IUI.resetCustom

Inherited from ​

Leaf.resetCustom

Defined in ​

leafer/packages/display/src/Leaf.ts:133


waitParent ​

▸ waitParent(item, bind?): void

Parameters ​

NameType
itemIFunction
bind?IObject

Returns ​

void

Implementation of ​

IUI.waitParent

Inherited from ​

Leaf.waitParent

Defined in ​

leafer/packages/display/src/Leaf.ts:139


waitLeafer ​

▸ waitLeafer(item, bind?): void

Parameters ​

NameType
itemIFunction
bind?IObject

Returns ​

void

Implementation of ​

IUI.waitLeafer

Inherited from ​

Leaf.waitLeafer

Defined in ​

leafer/packages/display/src/Leaf.ts:144


nextRender ​

▸ nextRender(item, bind?, off?): void

Parameters ​

NameType
itemIFunction
bind?IObject
off?"off"

Returns ​

void

Implementation of ​

IUI.nextRender

Inherited from ​

Leaf.nextRender

Defined in ​

leafer/packages/display/src/Leaf.ts:149


removeNextRender ​

▸ removeNextRender(item): void

Parameters ​

NameType
itemIFunction

Returns ​

void

Implementation of ​

IUI.removeNextRender

Inherited from ​

Leaf.removeNextRender

Defined in ​

leafer/packages/display/src/Leaf.ts:153


__bindLeafer ​

▸ __bindLeafer(leafer): void

Parameters ​

NameType
leaferILeaferBase

Returns ​

void

Implementation of ​

IUI.__bindLeafer

Inherited from ​

Leaf.__bindLeafer

Defined in ​

leafer/packages/display/src/Leaf.ts:157


setAttr ​

▸ setAttr(name, value): void

Parameters ​

NameType
namestring
valueany

Returns ​

void

Implementation of ​

IUI.setAttr

Inherited from ​

Leaf.setAttr

Defined in ​

leafer/packages/display/src/Leaf.ts:186


getAttr ​

▸ getAttr(name): any

Parameters ​

NameType
namestring

Returns ​

any

Implementation of ​

IUI.getAttr

Inherited from ​

Leaf.getAttr

Defined in ​

leafer/packages/display/src/Leaf.ts:187


getComputedAttr ​

▸ getComputedAttr(name): any

Parameters ​

NameType
namestring

Returns ​

any

Implementation of ​

IUI.getComputedAttr

Inherited from ​

Leaf.getComputedAttr

Defined in ​

leafer/packages/display/src/Leaf.ts:189


toJSON ​

▸ toJSON(options?): IObject

Parameters ​

NameType
options?IJSONOptions

Returns ​

IObject

Implementation of ​

IUI.toJSON

Inherited from ​

Leaf.toJSON

Defined in ​

leafer/packages/display/src/Leaf.ts:191


toString ​

▸ toString(options?): string

Parameters ​

NameType
options?IJSONOptions

Returns ​

string

Implementation of ​

IUI.toString

Inherited from ​

Leaf.toString

Defined in ​

leafer/packages/display/src/Leaf.ts:196


toSVG ​

▸ toSVG(): string

Returns ​

string

Implementation of ​

IUI.toSVG

Inherited from ​

Leaf.toSVG

Defined in ​

leafer/packages/display/src/Leaf.ts:200


__SVG ​

▸ __SVG(_data): void

Parameters ​

NameType
_dataIObject

Returns ​

void

Implementation of ​

IUI.__SVG

Inherited from ​

Leaf.__SVG

Defined in ​

leafer/packages/display/src/Leaf.ts:202


toHTML ​

▸ toHTML(): string

Returns ​

string

Implementation of ​

IUI.toHTML

Inherited from ​

Leaf.toHTML

Defined in ​

leafer/packages/display/src/Leaf.ts:204


__setAttr ​

▸ __setAttr(_attrName, _newValue): boolean

Parameters ​

NameType
_attrNamestring
_newValueIValue

Returns ​

boolean

Implementation of ​

IUI.__setAttr

Inherited from ​

Leaf.__setAttr

Defined in ​

leafer/packages/display/src/Leaf.ts:208


__getAttr ​

▸ __getAttr(_attrName): IValue

Parameters ​

NameType
_attrNamestring

Returns ​

IValue

Implementation of ​

IUI.__getAttr

Inherited from ​

Leaf.__getAttr

Defined in ​

leafer/packages/display/src/Leaf.ts:210


setProxyAttr ​

▸ setProxyAttr(_attrName, _newValue): void

Parameters ​

NameType
_attrNamestring
_newValueIValue

Returns ​

void

Implementation of ​

IUI.setProxyAttr

Inherited from ​

Leaf.setProxyAttr

Defined in ​

leafer/packages/display/src/Leaf.ts:212


getProxyAttr ​

▸ getProxyAttr(_attrName): IValue

Parameters ​

NameType
_attrNamestring

Returns ​

IValue

Implementation of ​

IUI.getProxyAttr

Inherited from ​

Leaf.getProxyAttr

Defined in ​

leafer/packages/display/src/Leaf.ts:214


focus ​

▸ focus(_value?): void

Parameters ​

NameType
_value?boolean

Returns ​

void

Implementation of ​

IUI.focus

Inherited from ​

Leaf.focus

Defined in ​

leafer/packages/display/src/Leaf.ts:234


updateState ​

▸ updateState(): void

Returns ​

void

Implementation of ​

IUI.updateState

Inherited from ​

Leaf.updateState

Defined in ​

leafer/packages/display/src/Leaf.ts:236


updateLayout ​

▸ updateLayout(): void

Returns ​

void

Implementation of ​

IUI.updateLayout

Inherited from ​

Leaf.updateLayout

Defined in ​

leafer/packages/display/src/Leaf.ts:241


forceUpdate ​

▸ forceUpdate(attrName?): void

Parameters ​

NameType
attrName?string

Returns ​

void

Implementation of ​

IUI.forceUpdate

Inherited from ​

Leaf.forceUpdate

Defined in ​

leafer/packages/display/src/Leaf.ts:245


forceRender ​

▸ forceRender(_bounds?, _sync?): void

Parameters ​

NameType
_bounds?IBoundsData
_sync?boolean

Returns ​

void

Implementation of ​

IUI.forceRender

Inherited from ​

Leaf.forceRender

Defined in ​

leafer/packages/display/src/Leaf.ts:253


__updateWorldMatrix ​

▸ __updateWorldMatrix(): void

Returns ​

void

Implementation of ​

IUI.__updateWorldMatrix

Inherited from ​

Leaf.__updateWorldMatrix

Defined in ​

leafer/packages/display/src/Leaf.ts:259


__updateLocalMatrix ​

▸ __updateLocalMatrix(): void

Returns ​

void

Implementation of ​

IUI.__updateLocalMatrix

Inherited from ​

Leaf.__updateLocalMatrix

Defined in ​

leafer/packages/display/src/Leaf.ts:261


__updateWorldBounds ​

▸ __updateWorldBounds(): void

Returns ​

void

Implementation of ​

IUI.__updateWorldBounds

Inherited from ​

Leaf.__updateWorldBounds

Defined in ​

leafer/packages/display/src/Leaf.ts:267


__updateLocalBounds ​

▸ __updateLocalBounds(): void

Returns ​

void

Implementation of ​

IUI.__updateLocalBounds

Inherited from ​

Leaf.__updateLocalBounds

Defined in ​

leafer/packages/display/src/Leaf.ts:269


__updateLocalBoxBounds ​

▸ __updateLocalBoxBounds(): void

Returns ​

void

Implementation of ​

IUI.__updateLocalBoxBounds

Inherited from ​

Leaf.__updateLocalBoxBounds

Defined in ​

leafer/packages/display/src/Leaf.ts:272


__updateLocalStrokeBounds ​

▸ __updateLocalStrokeBounds(): void

Returns ​

void

Implementation of ​

IUI.__updateLocalStrokeBounds

Inherited from ​

Leaf.__updateLocalStrokeBounds

Defined in ​

leafer/packages/display/src/Leaf.ts:274


__updateLocalRenderBounds ​

▸ __updateLocalRenderBounds(): void

Returns ​

void

Implementation of ​

IUI.__updateLocalRenderBounds

Inherited from ​

Leaf.__updateLocalRenderBounds

Defined in ​

leafer/packages/display/src/Leaf.ts:276


__updateBoxBounds ​

▸ __updateBoxBounds(): void

Returns ​

void

Implementation of ​

IUI.__updateBoxBounds

Inherited from ​

Leaf.__updateBoxBounds

Defined in ​

leafer/packages/display/src/Leaf.ts:280


__updateContentBounds ​

▸ __updateContentBounds(): void

Returns ​

void

Implementation of ​

IUI.__updateContentBounds

Inherited from ​

Leaf.__updateContentBounds

Defined in ​

leafer/packages/display/src/Leaf.ts:282


__updateStrokeBounds ​

▸ __updateStrokeBounds(): void

Returns ​

void

Implementation of ​

IUI.__updateStrokeBounds

Inherited from ​

Leaf.__updateStrokeBounds

Defined in ​

leafer/packages/display/src/Leaf.ts:284


__updateRenderBounds ​

▸ __updateRenderBounds(): void

Returns ​

void

Implementation of ​

IUI.__updateRenderBounds

Inherited from ​

Leaf.__updateRenderBounds

Defined in ​

leafer/packages/display/src/Leaf.ts:286


__updateAutoLayout ​

▸ __updateAutoLayout(): void

Returns ​

void

Implementation of ​

IUI.__updateAutoLayout

Inherited from ​

Leaf.__updateAutoLayout

Defined in ​

leafer/packages/display/src/Leaf.ts:289


__updateFlowLayout ​

▸ __updateFlowLayout(): void

Returns ​

void

Implementation of ​

IUI.__updateFlowLayout

Inherited from ​

Leaf.__updateFlowLayout

Defined in ​

leafer/packages/display/src/Leaf.ts:291


__updateNaturalSize ​

▸ __updateNaturalSize(): void

Returns ​

void

Implementation of ​

IUI.__updateNaturalSize

Inherited from ​

Leaf.__updateNaturalSize

Defined in ​

leafer/packages/display/src/Leaf.ts:293


__updateStrokeSpread ​

▸ __updateStrokeSpread(): number

Returns ​

number

Implementation of ​

IUI.__updateStrokeSpread

Inherited from ​

Leaf.__updateStrokeSpread

Defined in ​

leafer/packages/display/src/Leaf.ts:296


__updateRenderSpread ​

▸ __updateRenderSpread(): number

Returns ​

number

Implementation of ​

IUI.__updateRenderSpread

Inherited from ​

Leaf.__updateRenderSpread

Defined in ​

leafer/packages/display/src/Leaf.ts:298


__updateEraser ​

▸ __updateEraser(value?): void

Parameters ​

NameType
value?boolean

Returns ​

void

Implementation of ​

IUI.__updateEraser

Inherited from ​

Leaf.__updateEraser

Defined in ​

leafer/packages/display/src/Leaf.ts:305


__renderEraser ​

▸ __renderEraser(canvas, options): void

Parameters ​

NameType
canvasILeaferCanvas
optionsIRenderOptions

Returns ​

void

Implementation of ​

IUI.__renderEraser

Inherited from ​

Leaf.__renderEraser

Defined in ​

leafer/packages/display/src/Leaf.ts:309


__updateMask ​

▸ __updateMask(_value?): void

Parameters ​

NameType
_value?boolean

Returns ​

void

Implementation of ​

IUI.__updateMask

Inherited from ​

Leaf.__updateMask

Defined in ​

leafer/packages/display/src/Leaf.ts:317


__renderMask ​

▸ __renderMask(_canvas, _options): void

Parameters ​

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns ​

void

Implementation of ​

IUI.__renderMask

Inherited from ​

Leaf.__renderMask

Defined in ​

leafer/packages/display/src/Leaf.ts:323


__getNowWorld ​

▸ __getNowWorld(options): IMatrixWithBoundsScaleData

Parameters ​

NameType
optionsIRenderOptions

Returns ​

IMatrixWithBoundsScaleData

Implementation of ​

IUI.__getNowWorld

Inherited from ​

Leaf.__getNowWorld

Defined in ​

leafer/packages/display/src/Leaf.ts:331


getTransform ​

▸ getTransform(relative?): IMatrixData

Parameters ​

NameType
relative?ILeaf | ILocationType

Returns ​

IMatrixData

Implementation of ​

IUI.getTransform

Inherited from ​

Leaf.getTransform

Defined in ​

leafer/packages/display/src/Leaf.ts:343


getBounds ​

▸ getBounds(type?, relative?): IBoundsData

Parameters ​

NameType
type?IBoundsType
relative?ILeaf | ILocationType

Returns ​

IBoundsData

Implementation of ​

IUI.getBounds

Inherited from ​

Leaf.getBounds

Defined in ​

leafer/packages/display/src/Leaf.ts:348


getLayoutBounds ​

▸ getLayoutBounds(type?, relative?, unscale?): ILayoutBoundsData

Parameters ​

NameType
type?IBoundsType
relative?ILeaf | ILocationType
unscale?boolean

Returns ​

ILayoutBoundsData

Implementation of ​

IUI.getLayoutBounds

Inherited from ​

Leaf.getLayoutBounds

Defined in ​

leafer/packages/display/src/Leaf.ts:352


getLayoutPoints ​

▸ getLayoutPoints(type?, relative?): IPointData[]

Parameters ​

NameType
type?IBoundsType
relative?ILeaf | ILocationType

Returns ​

IPointData[]

Implementation of ​

IUI.getLayoutPoints

Inherited from ​

Leaf.getLayoutPoints

Defined in ​

leafer/packages/display/src/Leaf.ts:356


getWorldBounds ​

▸ getWorldBounds(inner, relative?, change?): IBoundsData

Parameters ​

NameType
innerIBoundsData
relative?ILeaf
change?boolean

Returns ​

IBoundsData

Implementation of ​

IUI.getWorldBounds

Inherited from ​

Leaf.getWorldBounds

Defined in ​

leafer/packages/display/src/Leaf.ts:361


worldToLocal ​

▸ worldToLocal(world, to?, distance?, relative?): void

Parameters ​

NameType
worldIPointData
to?IPointData
distance?boolean
relative?ILeaf

Returns ​

void

Implementation of ​

IUI.worldToLocal

Inherited from ​

Leaf.worldToLocal

Defined in ​

leafer/packages/display/src/Leaf.ts:369


localToWorld ​

▸ localToWorld(local, to?, distance?, relative?): void

Parameters ​

NameType
localIPointData
to?IPointData
distance?boolean
relative?ILeaf

Returns ​

void

Implementation of ​

IUI.localToWorld

Inherited from ​

Leaf.localToWorld

Defined in ​

leafer/packages/display/src/Leaf.ts:377


worldToInner ​

▸ worldToInner(world, to?, distance?, relative?): void

Parameters ​

NameType
worldIPointData
to?IPointData
distance?boolean
relative?ILeaf

Returns ​

void

Implementation of ​

IUI.worldToInner

Inherited from ​

Leaf.worldToInner

Defined in ​

leafer/packages/display/src/Leaf.ts:385


innerToWorld ​

▸ innerToWorld(inner, to?, distance?, relative?): void

Parameters ​

NameType
innerIPointData
to?IPointData
distance?boolean
relative?ILeaf

Returns ​

void

Implementation of ​

IUI.innerToWorld

Inherited from ​

Leaf.innerToWorld

Defined in ​

leafer/packages/display/src/Leaf.ts:393


getBoxPoint ​

▸ getBoxPoint(world, relative?, distance?, change?): IPointData

Parameters ​

NameType
worldIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns ​

IPointData

Implementation of ​

IUI.getBoxPoint

Inherited from ​

Leaf.getBoxPoint

Defined in ​

leafer/packages/display/src/Leaf.ts:400


getBoxPointByInner ​

▸ getBoxPointByInner(inner, _relative?, _distance?, change?): IPointData

Parameters ​

NameType
innerIPointData
_relative?ILeaf
_distance?boolean
change?boolean

Returns ​

IPointData

Implementation of ​

IUI.getBoxPointByInner

Inherited from ​

Leaf.getBoxPointByInner

Defined in ​

leafer/packages/display/src/Leaf.ts:404


getInnerPoint ​

▸ getInnerPoint(world, relative?, distance?, change?): IPointData

Parameters ​

NameType
worldIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns ​

IPointData

Implementation of ​

IUI.getInnerPoint

Inherited from ​

Leaf.getInnerPoint

Defined in ​

leafer/packages/display/src/Leaf.ts:410


getInnerPointByBox ​

▸ getInnerPointByBox(box, _relative?, _distance?, change?): IPointData

Parameters ​

NameType
boxIPointData
_relative?ILeaf
_distance?boolean
change?boolean

Returns ​

IPointData

Implementation of ​

IUI.getInnerPointByBox

Inherited from ​

Leaf.getInnerPointByBox

Defined in ​

leafer/packages/display/src/Leaf.ts:416


getInnerPointByLocal ​

▸ getInnerPointByLocal(local, _relative?, distance?, change?): IPointData

Parameters ​

NameType
localIPointData
_relative?ILeaf
distance?boolean
change?boolean

Returns ​

IPointData

Implementation of ​

IUI.getInnerPointByLocal

Inherited from ​

Leaf.getInnerPointByLocal

Defined in ​

leafer/packages/display/src/Leaf.ts:422


getLocalPoint ​

▸ getLocalPoint(world, relative?, distance?, change?): IPointData

Parameters ​

NameType
worldIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns ​

IPointData

Implementation of ​

IUI.getLocalPoint

Inherited from ​

Leaf.getLocalPoint

Defined in ​

leafer/packages/display/src/Leaf.ts:426


getLocalPointByInner ​

▸ getLocalPointByInner(inner, _relative?, distance?, change?): IPointData

Parameters ​

NameType
innerIPointData
_relative?ILeaf
distance?boolean
change?boolean

Returns ​

IPointData

Implementation of ​

IUI.getLocalPointByInner

Inherited from ​

Leaf.getLocalPointByInner

Defined in ​

leafer/packages/display/src/Leaf.ts:432


getPagePoint ​

▸ getPagePoint(world, relative?, distance?, change?): IPointData

Parameters ​

NameType
worldIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns ​

IPointData

Implementation of ​

IUI.getPagePoint

Inherited from ​

Leaf.getPagePoint

Defined in ​

leafer/packages/display/src/Leaf.ts:436


getWorldPoint ​

▸ getWorldPoint(inner, relative?, distance?, change?): IPointData

Parameters ​

NameType
innerIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns ​

IPointData

Implementation of ​

IUI.getWorldPoint

Inherited from ​

Leaf.getWorldPoint

Defined in ​

leafer/packages/display/src/Leaf.ts:441


getWorldPointByBox ​

▸ getWorldPointByBox(box, relative?, distance?, change?): IPointData

Parameters ​

NameType
boxIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns ​

IPointData

Implementation of ​

IUI.getWorldPointByBox

Inherited from ​

Leaf.getWorldPointByBox

Defined in ​

leafer/packages/display/src/Leaf.ts:447


getWorldPointByLocal ​

▸ getWorldPointByLocal(local, relative?, distance?, change?): IPointData

Parameters ​

NameType
localIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns ​

IPointData

Implementation of ​

IUI.getWorldPointByLocal

Inherited from ​

Leaf.getWorldPointByLocal

Defined in ​

leafer/packages/display/src/Leaf.ts:451


getWorldPointByPage ​

▸ getWorldPointByPage(page, relative?, distance?, change?): IPointData

Parameters ​

NameType
pageIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns ​

IPointData

Implementation of ​

IUI.getWorldPointByPage

Inherited from ​

Leaf.getWorldPointByPage

Defined in ​

leafer/packages/display/src/Leaf.ts:457


setTransform ​

▸ setTransform(matrix, resize?): void

Parameters ​

NameType
matrixIMatrixData
resize?boolean

Returns ​

void

Implementation of ​

IUI.setTransform

Inherited from ​

Leaf.setTransform

Defined in ​

leafer/packages/display/src/Leaf.ts:465


transform ​

▸ transform(matrix, resize?): void

Parameters ​

NameType
matrixIMatrixData
resize?boolean

Returns ​

void

Implementation of ​

IUI.transform

Inherited from ​

Leaf.transform

Defined in ​

leafer/packages/display/src/Leaf.ts:469


move ​

▸ move(x, y?, transition?): void

Parameters ​

NameType
xnumber | IPointData
y?number
transition?any

Returns ​

void

Implementation of ​

IUI.move

Inherited from ​

Leaf.move

Defined in ​

leafer/packages/display/src/Leaf.ts:473


moveInner ​

▸ moveInner(x, y?, transition?): void

Parameters ​

NameType
xnumber | IPointData
y?number
transition?any

Returns ​

void

Implementation of ​

IUI.moveInner

Inherited from ​

Leaf.moveInner

Defined in ​

leafer/packages/display/src/Leaf.ts:478


scaleOf ​

▸ scaleOf(origin, scaleX, scaleY?, resize?): void

Parameters ​

NameType
originIPointData | IDirection
scaleXnumber
scaleY?number
resize?boolean

Returns ​

void

Implementation of ​

IUI.scaleOf

Inherited from ​

Leaf.scaleOf

Defined in ​

leafer/packages/display/src/Leaf.ts:482


rotateOf ​

▸ rotateOf(origin, rotation): void

Parameters ​

NameType
originIPointData | IDirection
rotationnumber

Returns ​

void

Implementation of ​

IUI.rotateOf

Inherited from ​

Leaf.rotateOf

Defined in ​

leafer/packages/display/src/Leaf.ts:486


skewOf ​

▸ skewOf(origin, skewX, skewY?, resize?): void

Parameters ​

NameType
originIPointData | IDirection
skewXnumber
skewY?number
resize?boolean

Returns ​

void

Implementation of ​

IUI.skewOf

Inherited from ​

Leaf.skewOf

Defined in ​

leafer/packages/display/src/Leaf.ts:490


transformWorld ​

▸ transformWorld(worldTransform?, resize?): void

Parameters ​

NameType
worldTransform?IMatrixData
resize?boolean

Returns ​

void

Implementation of ​

IUI.transformWorld

Inherited from ​

Leaf.transformWorld

Defined in ​

leafer/packages/display/src/Leaf.ts:495


moveWorld ​

▸ moveWorld(x, y?, transition?): void

Parameters ​

NameType
xnumber | IPointData
y?number
transition?any

Returns ​

void

Implementation of ​

IUI.moveWorld

Inherited from ​

Leaf.moveWorld

Defined in ​

leafer/packages/display/src/Leaf.ts:499


scaleOfWorld ​

▸ scaleOfWorld(worldOrigin, scaleX, scaleY?, resize?): void

Parameters ​

NameType
worldOriginIPointData
scaleXnumber
scaleY?number
resize?boolean

Returns ​

void

Implementation of ​

IUI.scaleOfWorld

Inherited from ​

Leaf.scaleOfWorld

Defined in ​

leafer/packages/display/src/Leaf.ts:503


rotateOfWorld ​

▸ rotateOfWorld(worldOrigin, rotation): void

Parameters ​

NameType
worldOriginIPointData
rotationnumber

Returns ​

void

Implementation of ​

IUI.rotateOfWorld

Inherited from ​

Leaf.rotateOfWorld

Defined in ​

leafer/packages/display/src/Leaf.ts:507


skewOfWorld ​

▸ skewOfWorld(worldOrigin, skewX, skewY?, resize?): void

Parameters ​

NameType
worldOriginIPointData
skewXnumber
skewY?number
resize?boolean

Returns ​

void

Implementation of ​

IUI.skewOfWorld

Inherited from ​

Leaf.skewOfWorld

Defined in ​

leafer/packages/display/src/Leaf.ts:511


flip ​

▸ flip(axis): void

Parameters ​

NameType
axisIAxis

Returns ​

void

Implementation of ​

IUI.flip

Inherited from ​

Leaf.flip

Defined in ​

leafer/packages/display/src/Leaf.ts:515


scaleResize ​

▸ scaleResize(scaleX, scaleY?, _noResize?): void

Parameters ​

NameTypeDefault value
scaleXnumberundefined
scaleYnumberscaleX
_noResize?booleanundefined

Returns ​

void

Implementation of ​

IUI.scaleResize

Inherited from ​

Leaf.scaleResize

Defined in ​

leafer/packages/display/src/Leaf.ts:522


__scaleResize ​

▸ __scaleResize(_scaleX, _scaleY): void

Parameters ​

NameType
_scaleXnumber
_scaleYnumber

Returns ​

void

Implementation of ​

IUI.__scaleResize

Inherited from ​

Leaf.__scaleResize

Defined in ​

leafer/packages/display/src/Leaf.ts:527


resizeWidth ​

▸ resizeWidth(_width): void

Parameters ​

NameType
_widthnumber

Returns ​

void

Implementation of ​

IUI.resizeWidth

Inherited from ​

Leaf.resizeWidth

Defined in ​

leafer/packages/display/src/Leaf.ts:530


resizeHeight ​

▸ resizeHeight(_height): void

Parameters ​

NameType
_heightnumber

Returns ​

void

Implementation of ​

IUI.resizeHeight

Inherited from ​

Leaf.resizeHeight

Defined in ​

leafer/packages/display/src/Leaf.ts:532


__hitWorld ​

▸ __hitWorld(_point): boolean

Parameters ​

NameType
_pointIRadiusPointData

Returns ​

boolean

Implementation of ​

IUI.__hitWorld

Inherited from ​

Leaf.__hitWorld

Defined in ​

leafer/packages/display/src/Leaf.ts:537


__hit ​

▸ __hit(_local): boolean

Parameters ​

NameType
_localIRadiusPointData

Returns ​

boolean

Implementation of ​

IUI.__hit

Inherited from ​

Leaf.__hit

Defined in ​

leafer/packages/display/src/Leaf.ts:539


__hitFill ​

▸ __hitFill(_inner): boolean

Parameters ​

NameType
_innerIRadiusPointData

Returns ​

boolean

Implementation of ​

IUI.__hitFill

Inherited from ​

Leaf.__hitFill

Defined in ​

leafer/packages/display/src/Leaf.ts:541


__hitStroke ​

▸ __hitStroke(_inner, _strokeWidth): boolean

Parameters ​

NameType
_innerIRadiusPointData
_strokeWidthnumber

Returns ​

boolean

Implementation of ​

IUI.__hitStroke

Inherited from ​

Leaf.__hitStroke

Defined in ​

leafer/packages/display/src/Leaf.ts:543


__hitPixel ​

▸ __hitPixel(_inner): boolean

Parameters ​

NameType
_innerIRadiusPointData

Returns ​

boolean

Implementation of ​

IUI.__hitPixel

Inherited from ​

Leaf.__hitPixel

Defined in ​

leafer/packages/display/src/Leaf.ts:545


__drawHitPath ​

▸ __drawHitPath(_canvas): void

Parameters ​

NameType
_canvasILeaferCanvas

Returns ​

void

Implementation of ​

IUI.__drawHitPath

Inherited from ​

Leaf.__drawHitPath

Defined in ​

leafer/packages/display/src/Leaf.ts:547


__updateHitCanvas ​

▸ __updateHitCanvas(): void

Returns ​

void

Implementation of ​

IUI.__updateHitCanvas

Inherited from ​

Leaf.__updateHitCanvas

Defined in ​

leafer/packages/display/src/Leaf.ts:549


__render ​

▸ __render(_canvas, _options): void

Parameters ​

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns ​

void

Implementation of ​

IUI.__render

Inherited from ​

Leaf.__render

Defined in ​

leafer/packages/display/src/Leaf.ts:556


__drawFast ​

▸ __drawFast(_canvas, _options): void

Parameters ​

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns ​

void

Implementation of ​

IUI.__drawFast

Inherited from ​

Leaf.__drawFast

Defined in ​

leafer/packages/display/src/Leaf.ts:558


__draw ​

▸ __draw(_canvas, _options): void

Parameters ​

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns ​

void

Implementation of ​

IUI.__draw

Inherited from ​

Leaf.__draw

Defined in ​

leafer/packages/display/src/Leaf.ts:560


__clip ​

▸ __clip(_canvas, _options): void

Parameters ​

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns ​

void

Implementation of ​

IUI.__clip

Inherited from ​

Leaf.__clip

Defined in ​

leafer/packages/display/src/Leaf.ts:563


__renderShape ​

▸ __renderShape(_canvas, _options, _ignoreFill?, _ignoreStroke?): void

Parameters ​

NameType
_canvasILeaferCanvas
_optionsIRenderOptions
_ignoreFill?boolean
_ignoreStroke?boolean

Returns ​

void

Implementation of ​

IUI.__renderShape

Inherited from ​

Leaf.__renderShape

Defined in ​

leafer/packages/display/src/Leaf.ts:565


__updateWorldOpacity ​

▸ __updateWorldOpacity(): void

Returns ​

void

Implementation of ​

IUI.__updateWorldOpacity

Inherited from ​

Leaf.__updateWorldOpacity

Defined in ​

leafer/packages/display/src/Leaf.ts:568


__updateChange ​

▸ __updateChange(): void

Returns ​

void

Implementation of ​

IUI.__updateChange

Inherited from ​

Leaf.__updateChange

Defined in ​

leafer/packages/display/src/Leaf.ts:570


__updatePath ​

▸ __updatePath(): void

Returns ​

void

Implementation of ​

IUI.__updatePath

Inherited from ​

Leaf.__updatePath

Defined in ​

leafer/packages/display/src/Leaf.ts:581


getMotionPathData ​

▸ getMotionPathData(): IMotionPathData

Returns ​

IMotionPathData

Implementation of ​

IUI.getMotionPathData

Inherited from ​

Leaf.getMotionPathData

Defined in ​

leafer/packages/display/src/Leaf.ts:590


getMotionPoint ​

▸ getMotionPoint(_motionDistance): IRotationPointData

Parameters ​

NameType
_motionDistancenumber | IUnitData

Returns ​

IRotationPointData

Implementation of ​

IUI.getMotionPoint

Inherited from ​

Leaf.getMotionPoint

Defined in ​

leafer/packages/display/src/Leaf.ts:594


getMotionTotal ​

▸ getMotionTotal(): number

Returns ​

number

Implementation of ​

IUI.getMotionTotal

Inherited from ​

Leaf.getMotionTotal

Defined in ​

leafer/packages/display/src/Leaf.ts:598


__updateMotionPath ​

▸ __updateMotionPath(): void

Returns ​

void

Implementation of ​

IUI.__updateMotionPath

Inherited from ​

Leaf.__updateMotionPath

Defined in ​

leafer/packages/display/src/Leaf.ts:602


__runAnimation ​

▸ __runAnimation(_type, _complete?): void

Parameters ​

NameType
_type"in" | "out"
_complete?IFunction

Returns ​

void

Implementation of ​

IUI.__runAnimation

Inherited from ​

Leaf.__runAnimation

Defined in ​

leafer/packages/display/src/Leaf.ts:608


__updateSortChildren ​

▸ __updateSortChildren(): void

Returns ​

void

Implementation of ​

IUI.__updateSortChildren

Inherited from ​

Leaf.__updateSortChildren

Defined in ​

leafer/packages/display/src/Leaf.ts:613


add ​

▸ add(_child, _index?): void

Parameters ​

NameType
_childILeaf | ILeafInputData | ILeaf[] | ILeafInputData[]
_index?number

Returns ​

void

Implementation of ​

IUI.add

Inherited from ​

Leaf.add

Defined in ​

leafer/packages/display/src/Leaf.ts:615


remove ​

▸ remove(_child?, destroy?): void

Parameters ​

NameType
_child?string | number | ILeaf | IFindMethod
destroy?boolean

Returns ​

void

Implementation of ​

IUI.remove

Inherited from ​

Leaf.remove

Defined in ​

leafer/packages/display/src/Leaf.ts:617


dropTo ​

▸ dropTo(parent, index?, resize?): void

Parameters ​

NameType
parentILeaf
index?number
resize?boolean

Returns ​

void

Implementation of ​

IUI.dropTo

Inherited from ​

Leaf.dropTo

Defined in ​

leafer/packages/display/src/Leaf.ts:621


on ​

▸ on(_type, _listener?, _options?): void

Parameters ​

NameType
_typestring | string[] | IEventMap
_listener?IFunction
_options?IEventOption

Returns ​

void

Implementation of ​

IUI.on

Inherited from ​

Leaf.on

Defined in ​

leafer/packages/display/src/Leaf.ts:630


off ​

▸ off(_type?, _listener?, _options?): void

Parameters ​

NameType
_type?string | string[]
_listener?IFunction
_options?IEventOption

Returns ​

void

Implementation of ​

IUI.off

Inherited from ​

Leaf.off

Defined in ​

leafer/packages/display/src/Leaf.ts:632


on_ ​

▸ on_(_type, _listener, _bind?, _options?): IEventListenerId

Parameters ​

NameType
_typestring | string[]
_listenerIFunction
_bind?IObject
_options?IEventOption

Returns ​

IEventListenerId

Implementation of ​

IUI.on_

Inherited from ​

Leaf.on_

Defined in ​

leafer/packages/display/src/Leaf.ts:634


off_ ​

▸ off_(_id): void

Parameters ​

NameType
_idIEventListenerId | IEventListenerId[]

Returns ​

void

Implementation of ​

IUI.off_

Inherited from ​

Leaf.off_

Defined in ​

leafer/packages/display/src/Leaf.ts:636


once ​

▸ once(_type, _listener, _capture?): void

Parameters ​

NameType
_typestring | string[]
_listenerIFunction
_capture?boolean

Returns ​

void

Implementation of ​

IUI.once

Inherited from ​

Leaf.once

Defined in ​

leafer/packages/display/src/Leaf.ts:638


emit ​

▸ emit(_type, _event?, _capture?): void

Parameters ​

NameType
_typestring
_event?IObject | IEvent
_capture?boolean

Returns ​

void

Implementation of ​

IUI.emit

Inherited from ​

Leaf.emit

Defined in ​

leafer/packages/display/src/Leaf.ts:640


emitEvent ​

▸ emitEvent(_event?, _capture?): void

Parameters ​

NameType
_event?IEvent
_capture?boolean

Returns ​

void

Implementation of ​

IUI.emitEvent

Inherited from ​

Leaf.emitEvent

Defined in ​

leafer/packages/display/src/Leaf.ts:642


hasEvent ​

▸ hasEvent(_type, _capture?): boolean

Parameters ​

NameType
_typestring
_capture?boolean

Returns ​

boolean

Implementation of ​

IUI.hasEvent

Inherited from ​

Leaf.hasEvent

Defined in ​

leafer/packages/display/src/Leaf.ts:644


changeAttr ​

▸ changeAttr(attrName, defaultValue, fn?): void

Parameters ​

NameType
attrNamestring
defaultValueIValue
fn?IAttrDecorator

Returns ​

void

Inherited from ​

Leaf.changeAttr

Defined in ​

leafer/packages/display/src/Leaf.ts:648


addAttr ​

▸ addAttr(attrName, defaultValue, fn?): void

Parameters ​

NameType
attrNamestring
defaultValueIValue
fn?IAttrDecorator

Returns ​

void

Inherited from ​

Leaf.addAttr

Defined in ​

leafer/packages/display/src/Leaf.ts:652


__emitLifeEvent ​

▸ __emitLifeEvent(type): void

Parameters ​

NameType
typestring

Returns ​

void

Implementation of ​

IUI.__emitLifeEvent

Inherited from ​

Leaf.__emitLifeEvent

Defined in ​

leafer/packages/display/src/Leaf.ts:658


reset ​

▸ reset(_data?): void

Parameters ​

NameType
_data?IUIInputData

Returns ​

void

Implementation of ​

IUI.reset

Overrides ​

Leaf.reset

Defined in ​

ui/packages/display/src/UI.ts:380


set ​

▸ set(data, transition?): void

Parameters ​

NameType
dataIUIInputData
transition?ITransition | "temp"

Returns ​

void

Implementation of ​

IUI.set

Overrides ​

Leaf.set

Defined in ​

ui/packages/display/src/UI.ts:383


get ​

▸ get(name?): IValue | IUIInputData

Parameters ​

NameType
name?string | string[] | IUIInputData

Returns ​

IValue | IUIInputData

Implementation of ​

IUI.get

Overrides ​

Leaf.get

Defined in ​

ui/packages/display/src/UI.ts:393


createProxyData ​

▸ createProxyData(): IUIInputData

Returns ​

IUIInputData

Implementation of ​

IUI.createProxyData

Defined in ​

ui/packages/display/src/UI.ts:397


find ​

▸ find(_condition, _options?): IUI[]

Parameters ​

NameType
_conditionstring | number | IFindCondition | IFindUIMethod
_options?any

Returns ​

IUI[]

Implementation of ​

IUI.find

Overrides ​

Leaf.find

Defined in ​

ui/packages/display/src/UI.ts:402


findTag ​

▸ findTag(tag): IUI[]

Parameters ​

NameType
tagstring | string[]

Returns ​

IUI[]

Implementation of ​

IUI.findTag

Overrides ​

Leaf.findTag

Defined in ​

ui/packages/display/src/UI.ts:404


findOne ​

▸ findOne(_condition, _options?): IUI

Parameters ​

NameType
_conditionstring | number | IFindCondition | IFindUIMethod
_options?any

Returns ​

IUI

Implementation of ​

IUI.findOne

Overrides ​

Leaf.findOne

Defined in ​

ui/packages/display/src/UI.ts:406


findId ​

▸ findId(id): IUI

Parameters ​

NameType
idstring | number

Returns ​

IUI

Implementation of ​

IUI.findId

Overrides ​

Leaf.findId

Defined in ​

ui/packages/display/src/UI.ts:408


getPath ​

▸ getPath(curve?, pathForRender?): IPathCommandData

Parameters ​

NameType
curve?boolean
pathForRender?boolean

Returns ​

IPathCommandData

Implementation of ​

IUI.getPath

Defined in ​

ui/packages/display/src/UI.ts:413


getPathString ​

▸ getPathString(curve?, pathForRender?, floatLength?): string

Parameters ​

NameType
curve?boolean
pathForRender?boolean
floatLength?number

Returns ​

string

Implementation of ​

IUI.getPathString

Defined in ​

ui/packages/display/src/UI.ts:420


load ​

▸ load(): void

Returns ​

void

Implementation of ​

IUI.load

Defined in ​

ui/packages/display/src/UI.ts:425


__onUpdateSize ​

▸ __onUpdateSize(): void

Returns ​

void

Implementation of ​

IUI.__onUpdateSize

Overrides ​

Leaf.__onUpdateSize

Defined in ​

ui/packages/display/src/UI.ts:429


__updateRenderPath ​

▸ __updateRenderPath(): void

Returns ​

void

Implementation of ​

IUI.__updateRenderPath

Overrides ​

Leaf.__updateRenderPath

Defined in ​

ui/packages/display/src/UI.ts:436


__drawRenderPath ​

▸ __drawRenderPath(canvas): void

Parameters ​

NameType
canvasILeaferCanvas

Returns ​

void

Implementation of ​

IUI.__drawRenderPath

Overrides ​

Leaf.__drawRenderPath

Defined in ​

ui/packages/display/src/UI.ts:444


__drawPath ​

▸ __drawPath(canvas): void

Parameters ​

NameType
canvasILeaferCanvas

Returns ​

void

Implementation of ​

IUI.__drawPath

Overrides ​

Leaf.__drawPath

Defined in ​

ui/packages/display/src/UI.ts:449


__drawPathByData ​

▸ __drawPathByData(drawer, data): void

Parameters ​

NameType
drawerIPathDrawer
dataIPathCommandData

Returns ​

void

Implementation of ​

IUI.__drawPathByData

Defined in ​

ui/packages/display/src/UI.ts:454


__drawPathByBox ​

▸ __drawPathByBox(drawer): void

Parameters ​

NameType
drawerIPathDrawer

Returns ​

void

Implementation of ​

IUI.__drawPathByBox

Defined in ​

ui/packages/display/src/UI.ts:458


animate ​

▸ animate(_keyframe?, _options?, _type?, _isTemp?): IAnimate

Parameters ​

NameType
_keyframe?IAnimation | IUIInputData | IKeyframe[]
_options?ITransition
_type?IAnimateType
_isTemp?boolean

Returns ​

IAnimate

Implementation of ​

IUI.animate

Defined in ​

ui/packages/display/src/UI.ts:468


killAnimate ​

▸ killAnimate(_type?): void

Parameters ​

NameType
_type?IAnimateType

Returns ​

void

Implementation of ​

IUI.killAnimate

Defined in ​

ui/packages/display/src/UI.ts:472


export ​

▸ export(filename, options?): Promise<IExportResult>

Parameters ​

NameType
filenamestring
options?number | boolean | IExportOptions

Returns ​

Promise<IExportResult>

Implementation of ​

IUI.export

Defined in ​

ui/packages/display/src/UI.ts:477


clone ​

▸ clone(data?): IUI

Parameters ​

NameType
data?IUIInputData

Returns ​

IUI

Implementation of ​

IUI.clone

Defined in ​

ui/packages/display/src/UI.ts:481


one ​

▸ one(data, x?, y?, width?, height?): IUI

Parameters ​

NameType
dataIUIInputData
x?number
y?number
width?number
height?number

Returns ​

IUI

Defined in ​

ui/packages/display/src/UI.ts:487


registerUI ​

▸ registerUI(): void

Returns ​

void

Defined in ​

ui/packages/display/src/UI.ts:491


registerData ​

▸ registerData(data): void

Parameters ​

NameType
dataIUIData

Returns ​

void

Defined in ​

ui/packages/display/src/UI.ts:495


setEditConfig ​

▸ setEditConfig(_config): void

Parameters ​

NameType
_configIEditorConfig | IEditorConfigFunction

Returns ​

void

Defined in ​

ui/packages/display/src/UI.ts:502


setEditOuter ​

▸ setEditOuter(_toolName): void

Parameters ​

NameType
_toolNamestring | IEditToolFunction

Returns ​

void

Defined in ​

ui/packages/display/src/UI.ts:504


setEditInner ​

▸ setEditInner(_editorName): void

Parameters ​

NameType
_editorNamestring | IEditToolFunction

Returns ​

void

Defined in ​

ui/packages/display/src/UI.ts:506


destroy ​

▸ destroy(): void

Returns ​

void

Implementation of ​

IUI.destroy

Overrides ​

Leaf.destroy

Defined in ​

ui/packages/display/src/UI.ts:509

Released under the MIT License.