Interface
DrawingToolCtx
What a JS drawing tool gets in addition to PluginCtx.
extends PluginCtx
Properties
| Name | Type | Description |
|---|---|---|
anchors | {
time: number;
price: number;
x: number | null;
y: number | null;
}[] | Anchors with their position ( |
style | DrawingStyle | |
params | Record<string, DrawingParam> | |
hitTolerance | number | Hit-test distance in CSS px. |
Declaration
export interface DrawingToolCtx extends PluginCtx {
anchors: {
time: number;
price: number;
x: number | null;
y: number | null;
}[];
style: DrawingStyle;
params: Record<string, DrawingParam>;
hitTolerance: number;
}