Class: HitCanvasManager
Hierarchy
↳
HitCanvasManager
Implements
Table of contents
Constructors
Properties
Methods
- add
- get
- recycle
- clearRecycled
- destroy
- getPixelType
- getPathType
- clearImageType
- clearPathType
- __clearLeafList
- __autoClear
- clear
Constructors
constructor
• new HitCanvasManager(): HitCanvasManager
Returns
Inherited from
Properties
list
• list: ILeaferCanvas
[] = []
Inherited from
Defined in
leafer/packages/canvas/canvas/src/CanvasManager.ts:6
maxTotal
• maxTotal: number
= 1000
Implementation of
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
Name | Type |
---|---|
canvas | ILeaferCanvas |
Returns
void
Implementation of
Inherited from
Defined in
leafer/packages/canvas/canvas/src/CanvasManager.ts:8
get
▸ get(size
): ILeaferCanvas
Parameters
Name | Type |
---|---|
size | IScreenSizeData |
Returns
Implementation of
Inherited from
Defined in
leafer/packages/canvas/canvas/src/CanvasManager.ts:13
recycle
▸ recycle(old
): void
Parameters
Name | Type |
---|---|
old | ILeaferCanvas |
Returns
void
Implementation of
Inherited from
Defined in
leafer/packages/canvas/canvas/src/CanvasManager.ts:30
clearRecycled
▸ clearRecycled(): void
Returns
void
Implementation of
IHitCanvasManager.clearRecycled
Inherited from
Defined in
leafer/packages/canvas/canvas/src/CanvasManager.ts:34
destroy
▸ destroy(): void
Returns
void
Implementation of
Inherited from
Defined in
leafer/packages/canvas/canvas/src/CanvasManager.ts:49
getPixelType
▸ getPixelType(leaf
, config?
): IHitCanvas
Parameters
Name | Type |
---|---|
leaf | ILeaf |
config? | ILeaferCanvasConfig |
Returns
Implementation of
IHitCanvasManager.getPixelType
Defined in
ui/packages/hit/src/HitCanvasManager.ts:12
getPathType
▸ getPathType(leaf
): IHitCanvas
Parameters
Name | Type |
---|---|
leaf | ILeaf |
Returns
Implementation of
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
Name | Type |
---|---|
leafList | ILeafList |
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