defineDrawingPlugin
Documentation / @elitechart/core / defineDrawingPlugin
Defined in: plugin/helpers.ts:61
Wrap an existing DrawingTool as a DrawingPlugin.
Reuses the tool's id and name so registry lookup matches the
tool the rest of the chart already knows about.
Type Parameters
State
State
Parameters
tool
DrawingTool<State>
name?
string
Returns
DrawingPlugin<State>