Skip to content

Class: Branch โ€‹

Hierarchy โ€‹

Table of contents โ€‹

Constructors โ€‹

Properties โ€‹

Accessors โ€‹

Methods โ€‹

Constructors โ€‹

constructor โ€‹

โ€ข new Branch(data?): Branch

Parameters โ€‹

NameType
data?ILeafInputData

Returns โ€‹

Branch

Inherited from โ€‹

Leaf.constructor

Defined in โ€‹

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

Properties โ€‹

innerId โ€‹

โ€ข Readonly innerId: number

Inherited from โ€‹

Leaf.innerId

Defined in โ€‹

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


leafer โ€‹

โ€ข Optional leafer: ILeaferBase

Inherited from โ€‹

Leaf.leafer

Defined in โ€‹

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


parent โ€‹

โ€ข Optional parent: ILeaf

Inherited from โ€‹

Leaf.parent

Defined in โ€‹

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


syncEventer โ€‹

โ€ข Optional syncEventer: ILeaf

Inherited from โ€‹

Leaf.syncEventer

Defined in โ€‹

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


lockNormalStyle โ€‹

โ€ข Optional lockNormalStyle: boolean

Inherited from โ€‹

Leaf.lockNormalStyle

Defined in โ€‹

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


__ โ€‹

โ€ข __: ILeafData

Inherited from โ€‹

Leaf.__

Defined in โ€‹

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


__layout โ€‹

โ€ข __layout: ILeafLayout

Inherited from โ€‹

Leaf.__layout

Defined in โ€‹

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


__world โ€‹

โ€ข __world: IMatrixWithBoundsScaleData

Inherited from โ€‹

Leaf.__world

Defined in โ€‹

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


__local โ€‹

โ€ข Optional __local: IMatrixWithBoundsData

Inherited from โ€‹

Leaf.__local

Defined in โ€‹

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


__nowWorld โ€‹

โ€ข Optional __nowWorld: IMatrixWithBoundsScaleData

Inherited from โ€‹

Leaf.__nowWorld

Defined in โ€‹

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


__cameraWorld โ€‹

โ€ข Optional __cameraWorld: IMatrixWithBoundsScaleData

Inherited from โ€‹

Leaf.__cameraWorld

Defined in โ€‹

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


__worldOpacity โ€‹

โ€ข __worldOpacity: number

Inherited from โ€‹

Leaf.__worldOpacity

Defined in โ€‹

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


__level โ€‹

โ€ข __level: number

Inherited from โ€‹

Leaf.__level

Defined in โ€‹

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


__tempNumber โ€‹

โ€ข __tempNumber: number

Inherited from โ€‹

Leaf.__tempNumber

Defined in โ€‹

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


__hasAutoLayout โ€‹

โ€ข Optional __hasAutoLayout: boolean

Inherited from โ€‹

Leaf.__hasAutoLayout

Defined in โ€‹

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


__hasMask โ€‹

โ€ข Optional __hasMask: boolean

Inherited from โ€‹

Leaf.__hasMask

Defined in โ€‹

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


__hasEraser โ€‹

โ€ข Optional __hasEraser: boolean

Inherited from โ€‹

Leaf.__hasEraser

Defined in โ€‹

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


__hitCanvas โ€‹

โ€ข Optional __hitCanvas: IHitCanvas

Inherited from โ€‹

Leaf.__hitCanvas

Defined in โ€‹

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


__captureMap โ€‹

โ€ข Optional __captureMap: IEventListenerMap

Inherited from โ€‹

Leaf.__captureMap

Defined in โ€‹

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


__bubbleMap โ€‹

โ€ข Optional __bubbleMap: IEventListenerMap

Inherited from โ€‹

Leaf.__bubbleMap

Defined in โ€‹

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


children โ€‹

โ€ข Optional children: ILeaf[]

Inherited from โ€‹

Leaf.children

Defined in โ€‹

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


noBounds โ€‹

โ€ข Optional noBounds: boolean

Inherited from โ€‹

Leaf.noBounds

Defined in โ€‹

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


destroyed โ€‹

โ€ข destroyed: boolean

Inherited from โ€‹

Leaf.destroyed

Defined in โ€‹

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

Accessors โ€‹

tag โ€‹

โ€ข get tag(): string

Returns โ€‹

string

Inherited from โ€‹

Leaf.tag

Defined in โ€‹

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

โ€ข set tag(_value): void

Parameters โ€‹

NameType
_valuestring

Returns โ€‹

void

Inherited from โ€‹

Leaf.tag

Defined in โ€‹

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


__tag โ€‹

โ€ข get __tag(): string

Returns โ€‹

string

Inherited from โ€‹

Leaf.__tag

Defined in โ€‹

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


innerName โ€‹

โ€ข get innerName(): string

Returns โ€‹

string

Inherited from โ€‹

Leaf.innerName

Defined in โ€‹

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


__DataProcessor โ€‹

โ€ข get __DataProcessor(): typeof LeafData

Returns โ€‹

typeof LeafData

Inherited from โ€‹

Leaf.__DataProcessor

Defined in โ€‹

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


__LayoutProcessor โ€‹

โ€ข get __LayoutProcessor(): typeof LeafLayout

Returns โ€‹

typeof LeafLayout

Inherited from โ€‹

Leaf.__LayoutProcessor

Defined in โ€‹

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


leaferIsCreated โ€‹

โ€ข get leaferIsCreated(): boolean

Returns โ€‹

boolean

Inherited from โ€‹

Leaf.leaferIsCreated

Defined in โ€‹

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


leaferIsReady โ€‹

โ€ข get leaferIsReady(): boolean

Returns โ€‹

boolean

Inherited from โ€‹

Leaf.leaferIsReady

Defined in โ€‹

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


isLeafer โ€‹

โ€ข get isLeafer(): boolean

Returns โ€‹

boolean

Inherited from โ€‹

Leaf.isLeafer

Defined in โ€‹

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


isBranch โ€‹

โ€ข get isBranch(): boolean

Returns โ€‹

boolean

Inherited from โ€‹

Leaf.isBranch

Defined in โ€‹

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


isBranchLeaf โ€‹

โ€ข get isBranchLeaf(): boolean

Returns โ€‹

boolean

Inherited from โ€‹

Leaf.isBranchLeaf

Defined in โ€‹

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


__localMatrix โ€‹

โ€ข get __localMatrix(): IMatrixData

Returns โ€‹

IMatrixData

Inherited from โ€‹

Leaf.__localMatrix

Defined in โ€‹

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


__localBoxBounds โ€‹

โ€ข get __localBoxBounds(): IBoundsData

Returns โ€‹

IBoundsData

Inherited from โ€‹

Leaf.__localBoxBounds

Defined in โ€‹

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


worldTransform โ€‹

โ€ข get worldTransform(): IMatrixWithScaleData

Returns โ€‹

IMatrixWithScaleData

Inherited from โ€‹

Leaf.worldTransform

Defined in โ€‹

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


localTransform โ€‹

โ€ข get localTransform(): IMatrixData

Returns โ€‹

IMatrixData

Inherited from โ€‹

Leaf.localTransform

Defined in โ€‹

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


boxBounds โ€‹

โ€ข get boxBounds(): IBoundsData

Returns โ€‹

IBoundsData

Inherited from โ€‹

Leaf.boxBounds

Defined in โ€‹

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


renderBounds โ€‹

โ€ข get renderBounds(): IBoundsData

Returns โ€‹

IBoundsData

Inherited from โ€‹

Leaf.renderBounds

Defined in โ€‹

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


worldBoxBounds โ€‹

โ€ข get worldBoxBounds(): IBoundsData

Returns โ€‹

IBoundsData

Inherited from โ€‹

Leaf.worldBoxBounds

Defined in โ€‹

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


worldStrokeBounds โ€‹

โ€ข get worldStrokeBounds(): IBoundsData

Returns โ€‹

IBoundsData

Inherited from โ€‹

Leaf.worldStrokeBounds

Defined in โ€‹

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


worldRenderBounds โ€‹

โ€ข get worldRenderBounds(): IBoundsData

Returns โ€‹

IBoundsData

Inherited from โ€‹

Leaf.worldRenderBounds

Defined in โ€‹

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


worldOpacity โ€‹

โ€ข get worldOpacity(): number

Returns โ€‹

number

Inherited from โ€‹

Leaf.worldOpacity

Defined in โ€‹

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


__worldFlipped โ€‹

โ€ข get __worldFlipped(): boolean

Returns โ€‹

boolean

Inherited from โ€‹

Leaf.__worldFlipped

Defined in โ€‹

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


__onlyHitMask โ€‹

โ€ข get __onlyHitMask(): boolean

Returns โ€‹

boolean

Inherited from โ€‹

Leaf.__onlyHitMask

Defined in โ€‹

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


__ignoreHitWorld โ€‹

โ€ข get __ignoreHitWorld(): boolean

Returns โ€‹

boolean

Inherited from โ€‹

Leaf.__ignoreHitWorld

Defined in โ€‹

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


__inLazyBounds โ€‹

โ€ข get __inLazyBounds(): boolean

Returns โ€‹

boolean

Inherited from โ€‹

Leaf.__inLazyBounds

Defined in โ€‹

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


pathInputed โ€‹

โ€ข get pathInputed(): boolean

Returns โ€‹

boolean

Inherited from โ€‹

Leaf.pathInputed

Defined in โ€‹

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


event โ€‹

โ€ข set event(map): void

Parameters โ€‹

NameType
mapIEventMap

Returns โ€‹

void

Inherited from โ€‹

Leaf.event

Defined in โ€‹

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

Methods โ€‹

__updateStrokeSpread โ€‹

โ–ธ __updateStrokeSpread(): number

Returns โ€‹

number

Overrides โ€‹

Leaf.__updateStrokeSpread

Defined in โ€‹

leafer/packages/display/src/Branch.ts:22


__updateRenderSpread โ€‹

โ–ธ __updateRenderSpread(): number

Returns โ€‹

number

Overrides โ€‹

Leaf.__updateRenderSpread

Defined in โ€‹

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


__updateBoxBounds โ€‹

โ–ธ __updateBoxBounds(): void

Returns โ€‹

void

Overrides โ€‹

Leaf.__updateBoxBounds

Defined in โ€‹

leafer/packages/display/src/Branch.ts:38


__updateStrokeBounds โ€‹

โ–ธ __updateStrokeBounds(): void

Returns โ€‹

void

Overrides โ€‹

Leaf.__updateStrokeBounds

Defined in โ€‹

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


__updateRenderBounds โ€‹

โ–ธ __updateRenderBounds(): void

Returns โ€‹

void

Overrides โ€‹

Leaf.__updateRenderBounds

Defined in โ€‹

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


__updateSortChildren โ€‹

โ–ธ __updateSortChildren(): void

Returns โ€‹

void

Overrides โ€‹

Leaf.__updateSortChildren

Defined in โ€‹

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


add โ€‹

โ–ธ add(child, index?): void

Parameters โ€‹

NameType
childILeaf
index?number

Returns โ€‹

void

Overrides โ€‹

Leaf.add

Defined in โ€‹

leafer/packages/display/src/Branch.ts:66


addMany โ€‹

โ–ธ addMany(...children): void

Parameters โ€‹

NameType
...childrenILeaf[]

Returns โ€‹

void

Defined in โ€‹

leafer/packages/display/src/Branch.ts:93


remove โ€‹

โ–ธ remove(child?, destroy?): void

Parameters โ€‹

NameType
child?ILeaf
destroy?boolean

Returns โ€‹

void

Overrides โ€‹

Leaf.remove

Defined in โ€‹

leafer/packages/display/src/Branch.ts:95


removeAll โ€‹

โ–ธ removeAll(destroy?): void

Parameters โ€‹

NameType
destroy?boolean

Returns โ€‹

void

Defined in โ€‹

leafer/packages/display/src/Branch.ts:110


clear โ€‹

โ–ธ clear(): void

Returns โ€‹

void

Defined in โ€‹

leafer/packages/display/src/Branch.ts:123


__remove โ€‹

โ–ธ __remove(child?, destroy?): void

Parameters โ€‹

NameType
child?ILeaf
destroy?boolean

Returns โ€‹

void

Defined in โ€‹

leafer/packages/display/src/Branch.ts:127


__preRemove โ€‹

โ–ธ __preRemove(): void

Returns โ€‹

void

Defined in โ€‹

leafer/packages/display/src/Branch.ts:138


__realRemoveChild โ€‹

โ–ธ __realRemoveChild(child): void

Parameters โ€‹

NameType
childILeaf

Returns โ€‹

void

Defined in โ€‹

leafer/packages/display/src/Branch.ts:145


__emitChildEvent โ€‹

โ–ธ __emitChildEvent(type, child): void

Parameters โ€‹

NameType
typestring
childILeaf

Returns โ€‹

void

Defined in โ€‹

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


reset โ€‹

โ–ธ reset(data?): void

Parameters โ€‹

NameType
data?ILeafInputData

Returns โ€‹

void

Inherited from โ€‹

Leaf.reset

Defined in โ€‹

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


resetCustom โ€‹

โ–ธ resetCustom(): void

Returns โ€‹

void

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

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

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

Inherited from โ€‹

Leaf.nextRender

Defined in โ€‹

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


removeNextRender โ€‹

โ–ธ removeNextRender(item): void

Parameters โ€‹

NameType
itemIFunction

Returns โ€‹

void

Inherited from โ€‹

Leaf.removeNextRender

Defined in โ€‹

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


__bindLeafer โ€‹

โ–ธ __bindLeafer(leafer): void

Parameters โ€‹

NameType
leaferILeaferBase

Returns โ€‹

void

Inherited from โ€‹

Leaf.__bindLeafer

Defined in โ€‹

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


set โ€‹

โ–ธ set(_data, _isTemp?): void

Parameters โ€‹

NameType
_dataIObject
_isTemp?boolean

Returns โ€‹

void

Inherited from โ€‹

Leaf.set

Defined in โ€‹

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


get โ€‹

โ–ธ get(_name?): IValue | ILeafInputData

Parameters โ€‹

NameType
_name?string

Returns โ€‹

IValue | ILeafInputData

Inherited from โ€‹

Leaf.get

Defined in โ€‹

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


setAttr โ€‹

โ–ธ setAttr(name, value): void

Parameters โ€‹

NameType
namestring
valueany

Returns โ€‹

void

Inherited from โ€‹

Leaf.setAttr

Defined in โ€‹

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


getAttr โ€‹

โ–ธ getAttr(name): any

Parameters โ€‹

NameType
namestring

Returns โ€‹

any

Inherited from โ€‹

Leaf.getAttr

Defined in โ€‹

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


getComputedAttr โ€‹

โ–ธ getComputedAttr(name): any

Parameters โ€‹

NameType
namestring

Returns โ€‹

any

Inherited from โ€‹

Leaf.getComputedAttr

Defined in โ€‹

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


toJSON โ€‹

โ–ธ toJSON(options?): IObject

Parameters โ€‹

NameType
options?IJSONOptions

Returns โ€‹

IObject

Inherited from โ€‹

Leaf.toJSON

Defined in โ€‹

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


toString โ€‹

โ–ธ toString(options?): string

Parameters โ€‹

NameType
options?IJSONOptions

Returns โ€‹

string

Inherited from โ€‹

Leaf.toString

Defined in โ€‹

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


toSVG โ€‹

โ–ธ toSVG(): string

Returns โ€‹

string

Inherited from โ€‹

Leaf.toSVG

Defined in โ€‹

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


__SVG โ€‹

โ–ธ __SVG(_data): void

Parameters โ€‹

NameType
_dataIObject

Returns โ€‹

void

Inherited from โ€‹

Leaf.__SVG

Defined in โ€‹

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


toHTML โ€‹

โ–ธ toHTML(): string

Returns โ€‹

string

Inherited from โ€‹

Leaf.toHTML

Defined in โ€‹

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


__setAttr โ€‹

โ–ธ __setAttr(_attrName, _newValue): boolean

Parameters โ€‹

NameType
_attrNamestring
_newValueIValue

Returns โ€‹

boolean

Inherited from โ€‹

Leaf.__setAttr

Defined in โ€‹

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


__getAttr โ€‹

โ–ธ __getAttr(_attrName): IValue

Parameters โ€‹

NameType
_attrNamestring

Returns โ€‹

IValue

Inherited from โ€‹

Leaf.__getAttr

Defined in โ€‹

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


setProxyAttr โ€‹

โ–ธ setProxyAttr(_attrName, _newValue): void

Parameters โ€‹

NameType
_attrNamestring
_newValueIValue

Returns โ€‹

void

Inherited from โ€‹

Leaf.setProxyAttr

Defined in โ€‹

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


getProxyAttr โ€‹

โ–ธ getProxyAttr(_attrName): IValue

Parameters โ€‹

NameType
_attrNamestring

Returns โ€‹

IValue

Inherited from โ€‹

Leaf.getProxyAttr

Defined in โ€‹

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


find โ€‹

โ–ธ find(_condition, _options?): ILeaf[]

Parameters โ€‹

NameType
_conditionstring | number | IFindMethod
_options?any

Returns โ€‹

ILeaf[]

Inherited from โ€‹

Leaf.find

Defined in โ€‹

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


findTag โ€‹

โ–ธ findTag(_tag): ILeaf[]

Parameters โ€‹

NameType
_tagstring | string[]

Returns โ€‹

ILeaf[]

Inherited from โ€‹

Leaf.findTag

Defined in โ€‹

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


findOne โ€‹

โ–ธ findOne(_condition, _options?): ILeaf

Parameters โ€‹

NameType
_conditionstring | number | IFindMethod
_options?any

Returns โ€‹

ILeaf

Inherited from โ€‹

Leaf.findOne

Defined in โ€‹

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


findId โ€‹

โ–ธ findId(_id): ILeaf

Parameters โ€‹

NameType
_idstring | number

Returns โ€‹

ILeaf

Inherited from โ€‹

Leaf.findId

Defined in โ€‹

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


focus โ€‹

โ–ธ focus(_value?): void

Parameters โ€‹

NameType
_value?boolean

Returns โ€‹

void

Inherited from โ€‹

Leaf.focus

Defined in โ€‹

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


updateState โ€‹

โ–ธ updateState(): void

Returns โ€‹

void

Inherited from โ€‹

Leaf.updateState

Defined in โ€‹

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


updateLayout โ€‹

โ–ธ updateLayout(): void

Returns โ€‹

void

Inherited from โ€‹

Leaf.updateLayout

Defined in โ€‹

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


forceUpdate โ€‹

โ–ธ forceUpdate(attrName?): void

Parameters โ€‹

NameType
attrName?string

Returns โ€‹

void

Inherited from โ€‹

Leaf.forceUpdate

Defined in โ€‹

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


forceRender โ€‹

โ–ธ forceRender(_bounds?): void

Parameters โ€‹

NameType
_bounds?IBoundsData

Returns โ€‹

void

Inherited from โ€‹

Leaf.forceRender

Defined in โ€‹

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


__updateWorldMatrix โ€‹

โ–ธ __updateWorldMatrix(): void

Returns โ€‹

void

Inherited from โ€‹

Leaf.__updateWorldMatrix

Defined in โ€‹

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


__updateLocalMatrix โ€‹

โ–ธ __updateLocalMatrix(): void

Returns โ€‹

void

Inherited from โ€‹

Leaf.__updateLocalMatrix

Defined in โ€‹

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


__updateWorldBounds โ€‹

โ–ธ __updateWorldBounds(): void

Returns โ€‹

void

Inherited from โ€‹

Leaf.__updateWorldBounds

Defined in โ€‹

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


__updateLocalBounds โ€‹

โ–ธ __updateLocalBounds(): void

Returns โ€‹

void

Inherited from โ€‹

Leaf.__updateLocalBounds

Defined in โ€‹

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


__updateLocalBoxBounds โ€‹

โ–ธ __updateLocalBoxBounds(): void

Returns โ€‹

void

Inherited from โ€‹

Leaf.__updateLocalBoxBounds

Defined in โ€‹

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


__updateLocalStrokeBounds โ€‹

โ–ธ __updateLocalStrokeBounds(): void

Returns โ€‹

void

Inherited from โ€‹

Leaf.__updateLocalStrokeBounds

Defined in โ€‹

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


__updateLocalRenderBounds โ€‹

โ–ธ __updateLocalRenderBounds(): void

Returns โ€‹

void

Inherited from โ€‹

Leaf.__updateLocalRenderBounds

Defined in โ€‹

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


__updateContentBounds โ€‹

โ–ธ __updateContentBounds(): void

Returns โ€‹

void

Inherited from โ€‹

Leaf.__updateContentBounds

Defined in โ€‹

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


__updateAutoLayout โ€‹

โ–ธ __updateAutoLayout(): void

Returns โ€‹

void

Inherited from โ€‹

Leaf.__updateAutoLayout

Defined in โ€‹

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


__updateFlowLayout โ€‹

โ–ธ __updateFlowLayout(): void

Returns โ€‹

void

Inherited from โ€‹

Leaf.__updateFlowLayout

Defined in โ€‹

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


__updateNaturalSize โ€‹

โ–ธ __updateNaturalSize(): void

Returns โ€‹

void

Inherited from โ€‹

Leaf.__updateNaturalSize

Defined in โ€‹

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


__onUpdateSize โ€‹

โ–ธ __onUpdateSize(): void

Returns โ€‹

void

Inherited from โ€‹

Leaf.__onUpdateSize

Defined in โ€‹

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


__updateEraser โ€‹

โ–ธ __updateEraser(value?): void

Parameters โ€‹

NameType
value?boolean

Returns โ€‹

void

Inherited from โ€‹

Leaf.__updateEraser

Defined in โ€‹

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


__renderEraser โ€‹

โ–ธ __renderEraser(canvas, options): void

Parameters โ€‹

NameType
canvasILeaferCanvas
optionsIRenderOptions

Returns โ€‹

void

Inherited from โ€‹

Leaf.__renderEraser

Defined in โ€‹

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


__updateMask โ€‹

โ–ธ __updateMask(value?): void

Parameters โ€‹

NameType
value?boolean

Returns โ€‹

void

Inherited from โ€‹

Leaf.__updateMask

Defined in โ€‹

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


__renderMask โ€‹

โ–ธ __renderMask(_canvas, _options): void

Parameters โ€‹

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns โ€‹

void

Inherited from โ€‹

Leaf.__renderMask

Defined in โ€‹

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


__getNowWorld โ€‹

โ–ธ __getNowWorld(options): IMatrixWithBoundsScaleData

Parameters โ€‹

NameType
optionsIRenderOptions

Returns โ€‹

IMatrixWithBoundsScaleData

Inherited from โ€‹

Leaf.__getNowWorld

Defined in โ€‹

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


getTransform โ€‹

โ–ธ getTransform(relative?): IMatrixData

Parameters โ€‹

NameType
relative?ILeaf | ILocationType

Returns โ€‹

IMatrixData

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

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

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[]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Inherited from โ€‹

Leaf.scaleOfWorld

Defined in โ€‹

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


rotateOfWorld โ€‹

โ–ธ rotateOfWorld(worldOrigin, rotation): void

Parameters โ€‹

NameType
worldOriginIPointData
rotationnumber

Returns โ€‹

void

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

Inherited from โ€‹

Leaf.skewOfWorld

Defined in โ€‹

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


flip โ€‹

โ–ธ flip(axis): void

Parameters โ€‹

NameType
axisIAxis

Returns โ€‹

void

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

Inherited from โ€‹

Leaf.scaleResize

Defined in โ€‹

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


__scaleResize โ€‹

โ–ธ __scaleResize(_scaleX, _scaleY): void

Parameters โ€‹

NameType
_scaleXnumber
_scaleYnumber

Returns โ€‹

void

Inherited from โ€‹

Leaf.__scaleResize

Defined in โ€‹

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


resizeWidth โ€‹

โ–ธ resizeWidth(_width): void

Parameters โ€‹

NameType
_widthnumber

Returns โ€‹

void

Inherited from โ€‹

Leaf.resizeWidth

Defined in โ€‹

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


resizeHeight โ€‹

โ–ธ resizeHeight(_height): void

Parameters โ€‹

NameType
_heightnumber

Returns โ€‹

void

Inherited from โ€‹

Leaf.resizeHeight

Defined in โ€‹

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


__hitWorld โ€‹

โ–ธ __hitWorld(_point): boolean

Parameters โ€‹

NameType
_pointIRadiusPointData

Returns โ€‹

boolean

Inherited from โ€‹

Leaf.__hitWorld

Defined in โ€‹

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


__hit โ€‹

โ–ธ __hit(_local): boolean

Parameters โ€‹

NameType
_localIRadiusPointData

Returns โ€‹

boolean

Inherited from โ€‹

Leaf.__hit

Defined in โ€‹

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


__hitFill โ€‹

โ–ธ __hitFill(_inner): boolean

Parameters โ€‹

NameType
_innerIRadiusPointData

Returns โ€‹

boolean

Inherited from โ€‹

Leaf.__hitFill

Defined in โ€‹

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


__hitStroke โ€‹

โ–ธ __hitStroke(_inner, _strokeWidth): boolean

Parameters โ€‹

NameType
_innerIRadiusPointData
_strokeWidthnumber

Returns โ€‹

boolean

Inherited from โ€‹

Leaf.__hitStroke

Defined in โ€‹

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


__hitPixel โ€‹

โ–ธ __hitPixel(_inner): boolean

Parameters โ€‹

NameType
_innerIRadiusPointData

Returns โ€‹

boolean

Inherited from โ€‹

Leaf.__hitPixel

Defined in โ€‹

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


__drawHitPath โ€‹

โ–ธ __drawHitPath(_canvas): void

Parameters โ€‹

NameType
_canvasILeaferCanvas

Returns โ€‹

void

Inherited from โ€‹

Leaf.__drawHitPath

Defined in โ€‹

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


__updateHitCanvas โ€‹

โ–ธ __updateHitCanvas(): void

Returns โ€‹

void

Inherited from โ€‹

Leaf.__updateHitCanvas

Defined in โ€‹

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


__render โ€‹

โ–ธ __render(_canvas, _options): void

Parameters โ€‹

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns โ€‹

void

Inherited from โ€‹

Leaf.__render

Defined in โ€‹

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


__drawFast โ€‹

โ–ธ __drawFast(_canvas, _options): void

Parameters โ€‹

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns โ€‹

void

Inherited from โ€‹

Leaf.__drawFast

Defined in โ€‹

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


__draw โ€‹

โ–ธ __draw(_canvas, _options): void

Parameters โ€‹

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns โ€‹

void

Inherited from โ€‹

Leaf.__draw

Defined in โ€‹

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


__clip โ€‹

โ–ธ __clip(_canvas, _options): void

Parameters โ€‹

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns โ€‹

void

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

Inherited from โ€‹

Leaf.__renderShape

Defined in โ€‹

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


__updateWorldOpacity โ€‹

โ–ธ __updateWorldOpacity(): void

Returns โ€‹

void

Inherited from โ€‹

Leaf.__updateWorldOpacity

Defined in โ€‹

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


__updateChange โ€‹

โ–ธ __updateChange(): void

Returns โ€‹

void

Inherited from โ€‹

Leaf.__updateChange

Defined in โ€‹

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


__drawPath โ€‹

โ–ธ __drawPath(_canvas): void

Parameters โ€‹

NameType
_canvasILeaferCanvas

Returns โ€‹

void

Inherited from โ€‹

Leaf.__drawPath

Defined in โ€‹

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


__drawRenderPath โ€‹

โ–ธ __drawRenderPath(_canvas): void

Parameters โ€‹

NameType
_canvasILeaferCanvas

Returns โ€‹

void

Inherited from โ€‹

Leaf.__drawRenderPath

Defined in โ€‹

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


__updatePath โ€‹

โ–ธ __updatePath(): void

Returns โ€‹

void

Inherited from โ€‹

Leaf.__updatePath

Defined in โ€‹

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


__updateRenderPath โ€‹

โ–ธ __updateRenderPath(): void

Returns โ€‹

void

Inherited from โ€‹

Leaf.__updateRenderPath

Defined in โ€‹

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


getMotionPathData โ€‹

โ–ธ getMotionPathData(): IMotionPathData

Returns โ€‹

IMotionPathData

Inherited from โ€‹

Leaf.getMotionPathData

Defined in โ€‹

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


getMotionPoint โ€‹

โ–ธ getMotionPoint(_motionDistance): IRotationPointData

Parameters โ€‹

NameType
_motionDistancenumber | IUnitData

Returns โ€‹

IRotationPointData

Inherited from โ€‹

Leaf.getMotionPoint

Defined in โ€‹

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


getMotionTotal โ€‹

โ–ธ getMotionTotal(): number

Returns โ€‹

number

Inherited from โ€‹

Leaf.getMotionTotal

Defined in โ€‹

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


__updateMotionPath โ€‹

โ–ธ __updateMotionPath(): void

Returns โ€‹

void

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

Inherited from โ€‹

Leaf.__runAnimation

Defined in โ€‹

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


dropTo โ€‹

โ–ธ dropTo(parent, index?, resize?): void

Parameters โ€‹

NameType
parentILeaf
index?number
resize?boolean

Returns โ€‹

void

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

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

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

Inherited from โ€‹

Leaf.on_

Defined in โ€‹

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


off_ โ€‹

โ–ธ off_(_id): void

Parameters โ€‹

NameType
_idIEventListenerId | IEventListenerId[]

Returns โ€‹

void

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

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

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

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

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

Inherited from โ€‹

Leaf.__emitLifeEvent

Defined in โ€‹

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


destroy โ€‹

โ–ธ destroy(): void

Returns โ€‹

void

Inherited from โ€‹

Leaf.destroy

Defined in โ€‹

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

Released under the MIT License.