Skip to content

Class: App ​

Hierarchy ​

Implements ​

Table of contents ​

Constructors ​

Properties ​

Accessors ​

Methods ​

Constructors ​

constructor ​

• new App(userConfig?, data?): App

Parameters ​

NameType
userConfig?IAppConfig
data?IAppInputData

Returns ​

App

Overrides ​

Leafer.constructor

Defined in ​

src/ui/packages/app/src/App.ts:24

Properties ​

innerId ​

• Readonly innerId: number

Implementation of ​

IApp.innerId

Inherited from ​

Leafer.innerId

Defined in ​

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


skipJSON ​

• Optional skipJSON: boolean

Implementation of ​

IApp.skipJSON

Inherited from ​

Leafer.skipJSON

Defined in ​

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


syncEventer ​

• Optional syncEventer: ILeaf

Implementation of ​

IApp.syncEventer

Inherited from ​

Leafer.syncEventer

Defined in ​

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


lockNormalStyle ​

• Optional lockNormalStyle: boolean

Implementation of ​

IApp.lockNormalStyle

Inherited from ​

Leafer.lockNormalStyle

Defined in ​

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


__layout ​

• __layout: ILeafLayout

Implementation of ​

IApp.__layout

Inherited from ​

Leafer.__layout

Defined in ​

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


__world ​

• __world: IMatrixWithBoundsScaleData

Implementation of ​

IApp.__world

Inherited from ​

Leafer.__world

Defined in ​

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


__local ​

• Optional __local: IMatrixWithBoundsData

Implementation of ​

IApp.__local

Inherited from ​

Leafer.__local

Defined in ​

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


__nowWorld ​

• Optional __nowWorld: IMatrixWithBoundsScaleData

Implementation of ​

IApp.__nowWorld

Inherited from ​

Leafer.__nowWorld

Defined in ​

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


__cameraWorld ​

• Optional __cameraWorld: IMatrixWithBoundsScaleData

Implementation of ​

IApp.__cameraWorld

Inherited from ​

Leafer.__cameraWorld

Defined in ​

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


__worldOpacity ​

• __worldOpacity: number

Implementation of ​

IApp.__worldOpacity

Inherited from ​

Leafer.__worldOpacity

Defined in ​

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


__scrollWorld ​

• Optional __scrollWorld: IMatrixWithBoundsScaleData

Implementation of ​

IApp.__scrollWorld

Inherited from ​

Leafer.__scrollWorld

Defined in ​

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


__level ​

• __level: number

Implementation of ​

IApp.__level

Inherited from ​

Leafer.__level

Defined in ​

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


__tempNumber ​

• __tempNumber: number

Implementation of ​

IApp.__tempNumber

Inherited from ​

Leafer.__tempNumber

Defined in ​

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


__hasAutoLayout ​

• Optional __hasAutoLayout: boolean

Implementation of ​

IApp.__hasAutoLayout

Inherited from ​

Leafer.__hasAutoLayout

Defined in ​

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


__hasMask ​

• Optional __hasMask: boolean

Implementation of ​

IApp.__hasMask

Inherited from ​

Leafer.__hasMask

Defined in ​

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


__hasEraser ​

• Optional __hasEraser: boolean

Implementation of ​

IApp.__hasEraser

Inherited from ​

Leafer.__hasEraser

Defined in ​

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


__hitCanvas ​

• Optional __hitCanvas: IHitCanvas

Implementation of ​

IApp.__hitCanvas

Inherited from ​

Leafer.__hitCanvas

Defined in ​

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


__captureMap ​

• Optional __captureMap: IEventListenerMap

Implementation of ​

IApp.__captureMap

Inherited from ​

Leafer.__captureMap

Defined in ​

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


__bubbleMap ​

• Optional __bubbleMap: IEventListenerMap

Implementation of ​

IApp.__bubbleMap

Inherited from ​

Leafer.__bubbleMap

Defined in ​

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


__hasLocalEvent ​

• Optional __hasLocalEvent: boolean

Implementation of ​

IApp.__hasLocalEvent

Inherited from ​

Leafer.__hasLocalEvent

Defined in ​

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


__hasWorldEvent ​

• Optional __hasWorldEvent: boolean

Implementation of ​

IApp.__hasWorldEvent

Inherited from ​

Leafer.__hasWorldEvent

Defined in ​

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


destroyed ​

• destroyed: boolean

Implementation of ​

IApp.destroyed

Inherited from ​

Leafer.destroyed

Defined in ​

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


children ​

• children: ILeafer[]

Implementation of ​

IApp.children

Overrides ​

Leafer.children

Defined in ​

src/ui/packages/app/src/App.ts:16


realCanvas ​

• realCanvas: boolean

Implementation of ​

IApp.realCanvas

Defined in ​

src/ui/packages/app/src/App.ts:18


ground ​

• ground: ILeafer

Implementation of ​

IApp.ground

Defined in ​

src/ui/packages/app/src/App.ts:20


tree ​

• tree: ILeafer

Implementation of ​

IApp.tree

Defined in ​

src/ui/packages/app/src/App.ts:21


sky ​

• sky: ILeafer

Implementation of ​

IApp.sky

Defined in ​

src/ui/packages/app/src/App.ts:22


width ​

• Optional width: number

Implementation of ​

IApp.width

Inherited from ​

Leafer.width

Defined in ​

src/ui/packages/display/src/Group.ts:23


height ​

• Optional height: number

Implementation of ​

IApp.height

Inherited from ​

Leafer.height

Defined in ​

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


topChildren ​

• Optional topChildren: IUI[]

Implementation of ​

IApp.topChildren

Inherited from ​

Leafer.topChildren

Defined in ​

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


childlessJSON ​

• Optional childlessJSON: boolean

Implementation of ​

IApp.childlessJSON

Inherited from ​

Leafer.childlessJSON

Defined in ​

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


list ​

â–Ş Static list: LeafList

Inherited from ​

Leafer.list

Defined in ​

src/ui/packages/display/src/Leafer.ts:15


__ ​

• __: ILeaferData

Implementation of ​

IApp.__

Inherited from ​

Leafer.__

Defined in ​

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


pixelRatio ​

• Optional pixelRatio: number

Implementation of ​

IApp.pixelRatio

Inherited from ​

Leafer.pixelRatio

Defined in ​

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


mode ​

• mode: ILeaferMode

Implementation of ​

IApp.mode

Inherited from ​

Leafer.mode

Defined in ​

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


parentApp ​

• Optional parentApp: IApp

Implementation of ​

IApp.parentApp

Inherited from ​

Leafer.parentApp

Defined in ​

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


parent ​

• Optional parent: IApp

Implementation of ​

IApp.parent

Inherited from ​

Leafer.parent

Defined in ​

src/ui/packages/display/src/Leafer.ts:35


running ​

• running: boolean

Implementation of ​

IApp.running

Inherited from ​

Leafer.running

Defined in ​

src/ui/packages/display/src/Leafer.ts:37


created ​

• created: boolean

Implementation of ​

IApp.created

Inherited from ​

Leafer.created

Defined in ​

src/ui/packages/display/src/Leafer.ts:38


ready ​

• ready: boolean

Implementation of ​

IApp.ready

Inherited from ​

Leafer.ready

Defined in ​

src/ui/packages/display/src/Leafer.ts:39


viewReady ​

• viewReady: boolean

Implementation of ​

IApp.viewReady

Inherited from ​

Leafer.viewReady

Defined in ​

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


viewCompleted ​

• viewCompleted: boolean

Implementation of ​

IApp.viewCompleted

Inherited from ​

Leafer.viewCompleted

Defined in ​

src/ui/packages/display/src/Leafer.ts:41


transforming ​

• transforming: boolean

Implementation of ​

IApp.transforming

Inherited from ​

Leafer.transforming

Defined in ​

src/ui/packages/display/src/Leafer.ts:45


canvas ​

• canvas: ILeaferCanvas

Implementation of ​

IApp.canvas

Inherited from ​

Leafer.canvas

Defined in ​

src/ui/packages/display/src/Leafer.ts:50


renderer ​

• renderer: IRenderer

Implementation of ​

IApp.renderer

Inherited from ​

Leafer.renderer

Defined in ​

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


watcher ​

• watcher: IWatcher

Implementation of ​

IApp.watcher

Inherited from ​

Leafer.watcher

Defined in ​

src/ui/packages/display/src/Leafer.ts:53


layouter ​

• layouter: ILayouter

Implementation of ​

IApp.layouter

Inherited from ​

Leafer.layouter

Defined in ​

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


selector ​

• Optional selector: ISelector

Implementation of ​

IApp.selector

Inherited from ​

Leafer.selector

Defined in ​

src/ui/packages/display/src/Leafer.ts:56


interaction ​

• Optional interaction: IInteraction

Implementation of ​

IApp.interaction

Inherited from ​

Leafer.interaction

Defined in ​

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


canvasManager ​

• canvasManager: ICanvasManager

Implementation of ​

IApp.canvasManager

Inherited from ​

Leafer.canvasManager

Defined in ​

src/ui/packages/display/src/Leafer.ts:59


hitCanvasManager ​

• Optional hitCanvasManager: IHitCanvasManager

Implementation of ​

IApp.hitCanvasManager

Inherited from ​

Leafer.hitCanvasManager

Defined in ​

src/ui/packages/display/src/Leafer.ts:60


editor ​

• editor: IEditorBase

Implementation of ​

IApp.editor

Inherited from ​

Leafer.editor

Defined in ​

src/ui/packages/display/src/Leafer.ts:63


userConfig ​

• userConfig: ILeaferConfig

Implementation of ​

IApp.userConfig

Inherited from ​

Leafer.userConfig

Defined in ​

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


config ​

• config: ILeaferConfig

Implementation of ​

IApp.config

Inherited from ​

Leafer.config

Defined in ​

src/ui/packages/display/src/Leafer.ts:66


cacheId ​

• Optional cacheId: boolean

Implementation of ​

IApp.cacheId

Inherited from ​

Leafer.cacheId

Defined in ​

src/ui/packages/display/src/Leafer.ts:76


cacheInnerId ​

• Optional cacheInnerId: boolean

Implementation of ​

IApp.cacheInnerId

Inherited from ​

Leafer.cacheInnerId

Defined in ​

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


autoLayout ​

• Optional autoLayout: IAutoBounds

Implementation of ​

IApp.autoLayout

Inherited from ​

Leafer.autoLayout

Defined in ​

src/ui/packages/display/src/Leafer.ts:79


lazyBounds ​

• lazyBounds: IBounds

Implementation of ​

IApp.lazyBounds

Inherited from ​

Leafer.lazyBounds

Defined in ​

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


leafs ​

• leafs: number = 0

Implementation of ​

IApp.leafs

Inherited from ​

Leafer.leafs

Defined in ​

src/ui/packages/display/src/Leafer.ts:85


__eventIds ​

• __eventIds: IEventListenerId[] = []

Implementation of ​

IApp.__eventIds

Inherited from ​

Leafer.__eventIds

Defined in ​

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


__startTimer ​

• Protected __startTimer: any

Inherited from ​

Leafer.__startTimer

Defined in ​

src/ui/packages/display/src/Leafer.ts:88


__controllers ​

• Protected __controllers: IControl[] = []

Inherited from ​

Leafer.__controllers

Defined in ​

src/ui/packages/display/src/Leafer.ts:89


__initWait ​

• Protected __initWait: IFunction[]

Inherited from ​

Leafer.__initWait

Defined in ​

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


__readyWait ​

• Protected __readyWait: IFunction[] = []

Inherited from ​

Leafer.__readyWait

Defined in ​

src/ui/packages/display/src/Leafer.ts:92


__viewReadyWait ​

• Protected __viewReadyWait: IFunction[] = []

Inherited from ​

Leafer.__viewReadyWait

Defined in ​

src/ui/packages/display/src/Leafer.ts:93


__viewCompletedWait ​

• Protected __viewCompletedWait: IFunction[] = []

Inherited from ​

Leafer.__viewCompletedWait

Defined in ​

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


__nextRenderWait ​

• __nextRenderWait: IFunction[] = []

Implementation of ​

IApp.__nextRenderWait

Inherited from ​

Leafer.__nextRenderWait

Defined in ​

src/ui/packages/display/src/Leafer.ts:95


proxyData ​

• Optional proxyData: IUIInputData

Implementation of ​

IApp.proxyData

Inherited from ​

Leafer.proxyData

Defined in ​

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


__proxyData ​

• Optional __proxyData: IUIInputData

Implementation of ​

IApp.__proxyData

Inherited from ​

Leafer.__proxyData

Defined in ​

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


leafer ​

• Optional leafer: ILeafer

Implementation of ​

IApp.leafer

Inherited from ​

Leafer.leafer

Defined in ​

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


zoomLayer ​

• zoomLayer: IGroup

Implementation of ​

IApp.zoomLayer

Inherited from ​

Leafer.zoomLayer

Defined in ​

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


startLinker ​

• Optional startLinker: ILinker[]

Implementation of ​

IApp.startLinker

Inherited from ​

Leafer.startLinker

Defined in ​

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


endLinker ​

• Optional endLinker: ILinker[]

Implementation of ​

IApp.endLinker

Inherited from ​

Leafer.endLinker

Defined in ​

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


id ​

• Optional id: string

Implementation of ​

IApp.id

Inherited from ​

Leafer.id

Defined in ​

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


name ​

• Optional name: string

Implementation of ​

IApp.name

Inherited from ​

Leafer.name

Defined in ​

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


className ​

• Optional className: string

Implementation of ​

IApp.className

Inherited from ​

Leafer.className

Defined in ​

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


blendMode ​

• Optional blendMode: IBlendMode

Implementation of ​

IApp.blendMode

Inherited from ​

Leafer.blendMode

Defined in ​

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


opacity ​

• Optional opacity: number

Implementation of ​

IApp.opacity

Inherited from ​

Leafer.opacity

Defined in ​

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


visible ​

• Optional visible: boolean | 0

Implementation of ​

IApp.visible

Inherited from ​

Leafer.visible

Defined in ​

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


locked ​

• Optional locked: boolean

Implementation of ​

IApp.locked

Inherited from ​

Leafer.locked

Defined in ​

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


dim ​

• Optional dim: number | boolean

Implementation of ​

IApp.dim

Inherited from ​

Leafer.dim

Defined in ​

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


dimskip ​

• Optional dimskip: boolean

Implementation of ​

IApp.dimskip

Inherited from ​

Leafer.dimskip

Defined in ​

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


bright ​

• Optional bright: boolean

Implementation of ​

IApp.bright

Inherited from ​

Leafer.bright

Defined in ​

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


zIndex ​

• Optional zIndex: number

Implementation of ​

IApp.zIndex

Inherited from ​

Leafer.zIndex

Defined in ​

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


mask ​

• Optional mask: boolean | IMaskType

Implementation of ​

IApp.mask

Inherited from ​

Leafer.mask

Defined in ​

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


eraser ​

• Optional eraser: boolean | IEraserType

Implementation of ​

IApp.eraser

Inherited from ​

Leafer.eraser

Defined in ​

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


x ​

• Optional x: number

Implementation of ​

IApp.x

Inherited from ​

Leafer.x

Defined in ​

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


y ​

• Optional y: number

Implementation of ​

IApp.y

Inherited from ​

Leafer.y

Defined in ​

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


scaleX ​

• Optional scaleX: number

Implementation of ​

IApp.scaleX

Inherited from ​

Leafer.scaleX

Defined in ​

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


scaleY ​

• Optional scaleY: number

Implementation of ​

IApp.scaleY

Inherited from ​

Leafer.scaleY

Defined in ​

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


scaleFixed ​

• Optional scaleFixed: IScaleFixed

Implementation of ​

IApp.scaleFixed

Inherited from ​

Leafer.scaleFixed

Defined in ​

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


rotation ​

• Optional rotation: number

Implementation of ​

IApp.rotation

Inherited from ​

Leafer.rotation

Defined in ​

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


skewX ​

• Optional skewX: number

Implementation of ​

IApp.skewX

Inherited from ​

Leafer.skewX

Defined in ​

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


skewY ​

• Optional skewY: number

Implementation of ​

IApp.skewY

Inherited from ​

Leafer.skewY

Defined in ​

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


offsetX ​

• Optional offsetX: number

Implementation of ​

IApp.offsetX

Inherited from ​

Leafer.offsetX

Defined in ​

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


offsetY ​

• Optional offsetY: number

Implementation of ​

IApp.offsetY

Inherited from ​

Leafer.offsetY

Defined in ​

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


scrollX ​

• Optional scrollX: number

Implementation of ​

IApp.scrollX

Inherited from ​

Leafer.scrollX

Defined in ​

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


scrollY ​

• Optional scrollY: number

Implementation of ​

IApp.scrollY

Inherited from ​

Leafer.scrollY

Defined in ​

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


origin ​

• Optional origin: IUnitPointData | IDirection

Implementation of ​

IApp.origin

Inherited from ​

Leafer.origin

Defined in ​

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


around ​

• Optional around: IUnitPointData | IDirection

Implementation of ​

IApp.around

Inherited from ​

Leafer.around

Defined in ​

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


lazy ​

• Optional lazy: boolean

Implementation of ​

IApp.lazy

Inherited from ​

Leafer.lazy

Defined in ​

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


renderSpread ​

• Optional renderSpread: IFourNumber

Implementation of ​

IApp.renderSpread

Inherited from ​

Leafer.renderSpread

Defined in ​

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


path ​

• Optional path: string | IPathCommandData | IPathCommandNode[] | IPathCommandObject[]

Implementation of ​

IApp.path

Inherited from ​

Leafer.path

Defined in ​

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


windingRule ​

• Optional windingRule: IWindingRule

Implementation of ​

IApp.windingRule

Inherited from ​

Leafer.windingRule

Defined in ​

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


closed ​

• Optional closed: boolean

Implementation of ​

IApp.closed

Inherited from ​

Leafer.closed

Defined in ​

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


flow ​

• Optional flow: IFlowType

Implementation of ​

IApp.flow

Inherited from ​

Leafer.flow

Defined in ​

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


padding ​

• Optional padding: IFourNumber

Implementation of ​

IApp.padding

Inherited from ​

Leafer.padding

Defined in ​

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


gap ​

• Optional gap: IGap | IPointGap

Implementation of ​

IApp.gap

Inherited from ​

Leafer.gap

Defined in ​

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


flowAlign ​

• Optional flowAlign: IFlowAxisAlign | IFlowAlign

Implementation of ​

IApp.flowAlign

Inherited from ​

Leafer.flowAlign

Defined in ​

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


flowWrap ​

• Optional flowWrap: IFlowWrap

Implementation of ​

IApp.flowWrap

Inherited from ​

Leafer.flowWrap

Defined in ​

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


itemBox ​

• Optional itemBox: IFlowBoxType

Implementation of ​

IApp.itemBox

Inherited from ​

Leafer.itemBox

Defined in ​

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


inFlow ​

• Optional inFlow: boolean

Implementation of ​

IApp.inFlow

Inherited from ​

Leafer.inFlow

Defined in ​

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


autoWidth ​

• Optional autoWidth: IAutoSize

Implementation of ​

IApp.autoWidth

Inherited from ​

Leafer.autoWidth

Defined in ​

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


autoHeight ​

• Optional autoHeight: IAutoSize

Implementation of ​

IApp.autoHeight

Inherited from ​

Leafer.autoHeight

Defined in ​

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


lockRatio ​

• Optional lockRatio: boolean

Implementation of ​

IApp.lockRatio

Inherited from ​

Leafer.lockRatio

Defined in ​

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


autoBox ​

• Optional autoBox: IAutoBoxData | IConstraint

Implementation of ​

IApp.autoBox

Inherited from ​

Leafer.autoBox

Defined in ​

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


widthRange ​

• Optional widthRange: IRangeSize

Implementation of ​

IApp.widthRange

Inherited from ​

Leafer.widthRange

Defined in ​

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


heightRange ​

• Optional heightRange: IRangeSize

Implementation of ​

IApp.heightRange

Inherited from ​

Leafer.heightRange

Defined in ​

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


draggable ​

• Optional draggable: boolean | IAxis

Implementation of ​

IApp.draggable

Inherited from ​

Leafer.draggable

Defined in ​

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


dragBounds ​

• Optional dragBounds: "parent" | IBoundsData

Implementation of ​

IApp.dragBounds

Inherited from ​

Leafer.dragBounds

Defined in ​

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


dragBoundsType ​

• Optional dragBoundsType: IDragBoundsType

Implementation of ​

IApp.dragBoundsType

Inherited from ​

Leafer.dragBoundsType

Defined in ​

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


editable ​

• Optional editable: boolean

Implementation of ​

IApp.editable

Inherited from ​

Leafer.editable

Defined in ​

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


hittable ​

• Optional hittable: boolean

Implementation of ​

IApp.hittable

Inherited from ​

Leafer.hittable

Defined in ​

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


hitFill ​

• Optional hitFill: IHitType

Implementation of ​

IApp.hitFill

Inherited from ​

Leafer.hitFill

Defined in ​

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


hitStroke ​

• Optional hitStroke: IHitType

Implementation of ​

IApp.hitStroke

Inherited from ​

Leafer.hitStroke

Defined in ​

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


hitBox ​

• Optional hitBox: boolean

Implementation of ​

IApp.hitBox

Inherited from ​

Leafer.hitBox

Defined in ​

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


hitChildren ​

• Optional hitChildren: boolean

Implementation of ​

IApp.hitChildren

Inherited from ​

Leafer.hitChildren

Defined in ​

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


hitSelf ​

• Optional hitSelf: boolean

Implementation of ​

IApp.hitSelf

Inherited from ​

Leafer.hitSelf

Defined in ​

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


hitRadius ​

• Optional hitRadius: number

Implementation of ​

IApp.hitRadius

Inherited from ​

Leafer.hitRadius

Defined in ​

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


cursor ​

• Optional cursor: ICursorType | ICursorType[]

Implementation of ​

IApp.cursor

Inherited from ​

Leafer.cursor

Defined in ​

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


fill ​

• Optional fill: IFill

Implementation of ​

IApp.fill

Inherited from ​

Leafer.fill

Defined in ​

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


stroke ​

• Optional stroke: IStroke

Implementation of ​

IApp.stroke

Inherited from ​

Leafer.stroke

Defined in ​

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


strokeAlign ​

• Optional strokeAlign: IStrokeAlign

Implementation of ​

IApp.strokeAlign

Inherited from ​

Leafer.strokeAlign

Defined in ​

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


strokeWidth ​

• Optional strokeWidth: string | IFourNumber

Implementation of ​

IApp.strokeWidth

Inherited from ​

Leafer.strokeWidth

Defined in ​

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


strokeScaleFixed ​

• Optional strokeScaleFixed: IScaleFixed

Implementation of ​

IApp.strokeScaleFixed

Inherited from ​

Leafer.strokeScaleFixed

Defined in ​

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


strokeCap ​

• Optional strokeCap: IStrokeCap

Implementation of ​

IApp.strokeCap

Inherited from ​

Leafer.strokeCap

Defined in ​

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


strokeJoin ​

• Optional strokeJoin: IStrokeJoin

Implementation of ​

IApp.strokeJoin

Inherited from ​

Leafer.strokeJoin

Defined in ​

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


dashPattern ​

• Optional dashPattern: string | number[]

Implementation of ​

IApp.dashPattern

Inherited from ​

Leafer.dashPattern

Defined in ​

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


dashOffset ​

• Optional dashOffset: number

Implementation of ​

IApp.dashOffset

Inherited from ​

Leafer.dashOffset

Defined in ​

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


miterLimit ​

• Optional miterLimit: number

Implementation of ​

IApp.miterLimit

Inherited from ​

Leafer.miterLimit

Defined in ​

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


startArrow ​

• Optional startArrow: IArrowStyle

Implementation of ​

IApp.startArrow

Inherited from ​

Leafer.startArrow

Defined in ​

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


endArrow ​

• Optional endArrow: IArrowStyle

Implementation of ​

IApp.endArrow

Inherited from ​

Leafer.endArrow

Defined in ​

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


cornerRadius ​

• Optional cornerRadius: string | IFourNumber

Implementation of ​

IApp.cornerRadius

Inherited from ​

Leafer.cornerRadius

Defined in ​

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


cornerSmoothing ​

• Optional cornerSmoothing: number

Implementation of ​

IApp.cornerSmoothing

Inherited from ​

Leafer.cornerSmoothing

Defined in ​

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


shadow ​

• Optional shadow: string | IShadowEffect | IShadowEffect[]

Implementation of ​

IApp.shadow

Inherited from ​

Leafer.shadow

Defined in ​

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


innerShadow ​

• Optional innerShadow: string | IShadowEffect | IShadowEffect[]

Implementation of ​

IApp.innerShadow

Inherited from ​

Leafer.innerShadow

Defined in ​

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


blur ​

• Optional blur: number | IBlurEffect

Implementation of ​

IApp.blur

Inherited from ​

Leafer.blur

Defined in ​

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


backgroundBlur ​

• Optional backgroundBlur: number | IBlurEffect

Implementation of ​

IApp.backgroundBlur

Inherited from ​

Leafer.backgroundBlur

Defined in ​

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


grayscale ​

• Optional grayscale: number | IGrayscaleEffect

Implementation of ​

IApp.grayscale

Inherited from ​

Leafer.grayscale

Defined in ​

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


filter ​

• Optional filter: IFilter | IFilter[]

Implementation of ​

IApp.filter

Inherited from ​

Leafer.filter

Defined in ​

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


complex ​

• Optional complex: boolean

Implementation of ​

IApp.complex

Inherited from ​

Leafer.complex

Defined in ​

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


animation ​

• Optional animation: IAnimation | IAnimation[]

Implementation of ​

IApp.animation

Inherited from ​

Leafer.animation

Defined in ​

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


animationOut ​

• Optional animationOut: IAnimation | IAnimation[]

Implementation of ​

IApp.animationOut

Inherited from ​

Leafer.animationOut

Defined in ​

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


transition ​

• Optional transition: ITransition

Implementation of ​

IApp.transition

Inherited from ​

Leafer.transition

Defined in ​

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


transitionOut ​

• Optional transitionOut: ITransition

Implementation of ​

IApp.transitionOut

Inherited from ​

Leafer.transitionOut

Defined in ​

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


motionPath ​

• Optional motionPath: boolean

Implementation of ​

IApp.motionPath

Inherited from ​

Leafer.motionPath

Defined in ​

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


motionPrecision ​

• Optional motionPrecision: number

Implementation of ​

IApp.motionPrecision

Inherited from ​

Leafer.motionPrecision

Defined in ​

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


motion ​

• Optional motion: number | IUnitData

Implementation of ​

IApp.motion

Inherited from ​

Leafer.motion

Defined in ​

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


motionRotation ​

• Optional motionRotation: number | boolean

Implementation of ​

IApp.motionRotation

Inherited from ​

Leafer.motionRotation

Defined in ​

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


states ​

• Optional states: IStates

Implementation of ​

IApp.states

Inherited from ​

Leafer.states

Defined in ​

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


state ​

• Optional state: string

Implementation of ​

IApp.state

Inherited from ​

Leafer.state

Defined in ​

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


selected ​

• Optional selected: boolean

Implementation of ​

IApp.selected

Inherited from ​

Leafer.selected

Defined in ​

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


disabled ​

• Optional disabled: boolean

Implementation of ​

IApp.disabled

Inherited from ​

Leafer.disabled

Defined in ​

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


normalStyle ​

• Optional normalStyle: IStateStyle

Implementation of ​

IApp.normalStyle

Inherited from ​

Leafer.normalStyle

Defined in ​

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


hoverStyle ​

• Optional hoverStyle: IStateStyle

Implementation of ​

IApp.hoverStyle

Inherited from ​

Leafer.hoverStyle

Defined in ​

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


pressStyle ​

• Optional pressStyle: IStateStyle

Implementation of ​

IApp.pressStyle

Inherited from ​

Leafer.pressStyle

Defined in ​

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


focusStyle ​

• Optional focusStyle: IStateStyle

Implementation of ​

IApp.focusStyle

Inherited from ​

Leafer.focusStyle

Defined in ​

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


selectedStyle ​

• Optional selectedStyle: IStateStyle

Implementation of ​

IApp.selectedStyle

Inherited from ​

Leafer.selectedStyle

Defined in ​

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


disabledStyle ​

• Optional disabledStyle: IStateStyle

Implementation of ​

IApp.disabledStyle

Inherited from ​

Leafer.disabledStyle

Defined in ​

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


placeholderStyle ​

• Optional placeholderStyle: IStateStyle

Implementation of ​

IApp.placeholderStyle

Inherited from ​

Leafer.placeholderStyle

Defined in ​

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


placeholderColor ​

• Optional placeholderColor: string

Implementation of ​

IApp.placeholderColor

Inherited from ​

Leafer.placeholderColor

Defined in ​

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


placeholderDelay ​

• Optional placeholderDelay: number

Implementation of ​

IApp.placeholderDelay

Inherited from ​

Leafer.placeholderDelay

Defined in ​

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


button ​

• Optional button: boolean

Implementation of ​

IApp.button

Inherited from ​

Leafer.button

Defined in ​

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


editConfig ​

• editConfig: IEditorConfig

Implementation of ​

IApp.editConfig

Inherited from ​

Leafer.editConfig

Defined in ​

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


editOuter ​

• editOuter: string

Implementation of ​

IApp.editOuter

Inherited from ​

Leafer.editOuter

Defined in ​

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


editInner ​

• editInner: string

Implementation of ​

IApp.editInner

Inherited from ​

Leafer.editInner

Defined in ​

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


data ​

• data: IObject

Implementation of ​

IApp.data

Inherited from ​

Leafer.data

Defined in ​

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


useFastShadow ​

• Optional useFastShadow: boolean

Implementation of ​

IApp.useFastShadow

Inherited from ​

Leafer.useFastShadow

Defined in ​

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


__box ​

• Optional __box: IUI

Implementation of ​

IApp.__box

Inherited from ​

Leafer.__box

Defined in ​

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


__animate ​

• Optional __animate: IAnimate | IAnimateList

Implementation of ​

IApp.__animate

Inherited from ​

Leafer.__animate

Defined in ​

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

Accessors ​

tag ​

• get tag(): string

Returns ​

string

Implementation of ​

IApp.tag

Inherited from ​

Leafer.tag

Defined in ​

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

• set tag(_value): void

Parameters ​

NameType
_valuestring

Returns ​

void

Implementation of ​

IApp.tag

Inherited from ​

Leafer.tag

Defined in ​

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


innerName ​

• get innerName(): string

Returns ​

string

Implementation of ​

IApp.innerName

Inherited from ​

Leafer.innerName

Defined in ​

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


__DataProcessor ​

• get __DataProcessor(): typeof LeafData

Returns ​

typeof LeafData

Implementation of ​

IApp.__DataProcessor

Inherited from ​

Leafer.__DataProcessor

Defined in ​

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


__LayoutProcessor ​

• get __LayoutProcessor(): typeof LeafLayout

Returns ​

typeof LeafLayout

Implementation of ​

IApp.__LayoutProcessor

Inherited from ​

Leafer.__LayoutProcessor

Defined in ​

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


leaferIsCreated ​

• get leaferIsCreated(): boolean

Returns ​

boolean

Implementation of ​

IApp.leaferIsCreated

Inherited from ​

Leafer.leaferIsCreated

Defined in ​

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


leaferIsReady ​

• get leaferIsReady(): boolean

Returns ​

boolean

Implementation of ​

IApp.leaferIsReady

Inherited from ​

Leafer.leaferIsReady

Defined in ​

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


isBranchLeaf ​

• get isBranchLeaf(): boolean

Returns ​

boolean

Implementation of ​

IApp.isBranchLeaf

Inherited from ​

Leafer.isBranchLeaf

Defined in ​

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


__localMatrix ​

• get __localMatrix(): IMatrixData

Returns ​

IMatrixData

Implementation of ​

IApp.__localMatrix

Inherited from ​

Leafer.__localMatrix

Defined in ​

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


__localBoxBounds ​

• get __localBoxBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

IApp.__localBoxBounds

Inherited from ​

Leafer.__localBoxBounds

Defined in ​

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


worldTransform ​

• get worldTransform(): IMatrixWithScaleData

Returns ​

IMatrixWithScaleData

Implementation of ​

IApp.worldTransform

Inherited from ​

Leafer.worldTransform

Defined in ​

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


localTransform ​

• get localTransform(): IMatrixData

Returns ​

IMatrixData

Implementation of ​

IApp.localTransform

Inherited from ​

Leafer.localTransform

Defined in ​

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


scrollWorldTransform ​

• get scrollWorldTransform(): IMatrixWithScaleData

Returns ​

IMatrixWithScaleData

Implementation of ​

IApp.scrollWorldTransform

Inherited from ​

Leafer.scrollWorldTransform

Defined in ​

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


boxBounds ​

• get boxBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

IApp.boxBounds

Inherited from ​

Leafer.boxBounds

Defined in ​

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


renderBounds ​

• get renderBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

IApp.renderBounds

Inherited from ​

Leafer.renderBounds

Defined in ​

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


worldBoxBounds ​

• get worldBoxBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

IApp.worldBoxBounds

Inherited from ​

Leafer.worldBoxBounds

Defined in ​

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


worldStrokeBounds ​

• get worldStrokeBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

IApp.worldStrokeBounds

Inherited from ​

Leafer.worldStrokeBounds

Defined in ​

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


worldRenderBounds ​

• get worldRenderBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

IApp.worldRenderBounds

Inherited from ​

Leafer.worldRenderBounds

Defined in ​

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


worldOpacity ​

• get worldOpacity(): number

Returns ​

number

Implementation of ​

IApp.worldOpacity

Inherited from ​

Leafer.worldOpacity

Defined in ​

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


__worldFlipped ​

• get __worldFlipped(): boolean

Returns ​

boolean

Implementation of ​

IApp.__worldFlipped

Inherited from ​

Leafer.__worldFlipped

Defined in ​

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


__onlyHitMask ​

• get __onlyHitMask(): boolean

Returns ​

boolean

Implementation of ​

IApp.__onlyHitMask

Inherited from ​

Leafer.__onlyHitMask

Defined in ​

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


__ignoreHitWorld ​

• get __ignoreHitWorld(): boolean

Returns ​

boolean

Implementation of ​

IApp.__ignoreHitWorld

Inherited from ​

Leafer.__ignoreHitWorld

Defined in ​

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


__inLazyBounds ​

• get __inLazyBounds(): boolean

Returns ​

boolean

Implementation of ​

IApp.__inLazyBounds

Inherited from ​

Leafer.__inLazyBounds

Defined in ​

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


pathInputed ​

• get pathInputed(): boolean

Returns ​

boolean

Implementation of ​

IApp.pathInputed

Inherited from ​

Leafer.pathInputed

Defined in ​

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


event ​

• set event(map): void

Parameters ​

NameType
mapIEventParamsMap

Returns ​

void

Implementation of ​

IApp.event

Inherited from ​

Leafer.event

Defined in ​

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


__tag ​

• get __tag(): string

Returns ​

string

Implementation of ​

IApp.__tag

Overrides ​

Leafer.__tag

Defined in ​

src/ui/packages/app/src/App.ts:12


isApp ​

• get isApp(): boolean

Returns ​

boolean

Implementation of ​

IApp.isApp

Overrides ​

Leafer.isApp

Defined in ​

src/ui/packages/app/src/App.ts:14


isBranch ​

• get isBranch(): boolean

Returns ​

boolean

Implementation of ​

IApp.isBranch

Inherited from ​

Leafer.isBranch

Defined in ​

src/ui/packages/display/src/Group.ts:16


app ​

• get app(): ILeafer

Returns ​

ILeafer

Implementation of ​

IApp.app

Inherited from ​

Leafer.app

Defined in ​

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


isLeafer ​

• get isLeafer(): boolean

Returns ​

boolean

Implementation of ​

IApp.isLeafer

Inherited from ​

Leafer.isLeafer

Defined in ​

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


imageReady ​

• get imageReady(): boolean

Returns ​

boolean

Implementation of ​

IApp.imageReady

Inherited from ​

Leafer.imageReady

Defined in ​

src/ui/packages/display/src/Leafer.ts:42


layoutLocked ​

• get layoutLocked(): boolean

Returns ​

boolean

Implementation of ​

IApp.layoutLocked

Inherited from ​

Leafer.layoutLocked

Defined in ​

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


view ​

• get view(): unknown

Returns ​

unknown

Implementation of ​

IApp.view

Inherited from ​

Leafer.view

Defined in ​

src/ui/packages/display/src/Leafer.ts:47


FPS ​

• get FPS(): number

Returns ​

number

Inherited from ​

Leafer.FPS

Defined in ​

src/ui/packages/display/src/Leafer.ts:82


cursorPoint ​

• get cursorPoint(): IPointData

Returns ​

IPointData

Implementation of ​

IApp.cursorPoint

Inherited from ​

Leafer.cursorPoint

Defined in ​

src/ui/packages/display/src/Leafer.ts:83


clientBounds ​

• get clientBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

IApp.clientBounds

Inherited from ​

Leafer.clientBounds

Defined in ​

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


isFrame ​

• get isFrame(): boolean

Returns ​

boolean

Implementation of ​

IApp.isFrame

Inherited from ​

Leafer.isFrame

Defined in ​

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


strokeWidthFixed ​

• get strokeWidthFixed(): IScaleFixed

Returns ​

IScaleFixed

Inherited from ​

Leafer.strokeWidthFixed

Defined in ​

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

• set strokeWidthFixed(value): void

Parameters ​

NameType
valueIScaleFixed

Returns ​

void

Inherited from ​

Leafer.strokeWidthFixed

Defined in ​

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


scale ​

• get scale(): number | IPointData

Returns ​

number | IPointData

Implementation of ​

IApp.scale

Inherited from ​

Leafer.scale

Defined in ​

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

• set scale(value): void

Parameters ​

NameType
valuenumber | IPointData

Returns ​

void

Implementation of ​

IApp.scale

Inherited from ​

Leafer.scale

Defined in ​

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


isAutoWidth ​

• get isAutoWidth(): boolean

Returns ​

boolean

Implementation of ​

IApp.isAutoWidth

Inherited from ​

Leafer.isAutoWidth

Defined in ​

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


isAutoHeight ​

• get isAutoHeight(): boolean

Returns ​

boolean

Implementation of ​

IApp.isAutoHeight

Inherited from ​

Leafer.isAutoHeight

Defined in ​

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


pen ​

• get pen(): IPathCreator

Returns ​

IPathCreator

Implementation of ​

IApp.pen

Inherited from ​

Leafer.pen

Defined in ​

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

Methods ​

resetCustom ​

â–¸ resetCustom(): void

Returns ​

void

Implementation of ​

IApp.resetCustom

Inherited from ​

Leafer.resetCustom

Defined in ​

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


waitParent ​

â–¸ waitParent(item, bind?): void

Parameters ​

NameType
itemIFunction
bind?IObject

Returns ​

void

Implementation of ​

IApp.waitParent

Inherited from ​

Leafer.waitParent

Defined in ​

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


waitLeafer ​

â–¸ waitLeafer(item, bind?): void

Parameters ​

NameType
itemIFunction
bind?IObject

Returns ​

void

Implementation of ​

IApp.waitLeafer

Inherited from ​

Leafer.waitLeafer

Defined in ​

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


removeNextRender ​

â–¸ removeNextRender(item): void

Parameters ​

NameType
itemIFunction

Returns ​

void

Implementation of ​

IApp.removeNextRender

Inherited from ​

Leafer.removeNextRender

Defined in ​

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


__bindLeafer ​

â–¸ __bindLeafer(leafer): void

Parameters ​

NameType
leaferILeaferBase

Returns ​

void

Implementation of ​

IApp.__bindLeafer

Inherited from ​

Leafer.__bindLeafer

Defined in ​

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


setAttr ​

â–¸ setAttr(name, value): void

Parameters ​

NameType
namestring
valueany

Returns ​

void

Implementation of ​

IApp.setAttr

Inherited from ​

Leafer.setAttr

Defined in ​

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


getAttr ​

â–¸ getAttr(name): any

Parameters ​

NameType
namestring

Returns ​

any

Implementation of ​

IApp.getAttr

Inherited from ​

Leafer.getAttr

Defined in ​

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


getComputedAttr ​

â–¸ getComputedAttr(name): any

Parameters ​

NameType
namestring

Returns ​

any

Implementation of ​

IApp.getComputedAttr

Inherited from ​

Leafer.getComputedAttr

Defined in ​

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


toString ​

â–¸ toString(options?): string

Parameters ​

NameType
options?IJSONOptions

Returns ​

string

Implementation of ​

IApp.toString

Inherited from ​

Leafer.toString

Defined in ​

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


toSVG ​

â–¸ toSVG(): string

Returns ​

string

Implementation of ​

IApp.toSVG

Inherited from ​

Leafer.toSVG

Defined in ​

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


__SVG ​

â–¸ __SVG(_data): void

Parameters ​

NameType
_dataIObject

Returns ​

void

Implementation of ​

IApp.__SVG

Inherited from ​

Leafer.__SVG

Defined in ​

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


toHTML ​

â–¸ toHTML(): string

Returns ​

string

Implementation of ​

IApp.toHTML

Inherited from ​

Leafer.toHTML

Defined in ​

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


setProxyAttr ​

â–¸ setProxyAttr(_attrName, _newValue): void

Parameters ​

NameType
_attrNamestring
_newValueIValue

Returns ​

void

Implementation of ​

IApp.setProxyAttr

Inherited from ​

Leafer.setProxyAttr

Defined in ​

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


getProxyAttr ​

â–¸ getProxyAttr(_attrName): IValue

Parameters ​

NameType
_attrNamestring

Returns ​

IValue

Implementation of ​

IApp.getProxyAttr

Inherited from ​

Leafer.getProxyAttr

Defined in ​

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


focus ​

â–¸ focus(_value?): void

Parameters ​

NameType
_value?boolean

Returns ​

void

Implementation of ​

IApp.focus

Inherited from ​

Leafer.focus

Defined in ​

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


updateState ​

â–¸ updateState(): void

Returns ​

void

Implementation of ​

IApp.updateState

Inherited from ​

Leafer.updateState

Defined in ​

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


forceUpdate ​

â–¸ forceUpdate(attrName?): void

Parameters ​

NameType
attrName?string

Returns ​

void

Implementation of ​

IApp.forceUpdate

Inherited from ​

Leafer.forceUpdate

Defined in ​

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


__extraUpdate ​

â–¸ __extraUpdate(): void

Returns ​

void

Implementation of ​

IApp.__extraUpdate

Inherited from ​

Leafer.__extraUpdate

Defined in ​

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


__updateWorldMatrix ​

â–¸ __updateWorldMatrix(): void

Returns ​

void

Implementation of ​

IApp.__updateWorldMatrix

Inherited from ​

Leafer.__updateWorldMatrix

Defined in ​

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


__updateLocalMatrix ​

â–¸ __updateLocalMatrix(): void

Returns ​

void

Implementation of ​

IApp.__updateLocalMatrix

Inherited from ​

Leafer.__updateLocalMatrix

Defined in ​

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


__updateWorldBounds ​

â–¸ __updateWorldBounds(): void

Returns ​

void

Implementation of ​

IApp.__updateWorldBounds

Inherited from ​

Leafer.__updateWorldBounds

Defined in ​

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


__updateLocalBoxBounds ​

â–¸ __updateLocalBoxBounds(): void

Returns ​

void

Implementation of ​

IApp.__updateLocalBoxBounds

Inherited from ​

Leafer.__updateLocalBoxBounds

Defined in ​

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


__updateLocalStrokeBounds ​

â–¸ __updateLocalStrokeBounds(): void

Returns ​

void

Implementation of ​

IApp.__updateLocalStrokeBounds

Inherited from ​

Leafer.__updateLocalStrokeBounds

Defined in ​

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


__updateLocalRenderBounds ​

â–¸ __updateLocalRenderBounds(): void

Returns ​

void

Implementation of ​

IApp.__updateLocalRenderBounds

Inherited from ​

Leafer.__updateLocalRenderBounds

Defined in ​

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


__updateBoxBounds ​

â–¸ __updateBoxBounds(_secondLayout?, _bounds?): void

Parameters ​

NameType
_secondLayout?boolean
_bounds?IBoundsData

Returns ​

void

Implementation of ​

IApp.__updateBoxBounds

Inherited from ​

Leafer.__updateBoxBounds

Defined in ​

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


__updateContentBounds ​

â–¸ __updateContentBounds(): void

Returns ​

void

Implementation of ​

IApp.__updateContentBounds

Inherited from ​

Leafer.__updateContentBounds

Defined in ​

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


__updateStrokeBounds ​

â–¸ __updateStrokeBounds(_bounds?): void

Parameters ​

NameType
_bounds?IBoundsData

Returns ​

void

Implementation of ​

IApp.__updateStrokeBounds

Inherited from ​

Leafer.__updateStrokeBounds

Defined in ​

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


__updateRenderBounds ​

â–¸ __updateRenderBounds(_bounds?): void

Parameters ​

NameType
_bounds?IBoundsData

Returns ​

void

Implementation of ​

IApp.__updateRenderBounds

Inherited from ​

Leafer.__updateRenderBounds

Defined in ​

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


__updateAutoLayout ​

â–¸ __updateAutoLayout(): void

Returns ​

void

Implementation of ​

IApp.__updateAutoLayout

Inherited from ​

Leafer.__updateAutoLayout

Defined in ​

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


__updateFlowLayout ​

â–¸ __updateFlowLayout(): void

Returns ​

void

Implementation of ​

IApp.__updateFlowLayout

Inherited from ​

Leafer.__updateFlowLayout

Defined in ​

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


__updateNaturalSize ​

â–¸ __updateNaturalSize(): void

Returns ​

void

Implementation of ​

IApp.__updateNaturalSize

Inherited from ​

Leafer.__updateNaturalSize

Defined in ​

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


__updateStrokeSpread ​

â–¸ __updateStrokeSpread(): IFourNumber

Returns ​

IFourNumber

Implementation of ​

IApp.__updateStrokeSpread

Inherited from ​

Leafer.__updateStrokeSpread

Defined in ​

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


__updateRenderSpread ​

â–¸ __updateRenderSpread(): IFourNumber

Returns ​

IFourNumber

Implementation of ​

IApp.__updateRenderSpread

Inherited from ​

Leafer.__updateRenderSpread

Defined in ​

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


__updateEraser ​

â–¸ __updateEraser(value?): void

Parameters ​

NameType
value?boolean

Returns ​

void

Implementation of ​

IApp.__updateEraser

Inherited from ​

Leafer.__updateEraser

Defined in ​

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


__renderEraser ​

â–¸ __renderEraser(canvas, options): void

Parameters ​

NameType
canvasILeaferCanvas
optionsIRenderOptions

Returns ​

void

Implementation of ​

IApp.__renderEraser

Inherited from ​

Leafer.__renderEraser

Defined in ​

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


__updateMask ​

â–¸ __updateMask(_value?): void

Parameters ​

NameType
_value?boolean

Returns ​

void

Implementation of ​

IApp.__updateMask

Inherited from ​

Leafer.__updateMask

Defined in ​

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


__renderMask ​

â–¸ __renderMask(_canvas, _options): void

Parameters ​

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns ​

void

Implementation of ​

IApp.__renderMask

Inherited from ​

Leafer.__renderMask

Defined in ​

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


__getNowWorld ​

â–¸ __getNowWorld(options): IMatrixWithBoundsScaleData

Parameters ​

NameType
optionsIRenderOptions

Returns ​

IMatrixWithBoundsScaleData

Implementation of ​

IApp.__getNowWorld

Inherited from ​

Leafer.__getNowWorld

Defined in ​

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


getClampRenderScale ​

â–¸ getClampRenderScale(): number

Returns ​

number

Implementation of ​

IApp.getClampRenderScale

Inherited from ​

Leafer.getClampRenderScale

Defined in ​

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


getRenderScaleData ​

â–¸ getRenderScaleData(abs?, scaleFixed?, unscale?): IScaleData

Parameters ​

NameTypeDefault value
abs?booleanundefined
scaleFixed?IScaleFixedundefined
unscalebooleantrue

Returns ​

IScaleData

Implementation of ​

IApp.getRenderScaleData

Inherited from ​

Leafer.getRenderScaleData

Defined in ​

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


getTransform ​

â–¸ getTransform(relative?): IMatrixData

Parameters ​

NameType
relative?ILeaf | ILocationType

Returns ​

IMatrixData

Implementation of ​

IApp.getTransform

Inherited from ​

Leafer.getTransform

Defined in ​

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


getBounds ​

â–¸ getBounds(type?, relative?): IBoundsData

Parameters ​

NameType
type?IBoundsType
relative?ILeaf | ILocationType

Returns ​

IBoundsData

Implementation of ​

IApp.getBounds

Inherited from ​

Leafer.getBounds

Defined in ​

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


getLayoutBounds ​

â–¸ getLayoutBounds(type?, relative?, unscale?): ILayoutBoundsData

Parameters ​

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

Returns ​

ILayoutBoundsData

Implementation of ​

IApp.getLayoutBounds

Inherited from ​

Leafer.getLayoutBounds

Defined in ​

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


getLayoutPoints ​

â–¸ getLayoutPoints(type?, relative?): IPointData[]

Parameters ​

NameType
type?IBoundsType
relative?ILeaf | ILocationType

Returns ​

IPointData[]

Implementation of ​

IApp.getLayoutPoints

Inherited from ​

Leafer.getLayoutPoints

Defined in ​

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


getWorldBounds ​

â–¸ getWorldBounds(inner, relative?, change?): IBoundsData

Parameters ​

NameType
innerIBoundsData
relative?ILeaf
change?boolean

Returns ​

IBoundsData

Implementation of ​

IApp.getWorldBounds

Inherited from ​

Leafer.getWorldBounds

Defined in ​

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


worldToLocal ​

â–¸ worldToLocal(world, to?, distance?, relative?): void

Parameters ​

NameType
worldIPointData
to?IPointData
distance?boolean
relative?ILeaf

Returns ​

void

Implementation of ​

IApp.worldToLocal

Inherited from ​

Leafer.worldToLocal

Defined in ​

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


localToWorld ​

â–¸ localToWorld(local, to?, distance?, relative?): void

Parameters ​

NameType
localIPointData
to?IPointData
distance?boolean
relative?ILeaf

Returns ​

void

Implementation of ​

IApp.localToWorld

Inherited from ​

Leafer.localToWorld

Defined in ​

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


worldToInner ​

â–¸ worldToInner(world, to?, distance?, relative?): void

Parameters ​

NameType
worldIPointData
to?IPointData
distance?boolean
relative?ILeaf

Returns ​

void

Implementation of ​

IApp.worldToInner

Inherited from ​

Leafer.worldToInner

Defined in ​

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


innerToWorld ​

â–¸ innerToWorld(inner, to?, distance?, relative?): void

Parameters ​

NameType
innerIPointData
to?IPointData
distance?boolean
relative?ILeaf

Returns ​

void

Implementation of ​

IApp.innerToWorld

Inherited from ​

Leafer.innerToWorld

Defined in ​

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


getBoxPoint ​

â–¸ getBoxPoint(world, relative?, distance?, change?): IPointData

Parameters ​

NameType
worldIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns ​

IPointData

Implementation of ​

IApp.getBoxPoint

Inherited from ​

Leafer.getBoxPoint

Defined in ​

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


getBoxPointByInner ​

â–¸ getBoxPointByInner(inner, _relative?, _distance?, change?): IPointData

Parameters ​

NameType
innerIPointData
_relative?ILeaf
_distance?boolean
change?boolean

Returns ​

IPointData

Implementation of ​

IApp.getBoxPointByInner

Inherited from ​

Leafer.getBoxPointByInner

Defined in ​

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


getInnerPoint ​

â–¸ getInnerPoint(world, relative?, distance?, change?): IPointData

Parameters ​

NameType
worldIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns ​

IPointData

Implementation of ​

IApp.getInnerPoint

Inherited from ​

Leafer.getInnerPoint

Defined in ​

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


getInnerPointByBox ​

â–¸ getInnerPointByBox(box, _relative?, _distance?, change?): IPointData

Parameters ​

NameType
boxIPointData
_relative?ILeaf
_distance?boolean
change?boolean

Returns ​

IPointData

Implementation of ​

IApp.getInnerPointByBox

Inherited from ​

Leafer.getInnerPointByBox

Defined in ​

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


getInnerPointByLocal ​

â–¸ getInnerPointByLocal(local, _relative?, distance?, change?): IPointData

Parameters ​

NameType
localIPointData
_relative?ILeaf
distance?boolean
change?boolean

Returns ​

IPointData

Implementation of ​

IApp.getInnerPointByLocal

Inherited from ​

Leafer.getInnerPointByLocal

Defined in ​

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


getLocalPoint ​

â–¸ getLocalPoint(world, relative?, distance?, change?): IPointData

Parameters ​

NameType
worldIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns ​

IPointData

Implementation of ​

IApp.getLocalPoint

Inherited from ​

Leafer.getLocalPoint

Defined in ​

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


getLocalPointByInner ​

â–¸ getLocalPointByInner(inner, _relative?, distance?, change?): IPointData

Parameters ​

NameType
innerIPointData
_relative?ILeaf
distance?boolean
change?boolean

Returns ​

IPointData

Implementation of ​

IApp.getLocalPointByInner

Inherited from ​

Leafer.getLocalPointByInner

Defined in ​

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


getPagePoint ​

â–¸ getPagePoint(world, relative?, distance?, change?): IPointData

Parameters ​

NameType
worldIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns ​

IPointData

Implementation of ​

IApp.getPagePoint

Inherited from ​

Leafer.getPagePoint

Defined in ​

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


getWorldPoint ​

â–¸ getWorldPoint(inner, relative?, distance?, change?): IPointData

Parameters ​

NameType
innerIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns ​

IPointData

Implementation of ​

IApp.getWorldPoint

Inherited from ​

Leafer.getWorldPoint

Defined in ​

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


getWorldPointByBox ​

â–¸ getWorldPointByBox(box, relative?, distance?, change?): IPointData

Parameters ​

NameType
boxIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns ​

IPointData

Implementation of ​

IApp.getWorldPointByBox

Inherited from ​

Leafer.getWorldPointByBox

Defined in ​

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


getWorldPointByLocal ​

â–¸ getWorldPointByLocal(local, relative?, distance?, change?): IPointData

Parameters ​

NameType
localIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns ​

IPointData

Implementation of ​

IApp.getWorldPointByLocal

Inherited from ​

Leafer.getWorldPointByLocal

Defined in ​

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


getWorldPointByPage ​

â–¸ getWorldPointByPage(page, relative?, distance?, change?): IPointData

Parameters ​

NameType
pageIPointData
relative?ILeaf
distance?boolean
change?boolean

Returns ​

IPointData

Implementation of ​

IApp.getWorldPointByPage

Inherited from ​

Leafer.getWorldPointByPage

Defined in ​

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


setTransform ​

â–¸ setTransform(matrix, resize?, transition?): void

Parameters ​

NameType
matrixIMatrixData
resize?boolean
transition?ITransition

Returns ​

void

Implementation of ​

IApp.setTransform

Inherited from ​

Leafer.setTransform

Defined in ​

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


transform ​

â–¸ transform(matrix, resize?, transition?): void

Parameters ​

NameType
matrixIMatrixData
resize?boolean
transition?ITransition

Returns ​

void

Implementation of ​

IApp.transform

Inherited from ​

Leafer.transform

Defined in ​

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


move ​

â–¸ move(x, y?, transition?): void

Parameters ​

NameType
xnumber | IPointData
y?number
transition?ITransition

Returns ​

void

Implementation of ​

IApp.move

Inherited from ​

Leafer.move

Defined in ​

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


moveInner ​

â–¸ moveInner(x, y?, transition?): void

Parameters ​

NameType
xnumber | IPointData
y?number
transition?ITransition

Returns ​

void

Implementation of ​

IApp.moveInner

Inherited from ​

Leafer.moveInner

Defined in ​

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


scaleOf ​

â–¸ scaleOf(origin, scaleX, scaleY?, resize?, transition?): void

Parameters ​

NameType
originIPointData | IDirection
scaleXnumber
scaleY?ITransition
resize?boolean
transition?ITransition

Returns ​

void

Implementation of ​

IApp.scaleOf

Inherited from ​

Leafer.scaleOf

Defined in ​

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


rotateOf ​

â–¸ rotateOf(origin, rotation, transition?): void

Parameters ​

NameType
originIPointData | IDirection
rotationnumber
transition?ITransition

Returns ​

void

Implementation of ​

IApp.rotateOf

Inherited from ​

Leafer.rotateOf

Defined in ​

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


skewOf ​

â–¸ skewOf(origin, skewX, skewY?, resize?, transition?): void

Parameters ​

NameType
originIPointData | IDirection
skewXnumber
skewY?number
resize?boolean
transition?ITransition

Returns ​

void

Implementation of ​

IApp.skewOf

Inherited from ​

Leafer.skewOf

Defined in ​

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


transformWorld ​

â–¸ transformWorld(worldTransform?, resize?, transition?): void

Parameters ​

NameType
worldTransform?IMatrixData
resize?boolean
transition?ITransition

Returns ​

void

Implementation of ​

IApp.transformWorld

Inherited from ​

Leafer.transformWorld

Defined in ​

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


moveWorld ​

â–¸ moveWorld(x, y?, transition?): void

Parameters ​

NameType
xnumber | IPointData
y?number
transition?ITransition

Returns ​

void

Implementation of ​

IApp.moveWorld

Inherited from ​

Leafer.moveWorld

Defined in ​

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


scaleOfWorld ​

â–¸ scaleOfWorld(worldOrigin, scaleX, scaleY?, resize?, transition?): void

Parameters ​

NameType
worldOriginIPointData
scaleXnumber
scaleY?ITransition
resize?boolean
transition?ITransition

Returns ​

void

Implementation of ​

IApp.scaleOfWorld

Inherited from ​

Leafer.scaleOfWorld

Defined in ​

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


rotateOfWorld ​

â–¸ rotateOfWorld(worldOrigin, rotation): void

Parameters ​

NameType
worldOriginIPointData
rotationnumber

Returns ​

void

Implementation of ​

IApp.rotateOfWorld

Inherited from ​

Leafer.rotateOfWorld

Defined in ​

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


skewOfWorld ​

â–¸ skewOfWorld(worldOrigin, skewX, skewY?, resize?, transition?): void

Parameters ​

NameType
worldOriginIPointData
skewXnumber
skewY?number
resize?boolean
transition?ITransition

Returns ​

void

Implementation of ​

IApp.skewOfWorld

Inherited from ​

Leafer.skewOfWorld

Defined in ​

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


flip ​

â–¸ flip(axis, transition?): void

Parameters ​

NameType
axisIAxis
transition?ITransition

Returns ​

void

Implementation of ​

IApp.flip

Inherited from ​

Leafer.flip

Defined in ​

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


scaleResize ​

â–¸ scaleResize(scaleX, scaleY?, _noResize?): void

Parameters ​

NameTypeDefault value
scaleXnumberundefined
scaleYnumberscaleX
_noResize?booleanundefined

Returns ​

void

Implementation of ​

IApp.scaleResize

Inherited from ​

Leafer.scaleResize

Defined in ​

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


__scaleResize ​

â–¸ __scaleResize(_scaleX, _scaleY): void

Parameters ​

NameType
_scaleXnumber
_scaleYnumber

Returns ​

void

Implementation of ​

IApp.__scaleResize

Inherited from ​

Leafer.__scaleResize

Defined in ​

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


resizeWidth ​

â–¸ resizeWidth(_width): void

Parameters ​

NameType
_widthnumber

Returns ​

void

Implementation of ​

IApp.resizeWidth

Inherited from ​

Leafer.resizeWidth

Defined in ​

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


resizeHeight ​

â–¸ resizeHeight(_height): void

Parameters ​

NameType
_heightnumber

Returns ​

void

Implementation of ​

IApp.resizeHeight

Inherited from ​

Leafer.resizeHeight

Defined in ​

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


hit ​

â–¸ hit(_world, _hitRadius?): boolean

Parameters ​

NameType
_worldIPointData
_hitRadius?number

Returns ​

boolean

Implementation of ​

IApp.hit

Inherited from ​

Leafer.hit

Defined in ​

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


__hitWorld ​

â–¸ __hitWorld(_point, _forceHitFill?): boolean

Parameters ​

NameType
_pointIRadiusPointData
_forceHitFill?boolean

Returns ​

boolean

Implementation of ​

IApp.__hitWorld

Inherited from ​

Leafer.__hitWorld

Defined in ​

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


__hit ​

â–¸ __hit(_local, _forceHitFill?): boolean

Parameters ​

NameType
_localIRadiusPointData
_forceHitFill?boolean

Returns ​

boolean

Implementation of ​

IApp.__hit

Inherited from ​

Leafer.__hit

Defined in ​

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


__hitFill ​

â–¸ __hitFill(_inner): boolean

Parameters ​

NameType
_innerIRadiusPointData

Returns ​

boolean

Implementation of ​

IApp.__hitFill

Inherited from ​

Leafer.__hitFill

Defined in ​

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


__hitStroke ​

â–¸ __hitStroke(_inner, _strokeWidth): boolean

Parameters ​

NameType
_innerIRadiusPointData
_strokeWidthnumber

Returns ​

boolean

Implementation of ​

IApp.__hitStroke

Inherited from ​

Leafer.__hitStroke

Defined in ​

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


__hitPixel ​

â–¸ __hitPixel(_inner): boolean

Parameters ​

NameType
_innerIRadiusPointData

Returns ​

boolean

Implementation of ​

IApp.__hitPixel

Inherited from ​

Leafer.__hitPixel

Defined in ​

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


__drawHitPath ​

â–¸ __drawHitPath(_canvas): void

Parameters ​

NameType
_canvasILeaferCanvas

Returns ​

void

Implementation of ​

IApp.__drawHitPath

Inherited from ​

Leafer.__drawHitPath

Defined in ​

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


__updateHitCanvas ​

â–¸ __updateHitCanvas(): void

Returns ​

void

Implementation of ​

IApp.__updateHitCanvas

Inherited from ​

Leafer.__updateHitCanvas

Defined in ​

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


__drawFast ​

â–¸ __drawFast(_canvas, _options): void

Parameters ​

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns ​

void

Implementation of ​

IApp.__drawFast

Inherited from ​

Leafer.__drawFast

Defined in ​

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


__draw ​

â–¸ __draw(_canvas, _options, _originCanvas?): void

Parameters ​

NameType
_canvasILeaferCanvas
_optionsIRenderOptions
_originCanvas?ILeaferCanvas

Returns ​

void

Implementation of ​

IApp.__draw

Inherited from ​

Leafer.__draw

Defined in ​

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


__clip ​

â–¸ __clip(_canvas, _options): void

Parameters ​

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns ​

void

Implementation of ​

IApp.__clip

Inherited from ​

Leafer.__clip

Defined in ​

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


__renderShape ​

â–¸ __renderShape(_canvas, _options): void

Parameters ​

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns ​

void

Implementation of ​

IApp.__renderShape

Inherited from ​

Leafer.__renderShape

Defined in ​

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


__drawShape ​

â–¸ __drawShape(_canvas, _options): void

Parameters ​

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns ​

void

Implementation of ​

IApp.__drawShape

Inherited from ​

Leafer.__drawShape

Defined in ​

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


__updateWorldOpacity ​

â–¸ __updateWorldOpacity(): void

Returns ​

void

Implementation of ​

IApp.__updateWorldOpacity

Inherited from ​

Leafer.__updateWorldOpacity

Defined in ​

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


__updateChange ​

â–¸ __updateChange(): void

Returns ​

void

Implementation of ​

IApp.__updateChange

Inherited from ​

Leafer.__updateChange

Defined in ​

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


__updatePath ​

â–¸ __updatePath(): void

Returns ​

void

Implementation of ​

IApp.__updatePath

Inherited from ​

Leafer.__updatePath

Defined in ​

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


getMotionPathData ​

â–¸ getMotionPathData(): IMotionPathData

Returns ​

IMotionPathData

Implementation of ​

IApp.getMotionPathData

Inherited from ​

Leafer.getMotionPathData

Defined in ​

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


getMotionPoint ​

â–¸ getMotionPoint(_motionDistance): IRotationPointData

Parameters ​

NameType
_motionDistancenumber | IUnitData

Returns ​

IRotationPointData

Implementation of ​

IApp.getMotionPoint

Inherited from ​

Leafer.getMotionPoint

Defined in ​

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


getMotionTotal ​

â–¸ getMotionTotal(): number

Returns ​

number

Implementation of ​

IApp.getMotionTotal

Inherited from ​

Leafer.getMotionTotal

Defined in ​

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


__updateMotionPath ​

â–¸ __updateMotionPath(): void

Returns ​

void

Implementation of ​

IApp.__updateMotionPath

Inherited from ​

Leafer.__updateMotionPath

Defined in ​

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


__runAnimation ​

â–¸ __runAnimation(_type, _complete?): void

Parameters ​

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

Returns ​

void

Implementation of ​

IApp.__runAnimation

Inherited from ​

Leafer.__runAnimation

Defined in ​

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


__updateSortChildren ​

â–¸ __updateSortChildren(): void

Returns ​

void

Implementation of ​

IApp.__updateSortChildren

Inherited from ​

Leafer.__updateSortChildren

Defined in ​

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


dropTo ​

â–¸ dropTo(parent, index?, resize?): void

Parameters ​

NameType
parentILeaf
index?number
resize?boolean

Returns ​

void

Implementation of ​

IApp.dropTo

Inherited from ​

Leafer.dropTo

Defined in ​

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


on ​

â–¸ on(_type, _listener?, _options?): void

Parameters ​

NameType
_typestring | string[] | IEventParamsMap | IEventParams[]
_listener?IFunction
_options?IEventOption

Returns ​

void

Implementation of ​

IApp.on

Inherited from ​

Leafer.on

Defined in ​

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


off ​

â–¸ off(_type?, _listener?, _options?): void

Parameters ​

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

Returns ​

void

Implementation of ​

IApp.off

Inherited from ​

Leafer.off

Defined in ​

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


on_ ​

â–¸ on_(_type, _listener?, _bind?, _options?): IEventListenerId

Parameters ​

NameType
_typestring | string[] | IEventParams[]
_listener?IFunction
_bind?IObject
_options?IEventOption

Returns ​

IEventListenerId

Implementation of ​

IApp.on_

Inherited from ​

Leafer.on_

Defined in ​

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


off_ ​

â–¸ off_(_id): void

Parameters ​

NameType
_idIEventListenerId | IEventListenerId[]

Returns ​

void

Implementation of ​

IApp.off_

Inherited from ​

Leafer.off_

Defined in ​

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


once ​

â–¸ once(_type, _listener?, _captureOrBind?, _capture?): void

Parameters ​

NameType
_typestring | string[] | IEventParams[]
_listener?IFunction
_captureOrBind?boolean | IObject
_capture?boolean

Returns ​

void

Implementation of ​

IApp.once

Inherited from ​

Leafer.once

Defined in ​

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


emit ​

â–¸ emit(_type, _event?, _capture?): void

Parameters ​

NameType
_typestring
_event?IObject | IEvent
_capture?boolean

Returns ​

void

Implementation of ​

IApp.emit

Inherited from ​

Leafer.emit

Defined in ​

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


emitEvent ​

â–¸ emitEvent(_event?, _capture?): void

Parameters ​

NameType
_event?IEvent
_capture?boolean

Returns ​

void

Implementation of ​

IApp.emitEvent

Inherited from ​

Leafer.emitEvent

Defined in ​

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


hasEvent ​

â–¸ hasEvent(_type, _capture?): boolean

Parameters ​

NameType
_typestring
_capture?boolean

Returns ​

boolean

Implementation of ​

IApp.hasEvent

Inherited from ​

Leafer.hasEvent

Defined in ​

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


changeAttr ​

â–¸ changeAttr(attrName, defaultValue, fn?): void

Parameters ​

NameType
attrNamestring
defaultValueIValueFunction | IValue
fn?IAttrDecorator

Returns ​

void

Inherited from ​

Leafer.changeAttr

Defined in ​

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


addAttr ​

â–¸ addAttr(attrName, defaultValue, fn?, helpValue?): void

Parameters ​

NameType
attrNamestring
defaultValueIValueFunction | IValue
fn?IAttrDecorator
helpValue?IValue

Returns ​

void

Inherited from ​

Leafer.addAttr

Defined in ​

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


__emitLifeEvent ​

â–¸ __emitLifeEvent(type): void

Parameters ​

NameType
typestring

Returns ​

void

Implementation of ​

IApp.__emitLifeEvent

Inherited from ​

Leafer.__emitLifeEvent

Defined in ​

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


init ​

â–¸ init(userConfig?, parentApp?): void

Parameters ​

NameType
userConfig?IAppConfig
parentApp?IApp

Returns ​

void

Implementation of ​

IApp.init

Overrides ​

Leafer.init

Defined in ​

src/ui/packages/app/src/App.ts:28


__setApp ​

â–¸ __setApp(): void

Returns ​

void

Overrides ​

Leafer.__setApp

Defined in ​

src/ui/packages/app/src/App.ts:39


__updateLocalBounds ​

â–¸ __updateLocalBounds(): void

Returns ​

void

Implementation of ​

IApp.__updateLocalBounds

Overrides ​

Leafer.__updateLocalBounds

Defined in ​

src/ui/packages/app/src/App.ts:50


start ​

â–¸ start(): void

Returns ​

void

Implementation of ​

IApp.start

Overrides ​

Leafer.start

Defined in ​

src/ui/packages/app/src/App.ts:55


stop ​

â–¸ stop(): void

Returns ​

void

Implementation of ​

IApp.stop

Overrides ​

Leafer.stop

Defined in ​

src/ui/packages/app/src/App.ts:60


unlockLayout ​

â–¸ unlockLayout(): void

Returns ​

void

Implementation of ​

IApp.unlockLayout

Overrides ​

Leafer.unlockLayout

Defined in ​

src/ui/packages/app/src/App.ts:65


lockLayout ​

â–¸ lockLayout(): void

Returns ​

void

Implementation of ​

IApp.lockLayout

Overrides ​

Leafer.lockLayout

Defined in ​

src/ui/packages/app/src/App.ts:70


forceRender ​

â–¸ forceRender(bounds?, sync?): void

Parameters ​

NameType
bounds?IBoundsData
sync?boolean

Returns ​

void

Implementation of ​

IApp.forceRender

Overrides ​

Leafer.forceRender

Defined in ​

src/ui/packages/app/src/App.ts:75


addLeafer ​

â–¸ addLeafer(merge?): Leafer

Parameters ​

NameType
merge?ILeaferConfig

Returns ​

Leafer

Defined in ​

src/ui/packages/app/src/App.ts:79


add ​

â–¸ add(leafer, index?): void

Parameters ​

NameType
leaferILeafer
index?number

Returns ​

void

Implementation of ​

IApp.add

Overrides ​

Leafer.add

Defined in ​

src/ui/packages/app/src/App.ts:85


forEach ​

â–¸ forEach(fn): void

Parameters ​

NameType
fnIAppForEachFunction

Returns ​

void

Implementation of ​

IApp.forEach

Defined in ​

src/ui/packages/app/src/App.ts:99


__onCreated ​

â–¸ __onCreated(): void

Returns ​

void

Overrides ​

Leafer.__onCreated

Defined in ​

src/ui/packages/app/src/App.ts:103


__onReady ​

â–¸ __onReady(): void

Returns ​

void

Overrides ​

Leafer.__onReady

Defined in ​

src/ui/packages/app/src/App.ts:107


__onViewReady ​

â–¸ __onViewReady(): void

Returns ​

void

Overrides ​

Leafer.__onViewReady

Defined in ​

src/ui/packages/app/src/App.ts:111


__onChildRenderEnd ​

â–¸ __onChildRenderEnd(e): void

Parameters ​

NameType
eRenderEvent

Returns ​

void

Defined in ​

src/ui/packages/app/src/App.ts:115


__render ​

â–¸ __render(canvas, options): void

Parameters ​

NameType
canvasILeaferCanvas
optionsIRenderOptions

Returns ​

void

Implementation of ​

IApp.__render

Overrides ​

Leafer.__render

Defined in ​

src/ui/packages/app/src/App.ts:120


__onResize ​

â–¸ __onResize(event): void

Parameters ​

NameType
eventIResizeEvent

Returns ​

void

Overrides ​

Leafer.__onResize

Defined in ​

src/ui/packages/app/src/App.ts:124


updateLayout ​

â–¸ updateLayout(): void

Returns ​

void

Implementation of ​

IApp.updateLayout

Overrides ​

Leafer.updateLayout

Defined in ​

src/ui/packages/app/src/App.ts:129


__getChildConfig ​

â–¸ __getChildConfig(userConfig?): ILeaferConfig

Parameters ​

NameType
userConfig?ILeaferConfig

Returns ​

ILeaferConfig

Defined in ​

src/ui/packages/app/src/App.ts:133


__listenChildEvents ​

â–¸ __listenChildEvents(leafer): void

Parameters ​

NameType
leaferILeaferBase

Returns ​

void

Defined in ​

src/ui/packages/app/src/App.ts:145


reset ​

â–¸ reset(data?): void

Parameters ​

NameType
data?IGroupInputData

Returns ​

void

Implementation of ​

IApp.reset

Inherited from ​

Leafer.reset

Defined in ​

src/ui/packages/display/src/Group.ts:35


__setBranch ​

â–¸ __setBranch(): void

Returns ​

void

Inherited from ​

Leafer.__setBranch

Defined in ​

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


toJSON ​

â–¸ toJSON(options?): IUIJSONData

Parameters ​

NameType
options?IJSONOptions

Returns ​

IUIJSONData

Implementation of ​

IApp.toJSON

Inherited from ​

Leafer.toJSON

Defined in ​

src/ui/packages/display/src/Group.ts:64


pick ​

â–¸ pick(_hitPoint, _options?): IPickResult

Parameters ​

NameType
_hitPointIPointData
_options?IPickOptions

Returns ​

IPickResult

Implementation of ​

IApp.pick

Inherited from ​

Leafer.pick

Defined in ​

src/ui/packages/display/src/Group.ts:76


addAt ​

â–¸ addAt(child, index): void

Parameters ​

NameType
childIUIInputData | IUI | IUI[] | IUIInputData[]
indexnumber

Returns ​

void

Implementation of ​

IApp.addAt

Inherited from ​

Leafer.addAt

Defined in ​

src/ui/packages/display/src/Group.ts:81


addAfter ​

â–¸ addAfter(child, after): void

Parameters ​

NameType
childIUIInputData | IUI | IUI[] | IUIInputData[]
afterIUI

Returns ​

void

Implementation of ​

IApp.addAfter

Inherited from ​

Leafer.addAfter

Defined in ​

src/ui/packages/display/src/Group.ts:85


addBefore ​

â–¸ addBefore(child, before): void

Parameters ​

NameType
childIUIInputData | IUI | IUI[] | IUIInputData[]
beforeIUI

Returns ​

void

Implementation of ​

IApp.addBefore

Inherited from ​

Leafer.addBefore

Defined in ​

src/ui/packages/display/src/Group.ts:89


addMany ​

â–¸ addMany(..._children): void

Parameters ​

NameType
..._childrenIUI[] | IUIInputData[]

Returns ​

void

Implementation of ​

IApp.addMany

Inherited from ​

Leafer.addMany

Defined in ​

src/ui/packages/display/src/Group.ts:97


remove ​

â–¸ remove(_child?, _destroy?): void

Parameters ​

NameType
_child?string | number | IFindCondition | IUI | IFindUIMethod
_destroy?boolean

Returns ​

void

Implementation of ​

IApp.remove

Inherited from ​

Leafer.remove

Defined in ​

src/ui/packages/display/src/Group.ts:99


removeAll ​

â–¸ removeAll(_destroy?): void

Parameters ​

NameType
_destroy?boolean

Returns ​

void

Implementation of ​

IApp.removeAll

Inherited from ​

Leafer.removeAll

Defined in ​

src/ui/packages/display/src/Group.ts:101


clear ​

â–¸ clear(): void

Returns ​

void

Implementation of ​

IApp.clear

Inherited from ​

Leafer.clear

Defined in ​

src/ui/packages/display/src/Group.ts:103


onInit ​

â–¸ onInit(): void

Returns ​

void

Implementation of ​

IApp.onInit

Inherited from ​

Leafer.onInit

Defined in ​

src/ui/packages/display/src/Leafer.ts:164


initType ​

â–¸ initType(_type): void

Parameters ​

NameType
_typeILeaferType

Returns ​

void

Implementation of ​

IApp.initType

Inherited from ​

Leafer.initType

Defined in ​

src/ui/packages/display/src/Leafer.ts:166


set ​

â–¸ set(data, transition?): void

Parameters ​

NameType
dataIUIInputData
transition?ITransition | "temp"

Returns ​

void

Implementation of ​

IApp.set

Inherited from ​

Leafer.set

Defined in ​

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


resize ​

â–¸ resize(size): void

Parameters ​

NameType
sizeIScreenSizeData

Returns ​

void

Implementation of ​

IApp.resize

Inherited from ​

Leafer.resize

Defined in ​

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


requestRender ​

â–¸ requestRender(change?): void

Parameters ​

NameTypeDefault value
changebooleanfalse

Returns ​

void

Implementation of ​

IApp.requestRender

Inherited from ​

Leafer.requestRender

Defined in ​

src/ui/packages/display/src/Leafer.ts:214


updateCursor ​

â–¸ updateCursor(cursor?): void

Parameters ​

NameType
cursor?ICursorType

Returns ​

void

Implementation of ​

IApp.updateCursor

Inherited from ​

Leafer.updateCursor

Defined in ​

src/ui/packages/display/src/Leafer.ts:218


updateLazyBounds ​

â–¸ updateLazyBounds(): void

Returns ​

void

Inherited from ​

Leafer.updateLazyBounds

Defined in ​

src/ui/packages/display/src/Leafer.ts:223


__doResize ​

â–¸ __doResize(size): void

Parameters ​

NameType
sizeIScreenSizeData

Returns ​

void

Inherited from ​

Leafer.__doResize

Defined in ​

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


__bindApp ​

â–¸ __bindApp(app): void

Parameters ​

NameType
appIApp

Returns ​

void

Inherited from ​

Leafer.__bindApp

Defined in ​

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


__setLeafer ​

â–¸ __setLeafer(leafer): void

Parameters ​

NameType
leaferILeafer

Returns ​

void

Inherited from ​

Leafer.__setLeafer

Defined in ​

src/ui/packages/display/src/Leafer.ts:252


__checkAutoLayout ​

â–¸ __checkAutoLayout(): void

Returns ​

void

Inherited from ​

Leafer.__checkAutoLayout

Defined in ​

src/ui/packages/display/src/Leafer.ts:257


__setAttr ​

â–¸ __setAttr(attrName, newValue): boolean

Parameters ​

NameType
attrNamestring
newValueIValue

Returns ​

boolean

Implementation of ​

IApp.__setAttr

Inherited from ​

Leafer.__setAttr

Defined in ​

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


__getAttr ​

â–¸ __getAttr(attrName): IValue

Parameters ​

NameType
attrNamestring

Returns ​

IValue

Implementation of ​

IApp.__getAttr

Inherited from ​

Leafer.__getAttr

Defined in ​

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


__changeCanvasSize ​

â–¸ __changeCanvasSize(attrName, newValue): void

Parameters ​

NameType
attrNameICanvasSizeAttr
newValuenumber

Returns ​

void

Inherited from ​

Leafer.__changeCanvasSize

Defined in ​

src/ui/packages/display/src/Leafer.ts:287


__changeFill ​

â–¸ __changeFill(newValue): void

Parameters ​

NameType
newValuestring

Returns ​

void

Inherited from ​

Leafer.__changeFill

Defined in ​

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


__onLayoutEnd ​

â–¸ __onLayoutEnd(): void

Returns ​

void

Inherited from ​

Leafer.__onLayoutEnd

Defined in ​

src/ui/packages/display/src/Leafer.ts:320


__onNextRender ​

â–¸ __onNextRender(): void

Returns ​

void

Inherited from ​

Leafer.__onNextRender

Defined in ​

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


__checkViewCompleted ​

â–¸ __checkViewCompleted(emit?): void

Parameters ​

NameTypeDefault value
emitbooleantrue

Returns ​

void

Inherited from ​

Leafer.__checkViewCompleted

Defined in ​

src/ui/packages/display/src/Leafer.ts:346


__onWatchData ​

â–¸ __onWatchData(): void

Returns ​

void

Inherited from ​

Leafer.__onWatchData

Defined in ​

src/ui/packages/display/src/Leafer.ts:356


waitInit ​

â–¸ waitInit(item, bind?): void

Parameters ​

NameType
itemIFunction
bind?IObject

Returns ​

void

Inherited from ​

Leafer.waitInit

Defined in ​

src/ui/packages/display/src/Leafer.ts:362


waitReady ​

â–¸ waitReady(item, bind?): void

Parameters ​

NameType
itemIFunction
bind?IObject

Returns ​

void

Implementation of ​

IApp.waitReady

Inherited from ​

Leafer.waitReady

Defined in ​

src/ui/packages/display/src/Leafer.ts:368


waitViewReady ​

â–¸ waitViewReady(item, bind?): void

Parameters ​

NameType
itemIFunction
bind?IObject

Returns ​

void

Implementation of ​

IApp.waitViewReady

Inherited from ​

Leafer.waitViewReady

Defined in ​

src/ui/packages/display/src/Leafer.ts:373


waitViewCompleted ​

â–¸ waitViewCompleted(item, bind?): void

Parameters ​

NameType
itemIFunction
bind?IObject

Returns ​

void

Implementation of ​

IApp.waitViewCompleted

Inherited from ​

Leafer.waitViewCompleted

Defined in ​

src/ui/packages/display/src/Leafer.ts:378


nextRender ​

â–¸ nextRender(item, bind?, off?): void

Parameters ​

NameType
itemIFunction
bind?IObject
off?"off"

Returns ​

void

Implementation of ​

IApp.nextRender

Inherited from ​

Leafer.nextRender

Defined in ​

src/ui/packages/display/src/Leafer.ts:385


zoom ​

â–¸ zoom(_zoomType, _optionsOrPadding?, _scroll?, _transition?): IBoundsData

Parameters ​

NameType
_zoomTypeIZoomType
_optionsOrPadding?IFourNumber | IZoomOptions
_scroll?boolean | "x" | "y"
_transition?ITransition

Returns ​

IBoundsData

Implementation of ​

IApp.zoom

Inherited from ​

Leafer.zoom

Defined in ​

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


getValidMove ​

â–¸ getValidMove(moveX, moveY, _checkLimit?): IPointData

Parameters ​

NameType
moveXnumber
moveYnumber
_checkLimit?boolean

Returns ​

IPointData

Implementation of ​

IApp.getValidMove

Inherited from ​

Leafer.getValidMove

Defined in ​

src/ui/packages/display/src/Leafer.ts:403


getValidScale ​

â–¸ getValidScale(changeScale): number

Parameters ​

NameType
changeScalenumber

Returns ​

number

Implementation of ​

IApp.getValidScale

Inherited from ​

Leafer.getValidScale

Defined in ​

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


getWorldPointByClient ​

â–¸ getWorldPointByClient(clientPoint, updateClient?): IPointData

Parameters ​

NameType
clientPointIClientPointData
updateClient?boolean

Returns ​

IPointData

Implementation of ​

IApp.getWorldPointByClient

Inherited from ​

Leafer.getWorldPointByClient

Defined in ​

src/ui/packages/display/src/Leafer.ts:407


getPagePointByClient ​

â–¸ getPagePointByClient(clientPoint, updateClient?): IPointData

Parameters ​

NameType
clientPointIClientPointData
updateClient?boolean

Returns ​

IPointData

Implementation of ​

IApp.getPagePointByClient

Inherited from ​

Leafer.getPagePointByClient

Defined in ​

src/ui/packages/display/src/Leafer.ts:411


getClientPointByWorld ​

â–¸ getClientPointByWorld(worldPoint): IPointData

Parameters ​

NameType
worldPointIPointData

Returns ​

IPointData

Implementation of ​

IApp.getClientPointByWorld

Inherited from ​

Leafer.getClientPointByWorld

Defined in ​

src/ui/packages/display/src/Leafer.ts:415


updateClientBounds ​

â–¸ updateClientBounds(): void

Returns ​

void

Implementation of ​

IApp.updateClientBounds

Inherited from ​

Leafer.updateClientBounds

Defined in ​

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


receiveEvent ​

â–¸ receiveEvent(_event): void

Parameters ​

NameType
_eventany

Returns ​

void

Implementation of ​

IApp.receiveEvent

Inherited from ​

Leafer.receiveEvent

Defined in ​

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


emitLeafer ​

â–¸ emitLeafer(type): void

Parameters ​

NameType
typestring

Returns ​

void

Inherited from ​

Leafer.emitLeafer

Defined in ​

src/ui/packages/display/src/Leafer.ts:427


__listenEvents ​

â–¸ __listenEvents(): void

Returns ​

void

Inherited from ​

Leafer.__listenEvents

Defined in ​

src/ui/packages/display/src/Leafer.ts:431


__removeListenEvents ​

â–¸ __removeListenEvents(): void

Returns ​

void

Inherited from ​

Leafer.__removeListenEvents

Defined in ​

src/ui/packages/display/src/Leafer.ts:448


destroy ​

â–¸ destroy(sync?): void

Parameters ​

NameType
sync?boolean

Returns ​

void

Implementation of ​

IApp.destroy

Inherited from ​

Leafer.destroy

Defined in ​

src/ui/packages/display/src/Leafer.ts:452


get ​

â–¸ get<K>(name?): IUIInputData | App[K]

Type parameters ​

NameType
Kextends keyof App

Parameters ​

NameType
name?IUIInputData | K | K[]

Returns ​

IUIInputData | App[K]

Implementation of ​

IApp.get

Inherited from ​

Leafer.get

Defined in ​

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


createProxyData ​

â–¸ createProxyData(): IUIInputData

Returns ​

IUIInputData

Implementation of ​

IApp.createProxyData

Inherited from ​

Leafer.createProxyData

Defined in ​

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


clearProxyData ​

â–¸ clearProxyData(): void

Returns ​

void

Implementation of ​

IApp.clearProxyData

Inherited from ​

Leafer.clearProxyData

Defined in ​

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


find ​

â–¸ find(_condition, _options?): IUI[]

Parameters ​

NameType
_conditionstring | number | IFindCondition | IFindUIMethod
_options?any

Returns ​

IUI[]

Implementation of ​

IApp.find

Inherited from ​

Leafer.find

Defined in ​

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


findTag ​

â–¸ findTag(tag): IUI[]

Parameters ​

NameType
tagstring | string[]

Returns ​

IUI[]

Implementation of ​

IApp.findTag

Inherited from ​

Leafer.findTag

Defined in ​

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


findOne ​

â–¸ findOne(_condition, _options?): IUI

Parameters ​

NameType
_conditionstring | number | IFindCondition | IFindUIMethod
_options?any

Returns ​

IUI

Implementation of ​

IApp.findOne

Inherited from ​

Leafer.findOne

Defined in ​

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


findId ​

â–¸ findId(id): IUI

Parameters ​

NameType
idstring | number

Returns ​

IUI

Implementation of ​

IApp.findId

Inherited from ​

Leafer.findId

Defined in ​

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


getPath ​

â–¸ getPath(curve?, pathForRender?): IPathCommandData

Parameters ​

NameType
curve?boolean
pathForRender?boolean

Returns ​

IPathCommandData

Implementation of ​

IApp.getPath

Inherited from ​

Leafer.getPath

Defined in ​

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


getPathString ​

â–¸ getPathString(curve?, pathForRender?, floatLength?): string

Parameters ​

NameType
curve?boolean
pathForRender?boolean
floatLength?number

Returns ​

string

Implementation of ​

IApp.getPathString

Inherited from ​

Leafer.getPathString

Defined in ​

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


asPath ​

â–¸ asPath(curve?, pathForRender?): void

Parameters ​

NameType
curve?boolean
pathForRender?boolean

Returns ​

void

Implementation of ​

IApp.asPath

Inherited from ​

Leafer.asPath

Defined in ​

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


load ​

â–¸ load(): void

Returns ​

void

Implementation of ​

IApp.load

Inherited from ​

Leafer.load

Defined in ​

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


__onUpdateSize ​

â–¸ __onUpdateSize(): void

Returns ​

void

Implementation of ​

IApp.__onUpdateSize

Inherited from ​

Leafer.__onUpdateSize

Defined in ​

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


__updateRenderPath ​

â–¸ __updateRenderPath(updateCache?): void

Parameters ​

NameType
updateCache?boolean

Returns ​

void

Implementation of ​

IApp.__updateRenderPath

Inherited from ​

Leafer.__updateRenderPath

Defined in ​

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


__drawRenderPath ​

â–¸ __drawRenderPath(canvas): void

Parameters ​

NameType
canvasILeaferCanvas

Returns ​

void

Implementation of ​

IApp.__drawRenderPath

Inherited from ​

Leafer.__drawRenderPath

Defined in ​

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


__drawPath ​

â–¸ __drawPath(canvas): void

Parameters ​

NameType
canvasILeaferCanvas

Returns ​

void

Implementation of ​

IApp.__drawPath

Inherited from ​

Leafer.__drawPath

Defined in ​

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


__drawPathByData ​

â–¸ __drawPathByData(drawer, data, ignoreCornerRadius?): void

Parameters ​

NameType
drawerIPathDrawer
dataIPathCommandData
ignoreCornerRadius?boolean

Returns ​

void

Implementation of ​

IApp.__drawPathByData

Inherited from ​

Leafer.__drawPathByData

Defined in ​

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


__drawPathByBox ​

â–¸ __drawPathByBox(drawer, ignoreCornerRadius?): void

Parameters ​

NameType
drawerIPathDrawer
ignoreCornerRadius?boolean

Returns ​

void

Implementation of ​

IApp.__drawPathByBox

Inherited from ​

Leafer.__drawPathByBox

Defined in ​

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


drawImagePlaceholder ​

â–¸ drawImagePlaceholder(_paint, canvas, renderOptions): void

Parameters ​

NameType
_paintILeafPaint
canvasILeaferCanvas
renderOptionsIRenderOptions

Returns ​

void

Implementation of ​

IApp.drawImagePlaceholder

Inherited from ​

Leafer.drawImagePlaceholder

Defined in ​

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


animate ​

â–¸ animate(keyframe?, _options?, _type?, _isTemp?): IAnimate

Parameters ​

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

Returns ​

IAnimate

Implementation of ​

IApp.animate

Inherited from ​

Leafer.animate

Defined in ​

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


killAnimate ​

â–¸ killAnimate(_type?, _nextStyle?): void

Parameters ​

NameType
_type?IAnimateType
_nextStyle?IUIInputData

Returns ​

void

Implementation of ​

IApp.killAnimate

Inherited from ​

Leafer.killAnimate

Defined in ​

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


export ​

â–¸ export(_filename, _options?): Promise<IExportResult>

Parameters ​

NameType
_filenamestring
_options?number | boolean | IExportOptions

Returns ​

Promise<IExportResult>

Implementation of ​

IApp.export

Inherited from ​

Leafer.export

Defined in ​

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


syncExport ​

â–¸ syncExport(_filename, _options?): IExportResult

Parameters ​

NameType
_filenamestring
_options?number | boolean | IExportOptions

Returns ​

IExportResult

Implementation of ​

IApp.syncExport

Inherited from ​

Leafer.syncExport

Defined in ​

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


clone ​

â–¸ clone(data?): this

Parameters ​

NameType
data?IUIInputData

Returns ​

this

Implementation of ​

IApp.clone

Inherited from ​

Leafer.clone

Defined in ​

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


one ​

â–¸ one<T>(this, data, x?, y?, width?, height?): T

Type parameters ​

NameType
Textends UI<IUIInputData>

Parameters ​

NameType
this(...args: any[]) => T
dataIUIInputData
x?number
y?number
width?number
height?number

Returns ​

T

Inherited from ​

Leafer.one

Defined in ​

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


registerUI ​

â–¸ registerUI(): void

Returns ​

void

Inherited from ​

Leafer.registerUI

Defined in ​

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


registerData ​

â–¸ registerData(data): void

Parameters ​

NameType
dataIUIData

Returns ​

void

Inherited from ​

Leafer.registerData

Defined in ​

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


setEditConfig ​

â–¸ setEditConfig(_config): void

Parameters ​

NameType
_configIEditorConfig | IEditorConfigFunction

Returns ​

void

Inherited from ​

Leafer.setEditConfig

Defined in ​

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


setEditOuter ​

â–¸ setEditOuter(_toolName): void

Parameters ​

NameType
_toolNamestring | IEditToolFunction

Returns ​

void

Inherited from ​

Leafer.setEditOuter

Defined in ​

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


setEditInner ​

â–¸ setEditInner(_editorName): void

Parameters ​

NameType
_editorNamestring | IEditToolFunction

Returns ​

void

Inherited from ​

Leafer.setEditInner

Defined in ​

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

Released under the MIT License.