Skip to content

Class: HitCanvasManager

Hierarchy

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new HitCanvasManager(): HitCanvasManager

Returns

HitCanvasManager

Inherited from

CanvasManager.constructor

Properties

list

list: ILeaferCanvas[] = []

Inherited from

CanvasManager.list

Defined in

leafer/packages/canvas/canvas/src/CanvasManager.ts:6


maxTotal

maxTotal: number = 1000

Implementation of

IHitCanvasManager.maxTotal

Defined in

ui/packages/hit/src/HitCanvasManager.ts:7


pathList

Protected pathList: ILeafList

Defined in

ui/packages/hit/src/HitCanvasManager.ts:9


pixelList

Protected pixelList: ILeafList

Defined in

ui/packages/hit/src/HitCanvasManager.ts:10

Methods

add

add(canvas): void

Parameters

NameType
canvasILeaferCanvas

Returns

void

Implementation of

IHitCanvasManager.add

Inherited from

CanvasManager.add

Defined in

leafer/packages/canvas/canvas/src/CanvasManager.ts:8


get

get(size): ILeaferCanvas

Parameters

NameType
sizeIScreenSizeData

Returns

ILeaferCanvas

Implementation of

IHitCanvasManager.get

Inherited from

CanvasManager.get

Defined in

leafer/packages/canvas/canvas/src/CanvasManager.ts:13


recycle

recycle(old): void

Parameters

NameType
oldILeaferCanvas

Returns

void

Implementation of

IHitCanvasManager.recycle

Inherited from

CanvasManager.recycle

Defined in

leafer/packages/canvas/canvas/src/CanvasManager.ts:30


clearRecycled

clearRecycled(): void

Returns

void

Implementation of

IHitCanvasManager.clearRecycled

Inherited from

CanvasManager.clearRecycled

Defined in

leafer/packages/canvas/canvas/src/CanvasManager.ts:34


destroy

destroy(): void

Returns

void

Implementation of

IHitCanvasManager.destroy

Inherited from

CanvasManager.destroy

Defined in

leafer/packages/canvas/canvas/src/CanvasManager.ts:49


getPixelType

getPixelType(leaf, config?): IHitCanvas

Parameters

NameType
leafILeaf
config?ILeaferCanvasConfig

Returns

IHitCanvas

Implementation of

IHitCanvasManager.getPixelType

Defined in

ui/packages/hit/src/HitCanvasManager.ts:12


getPathType

getPathType(leaf): IHitCanvas

Parameters

NameType
leafILeaf

Returns

IHitCanvas

Implementation of

IHitCanvasManager.getPathType

Defined in

ui/packages/hit/src/HitCanvasManager.ts:18


clearImageType

clearImageType(): void

Returns

void

Defined in

ui/packages/hit/src/HitCanvasManager.ts:24


clearPathType

clearPathType(): void

Returns

void

Defined in

ui/packages/hit/src/HitCanvasManager.ts:28


__clearLeafList

__clearLeafList(leafList): void

Parameters

NameType
leafListILeafList

Returns

void

Defined in

ui/packages/hit/src/HitCanvasManager.ts:32


__autoClear

__autoClear(): void

Returns

void

Defined in

ui/packages/hit/src/HitCanvasManager.ts:44


clear

clear(): void

Returns

void

Implementation of

IHitCanvasManager.clear

Overrides

CanvasManager.clear

Defined in

ui/packages/hit/src/HitCanvasManager.ts:48

Released under the MIT License.