@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/dist/index.d.ts +16 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/types/layout.ts +8 -0
- package/src/types/spec.ts +8 -0
package/package.json
CHANGED
package/src/types/layout.ts
CHANGED
|
@@ -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
|
// ---------------------------------------------------------------------------
|