API REFERENCE

ChartDrawing

The ChartDrawing type declaration and related types. Optional fields are marked with ?.

Type declaration

typescript
export interface ChartDrawing {
  readonly id: string;
  readonly tool: string;
  readonly anchors: ReadonlyArray<DrawingAnchor>;
  readonly space: DrawingSpace;
  readonly visible: boolean;
  readonly locked?: boolean;
  readonly style?: DrawingStyle;
  readonly options?: Readonly<Record<string, unknown>>;
  readonly meta?: DrawingMeta;
}