@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendata-ai/openchart-engine",
3
- "version": "6.3.0",
3
+ "version": "6.4.1",
4
4
  "description": "Headless compiler for openchart: spec validation, data compilation, scales, and layout",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Riley Hilliard",
@@ -45,7 +45,7 @@
45
45
  "typecheck": "tsc --noEmit"
46
46
  },
47
47
  "dependencies": {
48
- "@opendata-ai/openchart-core": "6.3.0",
48
+ "@opendata-ai/openchart-core": "6.4.1",
49
49
  "d3-array": "^3.2.0",
50
50
  "d3-format": "^3.1.2",
51
51
  "d3-interpolate": "^3.0.0",
@@ -363,6 +363,7 @@ function resolveTextAnnotation(
363
363
 
364
364
  return {
365
365
  type: 'text',
366
+ id: annotation.id,
366
367
  label,
367
368
  stroke: annotation.stroke,
368
369
  fill: annotation.fill,
@@ -447,6 +448,7 @@ function resolveRangeAnnotation(
447
448
 
448
449
  return {
449
450
  type: 'range',
451
+ id: annotation.id,
450
452
  rect,
451
453
  label,
452
454
  fill: annotation.fill ?? DEFAULT_RANGE_FILL,
@@ -528,6 +530,7 @@ function resolveRefLineAnnotation(
528
530
 
529
531
  return {
530
532
  type: 'refline',
533
+ id: annotation.id,
531
534
  line: { start, end },
532
535
  label,
533
536
  stroke: annotation.stroke ?? defaultStroke,