@opendata-ai/openchart-core 7.5.0 → 7.6.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-core",
3
- "version": "7.5.0",
3
+ "version": "7.6.1",
4
4
  "description": "Types, theme, colors, accessibility, and utilities for openchart",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Riley Hilliard",
@@ -1448,6 +1448,14 @@ export interface CompileOptions {
1448
1448
  measureText?: MeasureTextFn;
1449
1449
  /** Extra pixels to reserve on the right margin for a secondary y-axis. Set by compileLayer when resolve.scale.y is 'independent'. */
1450
1450
  rightAxisReserve?: number;
1451
+ /**
1452
+ * Use this chart drawing area instead of computing one from chrome, axes,
1453
+ * and legend reservations. Set by compileLayer when compiling leaf layers so
1454
+ * their marks land in the primary layout's coordinate space; leaf specs lack
1455
+ * the layer-level chrome/legend/theme and would otherwise compute a
1456
+ * different area than the one the axes are rendered in.
1457
+ */
1458
+ frozenChartArea?: Rect;
1451
1459
  }
1452
1460
 
1453
1461
  /** Extended compile options for table visualizations. */
package/src/types/spec.ts CHANGED
@@ -191,6 +191,14 @@ export interface MarkDef {
191
191
  tooltip?: boolean | null;
192
192
  /** Clip marks to the chart area. */
193
193
  clip?: boolean;
194
+ /**
195
+ * Overlay a least-squares regression line on scatter (point) marks.
196
+ * Defaults to true. Set `mark: { type: 'point', trendline: false }` to
197
+ * suppress it when the chart already carries its own reference line (e.g. a
198
+ * manual x=y diagonal in a separate layer), which would otherwise produce
199
+ * two competing diagonals.
200
+ */
201
+ trendline?: boolean;
194
202
  }
195
203
 
196
204
  // ---------------------------------------------------------------------------