Skip to content
EliteChart

SerializedDrawingEntry

Documentation


Documentation / @elitechart/core / SerializedDrawingEntry

Defined in: layout/layout-types.ts:41

A single serialized drawing (shape mirrors chart.serializeDrawings()).

Example

code
const entry: SerializedDrawingEntry = {
  id: 'd1', toolId: 'trend-line', state: { a, b },
  styleOverride: { color: '#ff8a00' },
};

Properties

id

code
readonly id: string;

Defined in: layout/layout-types.ts:42


locked?

code
readonly optional locked?: boolean;

Defined in: layout/layout-types.ts:46


state

code
readonly state: unknown;

Defined in: layout/layout-types.ts:44


styleOverride?

code
readonly optional styleOverride?: Record<string, unknown>;

Defined in: layout/layout-types.ts:45


toolId

code
readonly toolId: string;

Defined in: layout/layout-types.ts:43