Skip to content

Interface: IHitCanvasManager

Hierarchy

Implemented by

Table of contents

Properties

Methods

Properties

maxTotal

maxTotal: number

Defined in

leafer/packages/interface/src/canvas/IHitCanvasManager.ts:6

Methods

add

add(canvas): void

Parameters

NameType
canvasILeaferCanvas

Returns

void

Inherited from

ICanvasManager.add

Defined in

leafer/packages/interface/src/canvas/ICanvasManager.ts:4


get

get(size): ILeaferCanvas

Parameters

NameType
sizeIScreenSizeData

Returns

ILeaferCanvas

Inherited from

ICanvasManager.get

Defined in

leafer/packages/interface/src/canvas/ICanvasManager.ts:5


recycle

recycle(old): void

Parameters

NameType
oldILeaferCanvas

Returns

void

Inherited from

ICanvasManager.recycle

Defined in

leafer/packages/interface/src/canvas/ICanvasManager.ts:6


clearRecycled

clearRecycled(): void

Returns

void

Inherited from

ICanvasManager.clearRecycled

Defined in

leafer/packages/interface/src/canvas/ICanvasManager.ts:7


clear

clear(): void

Returns

void

Inherited from

ICanvasManager.clear

Defined in

leafer/packages/interface/src/canvas/ICanvasManager.ts:8


destroy

destroy(): void

Returns

void

Inherited from

ICanvasManager.destroy

Defined in

leafer/packages/interface/src/canvas/ICanvasManager.ts:9


getPathType

getPathType(leaf): IHitCanvas

Parameters

NameType
leafILeaf

Returns

IHitCanvas

Defined in

leafer/packages/interface/src/canvas/IHitCanvasManager.ts:7


getPixelType

getPixelType(leaf, config?): IHitCanvas

Parameters

NameType
leafILeaf
config?ILeaferCanvasConfig

Returns

IHitCanvas

Defined in

leafer/packages/interface/src/canvas/IHitCanvasManager.ts:8

Released under the MIT License.