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:364

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

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:172


autoBox

Optional autoBox: IAutoBoxData | IConstraint

Implementation of

IUI.autoBox

Defined in

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


widthRange

Optional widthRange: IRangeSize

Implementation of

IUI.widthRange

Defined in

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


heightRange

Optional heightRange: IRangeSize

Implementation of

IUI.heightRange

Defined in

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


draggable

Optional draggable: boolean | IAxis

Implementation of

IUI.draggable

Defined in

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


dragBounds

Optional dragBounds: "parent" | IBoundsData

Implementation of

IUI.dragBounds

Defined in

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


editable

Optional editable: boolean

Implementation of

IUI.editable

Defined in

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


hittable

Optional hittable: boolean

Implementation of

IUI.hittable

Defined in

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


hitFill

Optional hitFill: IHitType

Implementation of

IUI.hitFill

Defined in

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


hitStroke

Optional hitStroke: IHitType

Implementation of

IUI.hitStroke

Defined in

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


hitBox

Optional hitBox: boolean

Implementation of

IUI.hitBox

Defined in

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


hitChildren

Optional hitChildren: boolean

Implementation of

IUI.hitChildren

Defined in

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


hitSelf

Optional hitSelf: boolean

Implementation of

IUI.hitSelf

Defined in

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


hitRadius

Optional hitRadius: number

Implementation of

IUI.hitRadius

Defined in

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


cursor

Optional cursor: ICursorType | ICursorType[]

Implementation of

IUI.cursor

Defined in

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


fill

Optional fill: IFill

Implementation of

IUI.fill

Defined in

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


stroke

Optional stroke: IStroke

Implementation of

IUI.stroke

Defined in

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


strokeAlign

Optional strokeAlign: IStrokeAlign

Implementation of

IUI.strokeAlign

Defined in

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


strokeWidth

Optional strokeWidth: string | IFourNumber

Implementation of

IUI.strokeWidth

Defined in

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


strokeWidthFixed

Optional strokeWidthFixed: boolean

Implementation of

IUI.strokeWidthFixed

Defined in

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


strokeCap

Optional strokeCap: IStrokeCap

Implementation of

IUI.strokeCap

Defined in

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


strokeJoin

Optional strokeJoin: IStrokeJoin

Implementation of

IUI.strokeJoin

Defined in

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


dashPattern

Optional dashPattern: string | number[]

Implementation of

IUI.dashPattern

Defined in

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


dashOffset

Optional dashOffset: number

Implementation of

IUI.dashOffset

Defined in

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


miterLimit

Optional miterLimit: number

Implementation of

IUI.miterLimit

Defined in

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


startArrow

Optional startArrow: IArrowType

Implementation of

IUI.startArrow

Defined in

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


endArrow

Optional endArrow: IArrowType

Implementation of

IUI.endArrow

Defined in

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


cornerRadius

Optional cornerRadius: string | IFourNumber

Implementation of

IUI.cornerRadius

Defined in

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


cornerSmoothing

Optional cornerSmoothing: number

Implementation of

IUI.cornerSmoothing

Defined in

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


shadow

Optional shadow: string | IShadowEffect | IShadowEffect[]

Implementation of

IUI.shadow

Defined in

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


innerShadow

Optional innerShadow: string | IShadowEffect | IShadowEffect[]

Implementation of

IUI.innerShadow

Defined in

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


blur

Optional blur: number | IBlurEffect

Implementation of

IUI.blur

Defined in

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


backgroundBlur

Optional backgroundBlur: number | IBlurEffect

Implementation of

IUI.backgroundBlur

Defined in

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


grayscale

Optional grayscale: number | IGrayscaleEffect

Implementation of

IUI.grayscale

Defined in

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


animation

Optional animation: IAnimation

Implementation of

IUI.animation

Defined in

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


animationOut

Optional animationOut: IAnimation

Implementation of

IUI.animationOut

Defined in

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


transition

Optional transition: ITransition

Implementation of

IUI.transition

Defined in

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


transitionOut

Optional transitionOut: ITransition

Implementation of

IUI.transitionOut

Defined in

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


motionPath

Optional motionPath: boolean

Implementation of

IUI.motionPath

Defined in

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


motion

Optional motion: number | IUnitData

Implementation of

IUI.motion

Defined in

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


motionRotation

Optional motionRotation: number | boolean

Implementation of

IUI.motionRotation

Defined in

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


states

Optional states: IStates

Implementation of

IUI.states

Defined in

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


state

Optional state: string

Implementation of

IUI.state

Defined in

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


selected

Optional selected: boolean

Implementation of

IUI.selected

Defined in

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


disabled

Optional disabled: boolean

Implementation of

IUI.disabled

Defined in

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


normalStyle

Optional normalStyle: IUIInputData

Implementation of

IUI.normalStyle

Defined in

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


hoverStyle

Optional hoverStyle: IUIInputData

Implementation of

IUI.hoverStyle

Defined in

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


pressStyle

Optional pressStyle: IUIInputData

Implementation of

IUI.pressStyle

Defined in

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


focusStyle

Optional focusStyle: IUIInputData

Implementation of

IUI.focusStyle

Defined in

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


selectedStyle

Optional selectedStyle: IUIInputData

Implementation of

IUI.selectedStyle

Defined in

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


disabledStyle

Optional disabledStyle: IUIInputData

Implementation of

IUI.disabledStyle

Defined in

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


button

Optional button: boolean

Implementation of

IUI.button

Defined in

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


data

data: IObject

Implementation of

IUI.data

Defined in

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


__animate

Optional __animate: IAnimate

Implementation of

IUI.__animate

Defined in

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

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:343

set scale(value): void

Parameters

NameType
valuenumber | IPointData

Returns

void

Implementation of

IUI.scale

Defined in

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


pen

get pen(): IPathCreator

Returns

IPathCreator

Implementation of

IUI.pen

Defined in

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


editConfig

get editConfig(): IEditorConfig

Returns

IEditorConfig

Implementation of

IUI.editConfig

Defined in

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


editOuter

get editOuter(): string

Returns

string

Implementation of

IUI.editOuter

Defined in

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


editInner

get editInner(): string

Returns

string

Implementation of

IUI.editInner

Defined in

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

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?): void

Parameters

NameType
_bounds?IBoundsData

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?): void

Parameters

NameType
xnumber | IPointData
y?number

Returns

void

Implementation of

IUI.move

Inherited from

Leaf.move

Defined in

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


moveInner

moveInner(x, y?): void

Parameters

NameType
xnumber | IPointData
y?number

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?): void

Parameters

NameType
xnumber | IPointData
y?number

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
_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:372


set

set(data, isTemp?): void

Parameters

NameType
dataIUIInputData
isTemp?boolean

Returns

void

Implementation of

IUI.set

Overrides

Leaf.set

Defined in

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


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:385


createProxyData

createProxyData(): IUIInputData

Returns

IUIInputData

Implementation of

IUI.createProxyData

Defined in

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


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:394


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:396


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:398


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:400


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:405


getPathString

getPathString(curve?, pathForRender?): string

Parameters

NameType
curve?boolean
pathForRender?boolean

Returns

string

Implementation of

IUI.getPathString

Defined in

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


load

load(): void

Returns

void

Implementation of

IUI.load

Defined in

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


__onUpdateSize

__onUpdateSize(): void

Returns

void

Implementation of

IUI.__onUpdateSize

Overrides

Leaf.__onUpdateSize

Defined in

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


__updateRenderPath

__updateRenderPath(): void

Returns

void

Implementation of

IUI.__updateRenderPath

Overrides

Leaf.__updateRenderPath

Defined in

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


__drawRenderPath

__drawRenderPath(canvas): void

Parameters

NameType
canvasILeaferCanvas

Returns

void

Implementation of

IUI.__drawRenderPath

Overrides

Leaf.__drawRenderPath

Defined in

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


__drawPath

__drawPath(canvas): void

Parameters

NameType
canvasILeaferCanvas

Returns

void

Implementation of

IUI.__drawPath

Overrides

Leaf.__drawPath

Defined in

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


__drawPathByData

__drawPathByData(drawer, data): void

Parameters

NameType
drawerIPathDrawer
dataIPathCommandData

Returns

void

Implementation of

IUI.__drawPathByData

Defined in

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


__drawPathByBox

__drawPathByBox(drawer): void

Parameters

NameType
drawerIPathDrawer

Returns

void

Implementation of

IUI.__drawPathByBox

Defined in

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


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:460


killAnimate

killAnimate(_type?): void

Parameters

NameType
_type?IAnimateType

Returns

void

Implementation of

IUI.killAnimate

Defined in

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


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:469


clone

clone(data?): IUI

Parameters

NameType
data?IUIInputData

Returns

IUI

Implementation of

IUI.clone

Defined in

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


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:479


registerUI

registerUI(): void

Returns

void

Defined in

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


registerData

registerData(data): void

Parameters

NameType
dataIUIData

Returns

void

Defined in

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


setEditConfig

setEditConfig(_config): void

Parameters

NameType
_configIEditorConfig | IEditorConfigFunction

Returns

void

Defined in

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


setEditOuter

setEditOuter(_toolName): void

Parameters

NameType
_toolNamestring | IEditToolFunction

Returns

void

Defined in

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


setEditInner

setEditInner(_editorName): void

Parameters

NameType
_editorNamestring | IEditToolFunction

Returns

void

Defined in

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


destroy

destroy(): void

Returns

void

Implementation of

IUI.destroy

Overrides

Leaf.destroy

Defined in

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

Released under the MIT License.