Skip to content
EliteChart

LAYOUT\_SCHEMA\_VERSION

Documentation


Documentation / @elitechart/core / LAYOUT_SCHEMA_VERSION

code
const LAYOUT_SCHEMA_VERSION: 2;

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

Current layout-schema version.

  • v1 captured drawings + alerts + viewport + kind + theme + symbol.
  • v2 (current) adds compareSeries, replay, magnet, corporateEvents, indicators (placeholder — wired after M5.5.x overlay API).

assertChartLayout accepts both v1 and v2; missing v2 fields are treated as empty arrays / defaults on load so old layouts keep working.

Example

code
import { LAYOUT_SCHEMA_VERSION } from '@elitechart/core';
console.log(LAYOUT_SCHEMA_VERSION); // 2