Skip to content

Interface: ILeaf

Hierarchy

Implemented by

Table of contents

Properties

Methods

Properties

id

Optional id: string

Inherited from

ILeafInputData.id

Defined in

leafer/packages/interface/src/display/ILeaf.ts:203


name

Optional name: string

Inherited from

ILeafInputData.name

Defined in

leafer/packages/interface/src/display/ILeaf.ts:204


className

Optional className: string

Inherited from

ILeafInputData.className

Defined in

leafer/packages/interface/src/display/ILeaf.ts:205


blendMode

Optional blendMode: IBlendMode

Inherited from

ILeafInputData.blendMode

Defined in

leafer/packages/interface/src/display/ILeaf.ts:207


opacity

Optional opacity: number

Inherited from

ILeafInputData.opacity

Defined in

leafer/packages/interface/src/display/ILeaf.ts:208


visible

Optional visible: boolean

Inherited from

ILeafInputData.visible

Defined in

leafer/packages/interface/src/display/ILeaf.ts:209


selected

Optional selected: boolean

Inherited from

ILeafInputData.selected

Defined in

leafer/packages/interface/src/display/ILeaf.ts:210


disabled

Optional disabled: boolean

Inherited from

ILeafInputData.disabled

Defined in

leafer/packages/interface/src/display/ILeaf.ts:211


locked

Optional locked: boolean

Inherited from

ILeafInputData.locked

Defined in

leafer/packages/interface/src/display/ILeaf.ts:212


zIndex

Optional zIndex: number

Inherited from

ILeafInputData.zIndex

Defined in

leafer/packages/interface/src/display/ILeaf.ts:213


mask

Optional mask: boolean

Inherited from

ILeafInputData.mask

Defined in

leafer/packages/interface/src/display/ILeaf.ts:215


maskType

Optional maskType: IMaskType

Inherited from

ILeafInputData.maskType

Defined in

leafer/packages/interface/src/display/ILeaf.ts:216


eraser

Optional eraser: boolean

Inherited from

ILeafInputData.eraser

Defined in

leafer/packages/interface/src/display/ILeaf.ts:217


x

Optional x: number

Inherited from

ILeafInputData.x

Defined in

leafer/packages/interface/src/display/ILeaf.ts:220


y

Optional y: number

Inherited from

ILeafInputData.y

Defined in

leafer/packages/interface/src/display/ILeaf.ts:221


width

Optional width: number

Inherited from

ILeafInputData.width

Defined in

leafer/packages/interface/src/display/ILeaf.ts:222


height

Optional height: number

Inherited from

ILeafInputData.height

Defined in

leafer/packages/interface/src/display/ILeaf.ts:223


scaleX

Optional scaleX: number

Inherited from

ILeafInputData.scaleX

Defined in

leafer/packages/interface/src/display/ILeaf.ts:224


scaleY

Optional scaleY: number

Inherited from

ILeafInputData.scaleY

Defined in

leafer/packages/interface/src/display/ILeaf.ts:225


rotation

Optional rotation: number

Inherited from

ILeafInputData.rotation

Defined in

leafer/packages/interface/src/display/ILeaf.ts:226


skewX

Optional skewX: number

Inherited from

ILeafInputData.skewX

Defined in

leafer/packages/interface/src/display/ILeaf.ts:227


skewY

Optional skewY: number

Inherited from

ILeafInputData.skewY

Defined in

leafer/packages/interface/src/display/ILeaf.ts:228


scale

Optional scale: number | IPointData

Inherited from

ILeafInputData.scale

Defined in

leafer/packages/interface/src/display/ILeaf.ts:230


around

Optional around: IAround

Inherited from

ILeafInputData.around

Defined in

leafer/packages/interface/src/display/ILeaf.ts:231


lazy

Optional lazy: boolean

Inherited from

ILeafInputData.lazy

Defined in

leafer/packages/interface/src/display/ILeaf.ts:233


pixelRatio

Optional pixelRatio: number

Inherited from

ILeafInputData.pixelRatio

Defined in

leafer/packages/interface/src/display/ILeaf.ts:234


draggable

Optional draggable: boolean

Inherited from

ILeafInputData.draggable

Defined in

leafer/packages/interface/src/display/ILeaf.ts:236


path

Optional path: string | IPathCommandData

Inherited from

ILeafInputData.path

Defined in

leafer/packages/interface/src/display/ILeaf.ts:238


windingRule

Optional windingRule: IWindingRule

Inherited from

ILeafInputData.windingRule

Defined in

leafer/packages/interface/src/display/ILeaf.ts:239


closed

Optional closed: boolean

Inherited from

ILeafInputData.closed

Defined in

leafer/packages/interface/src/display/ILeaf.ts:240


editable

Optional editable: boolean

Inherited from

ILeafInputData.editable

Defined in

leafer/packages/interface/src/display/ILeaf.ts:242


editSize

Optional editSize: IEditSize

Inherited from

ILeafInputData.editSize

Defined in

leafer/packages/interface/src/display/ILeaf.ts:243


editorStyle

Optional editorStyle: IObject

Inherited from

ILeafInputData.editorStyle

Defined in

leafer/packages/interface/src/display/ILeaf.ts:244


hittable

Optional hittable: boolean

Inherited from

ILeafInputData.hittable

Defined in

leafer/packages/interface/src/display/ILeaf.ts:246


hitFill

Optional hitFill: IHitType

Inherited from

ILeafInputData.hitFill

Defined in

leafer/packages/interface/src/display/ILeaf.ts:247


hitStroke

Optional hitStroke: IHitType

Inherited from

ILeafInputData.hitStroke

Defined in

leafer/packages/interface/src/display/ILeaf.ts:248


hitBox

Optional hitBox: boolean

Inherited from

ILeafInputData.hitBox

Defined in

leafer/packages/interface/src/display/ILeaf.ts:249


hitChildren

Optional hitChildren: boolean

Inherited from

ILeafInputData.hitChildren

Defined in

leafer/packages/interface/src/display/ILeaf.ts:250


hitSelf

Optional hitSelf: boolean

Inherited from

ILeafInputData.hitSelf

Defined in

leafer/packages/interface/src/display/ILeaf.ts:251


hitRadius

Optional hitRadius: number

Inherited from

ILeafInputData.hitRadius

Defined in

leafer/packages/interface/src/display/ILeaf.ts:252


cursor

Optional cursor: ICursorType | ICursorType[]

Inherited from

ILeafInputData.cursor

Defined in

leafer/packages/interface/src/display/ILeaf.ts:254


normalStyle

Optional normalStyle: ILeafInputData

Inherited from

ILeafInputData.normalStyle

Defined in

leafer/packages/interface/src/display/ILeaf.ts:256


hoverStyle

Optional hoverStyle: ILeafInputData

Inherited from

ILeafInputData.hoverStyle

Defined in

leafer/packages/interface/src/display/ILeaf.ts:257


pressStyle

Optional pressStyle: ILeafInputData

Inherited from

ILeafInputData.pressStyle

Defined in

leafer/packages/interface/src/display/ILeaf.ts:258


focusStyle

Optional focusStyle: ILeafInputData

Inherited from

ILeafInputData.focusStyle

Defined in

leafer/packages/interface/src/display/ILeaf.ts:259


selectedStyle

Optional selectedStyle: ILeafInputData

Inherited from

ILeafInputData.selectedStyle

Defined in

leafer/packages/interface/src/display/ILeaf.ts:260


disabledStyle

Optional disabledStyle: ILeafInputData

Inherited from

ILeafInputData.disabledStyle

Defined in

leafer/packages/interface/src/display/ILeaf.ts:261


noBounds

Optional noBounds: boolean

Inherited from

ILeafInputData.noBounds

Defined in

leafer/packages/interface/src/display/ILeaf.ts:266


tag

tag: string

Overrides

ILeafInputData.tag

Defined in

leafer/packages/interface/src/display/ILeaf.ts:345


__tag

Readonly __tag: string

Defined in

leafer/packages/interface/src/display/ILeaf.ts:346


innerName

Readonly innerName: string

Defined in

leafer/packages/interface/src/display/ILeaf.ts:347


__DataProcessor

Readonly __DataProcessor: IObject

Defined in

leafer/packages/interface/src/display/ILeaf.ts:349


__LayoutProcessor

Readonly __LayoutProcessor: IObject

Defined in

leafer/packages/interface/src/display/ILeaf.ts:350


app

Optional Readonly app: ILeaferBase

Defined in

leafer/packages/interface/src/display/ILeaf.ts:352


leafer

Optional leafer: ILeaferBase

Defined in

leafer/packages/interface/src/display/ILeaf.ts:353


parent

Optional parent: ILeaf

Defined in

leafer/packages/interface/src/display/ILeaf.ts:354


zoomLayer

Optional zoomLayer: ILeaf

Defined in

leafer/packages/interface/src/display/ILeaf.ts:355


isApp

Optional Readonly isApp: boolean

Defined in

leafer/packages/interface/src/display/ILeaf.ts:357


isLeafer

Optional Readonly isLeafer: boolean

Defined in

leafer/packages/interface/src/display/ILeaf.ts:358


isBranch

Optional Readonly isBranch: boolean

Defined in

leafer/packages/interface/src/display/ILeaf.ts:359


isBranchLeaf

Optional Readonly isBranchLeaf: boolean

Defined in

leafer/packages/interface/src/display/ILeaf.ts:360


isOutside

Optional Readonly isOutside: boolean

Defined in

leafer/packages/interface/src/display/ILeaf.ts:361


__

__: ILeafData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:363


proxyData

Optional proxyData: ILeafInputData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:365


__proxyData

Optional __proxyData: ILeafInputData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:366


__layout

__layout: ILeafLayout

Defined in

leafer/packages/interface/src/display/ILeaf.ts:368


__world

__world: IMatrixWithBoundsScaleData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:370


__local

Optional __local: IMatrixWithBoundsData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:371


__nowWorld

Optional __nowWorld: IMatrixWithBoundsScaleData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:373


__cameraWorld

Optional __cameraWorld: IMatrixWithBoundsScaleData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:374


__localMatrix

Readonly __localMatrix: IMatrixData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:376


__localBoxBounds

Readonly __localBoxBounds: IBoundsData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:377


__worldOpacity

__worldOpacity: number

Defined in

leafer/packages/interface/src/display/ILeaf.ts:379


worldTransform

Readonly worldTransform: IMatrixWithScaleData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:381


localTransform

Readonly localTransform: IMatrixData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:382


boxBounds

Readonly boxBounds: IBoundsData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:384


renderBounds

Readonly renderBounds: IBoundsData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:385


worldBoxBounds

Readonly worldBoxBounds: IBoundsData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:386


worldStrokeBounds

Readonly worldStrokeBounds: IBoundsData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:387


worldRenderBounds

Readonly worldRenderBounds: IBoundsData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:388


worldOpacity

Readonly worldOpacity: number

Defined in

leafer/packages/interface/src/display/ILeaf.ts:390


__level

__level: number

Defined in

leafer/packages/interface/src/display/ILeaf.ts:392


__tempNumber

Optional __tempNumber: number

Defined in

leafer/packages/interface/src/display/ILeaf.ts:393


__worldFlipped

Readonly __worldFlipped: boolean

Defined in

leafer/packages/interface/src/display/ILeaf.ts:395


__hasAutoLayout

Optional __hasAutoLayout: boolean

Defined in

leafer/packages/interface/src/display/ILeaf.ts:397


__hasMask

Optional __hasMask: boolean

Defined in

leafer/packages/interface/src/display/ILeaf.ts:398


__hasEraser

Optional __hasEraser: boolean

Defined in

leafer/packages/interface/src/display/ILeaf.ts:399


__hitCanvas

Optional __hitCanvas: IHitCanvas

Defined in

leafer/packages/interface/src/display/ILeaf.ts:400


__onlyHitMask

Readonly __onlyHitMask: boolean

Defined in

leafer/packages/interface/src/display/ILeaf.ts:402


__ignoreHitWorld

Readonly __ignoreHitWorld: boolean

Defined in

leafer/packages/interface/src/display/ILeaf.ts:403


pathInputed

Readonly pathInputed: boolean

Defined in

leafer/packages/interface/src/display/ILeaf.ts:405


__parentWait

Optional __parentWait: IFunction[]

Defined in

leafer/packages/interface/src/display/ILeaf.ts:407


__leaferWait

Optional __leaferWait: IFunction[]

Defined in

leafer/packages/interface/src/display/ILeaf.ts:408


destroyed

destroyed: boolean

Defined in

leafer/packages/interface/src/display/ILeaf.ts:410


children

Optional children: ILeaf[]

Overrides

ILeafInputData.children

Defined in

leafer/packages/interface/src/display/ILeaf.ts:546


innerId

Readonly innerId: number

Inherited from

IEventer.innerId

Defined in

leafer/packages/interface/src/event/IEventer.ts:34


__captureMap

Optional __captureMap: IEventListenerMap

Inherited from

IEventer.__captureMap

Defined in

leafer/packages/interface/src/event/IEventer.ts:35


__bubbleMap

Optional __bubbleMap: IEventListenerMap

Inherited from

IEventer.__bubbleMap

Defined in

leafer/packages/interface/src/event/IEventer.ts:36

Methods

reset

reset(data?): void

Parameters

NameType
data?ILeafInputData

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:412


resetCustom

resetCustom(): void

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:413


waitParent

waitParent(item, bind?): void

Parameters

NameType
itemIFunction
bind?IObject

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:415


waitLeafer

waitLeafer(item, bind?): void

Parameters

NameType
itemIFunction
bind?IObject

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:416


nextRender

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

Parameters

NameType
itemIFunction
bind?IObject
off?"off"

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:417


removeNextRender

removeNextRender(item): void

Parameters

NameType
itemIFunction

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:418


__bindLeafer

__bindLeafer(leafer): void

Parameters

NameType
leaferILeaferBase

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:420


set

set(data): void

Parameters

NameType
dataIObject

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:422


get

get(name?): IValue | ILeafInputData

Parameters

NameType
name?string | string[] | IObject

Returns

IValue | ILeafInputData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:423


toJSON

toJSON(): IObject

Returns

IObject

Defined in

leafer/packages/interface/src/display/ILeaf.ts:424


toString

toString(): string

Returns

string

Defined in

leafer/packages/interface/src/display/ILeaf.ts:425


toSVG

Optional toSVG(): string

Returns

string

Defined in

leafer/packages/interface/src/display/ILeaf.ts:426


toHTML

Optional toHTML(): string

Returns

string

Defined in

leafer/packages/interface/src/display/ILeaf.ts:427


__setAttr

__setAttr(attrName, newValue, checkFiniteNumber?): boolean

Parameters

NameType
attrNamestring
newValueIValue
checkFiniteNumber?boolean

Returns

boolean

Overrides

ILeafDataProxy.__setAttr

Defined in

leafer/packages/interface/src/display/ILeaf.ts:430


__getAttr

__getAttr(attrName): IValue

Parameters

NameType
attrNamestring

Returns

IValue

Overrides

ILeafDataProxy.__getAttr

Defined in

leafer/packages/interface/src/display/ILeaf.ts:431


setProxyAttr

setProxyAttr(name, newValue): void

Parameters

NameType
namestring
newValueIValue

Returns

void

Overrides

ILeafDataProxy.setProxyAttr

Defined in

leafer/packages/interface/src/display/ILeaf.ts:432


getProxyAttr

getProxyAttr(name): IValue

Parameters

NameType
namestring

Returns

IValue

Overrides

ILeafDataProxy.getProxyAttr

Defined in

leafer/packages/interface/src/display/ILeaf.ts:433


find

find(condition, options?): ILeaf[]

Parameters

NameType
conditionstring | number | IFindMethod
options?any

Returns

ILeaf[]

Defined in

leafer/packages/interface/src/display/ILeaf.ts:436


findOne

findOne(condition, options?): ILeaf

Parameters

NameType
conditionstring | number | IFindMethod
options?any

Returns

ILeaf

Defined in

leafer/packages/interface/src/display/ILeaf.ts:437


focus

focus(value?): void

Parameters

NameType
value?boolean

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:439


forceUpdate

forceUpdate(attrName?): void

Parameters

NameType
attrName?string

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:440


updateLayout

updateLayout(): void

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:442


__updateWorldMatrix

__updateWorldMatrix(): void

Returns

void

Overrides

ILeafMatrix.__updateWorldMatrix

Defined in

leafer/packages/interface/src/display/ILeaf.ts:445


__updateLocalMatrix

__updateLocalMatrix(): void

Returns

void

Overrides

ILeafMatrix.__updateLocalMatrix

Defined in

leafer/packages/interface/src/display/ILeaf.ts:446


__updateWorldBounds

__updateWorldBounds(): void

Returns

void

Overrides

ILeafBounds.__updateWorldBounds

Defined in

leafer/packages/interface/src/display/ILeaf.ts:449


__updateLocalBounds

__updateLocalBounds(): void

Returns

void

Overrides

ILeafBounds.__updateLocalBounds

Defined in

leafer/packages/interface/src/display/ILeaf.ts:450


__updateLocalBoxBounds

__updateLocalBoxBounds(): void

Returns

void

Overrides

ILeafBounds.__updateLocalBoxBounds

Defined in

leafer/packages/interface/src/display/ILeaf.ts:452


__updateLocalStrokeBounds

__updateLocalStrokeBounds(): void

Returns

void

Overrides

ILeafBounds.__updateLocalStrokeBounds

Defined in

leafer/packages/interface/src/display/ILeaf.ts:453


__updateLocalRenderBounds

__updateLocalRenderBounds(): void

Returns

void

Overrides

ILeafBounds.__updateLocalRenderBounds

Defined in

leafer/packages/interface/src/display/ILeaf.ts:454


__updateBoxBounds

__updateBoxBounds(): void

Returns

void

Overrides

ILeafBounds.__updateBoxBounds

Defined in

leafer/packages/interface/src/display/ILeaf.ts:456


__updateStrokeBounds

__updateStrokeBounds(): void

Returns

void

Overrides

ILeafBounds.__updateStrokeBounds

Defined in

leafer/packages/interface/src/display/ILeaf.ts:457


__updateRenderBounds

__updateRenderBounds(): void

Returns

void

Overrides

ILeafBounds.__updateRenderBounds

Defined in

leafer/packages/interface/src/display/ILeaf.ts:458


__updateAutoLayout

__updateAutoLayout(): void

Returns

void

Overrides

ILeafBounds.__updateAutoLayout

Defined in

leafer/packages/interface/src/display/ILeaf.ts:460


__updateNaturalSize

__updateNaturalSize(): void

Returns

void

Overrides

ILeafBounds.__updateNaturalSize

Defined in

leafer/packages/interface/src/display/ILeaf.ts:461


__updateStrokeSpread

__updateStrokeSpread(): number

Returns

number

Overrides

ILeafBounds.__updateStrokeSpread

Defined in

leafer/packages/interface/src/display/ILeaf.ts:463


__updateRenderSpread

__updateRenderSpread(): number

Returns

number

Overrides

ILeafBounds.__updateRenderSpread

Defined in

leafer/packages/interface/src/display/ILeaf.ts:464


__onUpdateSize

__onUpdateSize(): void

Returns

void

Overrides

ILeafBounds.__onUpdateSize

Defined in

leafer/packages/interface/src/display/ILeaf.ts:466


__updateEraser

__updateEraser(value?): void

Parameters

NameType
value?boolean

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:469


__updateMask

__updateMask(value?): void

Parameters

NameType
value?boolean

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:470


__renderMask

__renderMask(canvas, options): void

Parameters

NameType
canvasILeaferCanvas
optionsIRenderOptions

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:471


__getNowWorld

__getNowWorld(options): IMatrixWithBoundsScaleData

Parameters

NameType
optionsIRenderOptions

Returns

IMatrixWithBoundsScaleData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:474


getWorld

getWorld(attrName): number

Parameters

NameType
attrNameILayoutAttr

Returns

number

Defined in

leafer/packages/interface/src/display/ILeaf.ts:476


getTransform

getTransform(relative?): IMatrixData

Parameters

NameType
relative?ILeaf | ILocationType

Returns

IMatrixData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:477


getBounds

getBounds(type?, relative?): IBoundsData

Parameters

NameType
type?IBoundsType
relative?ILeaf | ILocationType

Returns

IBoundsData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:479


getLayoutBounds

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

Parameters

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

Returns

ILayoutBoundsData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:480


getWorldBounds

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

Parameters

NameType
innerIBoundsData
relative?ILeaf
change?boolean

Returns

IBoundsData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:482


worldToLocal

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

Parameters

NameType
worldIPointData
to?IPointData
distance?boolean
relative?ILeaf

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:484


localToWorld

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

Parameters

NameType
localIPointData
to?IPointData
distance?boolean
relative?ILeaf

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:485


worldToInner

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

Parameters

NameType
worldIPointData
to?IPointData
distance?boolean
relative?ILeaf

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:486


innerToWorld

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

Parameters

NameType
innerIPointData
to?IPointData
distance?boolean
relative?ILeaf

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:487


getInnerPoint

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

Parameters

NameType
worldIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns

IPointData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:489


getInnerPointByLocal

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

Parameters

NameType
localIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns

IPointData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:490


getLocalPoint

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

Parameters

NameType
worldIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns

IPointData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:491


getLocalPointByInner

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

Parameters

NameType
innerIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns

IPointData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:492


getWorldPoint

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

Parameters

NameType
innerIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns

IPointData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:493


getWorldPointByLocal

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

Parameters

NameType
localIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns

IPointData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:494


getPagePoint

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

Parameters

NameType
worldIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns

IPointData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:495


getWorldPointByPage

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

Parameters

NameType
pageIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns

IPointData

Defined in

leafer/packages/interface/src/display/ILeaf.ts:496


setTransform

setTransform(transform?, resize?): void

Parameters

NameType
transform?IMatrixData
resize?boolean

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:500


transform

transform(transform?, resize?): void

Parameters

NameType
transform?IMatrixData
resize?boolean

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:501


move

move(x, y?): void

Parameters

NameType
xnumber
y?number

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:503


scaleOf

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

Parameters

NameType
originIPointData
scaleXnumber
scaleY?number
resize?boolean

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:504


rotateOf

rotateOf(origin, rotation): void

Parameters

NameType
originIPointData
rotationnumber

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:505


skewOf

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

Parameters

NameType
originIPointData
skewXnumber
skewY?number
resize?boolean

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:506


transformWorld

transformWorld(worldTransform?, resize?): void

Parameters

NameType
worldTransform?IMatrixData
resize?boolean

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:508


moveWorld

moveWorld(x, y?): void

Parameters

NameType
xnumber
y?number

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:509


scaleOfWorld

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

Parameters

NameType
worldOriginIPointData
scaleXnumber
scaleY?number
resize?boolean

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:510


rotateOfWorld

rotateOfWorld(worldOrigin, rotation): void

Parameters

NameType
worldOriginIPointData
rotationnumber

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:511


skewOfWorld

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

Parameters

NameType
worldOriginIPointData
skewXnumber
skewY?number
resize?boolean

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:512


scaleResize

scaleResize(scaleX, scaleY, noResize?): void

Parameters

NameType
scaleXnumber
scaleYnumber
noResize?boolean

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:514


__scaleResize

__scaleResize(scaleX, scaleY): void

Parameters

NameType
scaleXnumber
scaleYnumber

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:515


__hitWorld

__hitWorld(point): boolean

Parameters

NameType
pointIRadiusPointData

Returns

boolean

Overrides

ILeafHit.__hitWorld

Defined in

leafer/packages/interface/src/display/ILeaf.ts:518


__hit

__hit(local): boolean

Parameters

NameType
localIRadiusPointData

Returns

boolean

Overrides

ILeafHit.__hit

Defined in

leafer/packages/interface/src/display/ILeaf.ts:519


__hitFill

__hitFill(inner): boolean

Parameters

NameType
innerIRadiusPointData

Returns

boolean

Overrides

ILeafHit.__hitFill

Defined in

leafer/packages/interface/src/display/ILeaf.ts:520


__hitStroke

__hitStroke(inner, strokeWidth): boolean

Parameters

NameType
innerIRadiusPointData
strokeWidthnumber

Returns

boolean

Overrides

ILeafHit.__hitStroke

Defined in

leafer/packages/interface/src/display/ILeaf.ts:521


__hitPixel

__hitPixel(inner): boolean

Parameters

NameType
innerIRadiusPointData

Returns

boolean

Overrides

ILeafHit.__hitPixel

Defined in

leafer/packages/interface/src/display/ILeaf.ts:522


__drawHitPath

__drawHitPath(canvas): void

Parameters

NameType
canvasILeaferCanvas

Returns

void

Overrides

ILeafHit.__drawHitPath

Defined in

leafer/packages/interface/src/display/ILeaf.ts:523


__updateHitCanvas

__updateHitCanvas(): void

Returns

void

Overrides

ILeafHit.__updateHitCanvas

Defined in

leafer/packages/interface/src/display/ILeaf.ts:524


__render

__render(canvas, options): void

Parameters

NameType
canvasILeaferCanvas
optionsIRenderOptions

Returns

void

Overrides

ILeafRender.__render

Defined in

leafer/packages/interface/src/display/ILeaf.ts:527


__drawFast

__drawFast(canvas, options): void

Parameters

NameType
canvasILeaferCanvas
optionsIRenderOptions

Returns

void

Overrides

ILeafRender.__drawFast

Defined in

leafer/packages/interface/src/display/ILeaf.ts:528


__draw

__draw(canvas, options): void

Parameters

NameType
canvasILeaferCanvas
optionsIRenderOptions

Returns

void

Overrides

ILeafRender.__draw

Defined in

leafer/packages/interface/src/display/ILeaf.ts:529


__clip

__clip(canvas, options): void

Parameters

NameType
canvasILeaferCanvas
optionsIRenderOptions

Returns

void

Overrides

ILeafRender.__clip

Defined in

leafer/packages/interface/src/display/ILeaf.ts:531


__renderShape

__renderShape(canvas, options, ignoreFill?, ignoreStroke?): void

Parameters

NameType
canvasILeaferCanvas
optionsIRenderOptions
ignoreFill?boolean
ignoreStroke?boolean

Returns

void

Overrides

ILeafRender.__renderShape

Defined in

leafer/packages/interface/src/display/ILeaf.ts:532


__updateWorldOpacity

__updateWorldOpacity(): void

Returns

void

Overrides

ILeafRender.__updateWorldOpacity

Defined in

leafer/packages/interface/src/display/ILeaf.ts:534


__updateChange

__updateChange(): void

Returns

void

Overrides

ILeafRender.__updateChange

Defined in

leafer/packages/interface/src/display/ILeaf.ts:535


__drawPath

__drawPath(canvas): void

Parameters

NameType
canvasILeaferCanvas

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:538


__drawRenderPath

__drawRenderPath(canvas): void

Parameters

NameType
canvasILeaferCanvas

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:539


__updatePath

__updatePath(): void

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:540


__updateRenderPath

__updateRenderPath(): void

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:541


__updateSortChildren

__updateSortChildren(): void

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:548


add

add(child, index?): void

Parameters

NameType
childILeaf
index?number

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:549


remove

remove(child?, destroy?): void

Parameters

NameType
child?ILeaf
destroy?boolean

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:550


dropTo

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

Parameters

NameType
parentILeaf
index?number
resize?boolean

Returns

void

Defined in

leafer/packages/interface/src/display/ILeaf.ts:551


on

on(type, listener, options?): void

Parameters

NameType
typestring | string[]
listenerIFunction
options?boolean | IEventListenerOptions

Returns

void

Inherited from

IEventer.on

Defined in

leafer/packages/interface/src/event/IEventer.ts:38


off

off(type, listener, options?): void

Parameters

NameType
typestring | string[]
listenerIFunction
options?boolean | IEventListenerOptions

Returns

void

Inherited from

IEventer.off

Defined in

leafer/packages/interface/src/event/IEventer.ts:39


on_

on_(type, listener, bind?, options?): IEventListenerId

Parameters

NameType
typestring | string[]
listenerIFunction
bind?IObject
options?boolean | IEventListenerOptions

Returns

IEventListenerId

Inherited from

IEventer.on_

Defined in

leafer/packages/interface/src/event/IEventer.ts:40


off_

off_(id): void

Parameters

NameType
idIEventListenerId | IEventListenerId[]

Returns

void

Inherited from

IEventer.off_

Defined in

leafer/packages/interface/src/event/IEventer.ts:41


once

once(type, listener): void

Parameters

NameType
typestring | string[]
listenerIFunction

Returns

void

Inherited from

IEventer.once

Defined in

leafer/packages/interface/src/event/IEventer.ts:42


emit

emit(type, event?, capture?): void

Parameters

NameType
typestring
event?IObject | IEvent
capture?boolean

Returns

void

Inherited from

IEventer.emit

Defined in

leafer/packages/interface/src/event/IEventer.ts:43


emitEvent

emitEvent(event?, capture?): void

Parameters

NameType
event?IEvent
capture?boolean

Returns

void

Inherited from

IEventer.emitEvent

Defined in

leafer/packages/interface/src/event/IEventer.ts:44


hasEvent

hasEvent(type, capture?): boolean

Parameters

NameType
typestring
capture?boolean

Returns

boolean

Inherited from

IEventer.hasEvent

Defined in

leafer/packages/interface/src/event/IEventer.ts:45


destroy

destroy(): void

Returns

void

Inherited from

IEventer.destroy

Defined in

leafer/packages/interface/src/event/IEventer.ts:47

Released under the MIT License.