@fabwcie/free-drawing / components/tools/Overlay/NoteOverlay
components/tools/Overlay/NoteOverlay
Classes
NoteOverlay
Defined in: packages/free-drawing/src/components/tools/Overlay/NoteOverlay/NoteOverlay.ts:11
Options of the note tool: color of new notes (light colors or custom), its own, not the colors of other tools
Constructors
Constructor
new NoteOverlay(
drawer,color,onChange):NoteOverlay
Defined in: packages/free-drawing/src/components/tools/Overlay/NoteOverlay/NoteOverlay.ts:23
Create the panel (color section) in floating region, hidden until show
Parameters
drawer
Drawer of the note widget
color
Color of new notes
onChange
(color) => void
Called with the color chosen
Returns
Properties
$overlayContainer
readonly$overlayContainer:HTMLDivElement
Defined in: packages/free-drawing/src/components/tools/Overlay/NoteOverlay/NoteOverlay.ts:13
Panel element (region) in floating region, shown with show
colorPicker
readonlycolorPicker:ColorPicker
Defined in: packages/free-drawing/src/components/tools/Overlay/NoteOverlay/NoteOverlay.ts:15
Color choice among noteColors or custom
Methods
hide()
hide():
void
Defined in: packages/free-drawing/src/components/tools/Overlay/NoteOverlay/NoteOverlay.ts:56
Hide panel (other tool, selection shown)
Returns
void
show()
show():
void
Defined in: packages/free-drawing/src/components/tools/Overlay/NoteOverlay/NoteOverlay.ts:49
Show panel (note tool active)
Returns
void