Skip to content

Class: Leaf

Hierarchy

Implements

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new Leaf(data?)

Parameters

NameType
data?ILeafInputData

Defined in

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

Properties

innerId

Readonly innerId: number

Implementation of

ILeaf.innerId

Defined in

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


leafer

Optional leafer: ILeaferBase

Implementation of

ILeaf.leafer

Defined in

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


parent

Optional parent: ILeaf

Implementation of

ILeaf.parent

Defined in

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


__

__: ILeafData

Implementation of

ILeaf.__

Defined in

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


__layout

__layout: ILeafLayout

Implementation of

ILeaf.__layout

Defined in

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


__world

__world: IMatrixWithBoundsScaleData

Implementation of

ILeaf.__world

Defined in

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


__local

Optional __local: IMatrixWithBoundsData

Implementation of

ILeaf.__local

Defined in

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


__nowWorld

Optional __nowWorld: IMatrixWithBoundsScaleData

Implementation of

ILeaf.__nowWorld

Defined in

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


__cameraWorld

Optional __cameraWorld: IMatrixWithBoundsScaleData

Implementation of

ILeaf.__cameraWorld

Defined in

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


__worldOpacity

__worldOpacity: number

Implementation of

ILeaf.__worldOpacity

Defined in

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


__level

__level: number

Implementation of

ILeaf.__level

Defined in

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


__tempNumber

__tempNumber: number

Implementation of

ILeaf.__tempNumber

Defined in

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


__hasAutoLayout

Optional __hasAutoLayout: boolean

Implementation of

ILeaf.__hasAutoLayout

Defined in

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


__hasMask

Optional __hasMask: boolean

Implementation of

ILeaf.__hasMask

Defined in

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


__hasEraser

Optional __hasEraser: boolean

Implementation of

ILeaf.__hasEraser

Defined in

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


__hitCanvas

Optional __hitCanvas: IHitCanvas

Implementation of

ILeaf.__hitCanvas

Defined in

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


__captureMap

Optional __captureMap: IEventListenerMap

Implementation of

ILeaf.__captureMap

Defined in

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


__bubbleMap

Optional __bubbleMap: IEventListenerMap

Implementation of

ILeaf.__bubbleMap

Defined in

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


__parentWait

Optional __parentWait: IFunction[]

Implementation of

ILeaf.__parentWait

Defined in

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


__leaferWait

Optional __leaferWait: IFunction[]

Implementation of

ILeaf.__leaferWait

Defined in

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


children

Optional children: ILeaf[]

Implementation of

ILeaf.children

Defined in

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


noBounds

Optional noBounds: boolean

Implementation of

ILeaf.noBounds

Defined in

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


destroyed

destroyed: boolean

Implementation of

ILeaf.destroyed

Defined in

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

Accessors

tag

get tag(): string

Returns

string

Implementation of

ILeaf.tag

Defined in

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

set tag(_value): void

Parameters

NameType
_valuestring

Returns

void

Implementation of

ILeaf.tag

Defined in

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


__tag

get __tag(): string

Returns

string

Implementation of

ILeaf.__tag

Defined in

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


innerName

get innerName(): string

Returns

string

Implementation of

ILeaf.innerName

Defined in

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


__DataProcessor

get __DataProcessor(): typeof LeafData

Returns

typeof LeafData

Implementation of

ILeaf.__DataProcessor

Defined in

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


__LayoutProcessor

get __LayoutProcessor(): typeof LeafLayout

Returns

typeof LeafLayout

Implementation of

ILeaf.__LayoutProcessor

Defined in

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


isLeafer

get isLeafer(): boolean

Returns

boolean

Implementation of

ILeaf.isLeafer

Defined in

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


isBranch

get isBranch(): boolean

Returns

boolean

Implementation of

ILeaf.isBranch

Defined in

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


isBranchLeaf

get isBranchLeaf(): boolean

Returns

boolean

Implementation of

ILeaf.isBranchLeaf

Defined in

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


__localMatrix

get __localMatrix(): IMatrixData

Returns

IMatrixData

Implementation of

ILeaf.__localMatrix

Defined in

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


__localBoxBounds

get __localBoxBounds(): IBoundsData

Returns

IBoundsData

Implementation of

ILeaf.__localBoxBounds

Defined in

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


worldTransform

get worldTransform(): IMatrixWithScaleData

Returns

IMatrixWithScaleData

Implementation of

ILeaf.worldTransform

Defined in

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


localTransform

get localTransform(): IMatrixData

Returns

IMatrixData

Implementation of

ILeaf.localTransform

Defined in

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


boxBounds

get boxBounds(): IBoundsData

Returns

IBoundsData

Implementation of

ILeaf.boxBounds

Defined in

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


renderBounds

get renderBounds(): IBoundsData

Returns

IBoundsData

Implementation of

ILeaf.renderBounds

Defined in

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


worldBoxBounds

get worldBoxBounds(): IBoundsData

Returns

IBoundsData

Implementation of

ILeaf.worldBoxBounds

Defined in

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


worldStrokeBounds

get worldStrokeBounds(): IBoundsData

Returns

IBoundsData

Implementation of

ILeaf.worldStrokeBounds

Defined in

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


worldRenderBounds

get worldRenderBounds(): IBoundsData

Returns

IBoundsData

Implementation of

ILeaf.worldRenderBounds

Defined in

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


worldOpacity

get worldOpacity(): number

Returns

number

Implementation of

ILeaf.worldOpacity

Defined in

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


__worldFlipped

get __worldFlipped(): boolean

Returns

boolean

Implementation of

ILeaf.__worldFlipped

Defined in

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


__onlyHitMask

get __onlyHitMask(): boolean

Returns

boolean

Implementation of

ILeaf.__onlyHitMask

Defined in

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


__ignoreHitWorld

get __ignoreHitWorld(): boolean

Returns

boolean

Implementation of

ILeaf.__ignoreHitWorld

Defined in

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


pathInputed

get pathInputed(): boolean

Returns

boolean

Implementation of

ILeaf.pathInputed

Defined in

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

Methods

reset

reset(data?): void

Parameters

NameType
data?ILeafInputData

Returns

void

Implementation of

ILeaf.reset

Defined in

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


resetCustom

resetCustom(): void

Returns

void

Implementation of

ILeaf.resetCustom

Defined in

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


waitParent

waitParent(item, bind?): void

Parameters

NameType
itemIFunction
bind?IObject

Returns

void

Implementation of

ILeaf.waitParent

Defined in

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


waitLeafer

waitLeafer(item, bind?): void

Parameters

NameType
itemIFunction
bind?IObject

Returns

void

Implementation of

ILeaf.waitLeafer

Defined in

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


nextRender

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

Parameters

NameType
itemIFunction
bind?IObject
off?"off"

Returns

void

Implementation of

ILeaf.nextRender

Defined in

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


removeNextRender

removeNextRender(item): void

Parameters

NameType
itemIFunction

Returns

void

Implementation of

ILeaf.removeNextRender

Defined in

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


__bindLeafer

__bindLeafer(leafer): void

Parameters

NameType
leaferILeaferBase

Returns

void

Implementation of

ILeaf.__bindLeafer

Defined in

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


set

set(_data): void

Parameters

NameType
_dataIObject

Returns

void

Implementation of

ILeaf.set

Defined in

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


get

get(_name?): IValue | ILeafInputData

Parameters

NameType
_name?string

Returns

IValue | ILeafInputData

Implementation of

ILeaf.get

Defined in

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


toJSON

toJSON(): IObject

Returns

IObject

Implementation of

ILeaf.toJSON

Defined in

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


toString

toString(): string

Returns

string

Implementation of

ILeaf.toString

Defined in

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


__setAttr

__setAttr(_attrName, _newValue): boolean

Parameters

NameType
_attrNamestring
_newValueIValue

Returns

boolean

Implementation of

ILeaf.__setAttr

Defined in

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


__getAttr

__getAttr(_attrName): IValue

Parameters

NameType
_attrNamestring

Returns

IValue

Implementation of

ILeaf.__getAttr

Defined in

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


setProxyAttr

setProxyAttr(_attrName, _newValue): void

Parameters

NameType
_attrNamestring
_newValueIValue

Returns

void

Implementation of

ILeaf.setProxyAttr

Defined in

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


getProxyAttr

getProxyAttr(_attrName): IValue

Parameters

NameType
_attrNamestring

Returns

IValue

Implementation of

ILeaf.getProxyAttr

Defined in

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


find

find(_condition, _options?): ILeaf[]

Parameters

NameType
_conditionstring | number | IFindMethod
_options?any

Returns

ILeaf[]

Implementation of

ILeaf.find

Defined in

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


findOne

findOne(_condition, _options?): ILeaf

Parameters

NameType
_conditionstring | number | IFindMethod
_options?any

Returns

ILeaf

Implementation of

ILeaf.findOne

Defined in

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


focus

focus(_value?): void

Parameters

NameType
_value?boolean

Returns

void

Implementation of

ILeaf.focus

Defined in

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


forceUpdate

forceUpdate(attrName?): void

Parameters

NameType
attrName?string

Returns

void

Implementation of

ILeaf.forceUpdate

Defined in

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


updateLayout

updateLayout(): void

Returns

void

Implementation of

ILeaf.updateLayout

Defined in

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


__updateWorldMatrix

__updateWorldMatrix(): void

Returns

void

Implementation of

ILeaf.__updateWorldMatrix

Defined in

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


__updateLocalMatrix

__updateLocalMatrix(): void

Returns

void

Implementation of

ILeaf.__updateLocalMatrix

Defined in

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


__updateWorldBounds

__updateWorldBounds(): void

Returns

void

Implementation of

ILeaf.__updateWorldBounds

Defined in

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


__updateLocalBounds

__updateLocalBounds(): void

Returns

void

Implementation of

ILeaf.__updateLocalBounds

Defined in

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


__updateLocalBoxBounds

__updateLocalBoxBounds(): void

Returns

void

Implementation of

ILeaf.__updateLocalBoxBounds

Defined in

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


__updateLocalStrokeBounds

__updateLocalStrokeBounds(): void

Returns

void

Implementation of

ILeaf.__updateLocalStrokeBounds

Defined in

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


__updateLocalRenderBounds

__updateLocalRenderBounds(): void

Returns

void

Implementation of

ILeaf.__updateLocalRenderBounds

Defined in

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


__updateBoxBounds

__updateBoxBounds(): void

Returns

void

Implementation of

ILeaf.__updateBoxBounds

Defined in

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


__updateStrokeBounds

__updateStrokeBounds(): void

Returns

void

Implementation of

ILeaf.__updateStrokeBounds

Defined in

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


__updateRenderBounds

__updateRenderBounds(): void

Returns

void

Implementation of

ILeaf.__updateRenderBounds

Defined in

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


__updateAutoLayout

__updateAutoLayout(): void

Returns

void

Implementation of

ILeaf.__updateAutoLayout

Defined in

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


__updateNaturalSize

__updateNaturalSize(): void

Returns

void

Implementation of

ILeaf.__updateNaturalSize

Defined in

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


__updateStrokeSpread

__updateStrokeSpread(): number

Returns

number

Implementation of

ILeaf.__updateStrokeSpread

Defined in

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


__updateRenderSpread

__updateRenderSpread(): number

Returns

number

Implementation of

ILeaf.__updateRenderSpread

Defined in

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


__onUpdateSize

__onUpdateSize(): void

Returns

void

Implementation of

ILeaf.__onUpdateSize

Defined in

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


__updateEraser

__updateEraser(value?): void

Parameters

NameType
value?boolean

Returns

void

Implementation of

ILeaf.__updateEraser

Defined in

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


__updateMask

__updateMask(value?): void

Parameters

NameType
value?boolean

Returns

void

Implementation of

ILeaf.__updateMask

Defined in

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


__renderMask

__renderMask(_canvas, _options): void

Parameters

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns

void

Implementation of

ILeaf.__renderMask

Defined in

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


__getNowWorld

__getNowWorld(options): IMatrixWithBoundsScaleData

Parameters

NameType
optionsIRenderOptions

Returns

IMatrixWithBoundsScaleData

Implementation of

ILeaf.__getNowWorld

Defined in

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


getWorld

getWorld(attrName): number

Parameters

NameType
attrNameILayoutAttr

Returns

number

Implementation of

ILeaf.getWorld

Defined in

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


getTransform

getTransform(relative?): IMatrixData

Parameters

NameType
relative?ILeaf | ILocationType

Returns

IMatrixData

Implementation of

ILeaf.getTransform

Defined in

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


getBounds

getBounds(type?, relative?): IBoundsData

Parameters

NameType
type?IBoundsType
relative?ILeaf | ILocationType

Returns

IBoundsData

Implementation of

ILeaf.getBounds

Defined in

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


getLayoutBounds

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

Parameters

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

Returns

ILayoutBoundsData

Implementation of

ILeaf.getLayoutBounds

Defined in

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


getLayoutPoints

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

Parameters

NameType
type?IBoundsType
relative?ILeaf | ILocationType

Returns

IPointData[]

Defined in

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


getWorldBounds

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

Parameters

NameType
innerIBoundsData
relative?ILeaf
change?boolean

Returns

IBoundsData

Implementation of

ILeaf.getWorldBounds

Defined in

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


worldToLocal

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

Parameters

NameType
worldIPointData
to?IPointData
distance?boolean
relative?ILeaf

Returns

void

Implementation of

ILeaf.worldToLocal

Defined in

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


localToWorld

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

Parameters

NameType
localIPointData
to?IPointData
distance?boolean
relative?ILeaf

Returns

void

Implementation of

ILeaf.localToWorld

Defined in

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


worldToInner

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

Parameters

NameType
worldIPointData
to?IPointData
distance?boolean
relative?ILeaf

Returns

void

Implementation of

ILeaf.worldToInner

Defined in

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


innerToWorld

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

Parameters

NameType
innerIPointData
to?IPointData
distance?boolean
relative?ILeaf

Returns

void

Implementation of

ILeaf.innerToWorld

Defined in

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


getInnerPoint

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

Parameters

NameType
worldIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns

IPointData

Implementation of

ILeaf.getInnerPoint

Defined in

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


getInnerPointByLocal

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

Parameters

NameType
localIPointData
_relative?ILeaf
distance?boolean
change?boolean

Returns

IPointData

Implementation of

ILeaf.getInnerPointByLocal

Defined in

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


getLocalPoint

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

Parameters

NameType
worldIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns

IPointData

Implementation of

ILeaf.getLocalPoint

Defined in

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


getLocalPointByInner

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

Parameters

NameType
innerIPointData
_relative?ILeaf
distance?boolean
change?boolean

Returns

IPointData

Implementation of

ILeaf.getLocalPointByInner

Defined in

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


getWorldPoint

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

Parameters

NameType
innerIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns

IPointData

Implementation of

ILeaf.getWorldPoint

Defined in

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


getWorldPointByLocal

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

Parameters

NameType
localIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns

IPointData

Implementation of

ILeaf.getWorldPointByLocal

Defined in

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


getPagePoint

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

Parameters

NameType
worldIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns

IPointData

Implementation of

ILeaf.getPagePoint

Defined in

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


getWorldPointByPage

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

Parameters

NameType
pageIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns

IPointData

Implementation of

ILeaf.getWorldPointByPage

Defined in

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


setTransform

setTransform(matrix, resize?): void

Parameters

NameType
matrixIMatrixData
resize?boolean

Returns

void

Implementation of

ILeaf.setTransform

Defined in

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


transform

transform(matrix, resize?): void

Parameters

NameType
matrixIMatrixData
resize?boolean

Returns

void

Implementation of

ILeaf.transform

Defined in

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


move

move(x, y?): void

Parameters

NameType
xnumber
y?number

Returns

void

Implementation of

ILeaf.move

Defined in

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


scaleOf

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

Parameters

NameType
originIPointData
scaleXnumber
scaleY?number
resize?boolean

Returns

void

Implementation of

ILeaf.scaleOf

Defined in

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


rotateOf

rotateOf(origin, rotation): void

Parameters

NameType
originIPointData
rotationnumber

Returns

void

Implementation of

ILeaf.rotateOf

Defined in

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


skewOf

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

Parameters

NameType
originIPointData
skewXnumber
skewY?number
resize?boolean

Returns

void

Implementation of

ILeaf.skewOf

Defined in

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


transformWorld

transformWorld(worldTransform?, resize?): void

Parameters

NameType
worldTransform?IMatrixData
resize?boolean

Returns

void

Implementation of

ILeaf.transformWorld

Defined in

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


moveWorld

moveWorld(x, y?): void

Parameters

NameType
xnumber
y?number

Returns

void

Implementation of

ILeaf.moveWorld

Defined in

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


scaleOfWorld

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

Parameters

NameType
worldOriginIPointData
scaleXnumber
scaleY?number
resize?boolean

Returns

void

Implementation of

ILeaf.scaleOfWorld

Defined in

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


rotateOfWorld

rotateOfWorld(worldOrigin, rotation): void

Parameters

NameType
worldOriginIPointData
rotationnumber

Returns

void

Implementation of

ILeaf.rotateOfWorld

Defined in

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


skewOfWorld

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

Parameters

NameType
worldOriginIPointData
skewXnumber
skewY?number
resize?boolean

Returns

void

Implementation of

ILeaf.skewOfWorld

Defined in

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


scaleResize

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

Parameters

NameTypeDefault value
scaleXnumberundefined
scaleYnumberscaleX
_noResize?booleanundefined

Returns

void

Implementation of

ILeaf.scaleResize

Defined in

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


__scaleResize

__scaleResize(_scaleX, _scaleY): void

Parameters

NameType
_scaleXnumber
_scaleYnumber

Returns

void

Implementation of

ILeaf.__scaleResize

Defined in

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


__hitWorld

__hitWorld(_point): boolean

Parameters

NameType
_pointIRadiusPointData

Returns

boolean

Implementation of

ILeaf.__hitWorld

Defined in

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


__hit

__hit(_local): boolean

Parameters

NameType
_localIRadiusPointData

Returns

boolean

Implementation of

ILeaf.__hit

Defined in

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


__hitFill

__hitFill(_inner): boolean

Parameters

NameType
_innerIRadiusPointData

Returns

boolean

Implementation of

ILeaf.__hitFill

Defined in

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


__hitStroke

__hitStroke(_inner, _strokeWidth): boolean

Parameters

NameType
_innerIRadiusPointData
_strokeWidthnumber

Returns

boolean

Implementation of

ILeaf.__hitStroke

Defined in

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


__hitPixel

__hitPixel(_inner): boolean

Parameters

NameType
_innerIRadiusPointData

Returns

boolean

Implementation of

ILeaf.__hitPixel

Defined in

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


__drawHitPath

__drawHitPath(_canvas): void

Parameters

NameType
_canvasILeaferCanvas

Returns

void

Implementation of

ILeaf.__drawHitPath

Defined in

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


__updateHitCanvas

__updateHitCanvas(): void

Returns

void

Implementation of

ILeaf.__updateHitCanvas

Defined in

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


__render

__render(_canvas, _options): void

Parameters

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns

void

Implementation of

ILeaf.__render

Defined in

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


__drawFast

__drawFast(_canvas, _options): void

Parameters

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns

void

Implementation of

ILeaf.__drawFast

Defined in

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


__draw

__draw(_canvas, _options): void

Parameters

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns

void

Implementation of

ILeaf.__draw

Defined in

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


__clip

__clip(_canvas, _options): void

Parameters

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns

void

Implementation of

ILeaf.__clip

Defined in

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


__renderShape

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

Parameters

NameType
_canvasILeaferCanvas
_optionsIRenderOptions
_ignoreFill?boolean
_ignoreStroke?boolean

Returns

void

Implementation of

ILeaf.__renderShape

Defined in

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


__updateWorldOpacity

__updateWorldOpacity(): void

Returns

void

Implementation of

ILeaf.__updateWorldOpacity

Defined in

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


__updateChange

__updateChange(): void

Returns

void

Implementation of

ILeaf.__updateChange

Defined in

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


__drawPath

__drawPath(_canvas): void

Parameters

NameType
_canvasILeaferCanvas

Returns

void

Implementation of

ILeaf.__drawPath

Defined in

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


__drawRenderPath

__drawRenderPath(_canvas): void

Parameters

NameType
_canvasILeaferCanvas

Returns

void

Implementation of

ILeaf.__drawRenderPath

Defined in

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


__updatePath

__updatePath(): void

Returns

void

Implementation of

ILeaf.__updatePath

Defined in

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


__updateRenderPath

__updateRenderPath(): void

Returns

void

Implementation of

ILeaf.__updateRenderPath

Defined in

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


__updateSortChildren

__updateSortChildren(): void

Returns

void

Implementation of

ILeaf.__updateSortChildren

Defined in

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


add

add(_child, _index?): void

Parameters

NameType
_childILeaf
_index?number

Returns

void

Implementation of

ILeaf.add

Defined in

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


remove

remove(_child?, destroy?): void

Parameters

NameType
_child?ILeaf
destroy?boolean

Returns

void

Implementation of

ILeaf.remove

Defined in

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


dropTo

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

Parameters

NameType
parentILeaf
index?number
resize?boolean

Returns

void

Implementation of

ILeaf.dropTo

Defined in

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


on

on(_type, _listener, _options?): void

Parameters

NameType
_typestring | string[]
_listenerIFunction
_options?boolean | IEventListenerOptions

Returns

void

Implementation of

ILeaf.on

Defined in

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


off

off(_type, _listener, _options?): void

Parameters

NameType
_typestring | string[]
_listenerIFunction
_options?boolean | IEventListenerOptions

Returns

void

Implementation of

ILeaf.off

Defined in

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


on_

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

Parameters

NameType
_typestring | string[]
_listenerIFunction
_bind?IObject
_options?boolean | IEventListenerOptions

Returns

IEventListenerId

Implementation of

ILeaf.on_

Defined in

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


off_

off_(_id): void

Parameters

NameType
_idIEventListenerId | IEventListenerId[]

Returns

void

Implementation of

ILeaf.off_

Defined in

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


once

once(_type, _listener, _capture?): void

Parameters

NameType
_typestring | string[]
_listenerIFunction
_capture?boolean

Returns

void

Implementation of

ILeaf.once

Defined in

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


emit

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

Parameters

NameType
_typestring
_event?IObject | IEvent
_capture?boolean

Returns

void

Implementation of

ILeaf.emit

Defined in

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


emitEvent

emitEvent(_event?, _capture?): void

Parameters

NameType
_event?IEvent
_capture?boolean

Returns

void

Implementation of

ILeaf.emitEvent

Defined in

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


hasEvent

hasEvent(_type, _capture?): boolean

Parameters

NameType
_typestring
_capture?boolean

Returns

boolean

Implementation of

ILeaf.hasEvent

Defined in

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


changeAttr

Static changeAttr(attrName, defaultValue): void

Parameters

NameType
attrNamestring
defaultValueIValue

Returns

void

Defined in

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


addAttr

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

Parameters

NameType
attrNamestring
defaultValueIValue
fn?IAttrDecorator

Returns

void

Defined in

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


destroy

destroy(): void

Returns

void

Implementation of

ILeaf.destroy

Defined in

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

Released under the MIT License.