@skdx/web-components-charts 0.48.0 → 0.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/dist/area.cjs +30 -30
  2. package/dist/area.d.cts +2 -2
  3. package/dist/area.d.ts +2 -2
  4. package/dist/area.js +32 -32
  5. package/dist/bar.cjs +30 -30
  6. package/dist/bar.d.cts +2 -2
  7. package/dist/bar.d.ts +2 -2
  8. package/dist/bar.js +34 -34
  9. package/dist/boxplot.cjs +40 -40
  10. package/dist/boxplot.d.cts +2 -2
  11. package/dist/boxplot.d.ts +2 -2
  12. package/dist/boxplot.js +38 -38
  13. package/dist/bubble.cjs +40 -40
  14. package/dist/bubble.d.cts +2 -2
  15. package/dist/bubble.d.ts +2 -2
  16. package/dist/bubble.js +39 -39
  17. package/dist/bullet.cjs +38 -38
  18. package/dist/bullet.d.cts +2 -2
  19. package/dist/bullet.d.ts +2 -2
  20. package/dist/bullet.js +40 -40
  21. package/dist/bump.cjs +39 -39
  22. package/dist/bump.d.cts +2 -2
  23. package/dist/bump.d.ts +2 -2
  24. package/dist/bump.js +40 -40
  25. package/dist/candlestick.cjs +29 -29
  26. package/dist/candlestick.d.cts +2 -2
  27. package/dist/candlestick.d.ts +2 -2
  28. package/dist/candlestick.js +35 -35
  29. package/dist/chord.cjs +35 -35
  30. package/dist/chord.d.cts +2 -2
  31. package/dist/chord.d.ts +2 -2
  32. package/dist/chord.js +39 -39
  33. package/dist/circle-packing.cjs +37 -37
  34. package/dist/circle-packing.d.cts +2 -2
  35. package/dist/circle-packing.d.ts +2 -2
  36. package/dist/circle-packing.js +38 -38
  37. package/dist/combo.cjs +30 -30
  38. package/dist/combo.d.cts +2 -2
  39. package/dist/combo.d.ts +2 -2
  40. package/dist/combo.js +34 -34
  41. package/dist/contracts.json +17886 -0
  42. package/dist/dumbbell.cjs +40 -40
  43. package/dist/dumbbell.d.cts +2 -2
  44. package/dist/dumbbell.d.ts +2 -2
  45. package/dist/dumbbell.js +39 -39
  46. package/dist/funnel.cjs +36 -36
  47. package/dist/funnel.d.cts +2 -2
  48. package/dist/funnel.d.ts +2 -2
  49. package/dist/funnel.js +36 -36
  50. package/dist/gantt.cjs +36 -36
  51. package/dist/gantt.d.cts +2 -2
  52. package/dist/gantt.d.ts +2 -2
  53. package/dist/gantt.js +39 -39
  54. package/dist/gauge.cjs +38 -38
  55. package/dist/gauge.d.cts +2 -2
  56. package/dist/gauge.d.ts +2 -2
  57. package/dist/gauge.js +37 -37
  58. package/dist/heatmap.cjs +38 -38
  59. package/dist/heatmap.d.cts +2 -2
  60. package/dist/heatmap.d.ts +2 -2
  61. package/dist/heatmap.js +39 -39
  62. package/dist/histogram.cjs +30 -30
  63. package/dist/histogram.d.cts +2 -2
  64. package/dist/histogram.d.ts +2 -2
  65. package/dist/histogram.js +34 -34
  66. package/dist/icicle.cjs +40 -40
  67. package/dist/icicle.d.cts +2 -2
  68. package/dist/icicle.d.ts +2 -2
  69. package/dist/icicle.js +40 -40
  70. package/dist/{index-Hexgp_4S.d.cts → index-BkR4iVqI.d.ts} +8 -3
  71. package/dist/{index-pqdWxinA.d.ts → index-DjnBT-5R.d.cts} +8 -3
  72. package/dist/index.cjs +37 -37
  73. package/dist/index.d.cts +24 -4
  74. package/dist/index.d.ts +24 -4
  75. package/dist/index.js +38 -38
  76. package/dist/line.cjs +30 -30
  77. package/dist/line.d.cts +2 -2
  78. package/dist/line.d.ts +2 -2
  79. package/dist/line.js +32 -32
  80. package/dist/linear-gauge.cjs +35 -35
  81. package/dist/linear-gauge.d.cts +2 -2
  82. package/dist/linear-gauge.d.ts +2 -2
  83. package/dist/linear-gauge.js +40 -40
  84. package/dist/map.cjs +39 -39
  85. package/dist/map.d.cts +2 -2
  86. package/dist/map.d.ts +2 -2
  87. package/dist/map.js +37 -37
  88. package/dist/marimekko.cjs +40 -40
  89. package/dist/marimekko.d.cts +2 -2
  90. package/dist/marimekko.d.ts +2 -2
  91. package/dist/marimekko.js +38 -38
  92. package/dist/network.cjs +37 -37
  93. package/dist/network.d.cts +2 -2
  94. package/dist/network.d.ts +2 -2
  95. package/dist/network.js +38 -38
  96. package/dist/organization.cjs +38 -38
  97. package/dist/organization.d.cts +2 -2
  98. package/dist/organization.d.ts +2 -2
  99. package/dist/organization.js +36 -36
  100. package/dist/parallel.cjs +38 -38
  101. package/dist/parallel.d.cts +2 -2
  102. package/dist/parallel.d.ts +2 -2
  103. package/dist/parallel.js +40 -40
  104. package/dist/pareto.cjs +25 -25
  105. package/dist/pareto.d.cts +2 -2
  106. package/dist/pareto.d.ts +2 -2
  107. package/dist/pareto.js +24 -24
  108. package/dist/pie.cjs +36 -36
  109. package/dist/pie.d.cts +2 -2
  110. package/dist/pie.d.ts +2 -2
  111. package/dist/pie.js +40 -40
  112. package/dist/polar-area.cjs +38 -38
  113. package/dist/polar-area.d.cts +2 -2
  114. package/dist/polar-area.d.ts +2 -2
  115. package/dist/polar-area.js +40 -40
  116. package/dist/portable.d.cts +1 -1
  117. package/dist/portable.d.ts +1 -1
  118. package/dist/radar.cjs +40 -40
  119. package/dist/radar.d.cts +2 -2
  120. package/dist/radar.d.ts +2 -2
  121. package/dist/radar.js +40 -40
  122. package/dist/radial.cjs +36 -36
  123. package/dist/radial.d.cts +2 -2
  124. package/dist/radial.d.ts +2 -2
  125. package/dist/radial.js +38 -38
  126. package/dist/range.cjs +28 -28
  127. package/dist/range.d.cts +2 -2
  128. package/dist/range.d.ts +2 -2
  129. package/dist/range.js +28 -28
  130. package/dist/sankey.cjs +40 -40
  131. package/dist/sankey.d.cts +2 -2
  132. package/dist/sankey.d.ts +2 -2
  133. package/dist/sankey.js +40 -40
  134. package/dist/scatter.cjs +40 -40
  135. package/dist/scatter.d.cts +2 -2
  136. package/dist/scatter.d.ts +2 -2
  137. package/dist/scatter.js +39 -39
  138. package/dist/sparkline.cjs +36 -36
  139. package/dist/sparkline.d.cts +2 -2
  140. package/dist/sparkline.d.ts +2 -2
  141. package/dist/sparkline.js +37 -37
  142. package/dist/sunburst.cjs +38 -38
  143. package/dist/sunburst.d.cts +2 -2
  144. package/dist/sunburst.d.ts +2 -2
  145. package/dist/sunburst.js +40 -40
  146. package/dist/swarm.cjs +40 -40
  147. package/dist/swarm.d.cts +2 -2
  148. package/dist/swarm.d.ts +2 -2
  149. package/dist/swarm.js +39 -39
  150. package/dist/timeline.cjs +38 -38
  151. package/dist/timeline.d.cts +2 -2
  152. package/dist/timeline.d.ts +2 -2
  153. package/dist/timeline.js +40 -40
  154. package/dist/tree.cjs +38 -38
  155. package/dist/tree.d.cts +2 -2
  156. package/dist/tree.d.ts +2 -2
  157. package/dist/tree.js +36 -36
  158. package/dist/treemap.cjs +40 -40
  159. package/dist/treemap.d.cts +2 -2
  160. package/dist/treemap.d.ts +2 -2
  161. package/dist/treemap.js +38 -38
  162. package/dist/{types-DPf3PUs2.d.cts → types-5xXhTghj.d.cts} +1 -1
  163. package/dist/{types-DPf3PUs2.d.ts → types-5xXhTghj.d.ts} +1 -1
  164. package/dist/waffle.cjs +40 -40
  165. package/dist/waffle.d.cts +2 -2
  166. package/dist/waffle.d.ts +2 -2
  167. package/dist/waffle.js +40 -40
  168. package/dist/waterfall.cjs +37 -37
  169. package/dist/waterfall.d.cts +2 -2
  170. package/dist/waterfall.d.ts +2 -2
  171. package/dist/waterfall.js +38 -38
  172. package/dist/wrapper-api.json +1849 -0
  173. package/package.json +8 -6
package/dist/index.d.cts CHANGED
@@ -1,8 +1,28 @@
1
- export { C as ChartExportOptions, a as ChartInstanceExportOptions, S as SelectionMode, b as SkdxAreaChart, c as SkdxBarChart, d as SkdxBoxplot, e as SkdxBubbleChart, f as SkdxBulletChart, g as SkdxBumpChart, h as SkdxCandlestickChart, i as SkdxChordChart, j as SkdxCirclePackingChart, k as SkdxComboChart, l as SkdxDumbbellChart, m as SkdxFunnelChart, n as SkdxGanttChart, o as SkdxGaugeChart, p as SkdxHeatmap, q as SkdxHistogram, r as SkdxIcicleChart, s as SkdxLineChart, t as SkdxLinearGauge, u as SkdxMapChart, v as SkdxMarimekkoChart, w as SkdxNetworkChart, x as SkdxOrganizationChart, y as SkdxParallelCoordinatesChart, z as SkdxParetoChart, A as SkdxPieChart, B as SkdxPolarAreaChart, D as SkdxRadarChart, E as SkdxRadialBarChart, F as SkdxRangeChart, G as SkdxSankeyChart, H as SkdxScatterChart, I as SkdxSparkline, J as SkdxSunburstChart, K as SkdxSwarmPlot, L as SkdxTimelineChart, M as SkdxTreeChart, N as SkdxTreemap, O as SkdxWaffleChart, P as SkdxWaterfallChart, Q as csv, R as exportChart, T as seriesCsv, U as svgMarkup } from './index-Hexgp_4S.cjs';
2
- import { F as Format, C as ChartItemRef, Z as Zoom } from './types-DPf3PUs2.cjs';
3
- export { A as AccessibleTableOptions, a as Annotation, b as AxisOptions, B as Band, c as BoxSummary, d as BoxplotSeries, e as BubblePoint, f as BubbleSeries, g as BulletDatum, h as BumpChartInput, i as CalendarCell, j as Candle, k as CandlestickOverlay, l as CartesianSeries, m as Category, n as ChartDataIssue, o as ChartItem, p as ChartItemId, q as ChordLink, r as CirclePackingInput, s as ColorScale, t as ComboSeries, u as Curve, D as Datum, v as DumbbellDatum, E as ErrorValue, G as GanttTask, w as GeoMultiPolygon, x as GeoPolygon, y as GroupedBoxSeries, H as HighlightScope, I as IcicleInput, L as LegendOptions, M as MapFeature, z as MapLine, J as MapPoint, K as MapView, N as MarimekkoCategory, O as MarimekkoChartInput, P as MarkerSymbol, Q as NetworkEdge, R as NetworkNode, S as OrganizationChartInput, T as ParallelCoordinatesInput, U as ParallelDimension, V as ParallelRow, W as PolarAreaChartInput, X as RadarMetric, Y as RadialBand, _ as RangeChartSeries, $ as RangeSeries, a0 as Reference, a1 as Sampling, a2 as SankeyLink, a3 as SankeyNode, a4 as ScatterPoint, a5 as ScatterSeries, a6 as Selection, a7 as Series, a8 as SeriesTransform, a9 as SwarmPlotInput, aa as TaskChange, ab as TimelineChartInput, ac as TimelineEvent, ad as TooltipOptions, ae as TreeChartInput, af as TreeNode, ag as Value, ah as Variant, ai as WaffleChartInput, aj as WaterfallDatum, ak as XAxisOptions } from './types-DPf3PUs2.cjs';
1
+ export { C as ChartExportOptions, a as ChartInstanceExportOptions, S as SelectionMode, b as SkdxAreaChart, c as SkdxBarChart, d as SkdxBoxplot, e as SkdxBubbleChart, f as SkdxBulletChart, g as SkdxBumpChart, h as SkdxCandlestickChart, i as SkdxChordChart, j as SkdxCirclePackingChart, k as SkdxComboChart, l as SkdxDumbbellChart, m as SkdxFunnelChart, n as SkdxGanttChart, o as SkdxGaugeChart, p as SkdxHeatmap, q as SkdxHistogram, r as SkdxIcicleChart, s as SkdxLineChart, t as SkdxLinearGauge, u as SkdxMapChart, v as SkdxMarimekkoChart, w as SkdxNetworkChart, x as SkdxOrganizationChart, y as SkdxParallelCoordinatesChart, z as SkdxParetoChart, A as SkdxPieChart, B as SkdxPolarAreaChart, D as SkdxRadarChart, E as SkdxRadialBarChart, F as SkdxRangeChart, G as SkdxSankeyChart, H as SkdxScatterChart, I as SkdxSparkline, J as SkdxSunburstChart, K as SkdxSwarmPlot, L as SkdxTimelineChart, M as SkdxTreeChart, N as SkdxTreemap, O as SkdxWaffleChart, P as SkdxWaterfallChart, Q as csv, R as exportChart, T as seriesCsv, U as svgMarkup } from './index-DjnBT-5R.cjs';
2
+ import { C as Canvas, F as Format, a as ChartItemRef, Z as Zoom } from './types-5xXhTghj.cjs';
3
+ export { A as AccessibleTableOptions, b as Annotation, c as AxisOptions, B as Band, d as BoxSummary, e as BoxplotSeries, f as BubblePoint, g as BubbleSeries, h as BulletDatum, i as BumpChartInput, j as CalendarCell, k as Candle, l as CandlestickOverlay, m as CartesianSeries, n as Category, o as ChartDataIssue, p as ChartItem, q as ChartItemId, r as ChordLink, s as CirclePackingInput, t as ColorScale, u as ComboSeries, v as Curve, D as Datum, w as DumbbellDatum, E as ErrorValue, G as GanttTask, x as GeoMultiPolygon, y as GeoPolygon, z as GroupedBoxSeries, H as HighlightScope, I as IcicleInput, L as LegendOptions, M as MapFeature, J as MapLine, K as MapPoint, N as MapView, O as MarimekkoCategory, P as MarimekkoChartInput, Q as MarkerSymbol, R as NetworkEdge, S as NetworkNode, T as OrganizationChartInput, U as ParallelCoordinatesInput, V as ParallelDimension, W as ParallelRow, X as PolarAreaChartInput, Y as RadarMetric, _ as RadialBand, $ as RangeChartSeries, a0 as RangeSeries, a1 as Reference, a2 as Sampling, a3 as SankeyLink, a4 as SankeyNode, a5 as ScatterPoint, a6 as ScatterSeries, a7 as Selection, a8 as Series, a9 as SeriesTransform, aa as SwarmPlotInput, ab as TaskChange, ac as TimelineChartInput, ad as TimelineEvent, ae as TooltipOptions, af as TreeChartInput, ag as TreeNode, ah as Value, ai as Variant, aj as WaffleChartInput, ak as WaterfallDatum, al as XAxisOptions } from './types-5xXhTghj.cjs';
4
4
  import 'lit';
5
5
 
6
+ type ChartSnapshotValue = null | boolean | number | string | ChartSnapshotValue[] | {
7
+ [key: string]: ChartSnapshotValue;
8
+ };
9
+ interface RuntimeChartSnapshot {
10
+ schemaVersion: '1.0.0';
11
+ /** Owner wrapper kind, resolved to canonical chart ID through the owner contract. */
12
+ kind: string;
13
+ configuration: Record<string, ChartSnapshotValue>;
14
+ canvas: Pick<Canvas, 'width' | 'height' | 'shapes' | 'defs' | 'issues' | 'table'>;
15
+ diagnostics: {
16
+ code: string;
17
+ path: string;
18
+ message: string;
19
+ }[];
20
+ }
21
+ /** Query a mounted owner chart without framework internals or a global capture mode. */
22
+ declare function readChartSnapshot(svg: EventTarget): RuntimeChartSnapshot | undefined;
23
+ /** Validate the owner snapshot at a JSON/file/DOM boundary before consuming native geometry. */
24
+ declare function parseChartSnapshot(value: unknown): RuntimeChartSnapshot;
25
+
6
26
  /** Turns a `Format` into a function; `undefined` gives the default number format. */
7
27
  declare function makeFormatter(format: Format | undefined): (value: number) => string;
8
28
 
@@ -27,4 +47,4 @@ interface SyncGroup {
27
47
  /** The group for a `syncId`, created on first use; groups are keyed per JavaScript realm. */
28
48
  declare function syncGroup(id: string): SyncGroup;
29
49
 
30
- export { ChartItemRef, Format, type SyncState, Zoom, makeFormatter, syncGroup };
50
+ export { ChartItemRef, type ChartSnapshotValue, Format, type RuntimeChartSnapshot, type SyncState, Zoom, makeFormatter, parseChartSnapshot, readChartSnapshot, syncGroup };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,28 @@
1
- export { C as ChartExportOptions, a as ChartInstanceExportOptions, S as SelectionMode, b as SkdxAreaChart, c as SkdxBarChart, d as SkdxBoxplot, e as SkdxBubbleChart, f as SkdxBulletChart, g as SkdxBumpChart, h as SkdxCandlestickChart, i as SkdxChordChart, j as SkdxCirclePackingChart, k as SkdxComboChart, l as SkdxDumbbellChart, m as SkdxFunnelChart, n as SkdxGanttChart, o as SkdxGaugeChart, p as SkdxHeatmap, q as SkdxHistogram, r as SkdxIcicleChart, s as SkdxLineChart, t as SkdxLinearGauge, u as SkdxMapChart, v as SkdxMarimekkoChart, w as SkdxNetworkChart, x as SkdxOrganizationChart, y as SkdxParallelCoordinatesChart, z as SkdxParetoChart, A as SkdxPieChart, B as SkdxPolarAreaChart, D as SkdxRadarChart, E as SkdxRadialBarChart, F as SkdxRangeChart, G as SkdxSankeyChart, H as SkdxScatterChart, I as SkdxSparkline, J as SkdxSunburstChart, K as SkdxSwarmPlot, L as SkdxTimelineChart, M as SkdxTreeChart, N as SkdxTreemap, O as SkdxWaffleChart, P as SkdxWaterfallChart, Q as csv, R as exportChart, T as seriesCsv, U as svgMarkup } from './index-pqdWxinA.js';
2
- import { F as Format, C as ChartItemRef, Z as Zoom } from './types-DPf3PUs2.js';
3
- export { A as AccessibleTableOptions, a as Annotation, b as AxisOptions, B as Band, c as BoxSummary, d as BoxplotSeries, e as BubblePoint, f as BubbleSeries, g as BulletDatum, h as BumpChartInput, i as CalendarCell, j as Candle, k as CandlestickOverlay, l as CartesianSeries, m as Category, n as ChartDataIssue, o as ChartItem, p as ChartItemId, q as ChordLink, r as CirclePackingInput, s as ColorScale, t as ComboSeries, u as Curve, D as Datum, v as DumbbellDatum, E as ErrorValue, G as GanttTask, w as GeoMultiPolygon, x as GeoPolygon, y as GroupedBoxSeries, H as HighlightScope, I as IcicleInput, L as LegendOptions, M as MapFeature, z as MapLine, J as MapPoint, K as MapView, N as MarimekkoCategory, O as MarimekkoChartInput, P as MarkerSymbol, Q as NetworkEdge, R as NetworkNode, S as OrganizationChartInput, T as ParallelCoordinatesInput, U as ParallelDimension, V as ParallelRow, W as PolarAreaChartInput, X as RadarMetric, Y as RadialBand, _ as RangeChartSeries, $ as RangeSeries, a0 as Reference, a1 as Sampling, a2 as SankeyLink, a3 as SankeyNode, a4 as ScatterPoint, a5 as ScatterSeries, a6 as Selection, a7 as Series, a8 as SeriesTransform, a9 as SwarmPlotInput, aa as TaskChange, ab as TimelineChartInput, ac as TimelineEvent, ad as TooltipOptions, ae as TreeChartInput, af as TreeNode, ag as Value, ah as Variant, ai as WaffleChartInput, aj as WaterfallDatum, ak as XAxisOptions } from './types-DPf3PUs2.js';
1
+ export { C as ChartExportOptions, a as ChartInstanceExportOptions, S as SelectionMode, b as SkdxAreaChart, c as SkdxBarChart, d as SkdxBoxplot, e as SkdxBubbleChart, f as SkdxBulletChart, g as SkdxBumpChart, h as SkdxCandlestickChart, i as SkdxChordChart, j as SkdxCirclePackingChart, k as SkdxComboChart, l as SkdxDumbbellChart, m as SkdxFunnelChart, n as SkdxGanttChart, o as SkdxGaugeChart, p as SkdxHeatmap, q as SkdxHistogram, r as SkdxIcicleChart, s as SkdxLineChart, t as SkdxLinearGauge, u as SkdxMapChart, v as SkdxMarimekkoChart, w as SkdxNetworkChart, x as SkdxOrganizationChart, y as SkdxParallelCoordinatesChart, z as SkdxParetoChart, A as SkdxPieChart, B as SkdxPolarAreaChart, D as SkdxRadarChart, E as SkdxRadialBarChart, F as SkdxRangeChart, G as SkdxSankeyChart, H as SkdxScatterChart, I as SkdxSparkline, J as SkdxSunburstChart, K as SkdxSwarmPlot, L as SkdxTimelineChart, M as SkdxTreeChart, N as SkdxTreemap, O as SkdxWaffleChart, P as SkdxWaterfallChart, Q as csv, R as exportChart, T as seriesCsv, U as svgMarkup } from './index-BkR4iVqI.js';
2
+ import { C as Canvas, F as Format, a as ChartItemRef, Z as Zoom } from './types-5xXhTghj.js';
3
+ export { A as AccessibleTableOptions, b as Annotation, c as AxisOptions, B as Band, d as BoxSummary, e as BoxplotSeries, f as BubblePoint, g as BubbleSeries, h as BulletDatum, i as BumpChartInput, j as CalendarCell, k as Candle, l as CandlestickOverlay, m as CartesianSeries, n as Category, o as ChartDataIssue, p as ChartItem, q as ChartItemId, r as ChordLink, s as CirclePackingInput, t as ColorScale, u as ComboSeries, v as Curve, D as Datum, w as DumbbellDatum, E as ErrorValue, G as GanttTask, x as GeoMultiPolygon, y as GeoPolygon, z as GroupedBoxSeries, H as HighlightScope, I as IcicleInput, L as LegendOptions, M as MapFeature, J as MapLine, K as MapPoint, N as MapView, O as MarimekkoCategory, P as MarimekkoChartInput, Q as MarkerSymbol, R as NetworkEdge, S as NetworkNode, T as OrganizationChartInput, U as ParallelCoordinatesInput, V as ParallelDimension, W as ParallelRow, X as PolarAreaChartInput, Y as RadarMetric, _ as RadialBand, $ as RangeChartSeries, a0 as RangeSeries, a1 as Reference, a2 as Sampling, a3 as SankeyLink, a4 as SankeyNode, a5 as ScatterPoint, a6 as ScatterSeries, a7 as Selection, a8 as Series, a9 as SeriesTransform, aa as SwarmPlotInput, ab as TaskChange, ac as TimelineChartInput, ad as TimelineEvent, ae as TooltipOptions, af as TreeChartInput, ag as TreeNode, ah as Value, ai as Variant, aj as WaffleChartInput, ak as WaterfallDatum, al as XAxisOptions } from './types-5xXhTghj.js';
4
4
  import 'lit';
5
5
 
6
+ type ChartSnapshotValue = null | boolean | number | string | ChartSnapshotValue[] | {
7
+ [key: string]: ChartSnapshotValue;
8
+ };
9
+ interface RuntimeChartSnapshot {
10
+ schemaVersion: '1.0.0';
11
+ /** Owner wrapper kind, resolved to canonical chart ID through the owner contract. */
12
+ kind: string;
13
+ configuration: Record<string, ChartSnapshotValue>;
14
+ canvas: Pick<Canvas, 'width' | 'height' | 'shapes' | 'defs' | 'issues' | 'table'>;
15
+ diagnostics: {
16
+ code: string;
17
+ path: string;
18
+ message: string;
19
+ }[];
20
+ }
21
+ /** Query a mounted owner chart without framework internals or a global capture mode. */
22
+ declare function readChartSnapshot(svg: EventTarget): RuntimeChartSnapshot | undefined;
23
+ /** Validate the owner snapshot at a JSON/file/DOM boundary before consuming native geometry. */
24
+ declare function parseChartSnapshot(value: unknown): RuntimeChartSnapshot;
25
+
6
26
  /** Turns a `Format` into a function; `undefined` gives the default number format. */
7
27
  declare function makeFormatter(format: Format | undefined): (value: number) => string;
8
28
 
@@ -27,4 +47,4 @@ interface SyncGroup {
27
47
  /** The group for a `syncId`, created on first use; groups are keyed per JavaScript realm. */
28
48
  declare function syncGroup(id: string): SyncGroup;
29
49
 
30
- export { ChartItemRef, Format, type SyncState, Zoom, makeFormatter, syncGroup };
50
+ export { ChartItemRef, type ChartSnapshotValue, Format, type RuntimeChartSnapshot, type SyncState, Zoom, makeFormatter, parseChartSnapshot, readChartSnapshot, syncGroup };