Constructors
constructor
- new PaintBrush(configs?): PaintBrush
Accessors
state
- get state(): Record<string, PaintBrushState[]>
Methods
action
- action(action): void
Returns void
dispose
- dispose(): void
Returns void
off
- off<K>(name, callback): void
Returns void
on
- on<K>(name, callback): void
Returns void
once
- once<K>(name, callback): void
Returns void
setCurrentColor
- setCurrentColor(color): void
Returns void
show
- show(): void
Returns void
获取画笔状态。