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 ​

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

Properties ​

innerId ​

â€ĸ Readonly innerId: number

Implementation of ​

IApp.innerId

Inherited from ​

Leafer.innerId

Defined in ​

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


__layout ​

â€ĸ __layout: ILeafLayout

Implementation of ​

IApp.__layout

Inherited from ​

Leafer.__layout

Defined in ​

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


__world ​

â€ĸ __world: IMatrixWithBoundsScaleData

Implementation of ​

IApp.__world

Inherited from ​

Leafer.__world

Defined in ​

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


__local ​

â€ĸ Optional __local: IMatrixWithBoundsData

Implementation of ​

IApp.__local

Inherited from ​

Leafer.__local

Defined in ​

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


__nowWorld ​

â€ĸ Optional __nowWorld: IMatrixWithBoundsScaleData

Implementation of ​

IApp.__nowWorld

Inherited from ​

Leafer.__nowWorld

Defined in ​

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


__cameraWorld ​

â€ĸ Optional __cameraWorld: IMatrixWithBoundsScaleData

Implementation of ​

IApp.__cameraWorld

Inherited from ​

Leafer.__cameraWorld

Defined in ​

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


__worldOpacity ​

â€ĸ __worldOpacity: number

Implementation of ​

IApp.__worldOpacity

Inherited from ​

Leafer.__worldOpacity

Defined in ​

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


__level ​

â€ĸ __level: number

Implementation of ​

IApp.__level

Inherited from ​

Leafer.__level

Defined in ​

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


__tempNumber ​

â€ĸ __tempNumber: number

Implementation of ​

IApp.__tempNumber

Inherited from ​

Leafer.__tempNumber

Defined in ​

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


__hasAutoLayout ​

â€ĸ Optional __hasAutoLayout: boolean

Implementation of ​

IApp.__hasAutoLayout

Inherited from ​

Leafer.__hasAutoLayout

Defined in ​

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


__hasMask ​

â€ĸ Optional __hasMask: boolean

Implementation of ​

IApp.__hasMask

Inherited from ​

Leafer.__hasMask

Defined in ​

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


__hasEraser ​

â€ĸ Optional __hasEraser: boolean

Implementation of ​

IApp.__hasEraser

Inherited from ​

Leafer.__hasEraser

Defined in ​

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


__hitCanvas ​

â€ĸ Optional __hitCanvas: IHitCanvas

Implementation of ​

IApp.__hitCanvas

Inherited from ​

Leafer.__hitCanvas

Defined in ​

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


__captureMap ​

â€ĸ Optional __captureMap: IEventListenerMap

Implementation of ​

IApp.__captureMap

Inherited from ​

Leafer.__captureMap

Defined in ​

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


__bubbleMap ​

â€ĸ Optional __bubbleMap: IEventListenerMap

Implementation of ​

IApp.__bubbleMap

Inherited from ​

Leafer.__bubbleMap

Defined in ​

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


__parentWait ​

â€ĸ Optional __parentWait: IFunction[]

Implementation of ​

IApp.__parentWait

Inherited from ​

Leafer.__parentWait

Defined in ​

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


__leaferWait ​

â€ĸ Optional __leaferWait: IFunction[]

Implementation of ​

IApp.__leaferWait

Inherited from ​

Leafer.__leaferWait

Defined in ​

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


noBounds ​

â€ĸ Optional noBounds: boolean

Implementation of ​

IApp.noBounds

Inherited from ​

Leafer.noBounds

Defined in ​

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


destroyed ​

â€ĸ destroyed: boolean

Implementation of ​

IApp.destroyed

Inherited from ​

Leafer.destroyed

Defined in ​

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


children ​

â€ĸ children: ILeafer[]

Implementation of ​

IApp.children

Overrides ​

Leafer.children

Defined in ​

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


realCanvas ​

â€ĸ realCanvas: boolean

Implementation of ​

IApp.realCanvas

Defined in ​

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


ground ​

â€ĸ ground: ILeafer

Implementation of ​

IApp.ground

Defined in ​

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


tree ​

â€ĸ tree: ILeafer

Implementation of ​

IApp.tree

Defined in ​

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


sky ​

â€ĸ sky: ILeafer

Implementation of ​

IApp.sky

Defined in ​

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


list ​

â–Ē Static list: LeafList

Inherited from ​

Leafer.list

Defined in ​

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


__ ​

â€ĸ __: ILeaferData

Implementation of ​

IApp.__

Inherited from ​

Leafer.__

Defined in ​

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


pixelRatio ​

â€ĸ Optional pixelRatio: number

Implementation of ​

IApp.pixelRatio

Inherited from ​

Leafer.pixelRatio

Defined in ​

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


parent ​

â€ĸ Optional parent: IApp

Implementation of ​

IApp.parent

Inherited from ​

Leafer.parent

Defined in ​

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


running ​

â€ĸ running: boolean

Implementation of ​

IApp.running

Inherited from ​

Leafer.running

Defined in ​

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


created ​

â€ĸ created: boolean

Implementation of ​

IApp.created

Inherited from ​

Leafer.created

Defined in ​

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


ready ​

â€ĸ ready: boolean

Implementation of ​

IApp.ready

Inherited from ​

Leafer.ready

Defined in ​

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


viewReady ​

â€ĸ viewReady: boolean

Implementation of ​

IApp.viewReady

Inherited from ​

Leafer.viewReady

Defined in ​

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


viewCompleted ​

â€ĸ viewCompleted: boolean

Implementation of ​

IApp.viewCompleted

Inherited from ​

Leafer.viewCompleted

Defined in ​

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


transforming ​

â€ĸ transforming: boolean

Implementation of ​

IApp.transforming

Inherited from ​

Leafer.transforming

Defined in ​

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


view ​

â€ĸ view: unknown

Implementation of ​

IApp.view

Inherited from ​

Leafer.view

Defined in ​

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


canvas ​

â€ĸ canvas: ILeaferCanvas

Implementation of ​

IApp.canvas

Inherited from ​

Leafer.canvas

Defined in ​

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


renderer ​

â€ĸ renderer: IRenderer

Implementation of ​

IApp.renderer

Inherited from ​

Leafer.renderer

Defined in ​

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


watcher ​

â€ĸ watcher: IWatcher

Implementation of ​

IApp.watcher

Inherited from ​

Leafer.watcher

Defined in ​

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


layouter ​

â€ĸ layouter: ILayouter

Implementation of ​

IApp.layouter

Inherited from ​

Leafer.layouter

Defined in ​

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


selector ​

â€ĸ Optional selector: ISelector

Implementation of ​

IApp.selector

Inherited from ​

Leafer.selector

Defined in ​

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


interaction ​

â€ĸ Optional interaction: IInteraction

Implementation of ​

IApp.interaction

Inherited from ​

Leafer.interaction

Defined in ​

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


canvasManager ​

â€ĸ canvasManager: ICanvasManager

Implementation of ​

IApp.canvasManager

Inherited from ​

Leafer.canvasManager

Defined in ​

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


hitCanvasManager ​

â€ĸ Optional hitCanvasManager: IHitCanvasManager

Implementation of ​

IApp.hitCanvasManager

Inherited from ​

Leafer.hitCanvasManager

Defined in ​

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


editor ​

â€ĸ editor: IEditorBase

Implementation of ​

IApp.editor

Inherited from ​

Leafer.editor

Defined in ​

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


userConfig ​

â€ĸ userConfig: ILeaferConfig

Implementation of ​

IApp.userConfig

Inherited from ​

Leafer.userConfig

Defined in ​

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


config ​

â€ĸ config: ILeaferConfig

Implementation of ​

IApp.config

Inherited from ​

Leafer.config

Defined in ​

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


autoLayout ​

â€ĸ Optional autoLayout: IAutoBounds

Implementation of ​

IApp.autoLayout

Inherited from ​

Leafer.autoLayout

Defined in ​

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


lazyBounds ​

â€ĸ lazyBounds: IBounds

Implementation of ​

IApp.lazyBounds

Inherited from ​

Leafer.lazyBounds

Defined in ​

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


leafs ​

â€ĸ leafs: number = 0

Implementation of ​

IApp.leafs

Inherited from ​

Leafer.leafs

Defined in ​

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


__eventIds ​

â€ĸ __eventIds: IEventListenerId[] = []

Implementation of ​

IApp.__eventIds

Inherited from ​

Leafer.__eventIds

Defined in ​

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


__startTimer ​

â€ĸ Protected __startTimer: any

Inherited from ​

Leafer.__startTimer

Defined in ​

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


__controllers ​

â€ĸ Protected __controllers: IControl[] = []

Inherited from ​

Leafer.__controllers

Defined in ​

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


__initWait ​

â€ĸ Protected __initWait: IFunction[]

Inherited from ​

Leafer.__initWait

Defined in ​

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


__readyWait ​

â€ĸ Protected __readyWait: IFunction[] = []

Inherited from ​

Leafer.__readyWait

Defined in ​

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


__viewReadyWait ​

â€ĸ Protected __viewReadyWait: IFunction[] = []

Inherited from ​

Leafer.__viewReadyWait

Defined in ​

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


__viewCompletedWait ​

â€ĸ Protected __viewCompletedWait: IFunction[] = []

Inherited from ​

Leafer.__viewCompletedWait

Defined in ​

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


__nextRenderWait ​

â€ĸ __nextRenderWait: IFunction[] = []

Implementation of ​

IApp.__nextRenderWait

Inherited from ​

Leafer.__nextRenderWait

Defined in ​

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


proxyData ​

â€ĸ Optional proxyData: IUIInputData

Implementation of ​

IApp.proxyData

Inherited from ​

Leafer.proxyData

Defined in ​

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


__proxyData ​

â€ĸ Optional __proxyData: IUIInputData

Implementation of ​

IApp.__proxyData

Inherited from ​

Leafer.__proxyData

Defined in ​

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


leafer ​

â€ĸ Optional leafer: ILeafer

Implementation of ​

IApp.leafer

Inherited from ​

Leafer.leafer

Defined in ​

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


zoomLayer ​

â€ĸ zoomLayer: IGroup

Implementation of ​

IApp.zoomLayer

Inherited from ​

Leafer.zoomLayer

Defined in ​

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


id ​

â€ĸ Optional id: string

Implementation of ​

IApp.id

Inherited from ​

Leafer.id

Defined in ​

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


name ​

â€ĸ Optional name: string

Implementation of ​

IApp.name

Inherited from ​

Leafer.name

Defined in ​

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


className ​

â€ĸ Optional className: string

Implementation of ​

IApp.className

Inherited from ​

Leafer.className

Defined in ​

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


blendMode ​

â€ĸ Optional blendMode: IBlendMode

Implementation of ​

IApp.blendMode

Inherited from ​

Leafer.blendMode

Defined in ​

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


opacity ​

â€ĸ Optional opacity: number

Implementation of ​

IApp.opacity

Inherited from ​

Leafer.opacity

Defined in ​

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


visible ​

â€ĸ Optional visible: boolean | 0

Implementation of ​

IApp.visible

Inherited from ​

Leafer.visible

Defined in ​

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


selected ​

â€ĸ Optional selected: boolean

Implementation of ​

IApp.selected

Inherited from ​

Leafer.selected

Defined in ​

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


disabled ​

â€ĸ Optional disabled: boolean

Implementation of ​

IApp.disabled

Inherited from ​

Leafer.disabled

Defined in ​

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


locked ​

â€ĸ Optional locked: boolean

Implementation of ​

IApp.locked

Inherited from ​

Leafer.locked

Defined in ​

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


zIndex ​

â€ĸ Optional zIndex: number

Implementation of ​

IApp.zIndex

Inherited from ​

Leafer.zIndex

Defined in ​

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


mask ​

â€ĸ Optional mask: boolean | IMaskType

Implementation of ​

IApp.mask

Inherited from ​

Leafer.mask

Defined in ​

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


eraser ​

â€ĸ Optional eraser: boolean | IEraserType

Implementation of ​

IApp.eraser

Inherited from ​

Leafer.eraser

Defined in ​

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


x ​

â€ĸ Optional x: number

Implementation of ​

IApp.x

Inherited from ​

Leafer.x

Defined in ​

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


y ​

â€ĸ Optional y: number

Implementation of ​

IApp.y

Inherited from ​

Leafer.y

Defined in ​

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


width ​

â€ĸ Optional width: number

Implementation of ​

IApp.width

Inherited from ​

Leafer.width

Defined in ​

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


height ​

â€ĸ Optional height: number

Implementation of ​

IApp.height

Inherited from ​

Leafer.height

Defined in ​

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


scaleX ​

â€ĸ Optional scaleX: number

Implementation of ​

IApp.scaleX

Inherited from ​

Leafer.scaleX

Defined in ​

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


scaleY ​

â€ĸ Optional scaleY: number

Implementation of ​

IApp.scaleY

Inherited from ​

Leafer.scaleY

Defined in ​

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


rotation ​

â€ĸ Optional rotation: number

Implementation of ​

IApp.rotation

Inherited from ​

Leafer.rotation

Defined in ​

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


skewX ​

â€ĸ Optional skewX: number

Implementation of ​

IApp.skewX

Inherited from ​

Leafer.skewX

Defined in ​

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


skewY ​

â€ĸ Optional skewY: number

Implementation of ​

IApp.skewY

Inherited from ​

Leafer.skewY

Defined in ​

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


offsetX ​

â€ĸ Optional offsetX: number

Implementation of ​

IApp.offsetX

Inherited from ​

Leafer.offsetX

Defined in ​

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


offsetY ​

â€ĸ Optional offsetY: number

Implementation of ​

IApp.offsetY

Inherited from ​

Leafer.offsetY

Defined in ​

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


scrollX ​

â€ĸ Optional scrollX: number

Implementation of ​

IApp.scrollX

Inherited from ​

Leafer.scrollX

Defined in ​

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


scrollY ​

â€ĸ Optional scrollY: number

Implementation of ​

IApp.scrollY

Inherited from ​

Leafer.scrollY

Defined in ​

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


origin ​

â€ĸ Optional origin: IUnitPointData | IDirection

Implementation of ​

IApp.origin

Inherited from ​

Leafer.origin

Defined in ​

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


around ​

â€ĸ Optional around: IUnitPointData | IDirection

Implementation of ​

IApp.around

Inherited from ​

Leafer.around

Defined in ​

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


lazy ​

â€ĸ Optional lazy: boolean

Implementation of ​

IApp.lazy

Inherited from ​

Leafer.lazy

Defined in ​

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


path ​

â€ĸ Optional path: string | IPathCommandData

Implementation of ​

IApp.path

Inherited from ​

Leafer.path

Defined in ​

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


windingRule ​

â€ĸ Optional windingRule: IWindingRule

Implementation of ​

IApp.windingRule

Inherited from ​

Leafer.windingRule

Defined in ​

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


closed ​

â€ĸ Optional closed: boolean

Implementation of ​

IApp.closed

Inherited from ​

Leafer.closed

Defined in ​

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


flow ​

â€ĸ Optional flow: IFlowType

Implementation of ​

IApp.flow

Inherited from ​

Leafer.flow

Defined in ​

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


padding ​

â€ĸ Optional padding: IFourNumber

Implementation of ​

IApp.padding

Inherited from ​

Leafer.padding

Defined in ​

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


gap ​

â€ĸ Optional gap: IGap | IPointGap

Implementation of ​

IApp.gap

Inherited from ​

Leafer.gap

Defined in ​

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


flowAlign ​

â€ĸ Optional flowAlign: IFlowAlign | IFlowAxisAlign

Implementation of ​

IApp.flowAlign

Inherited from ​

Leafer.flowAlign

Defined in ​

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


flowWrap ​

â€ĸ Optional flowWrap: IFlowWrap

Implementation of ​

IApp.flowWrap

Inherited from ​

Leafer.flowWrap

Defined in ​

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


itemBox ​

â€ĸ Optional itemBox: IFlowBoxType

Implementation of ​

IApp.itemBox

Inherited from ​

Leafer.itemBox

Defined in ​

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


inFlow ​

â€ĸ Optional inFlow: boolean

Implementation of ​

IApp.inFlow

Inherited from ​

Leafer.inFlow

Defined in ​

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


autoWidth ​

â€ĸ Optional autoWidth: IAutoSize

Implementation of ​

IApp.autoWidth

Inherited from ​

Leafer.autoWidth

Defined in ​

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


autoHeight ​

â€ĸ Optional autoHeight: IAutoSize

Implementation of ​

IApp.autoHeight

Inherited from ​

Leafer.autoHeight

Defined in ​

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


lockRatio ​

â€ĸ Optional lockRatio: boolean

Implementation of ​

IApp.lockRatio

Inherited from ​

Leafer.lockRatio

Defined in ​

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


autoBox ​

â€ĸ Optional autoBox: IAutoBoxData | IConstraint

Implementation of ​

IApp.autoBox

Inherited from ​

Leafer.autoBox

Defined in ​

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


widthRange ​

â€ĸ Optional widthRange: IRangeSize

Implementation of ​

IApp.widthRange

Inherited from ​

Leafer.widthRange

Defined in ​

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


heightRange ​

â€ĸ Optional heightRange: IRangeSize

Implementation of ​

IApp.heightRange

Inherited from ​

Leafer.heightRange

Defined in ​

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


draggable ​

â€ĸ Optional draggable: boolean | IAxis

Implementation of ​

IApp.draggable

Inherited from ​

Leafer.draggable

Defined in ​

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


dragBounds ​

â€ĸ Optional dragBounds: "parent" | IBoundsData

Implementation of ​

IApp.dragBounds

Inherited from ​

Leafer.dragBounds

Defined in ​

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


editable ​

â€ĸ Optional editable: boolean

Implementation of ​

IApp.editable

Inherited from ​

Leafer.editable

Defined in ​

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


hittable ​

â€ĸ Optional hittable: boolean

Implementation of ​

IApp.hittable

Inherited from ​

Leafer.hittable

Defined in ​

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


hitFill ​

â€ĸ Optional hitFill: IHitType

Implementation of ​

IApp.hitFill

Inherited from ​

Leafer.hitFill

Defined in ​

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


hitStroke ​

â€ĸ Optional hitStroke: IHitType

Implementation of ​

IApp.hitStroke

Inherited from ​

Leafer.hitStroke

Defined in ​

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


hitBox ​

â€ĸ Optional hitBox: boolean

Implementation of ​

IApp.hitBox

Inherited from ​

Leafer.hitBox

Defined in ​

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


hitChildren ​

â€ĸ Optional hitChildren: boolean

Implementation of ​

IApp.hitChildren

Inherited from ​

Leafer.hitChildren

Defined in ​

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


hitSelf ​

â€ĸ Optional hitSelf: boolean

Implementation of ​

IApp.hitSelf

Inherited from ​

Leafer.hitSelf

Defined in ​

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


hitRadius ​

â€ĸ Optional hitRadius: number

Implementation of ​

IApp.hitRadius

Inherited from ​

Leafer.hitRadius

Defined in ​

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


cursor ​

â€ĸ Optional cursor: ICursorType | ICursorType[]

Implementation of ​

IApp.cursor

Inherited from ​

Leafer.cursor

Defined in ​

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


fill ​

â€ĸ Optional fill: IFill

Implementation of ​

IApp.fill

Inherited from ​

Leafer.fill

Defined in ​

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


stroke ​

â€ĸ Optional stroke: IStroke

Implementation of ​

IApp.stroke

Inherited from ​

Leafer.stroke

Defined in ​

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


strokeAlign ​

â€ĸ Optional strokeAlign: IStrokeAlign

Implementation of ​

IApp.strokeAlign

Inherited from ​

Leafer.strokeAlign

Defined in ​

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


strokeWidth ​

â€ĸ Optional strokeWidth: string | IFourNumber

Implementation of ​

IApp.strokeWidth

Inherited from ​

Leafer.strokeWidth

Defined in ​

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


strokeWidthFixed ​

â€ĸ Optional strokeWidthFixed: boolean

Implementation of ​

IApp.strokeWidthFixed

Inherited from ​

Leafer.strokeWidthFixed

Defined in ​

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


strokeCap ​

â€ĸ Optional strokeCap: IStrokeCap

Implementation of ​

IApp.strokeCap

Inherited from ​

Leafer.strokeCap

Defined in ​

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


strokeJoin ​

â€ĸ Optional strokeJoin: IStrokeJoin

Implementation of ​

IApp.strokeJoin

Inherited from ​

Leafer.strokeJoin

Defined in ​

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


dashPattern ​

â€ĸ Optional dashPattern: string | number[]

Implementation of ​

IApp.dashPattern

Inherited from ​

Leafer.dashPattern

Defined in ​

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


dashOffset ​

â€ĸ Optional dashOffset: number

Implementation of ​

IApp.dashOffset

Inherited from ​

Leafer.dashOffset

Defined in ​

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


miterLimit ​

â€ĸ Optional miterLimit: number

Implementation of ​

IApp.miterLimit

Inherited from ​

Leafer.miterLimit

Defined in ​

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


startArrow ​

â€ĸ Optional startArrow: IArrowType

Implementation of ​

IApp.startArrow

Inherited from ​

Leafer.startArrow

Defined in ​

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


endArrow ​

â€ĸ Optional endArrow: IArrowType

Implementation of ​

IApp.endArrow

Inherited from ​

Leafer.endArrow

Defined in ​

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


cornerRadius ​

â€ĸ Optional cornerRadius: string | IFourNumber

Implementation of ​

IApp.cornerRadius

Inherited from ​

Leafer.cornerRadius

Defined in ​

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


cornerSmoothing ​

â€ĸ Optional cornerSmoothing: number

Implementation of ​

IApp.cornerSmoothing

Inherited from ​

Leafer.cornerSmoothing

Defined in ​

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


shadow ​

â€ĸ Optional shadow: string | IShadowEffect | IShadowEffect[]

Implementation of ​

IApp.shadow

Inherited from ​

Leafer.shadow

Defined in ​

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


innerShadow ​

â€ĸ Optional innerShadow: string | IShadowEffect | IShadowEffect[]

Implementation of ​

IApp.innerShadow

Inherited from ​

Leafer.innerShadow

Defined in ​

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


blur ​

â€ĸ Optional blur: number | IBlurEffect

Implementation of ​

IApp.blur

Inherited from ​

Leafer.blur

Defined in ​

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


backgroundBlur ​

â€ĸ Optional backgroundBlur: number | IBlurEffect

Implementation of ​

IApp.backgroundBlur

Inherited from ​

Leafer.backgroundBlur

Defined in ​

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


grayscale ​

â€ĸ Optional grayscale: number | IGrayscaleEffect

Implementation of ​

IApp.grayscale

Inherited from ​

Leafer.grayscale

Defined in ​

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


normalStyle ​

â€ĸ Optional normalStyle: IUIInputData

Implementation of ​

IApp.normalStyle

Inherited from ​

Leafer.normalStyle

Defined in ​

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


hoverStyle ​

â€ĸ Optional hoverStyle: IUIInputData

Implementation of ​

IApp.hoverStyle

Inherited from ​

Leafer.hoverStyle

Defined in ​

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


pressStyle ​

â€ĸ Optional pressStyle: IUIInputData

Implementation of ​

IApp.pressStyle

Inherited from ​

Leafer.pressStyle

Defined in ​

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


focusStyle ​

â€ĸ Optional focusStyle: IUIInputData

Implementation of ​

IApp.focusStyle

Inherited from ​

Leafer.focusStyle

Defined in ​

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


selectedStyle ​

â€ĸ Optional selectedStyle: IUIInputData

Implementation of ​

IApp.selectedStyle

Inherited from ​

Leafer.selectedStyle

Defined in ​

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


disabledStyle ​

â€ĸ Optional disabledStyle: IUIInputData

Implementation of ​

IApp.disabledStyle

Inherited from ​

Leafer.disabledStyle

Defined in ​

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


data ​

â€ĸ data: IObject

Implementation of ​

IApp.data

Inherited from ​

Leafer.data

Defined in ​

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

Accessors ​

tag ​

â€ĸ get tag(): string

Returns ​

string

Implementation of ​

IApp.tag

Inherited from ​

Leafer.tag

Defined in ​

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

â€ĸ set tag(_value): void

Parameters ​

NameType
_valuestring

Returns ​

void

Implementation of ​

IApp.tag

Inherited from ​

Leafer.tag

Defined in ​

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


innerName ​

â€ĸ get innerName(): string

Returns ​

string

Implementation of ​

IApp.innerName

Inherited from ​

Leafer.innerName

Defined in ​

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


__DataProcessor ​

â€ĸ get __DataProcessor(): typeof LeafData

Returns ​

typeof LeafData

Implementation of ​

IApp.__DataProcessor

Inherited from ​

Leafer.__DataProcessor

Defined in ​

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


__LayoutProcessor ​

â€ĸ get __LayoutProcessor(): typeof LeafLayout

Returns ​

typeof LeafLayout

Implementation of ​

IApp.__LayoutProcessor

Inherited from ​

Leafer.__LayoutProcessor

Defined in ​

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


isBranchLeaf ​

â€ĸ get isBranchLeaf(): boolean

Returns ​

boolean

Implementation of ​

IApp.isBranchLeaf

Inherited from ​

Leafer.isBranchLeaf

Defined in ​

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


__localMatrix ​

â€ĸ get __localMatrix(): IMatrixData

Returns ​

IMatrixData

Implementation of ​

IApp.__localMatrix

Inherited from ​

Leafer.__localMatrix

Defined in ​

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


__localBoxBounds ​

â€ĸ get __localBoxBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

IApp.__localBoxBounds

Inherited from ​

Leafer.__localBoxBounds

Defined in ​

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


worldTransform ​

â€ĸ get worldTransform(): IMatrixWithScaleData

Returns ​

IMatrixWithScaleData

Implementation of ​

IApp.worldTransform

Inherited from ​

Leafer.worldTransform

Defined in ​

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


localTransform ​

â€ĸ get localTransform(): IMatrixData

Returns ​

IMatrixData

Implementation of ​

IApp.localTransform

Inherited from ​

Leafer.localTransform

Defined in ​

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


boxBounds ​

â€ĸ get boxBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

IApp.boxBounds

Inherited from ​

Leafer.boxBounds

Defined in ​

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


renderBounds ​

â€ĸ get renderBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

IApp.renderBounds

Inherited from ​

Leafer.renderBounds

Defined in ​

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


worldBoxBounds ​

â€ĸ get worldBoxBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

IApp.worldBoxBounds

Inherited from ​

Leafer.worldBoxBounds

Defined in ​

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


worldStrokeBounds ​

â€ĸ get worldStrokeBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

IApp.worldStrokeBounds

Inherited from ​

Leafer.worldStrokeBounds

Defined in ​

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


worldRenderBounds ​

â€ĸ get worldRenderBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

IApp.worldRenderBounds

Inherited from ​

Leafer.worldRenderBounds

Defined in ​

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


worldOpacity ​

â€ĸ get worldOpacity(): number

Returns ​

number

Implementation of ​

IApp.worldOpacity

Inherited from ​

Leafer.worldOpacity

Defined in ​

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


__worldFlipped ​

â€ĸ get __worldFlipped(): boolean

Returns ​

boolean

Implementation of ​

IApp.__worldFlipped

Inherited from ​

Leafer.__worldFlipped

Defined in ​

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


__onlyHitMask ​

â€ĸ get __onlyHitMask(): boolean

Returns ​

boolean

Implementation of ​

IApp.__onlyHitMask

Inherited from ​

Leafer.__onlyHitMask

Defined in ​

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


__ignoreHitWorld ​

â€ĸ get __ignoreHitWorld(): boolean

Returns ​

boolean

Implementation of ​

IApp.__ignoreHitWorld

Inherited from ​

Leafer.__ignoreHitWorld

Defined in ​

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


__inLazyBounds ​

â€ĸ get __inLazyBounds(): boolean

Returns ​

boolean

Implementation of ​

IApp.__inLazyBounds

Inherited from ​

Leafer.__inLazyBounds

Defined in ​

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


pathInputed ​

â€ĸ get pathInputed(): boolean

Returns ​

boolean

Implementation of ​

IApp.pathInputed

Inherited from ​

Leafer.pathInputed

Defined in ​

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


event ​

â€ĸ set event(map): void

Parameters ​

NameType
mapIEventMap

Returns ​

void

Implementation of ​

IApp.event

Inherited from ​

Leafer.event

Defined in ​

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


__tag ​

â€ĸ get __tag(): string

Returns ​

string

Implementation of ​

IApp.__tag

Overrides ​

Leafer.__tag

Defined in ​

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


isApp ​

â€ĸ get isApp(): boolean

Returns ​

boolean

Implementation of ​

IApp.isApp

Overrides ​

Leafer.isApp

Defined in ​

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


isBranch ​

â€ĸ get isBranch(): boolean

Returns ​

boolean

Implementation of ​

IApp.isBranch

Inherited from ​

Leafer.isBranch

Defined in ​

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


app ​

â€ĸ get app(): ILeafer

Returns ​

ILeafer

Implementation of ​

IApp.app

Inherited from ​

Leafer.app

Defined in ​

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


isLeafer ​

â€ĸ get isLeafer(): boolean

Returns ​

boolean

Implementation of ​

IApp.isLeafer

Inherited from ​

Leafer.isLeafer

Defined in ​

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


imageReady ​

â€ĸ get imageReady(): boolean

Returns ​

boolean

Implementation of ​

IApp.imageReady

Inherited from ​

Leafer.imageReady

Defined in ​

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


layoutLocked ​

â€ĸ get layoutLocked(): boolean

Returns ​

boolean

Implementation of ​

IApp.layoutLocked

Inherited from ​

Leafer.layoutLocked

Defined in ​

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


FPS ​

â€ĸ get FPS(): number

Returns ​

number

Inherited from ​

Leafer.FPS

Defined in ​

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


cursorPoint ​

â€ĸ get cursorPoint(): IPointData

Returns ​

IPointData

Implementation of ​

IApp.cursorPoint

Inherited from ​

Leafer.cursorPoint

Defined in ​

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


clientBounds ​

â€ĸ get clientBounds(): IBoundsData

Returns ​

IBoundsData

Implementation of ​

IApp.clientBounds

Inherited from ​

Leafer.clientBounds

Defined in ​

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


isFrame ​

â€ĸ get isFrame(): boolean

Returns ​

boolean

Implementation of ​

IApp.isFrame

Inherited from ​

Leafer.isFrame

Defined in ​

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


scale ​

â€ĸ get scale(): number | IPointData

Returns ​

number | IPointData

Implementation of ​

IApp.scale

Inherited from ​

Leafer.scale

Defined in ​

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

â€ĸ set scale(value): void

Parameters ​

NameType
valuenumber | IPointData

Returns ​

void

Implementation of ​

IApp.scale

Inherited from ​

Leafer.scale

Defined in ​

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


pen ​

â€ĸ get pen(): IPathCreator

Returns ​

IPathCreator

Implementation of ​

IApp.pen

Inherited from ​

Leafer.pen

Defined in ​

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


editConfig ​

â€ĸ get editConfig(): IEditorConfig

Returns ​

IEditorConfig

Implementation of ​

IApp.editConfig

Inherited from ​

Leafer.editConfig

Defined in ​

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


editOuter ​

â€ĸ get editOuter(): string

Returns ​

string

Implementation of ​

IApp.editOuter

Inherited from ​

Leafer.editOuter

Defined in ​

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


editInner ​

â€ĸ get editInner(): string

Returns ​

string

Implementation of ​

IApp.editInner

Inherited from ​

Leafer.editInner

Defined in ​

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

Methods ​

resetCustom ​

▸ resetCustom(): void

Returns ​

void

Implementation of ​

IApp.resetCustom

Inherited from ​

Leafer.resetCustom

Defined in ​

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


waitParent ​

▸ waitParent(item, bind?): void

Parameters ​

NameType
itemIFunction
bind?IObject

Returns ​

void

Implementation of ​

IApp.waitParent

Inherited from ​

Leafer.waitParent

Defined in ​

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


waitLeafer ​

▸ waitLeafer(item, bind?): void

Parameters ​

NameType
itemIFunction
bind?IObject

Returns ​

void

Implementation of ​

IApp.waitLeafer

Inherited from ​

Leafer.waitLeafer

Defined in ​

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


removeNextRender ​

▸ removeNextRender(item): void

Parameters ​

NameType
itemIFunction

Returns ​

void

Implementation of ​

IApp.removeNextRender

Inherited from ​

Leafer.removeNextRender

Defined in ​

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


__bindLeafer ​

▸ __bindLeafer(leafer): void

Parameters ​

NameType
leaferILeaferBase

Returns ​

void

Implementation of ​

IApp.__bindLeafer

Inherited from ​

Leafer.__bindLeafer

Defined in ​

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


setAttr ​

▸ setAttr(name, value): void

Parameters ​

NameType
namestring
valueany

Returns ​

void

Implementation of ​

IApp.setAttr

Inherited from ​

Leafer.setAttr

Defined in ​

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


getAttr ​

▸ getAttr(name): any

Parameters ​

NameType
namestring

Returns ​

any

Implementation of ​

IApp.getAttr

Inherited from ​

Leafer.getAttr

Defined in ​

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


getComputedAttr ​

▸ getComputedAttr(name): any

Parameters ​

NameType
namestring

Returns ​

any

Implementation of ​

IApp.getComputedAttr

Inherited from ​

Leafer.getComputedAttr

Defined in ​

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


toString ​

▸ toString(options?): string

Parameters ​

NameType
options?IJSONOptions

Returns ​

string

Implementation of ​

IApp.toString

Inherited from ​

Leafer.toString

Defined in ​

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


toSVG ​

▸ toSVG(): string

Returns ​

string

Implementation of ​

IApp.toSVG

Inherited from ​

Leafer.toSVG

Defined in ​

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


__SVG ​

▸ __SVG(_data): void

Parameters ​

NameType
_dataIObject

Returns ​

void

Implementation of ​

IApp.__SVG

Inherited from ​

Leafer.__SVG

Defined in ​

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


toHTML ​

▸ toHTML(): string

Returns ​

string

Implementation of ​

IApp.toHTML

Inherited from ​

Leafer.toHTML

Defined in ​

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


setProxyAttr ​

▸ setProxyAttr(_attrName, _newValue): void

Parameters ​

NameType
_attrNamestring
_newValueIValue

Returns ​

void

Implementation of ​

IApp.setProxyAttr

Inherited from ​

Leafer.setProxyAttr

Defined in ​

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


getProxyAttr ​

▸ getProxyAttr(_attrName): IValue

Parameters ​

NameType
_attrNamestring

Returns ​

IValue

Implementation of ​

IApp.getProxyAttr

Inherited from ​

Leafer.getProxyAttr

Defined in ​

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


focus ​

▸ focus(_value?): void

Parameters ​

NameType
_value?boolean

Returns ​

void

Implementation of ​

IApp.focus

Inherited from ​

Leafer.focus

Defined in ​

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


updateLayout ​

▸ updateLayout(): void

Returns ​

void

Implementation of ​

IApp.updateLayout

Inherited from ​

Leafer.updateLayout

Defined in ​

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


forceUpdate ​

▸ forceUpdate(attrName?): void

Parameters ​

NameType
attrName?string

Returns ​

void

Implementation of ​

IApp.forceUpdate

Inherited from ​

Leafer.forceUpdate

Defined in ​

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


__updateWorldMatrix ​

▸ __updateWorldMatrix(): void

Returns ​

void

Implementation of ​

IApp.__updateWorldMatrix

Inherited from ​

Leafer.__updateWorldMatrix

Defined in ​

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


__updateLocalMatrix ​

▸ __updateLocalMatrix(): void

Returns ​

void

Implementation of ​

IApp.__updateLocalMatrix

Inherited from ​

Leafer.__updateLocalMatrix

Defined in ​

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


__updateWorldBounds ​

▸ __updateWorldBounds(): void

Returns ​

void

Implementation of ​

IApp.__updateWorldBounds

Inherited from ​

Leafer.__updateWorldBounds

Defined in ​

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


__updateLocalBounds ​

▸ __updateLocalBounds(): void

Returns ​

void

Implementation of ​

IApp.__updateLocalBounds

Inherited from ​

Leafer.__updateLocalBounds

Defined in ​

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


__updateLocalBoxBounds ​

▸ __updateLocalBoxBounds(): void

Returns ​

void

Implementation of ​

IApp.__updateLocalBoxBounds

Inherited from ​

Leafer.__updateLocalBoxBounds

Defined in ​

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


__updateLocalStrokeBounds ​

▸ __updateLocalStrokeBounds(): void

Returns ​

void

Implementation of ​

IApp.__updateLocalStrokeBounds

Inherited from ​

Leafer.__updateLocalStrokeBounds

Defined in ​

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


__updateLocalRenderBounds ​

▸ __updateLocalRenderBounds(): void

Returns ​

void

Implementation of ​

IApp.__updateLocalRenderBounds

Inherited from ​

Leafer.__updateLocalRenderBounds

Defined in ​

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


__updateBoxBounds ​

▸ __updateBoxBounds(): void

Returns ​

void

Implementation of ​

IApp.__updateBoxBounds

Inherited from ​

Leafer.__updateBoxBounds

Defined in ​

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


__updateContentBounds ​

▸ __updateContentBounds(): void

Returns ​

void

Implementation of ​

IApp.__updateContentBounds

Inherited from ​

Leafer.__updateContentBounds

Defined in ​

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


__updateStrokeBounds ​

▸ __updateStrokeBounds(): void

Returns ​

void

Implementation of ​

IApp.__updateStrokeBounds

Inherited from ​

Leafer.__updateStrokeBounds

Defined in ​

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


__updateRenderBounds ​

▸ __updateRenderBounds(): void

Returns ​

void

Implementation of ​

IApp.__updateRenderBounds

Inherited from ​

Leafer.__updateRenderBounds

Defined in ​

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


__updateAutoLayout ​

▸ __updateAutoLayout(): void

Returns ​

void

Implementation of ​

IApp.__updateAutoLayout

Inherited from ​

Leafer.__updateAutoLayout

Defined in ​

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


__updateFlowLayout ​

▸ __updateFlowLayout(): void

Returns ​

void

Implementation of ​

IApp.__updateFlowLayout

Inherited from ​

Leafer.__updateFlowLayout

Defined in ​

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


__updateNaturalSize ​

▸ __updateNaturalSize(): void

Returns ​

void

Implementation of ​

IApp.__updateNaturalSize

Inherited from ​

Leafer.__updateNaturalSize

Defined in ​

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


__updateStrokeSpread ​

▸ __updateStrokeSpread(): number

Returns ​

number

Implementation of ​

IApp.__updateStrokeSpread

Inherited from ​

Leafer.__updateStrokeSpread

Defined in ​

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


__updateRenderSpread ​

▸ __updateRenderSpread(): number

Returns ​

number

Implementation of ​

IApp.__updateRenderSpread

Inherited from ​

Leafer.__updateRenderSpread

Defined in ​

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


__updateEraser ​

▸ __updateEraser(value?): void

Parameters ​

NameType
value?boolean

Returns ​

void

Implementation of ​

IApp.__updateEraser

Inherited from ​

Leafer.__updateEraser

Defined in ​

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


__renderEraser ​

▸ __renderEraser(canvas, options): void

Parameters ​

NameType
canvasILeaferCanvas
optionsIRenderOptions

Returns ​

void

Implementation of ​

IApp.__renderEraser

Inherited from ​

Leafer.__renderEraser

Defined in ​

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


__updateMask ​

▸ __updateMask(value?): void

Parameters ​

NameType
value?boolean

Returns ​

void

Implementation of ​

IApp.__updateMask

Inherited from ​

Leafer.__updateMask

Defined in ​

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


__renderMask ​

▸ __renderMask(_canvas, _options): void

Parameters ​

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns ​

void

Implementation of ​

IApp.__renderMask

Inherited from ​

Leafer.__renderMask

Defined in ​

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


__getNowWorld ​

▸ __getNowWorld(options): IMatrixWithBoundsScaleData

Parameters ​

NameType
optionsIRenderOptions

Returns ​

IMatrixWithBoundsScaleData

Implementation of ​

IApp.__getNowWorld

Inherited from ​

Leafer.__getNowWorld

Defined in ​

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


getTransform ​

▸ getTransform(relative?): IMatrixData

Parameters ​

NameType
relative?ILeaf | ILocationType

Returns ​

IMatrixData

Implementation of ​

IApp.getTransform

Inherited from ​

Leafer.getTransform

Defined in ​

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


getBounds ​

▸ getBounds(type?, relative?): IBoundsData

Parameters ​

NameType
type?IBoundsType
relative?ILeaf | ILocationType

Returns ​

IBoundsData

Implementation of ​

IApp.getBounds

Inherited from ​

Leafer.getBounds

Defined in ​

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


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 ​

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


getLayoutPoints ​

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

Parameters ​

NameType
type?IBoundsType
relative?ILeaf | ILocationType

Returns ​

IPointData[]

Implementation of ​

IApp.getLayoutPoints

Inherited from ​

Leafer.getLayoutPoints

Defined in ​

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


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 ​

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


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 ​

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


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 ​

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


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 ​

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


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 ​

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


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 ​

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


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 ​

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


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 ​

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


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 ​

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


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 ​

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


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 ​

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


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 ​

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


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 ​

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


setTransform ​

▸ setTransform(matrix, resize?): void

Parameters ​

NameType
matrixIMatrixData
resize?boolean

Returns ​

void

Implementation of ​

IApp.setTransform

Inherited from ​

Leafer.setTransform

Defined in ​

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


transform ​

▸ transform(matrix, resize?): void

Parameters ​

NameType
matrixIMatrixData
resize?boolean

Returns ​

void

Implementation of ​

IApp.transform

Inherited from ​

Leafer.transform

Defined in ​

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


move ​

▸ move(x, y?): void

Parameters ​

NameType
xnumber | IPointData
y?number

Returns ​

void

Implementation of ​

IApp.move

Inherited from ​

Leafer.move

Defined in ​

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


moveInner ​

▸ moveInner(x, y?): void

Parameters ​

NameType
xnumber | IPointData
y?number

Returns ​

void

Implementation of ​

IApp.moveInner

Inherited from ​

Leafer.moveInner

Defined in ​

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


scaleOf ​

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

Parameters ​

NameType
originIPointData | IDirection
scaleXnumber
scaleY?number
resize?boolean

Returns ​

void

Implementation of ​

IApp.scaleOf

Inherited from ​

Leafer.scaleOf

Defined in ​

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


rotateOf ​

▸ rotateOf(origin, rotation): void

Parameters ​

NameType
originIPointData | IDirection
rotationnumber

Returns ​

void

Implementation of ​

IApp.rotateOf

Inherited from ​

Leafer.rotateOf

Defined in ​

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


skewOf ​

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

Parameters ​

NameType
originIPointData | IDirection
skewXnumber
skewY?number
resize?boolean

Returns ​

void

Implementation of ​

IApp.skewOf

Inherited from ​

Leafer.skewOf

Defined in ​

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


transformWorld ​

▸ transformWorld(worldTransform?, resize?): void

Parameters ​

NameType
worldTransform?IMatrixData
resize?boolean

Returns ​

void

Implementation of ​

IApp.transformWorld

Inherited from ​

Leafer.transformWorld

Defined in ​

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


moveWorld ​

▸ moveWorld(x, y?): void

Parameters ​

NameType
xnumber | IPointData
y?number

Returns ​

void

Implementation of ​

IApp.moveWorld

Inherited from ​

Leafer.moveWorld

Defined in ​

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


scaleOfWorld ​

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

Parameters ​

NameType
worldOriginIPointData
scaleXnumber
scaleY?number
resize?boolean

Returns ​

void

Implementation of ​

IApp.scaleOfWorld

Inherited from ​

Leafer.scaleOfWorld

Defined in ​

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


rotateOfWorld ​

▸ rotateOfWorld(worldOrigin, rotation): void

Parameters ​

NameType
worldOriginIPointData
rotationnumber

Returns ​

void

Implementation of ​

IApp.rotateOfWorld

Inherited from ​

Leafer.rotateOfWorld

Defined in ​

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


skewOfWorld ​

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

Parameters ​

NameType
worldOriginIPointData
skewXnumber
skewY?number
resize?boolean

Returns ​

void

Implementation of ​

IApp.skewOfWorld

Inherited from ​

Leafer.skewOfWorld

Defined in ​

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


flip ​

▸ flip(axis): void

Parameters ​

NameType
axisIAxis

Returns ​

void

Implementation of ​

IApp.flip

Inherited from ​

Leafer.flip

Defined in ​

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


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 ​

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


__scaleResize ​

▸ __scaleResize(_scaleX, _scaleY): void

Parameters ​

NameType
_scaleXnumber
_scaleYnumber

Returns ​

void

Implementation of ​

IApp.__scaleResize

Inherited from ​

Leafer.__scaleResize

Defined in ​

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


resizeWidth ​

▸ resizeWidth(_width): void

Parameters ​

NameType
_widthnumber

Returns ​

void

Implementation of ​

IApp.resizeWidth

Inherited from ​

Leafer.resizeWidth

Defined in ​

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


resizeHeight ​

▸ resizeHeight(_height): void

Parameters ​

NameType
_heightnumber

Returns ​

void

Implementation of ​

IApp.resizeHeight

Inherited from ​

Leafer.resizeHeight

Defined in ​

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


__hitWorld ​

▸ __hitWorld(_point): boolean

Parameters ​

NameType
_pointIRadiusPointData

Returns ​

boolean

Implementation of ​

IApp.__hitWorld

Inherited from ​

Leafer.__hitWorld

Defined in ​

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


__hit ​

▸ __hit(_local): boolean

Parameters ​

NameType
_localIRadiusPointData

Returns ​

boolean

Implementation of ​

IApp.__hit

Inherited from ​

Leafer.__hit

Defined in ​

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


__hitFill ​

▸ __hitFill(_inner): boolean

Parameters ​

NameType
_innerIRadiusPointData

Returns ​

boolean

Implementation of ​

IApp.__hitFill

Inherited from ​

Leafer.__hitFill

Defined in ​

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


__hitStroke ​

▸ __hitStroke(_inner, _strokeWidth): boolean

Parameters ​

NameType
_innerIRadiusPointData
_strokeWidthnumber

Returns ​

boolean

Implementation of ​

IApp.__hitStroke

Inherited from ​

Leafer.__hitStroke

Defined in ​

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


__hitPixel ​

▸ __hitPixel(_inner): boolean

Parameters ​

NameType
_innerIRadiusPointData

Returns ​

boolean

Implementation of ​

IApp.__hitPixel

Inherited from ​

Leafer.__hitPixel

Defined in ​

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


__drawHitPath ​

▸ __drawHitPath(_canvas): void

Parameters ​

NameType
_canvasILeaferCanvas

Returns ​

void

Implementation of ​

IApp.__drawHitPath

Inherited from ​

Leafer.__drawHitPath

Defined in ​

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


__updateHitCanvas ​

▸ __updateHitCanvas(): void

Returns ​

void

Implementation of ​

IApp.__updateHitCanvas

Inherited from ​

Leafer.__updateHitCanvas

Defined in ​

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


__drawFast ​

▸ __drawFast(_canvas, _options): void

Parameters ​

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns ​

void

Implementation of ​

IApp.__drawFast

Inherited from ​

Leafer.__drawFast

Defined in ​

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


__draw ​

▸ __draw(_canvas, _options): void

Parameters ​

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns ​

void

Implementation of ​

IApp.__draw

Inherited from ​

Leafer.__draw

Defined in ​

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


__clip ​

▸ __clip(_canvas, _options): void

Parameters ​

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns ​

void

Implementation of ​

IApp.__clip

Inherited from ​

Leafer.__clip

Defined in ​

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


__renderShape ​

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

Parameters ​

NameType
_canvasILeaferCanvas
_optionsIRenderOptions
_ignoreFill?boolean
_ignoreStroke?boolean

Returns ​

void

Implementation of ​

IApp.__renderShape

Inherited from ​

Leafer.__renderShape

Defined in ​

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


__updateWorldOpacity ​

▸ __updateWorldOpacity(): void

Returns ​

void

Implementation of ​

IApp.__updateWorldOpacity

Inherited from ​

Leafer.__updateWorldOpacity

Defined in ​

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


__updateChange ​

▸ __updateChange(): void

Returns ​

void

Implementation of ​

IApp.__updateChange

Inherited from ​

Leafer.__updateChange

Defined in ​

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


__updatePath ​

▸ __updatePath(): void

Returns ​

void

Implementation of ​

IApp.__updatePath

Inherited from ​

Leafer.__updatePath

Defined in ​

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


__updateSortChildren ​

▸ __updateSortChildren(): void

Returns ​

void

Implementation of ​

IApp.__updateSortChildren

Inherited from ​

Leafer.__updateSortChildren

Defined in ​

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


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 ​

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


on ​

▸ on(_type, _listener, _options?): void

Parameters ​

NameType
_typestring | string[]
_listenerIFunction
_options?IEventOption

Returns ​

void

Implementation of ​

IApp.on

Inherited from ​

Leafer.on

Defined in ​

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


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 ​

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


on_ ​

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

Parameters ​

NameType
_typestring | string[]
_listenerIFunction
_bind?IObject
_options?IEventOption

Returns ​

IEventListenerId

Implementation of ​

IApp.on_

Inherited from ​

Leafer.on_

Defined in ​

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


off_ ​

▸ off_(_id): void

Parameters ​

NameType
_idIEventListenerId | IEventListenerId[]

Returns ​

void

Implementation of ​

IApp.off_

Inherited from ​

Leafer.off_

Defined in ​

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


once ​

▸ once(_type, _listener, _capture?): void

Parameters ​

NameType
_typestring | string[]
_listenerIFunction
_capture?boolean

Returns ​

void

Implementation of ​

IApp.once

Inherited from ​

Leafer.once

Defined in ​

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


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 ​

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


emitEvent ​

▸ emitEvent(_event?, _capture?): void

Parameters ​

NameType
_event?IEvent
_capture?boolean

Returns ​

void

Implementation of ​

IApp.emitEvent

Inherited from ​

Leafer.emitEvent

Defined in ​

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


hasEvent ​

▸ hasEvent(_type, _capture?): boolean

Parameters ​

NameType
_typestring
_capture?boolean

Returns ​

boolean

Implementation of ​

IApp.hasEvent

Inherited from ​

Leafer.hasEvent

Defined in ​

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


changeAttr ​

▸ changeAttr(attrName, defaultValue, fn?): void

Parameters ​

NameType
attrNamestring
defaultValueIValue
fn?IAttrDecorator

Returns ​

void

Inherited from ​

Leafer.changeAttr

Defined in ​

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


addAttr ​

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

Parameters ​

NameType
attrNamestring
defaultValueIValue
fn?IAttrDecorator

Returns ​

void

Inherited from ​

Leafer.addAttr

Defined in ​

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


init ​

▸ init(userConfig?, parentApp?): void

Parameters ​

NameType
userConfig?IAppConfig
parentApp?IApp

Returns ​

void

Implementation of ​

IApp.init

Overrides ​

Leafer.init

Defined in ​

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


__setApp ​

▸ __setApp(): void

Returns ​

void

Overrides ​

Leafer.__setApp

Defined in ​

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


start ​

▸ start(): void

Returns ​

void

Implementation of ​

IApp.start

Overrides ​

Leafer.start

Defined in ​

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


stop ​

▸ stop(): void

Returns ​

void

Implementation of ​

IApp.stop

Overrides ​

Leafer.stop

Defined in ​

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


unlockLayout ​

▸ unlockLayout(): void

Returns ​

void

Implementation of ​

IApp.unlockLayout

Overrides ​

Leafer.unlockLayout

Defined in ​

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


lockLayout ​

▸ lockLayout(): void

Returns ​

void

Implementation of ​

IApp.lockLayout

Overrides ​

Leafer.lockLayout

Defined in ​

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


forceRender ​

▸ forceRender(bounds?): void

Parameters ​

NameType
bounds?IBoundsData

Returns ​

void

Implementation of ​

IApp.forceRender

Overrides ​

Leafer.forceRender

Defined in ​

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


addLeafer ​

▸ addLeafer(merge?): Leafer

Parameters ​

NameType
merge?ILeaferConfig

Returns ​

Leafer

Defined in ​

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


add ​

▸ add(leafer, index?): void

Parameters ​

NameType
leaferILeafer
index?number

Returns ​

void

Implementation of ​

IApp.add

Overrides ​

Leafer.add

Defined in ​

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


__onPropertyChange ​

▸ __onPropertyChange(): void

Returns ​

void

Defined in ​

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


__onCreated ​

▸ __onCreated(): void

Returns ​

void

Overrides ​

Leafer.__onCreated

Defined in ​

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


__onReady ​

▸ __onReady(): void

Returns ​

void

Overrides ​

Leafer.__onReady

Defined in ​

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


__onViewReady ​

▸ __onViewReady(): void

Returns ​

void

Overrides ​

Leafer.__onViewReady

Defined in ​

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


__onChildRenderEnd ​

▸ __onChildRenderEnd(e): void

Parameters ​

NameType
eRenderEvent

Returns ​

void

Defined in ​

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


__render ​

▸ __render(canvas, options): void

Parameters ​

NameType
canvasILeaferCanvas
optionsIRenderOptions

Returns ​

void

Implementation of ​

IApp.__render

Overrides ​

Leafer.__render

Defined in ​

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


__onResize ​

▸ __onResize(event): void

Parameters ​

NameType
eventIResizeEvent

Returns ​

void

Overrides ​

Leafer.__onResize

Defined in ​

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


__checkUpdateLayout ​

▸ __checkUpdateLayout(): void

Returns ​

void

Overrides ​

Leafer.__checkUpdateLayout

Defined in ​

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


__getChildConfig ​

▸ __getChildConfig(userConfig?): ILeaferConfig

Parameters ​

NameType
userConfig?ILeaferConfig

Returns ​

ILeaferConfig

Defined in ​

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


__listenChildEvents ​

▸ __listenChildEvents(leafer): void

Parameters ​

NameType
leaferILeaferBase

Returns ​

void

Defined in ​

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


reset ​

▸ reset(data?): void

Parameters ​

NameType
data?IGroupInputData

Returns ​

void

Implementation of ​

IApp.reset

Inherited from ​

Leafer.reset

Defined in ​

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


__setBranch ​

▸ __setBranch(): void

Returns ​

void

Inherited from ​

Leafer.__setBranch

Defined in ​

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


toJSON ​

▸ toJSON(options?): IUIJSONData

Parameters ​

NameType
options?IJSONOptions

Returns ​

IUIJSONData

Implementation of ​

IApp.toJSON

Inherited from ​

Leafer.toJSON

Defined in ​

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


pick ​

▸ pick(_hitPoint, _options?): IPickResult

Parameters ​

NameType
_hitPointIPointData
_options?IPickOptions

Returns ​

IPickResult

Implementation of ​

IApp.pick

Inherited from ​

Leafer.pick

Defined in ​

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


addAt ​

▸ addAt(child, index): void

Parameters ​

NameType
childIUI
indexnumber

Returns ​

void

Implementation of ​

IApp.addAt

Inherited from ​

Leafer.addAt

Defined in ​

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


addAfter ​

▸ addAfter(child, after): void

Parameters ​

NameType
childIUI
afterIUI

Returns ​

void

Implementation of ​

IApp.addAfter

Inherited from ​

Leafer.addAfter

Defined in ​

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


addBefore ​

▸ addBefore(child, before): void

Parameters ​

NameType
childIUI
beforeIUI

Returns ​

void

Implementation of ​

IApp.addBefore

Inherited from ​

Leafer.addBefore

Defined in ​

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


addMany ​

▸ addMany(..._children): void

Parameters ​

NameType
..._childrenIUI[]

Returns ​

void

Implementation of ​

IApp.addMany

Inherited from ​

Leafer.addMany

Defined in ​

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


remove ​

▸ remove(_child?, _destroy?): void

Parameters ​

NameType
_child?IUI
_destroy?boolean

Returns ​

void

Implementation of ​

IApp.remove

Inherited from ​

Leafer.remove

Defined in ​

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


removeAll ​

▸ removeAll(_destroy?): void

Parameters ​

NameType
_destroy?boolean

Returns ​

void

Implementation of ​

IApp.removeAll

Inherited from ​

Leafer.removeAll

Defined in ​

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


clear ​

▸ clear(): void

Returns ​

void

Implementation of ​

IApp.clear

Inherited from ​

Leafer.clear

Defined in ​

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


onInit ​

▸ onInit(): void

Returns ​

void

Implementation of ​

IApp.onInit

Inherited from ​

Leafer.onInit

Defined in ​

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


initType ​

▸ initType(_type): void

Parameters ​

NameType
_typeILeaferType

Returns ​

void

Implementation of ​

IApp.initType

Inherited from ​

Leafer.initType

Defined in ​

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


set ​

▸ set(data): void

Parameters ​

NameType
dataIUIInputData

Returns ​

void

Implementation of ​

IApp.set

Inherited from ​

Leafer.set

Defined in ​

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


resize ​

▸ resize(size): void

Parameters ​

NameType
sizeIScreenSizeData

Returns ​

void

Implementation of ​

IApp.resize

Inherited from ​

Leafer.resize

Defined in ​

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


updateCursor ​

▸ updateCursor(cursor?): void

Parameters ​

NameType
cursor?ICursorType

Returns ​

void

Implementation of ​

IApp.updateCursor

Inherited from ​

Leafer.updateCursor

Defined in ​

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


updateLazyBounds ​

▸ updateLazyBounds(): void

Returns ​

void

Inherited from ​

Leafer.updateLazyBounds

Defined in ​

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


__doResize ​

▸ __doResize(size): void

Parameters ​

NameType
sizeIScreenSizeData

Returns ​

void

Inherited from ​

Leafer.__doResize

Defined in ​

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


__bindApp ​

▸ __bindApp(app): void

Parameters ​

NameType
appIApp

Returns ​

void

Inherited from ​

Leafer.__bindApp

Defined in ​

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


__setLeafer ​

▸ __setLeafer(leafer): void

Parameters ​

NameType
leaferILeafer

Returns ​

void

Inherited from ​

Leafer.__setLeafer

Defined in ​

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


__checkAutoLayout ​

▸ __checkAutoLayout(config, parentApp?): void

Parameters ​

NameType
configILeaferConfig
parentApp?IApp

Returns ​

void

Inherited from ​

Leafer.__checkAutoLayout

Defined in ​

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


__setAttr ​

▸ __setAttr(attrName, newValue): boolean

Parameters ​

NameType
attrNamestring
newValueIValue

Returns ​

boolean

Implementation of ​

IApp.__setAttr

Inherited from ​

Leafer.__setAttr

Defined in ​

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


__getAttr ​

▸ __getAttr(attrName): IValue

Parameters ​

NameType
attrNamestring

Returns ​

IValue

Implementation of ​

IApp.__getAttr

Inherited from ​

Leafer.__getAttr

Defined in ​

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


__changeCanvasSize ​

▸ __changeCanvasSize(attrName, newValue): void

Parameters ​

NameType
attrNamestring
newValuenumber

Returns ​

void

Inherited from ​

Leafer.__changeCanvasSize

Defined in ​

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


__changeFill ​

▸ __changeFill(newValue): void

Parameters ​

NameType
newValuestring

Returns ​

void

Inherited from ​

Leafer.__changeFill

Defined in ​

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


__onNextRender ​

▸ __onNextRender(): void

Returns ​

void

Inherited from ​

Leafer.__onNextRender

Defined in ​

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


__checkViewCompleted ​

▸ __checkViewCompleted(emit?): void

Parameters ​

NameTypeDefault value
emitbooleantrue

Returns ​

void

Inherited from ​

Leafer.__checkViewCompleted

Defined in ​

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


__onWatchData ​

▸ __onWatchData(): void

Returns ​

void

Inherited from ​

Leafer.__onWatchData

Defined in ​

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


waitInit ​

▸ waitInit(item, bind?): void

Parameters ​

NameType
itemIFunction
bind?IObject

Returns ​

void

Inherited from ​

Leafer.waitInit

Defined in ​

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


waitReady ​

▸ waitReady(item, bind?): void

Parameters ​

NameType
itemIFunction
bind?IObject

Returns ​

void

Implementation of ​

IApp.waitReady

Inherited from ​

Leafer.waitReady

Defined in ​

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


waitViewReady ​

▸ waitViewReady(item, bind?): void

Parameters ​

NameType
itemIFunction
bind?IObject

Returns ​

void

Implementation of ​

IApp.waitViewReady

Inherited from ​

Leafer.waitViewReady

Defined in ​

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


waitViewCompleted ​

▸ waitViewCompleted(item, bind?): void

Parameters ​

NameType
itemIFunction
bind?IObject

Returns ​

void

Implementation of ​

IApp.waitViewCompleted

Inherited from ​

Leafer.waitViewCompleted

Defined in ​

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


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 ​

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


zoom ​

▸ zoom(_zoomType, _padding?, _fixedScale?): IBoundsData

Parameters ​

NameType
_zoomTypeIZoomType
_padding?IFourNumber
_fixedScale?boolean

Returns ​

IBoundsData

Implementation of ​

IApp.zoom

Inherited from ​

Leafer.zoom

Defined in ​

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


getValidMove ​

▸ getValidMove(moveX, moveY): IPointData

Parameters ​

NameType
moveXnumber
moveYnumber

Returns ​

IPointData

Implementation of ​

IApp.getValidMove

Inherited from ​

Leafer.getValidMove

Defined in ​

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


getValidScale ​

▸ getValidScale(changeScale): number

Parameters ​

NameType
changeScalenumber

Returns ​

number

Implementation of ​

IApp.getValidScale

Inherited from ​

Leafer.getValidScale

Defined in ​

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


getWorldPointByClient ​

▸ getWorldPointByClient(clientPoint, updateClient?): IPointData

Parameters ​

NameType
clientPointIClientPointData
updateClient?boolean

Returns ​

IPointData

Implementation of ​

IApp.getWorldPointByClient

Inherited from ​

Leafer.getWorldPointByClient

Defined in ​

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


getPagePointByClient ​

▸ getPagePointByClient(clientPoint, updateClient?): IPointData

Parameters ​

NameType
clientPointIClientPointData
updateClient?boolean

Returns ​

IPointData

Implementation of ​

IApp.getPagePointByClient

Inherited from ​

Leafer.getPagePointByClient

Defined in ​

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


updateClientBounds ​

▸ updateClientBounds(): void

Returns ​

void

Implementation of ​

IApp.updateClientBounds

Inherited from ​

Leafer.updateClientBounds

Defined in ​

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


receiveEvent ​

▸ receiveEvent(_event): void

Parameters ​

NameType
_eventany

Returns ​

void

Implementation of ​

IApp.receiveEvent

Inherited from ​

Leafer.receiveEvent

Defined in ​

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


emitLeafer ​

▸ emitLeafer(type): void

Parameters ​

NameType
typestring

Returns ​

void

Inherited from ​

Leafer.emitLeafer

Defined in ​

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


__listenEvents ​

▸ __listenEvents(): void

Returns ​

void

Inherited from ​

Leafer.__listenEvents

Defined in ​

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


__removeListenEvents ​

▸ __removeListenEvents(): void

Returns ​

void

Inherited from ​

Leafer.__removeListenEvents

Defined in ​

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


destroy ​

▸ destroy(sync?): void

Parameters ​

NameType
sync?boolean

Returns ​

void

Implementation of ​

IApp.destroy

Inherited from ​

Leafer.destroy

Defined in ​

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


get ​

▸ get(name?): IValue | IUIInputData

Parameters ​

NameType
name?string | string[] | IUIInputData

Returns ​

IValue | IUIInputData

Implementation of ​

IApp.get

Inherited from ​

Leafer.get

Defined in ​

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


createProxyData ​

▸ createProxyData(): IUIInputData

Returns ​

IUIInputData

Implementation of ​

IApp.createProxyData

Inherited from ​

Leafer.createProxyData

Defined in ​

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


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 ​

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


findTag ​

▸ findTag(tag): IUI[]

Parameters ​

NameType
tagstring | string[]

Returns ​

IUI[]

Implementation of ​

IApp.findTag

Inherited from ​

Leafer.findTag

Defined in ​

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


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 ​

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


findId ​

▸ findId(id): IUI

Parameters ​

NameType
idstring | number

Returns ​

IUI

Implementation of ​

IApp.findId

Inherited from ​

Leafer.findId

Defined in ​

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


getPath ​

▸ getPath(curve?, pathForRender?): IPathCommandData

Parameters ​

NameType
curve?boolean
pathForRender?boolean

Returns ​

IPathCommandData

Implementation of ​

IApp.getPath

Inherited from ​

Leafer.getPath

Defined in ​

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


getPathString ​

▸ getPathString(curve?, pathForRender?): string

Parameters ​

NameType
curve?boolean
pathForRender?boolean

Returns ​

string

Implementation of ​

IApp.getPathString

Inherited from ​

Leafer.getPathString

Defined in ​

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


load ​

▸ load(): void

Returns ​

void

Implementation of ​

IApp.load

Inherited from ​

Leafer.load

Defined in ​

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


__onUpdateSize ​

▸ __onUpdateSize(): void

Returns ​

void

Implementation of ​

IApp.__onUpdateSize

Inherited from ​

Leafer.__onUpdateSize

Defined in ​

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


__updateRenderPath ​

▸ __updateRenderPath(): void

Returns ​

void

Implementation of ​

IApp.__updateRenderPath

Inherited from ​

Leafer.__updateRenderPath

Defined in ​

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


__drawRenderPath ​

▸ __drawRenderPath(canvas): void

Parameters ​

NameType
canvasILeaferCanvas

Returns ​

void

Implementation of ​

IApp.__drawRenderPath

Inherited from ​

Leafer.__drawRenderPath

Defined in ​

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


__drawPath ​

▸ __drawPath(canvas): void

Parameters ​

NameType
canvasILeaferCanvas

Returns ​

void

Implementation of ​

IApp.__drawPath

Inherited from ​

Leafer.__drawPath

Defined in ​

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


__drawPathByData ​

▸ __drawPathByData(drawer, data): void

Parameters ​

NameType
drawerIPathDrawer
dataIPathCommandData

Returns ​

void

Implementation of ​

IApp.__drawPathByData

Inherited from ​

Leafer.__drawPathByData

Defined in ​

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


__drawPathByBox ​

▸ __drawPathByBox(drawer): void

Parameters ​

NameType
drawerIPathDrawer

Returns ​

void

Implementation of ​

IApp.__drawPathByBox

Inherited from ​

Leafer.__drawPathByBox

Defined in ​

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


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 ​

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


clone ​

▸ clone(): IUI

Returns ​

IUI

Implementation of ​

IApp.clone

Inherited from ​

Leafer.clone

Defined in ​

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


one ​

▸ one(data, x?, y?, width?, height?): IUI

Parameters ​

NameType
dataIUIInputData
x?number
y?number
width?number
height?number

Returns ​

IUI

Inherited from ​

Leafer.one

Defined in ​

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


registerUI ​

▸ registerUI(): void

Returns ​

void

Inherited from ​

Leafer.registerUI

Defined in ​

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


registerData ​

▸ registerData(data): void

Parameters ​

NameType
dataIUIData

Returns ​

void

Inherited from ​

Leafer.registerData

Defined in ​

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


setEditConfig ​

▸ setEditConfig(_config): void

Parameters ​

NameType
_configIEditorConfig | IEditorConfigFunction

Returns ​

void

Inherited from ​

Leafer.setEditConfig

Defined in ​

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


setEditOuter ​

▸ setEditOuter(_toolName): void

Parameters ​

NameType
_toolNamestring | IEditToolFunction

Returns ​

void

Inherited from ​

Leafer.setEditOuter

Defined in ​

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


setEditInner ​

▸ setEditInner(_editorName): void

Parameters ​

NameType
_editorNamestring | IEditToolFunction

Returns ​

void

Inherited from ​

Leafer.setEditInner

Defined in ​

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

Released under the MIT License.