@opendata-ai/openchart-engine 6.3.0 → 6.4.1

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.
package/dist/index.js CHANGED
@@ -209,6 +209,7 @@ function resolveTextAnnotation(annotation, scales, chartArea, isDark) {
209
209
  };
210
210
  return {
211
211
  type: "text",
212
+ id: annotation.id,
212
213
  label,
213
214
  stroke: annotation.stroke,
214
215
  fill: annotation.fill,
@@ -261,6 +262,7 @@ function resolveRangeAnnotation(annotation, scales, chartArea, isDark) {
261
262
  const defaultOpacity = isDark ? 0.2 : DEFAULT_RANGE_OPACITY;
262
263
  return {
263
264
  type: "range",
265
+ id: annotation.id,
264
266
  rect,
265
267
  label,
266
268
  fill: annotation.fill ?? DEFAULT_RANGE_FILL,
@@ -314,6 +316,7 @@ function resolveRefLineAnnotation(annotation, scales, chartArea, isDark) {
314
316
  const defaultStroke = isDark ? DARK_REFLINE_STROKE : LIGHT_REFLINE_STROKE;
315
317
  return {
316
318
  type: "refline",
319
+ id: annotation.id,
317
320
  line: { start, end },
318
321
  label,
319
322
  stroke: annotation.stroke ?? defaultStroke,