Skip to content

Interface: ICreator

Table of contents

Methods

Methods

image

image(options?): ILeaferImage

Parameters

NameType
options?ILeaferImageConfig

Returns

ILeaferImage

Defined in

leafer/packages/interface/src/app/ILeafer.ts:115


canvas

canvas(options?, manager?): ILeaferCanvas

Parameters

NameType
options?ILeaferCanvasConfig
manager?ICanvasManager

Returns

ILeaferCanvas

Defined in

leafer/packages/interface/src/app/ILeafer.ts:116


hitCanvas

hitCanvas(options?, manager?): IHitCanvas

Parameters

NameType
options?ILeaferCanvasConfig
manager?ICanvasManager

Returns

IHitCanvas

Defined in

leafer/packages/interface/src/app/ILeafer.ts:117


hitCanvasManager

hitCanvasManager(): IHitCanvasManager

Returns

IHitCanvasManager

Defined in

leafer/packages/interface/src/app/ILeafer.ts:118


watcher

watcher(target, options?): IWatcher

Parameters

NameType
targetILeaf
options?IWatcherConfig

Returns

IWatcher

Defined in

leafer/packages/interface/src/app/ILeafer.ts:120


layouter

layouter(target, options?): ILayouter

Parameters

NameType
targetILeaf
options?ILayouterConfig

Returns

ILayouter

Defined in

leafer/packages/interface/src/app/ILeafer.ts:121


renderer

renderer(target, canvas, options?): IRenderer

Parameters

NameType
targetILeaf
canvasILeaferCanvas
options?IRendererConfig

Returns

IRenderer

Defined in

leafer/packages/interface/src/app/ILeafer.ts:122


selector

selector(target?, options?): ISelector

Parameters

NameType
target?ILeaf
options?ISelectorConfig

Returns

ISelector

Defined in

leafer/packages/interface/src/app/ILeafer.ts:123


interaction

interaction(target, canvas, selector, options?): IInteraction

Parameters

NameType
targetILeaf
canvasIInteractionCanvas
selectorISelector
options?IInteractionConfig

Returns

IInteraction

Defined in

leafer/packages/interface/src/app/ILeafer.ts:125


editor

editor(options?): ILeaf

Parameters

NameType
options?IObject

Returns

ILeaf

Defined in

leafer/packages/interface/src/app/ILeafer.ts:127

Released under the MIT License.