@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/dist/index.d.ts
CHANGED
|
@@ -297,6 +297,14 @@ interface MarkDef {
|
|
|
297
297
|
tooltip?: boolean | null;
|
|
298
298
|
/** Clip marks to the chart area. */
|
|
299
299
|
clip?: boolean;
|
|
300
|
+
/**
|
|
301
|
+
* Overlay a least-squares regression line on scatter (point) marks.
|
|
302
|
+
* Defaults to true. Set `mark: { type: 'point', trendline: false }` to
|
|
303
|
+
* suppress it when the chart already carries its own reference line (e.g. a
|
|
304
|
+
* manual x=y diagonal in a separate layer), which would otherwise produce
|
|
305
|
+
* two competing diagonals.
|
|
306
|
+
*/
|
|
307
|
+
trendline?: boolean;
|
|
300
308
|
}
|
|
301
309
|
/** Data field type, following Vega-Lite conventions. */
|
|
302
310
|
type FieldType = 'quantitative' | 'temporal' | 'nominal' | 'ordinal';
|
|
@@ -3652,6 +3660,14 @@ interface CompileOptions {
|
|
|
3652
3660
|
measureText?: MeasureTextFn;
|
|
3653
3661
|
/** Extra pixels to reserve on the right margin for a secondary y-axis. Set by compileLayer when resolve.scale.y is 'independent'. */
|
|
3654
3662
|
rightAxisReserve?: number;
|
|
3663
|
+
/**
|
|
3664
|
+
* Use this chart drawing area instead of computing one from chrome, axes,
|
|
3665
|
+
* and legend reservations. Set by compileLayer when compiling leaf layers so
|
|
3666
|
+
* their marks land in the primary layout's coordinate space; leaf specs lack
|
|
3667
|
+
* the layer-level chrome/legend/theme and would otherwise compute a
|
|
3668
|
+
* different area than the one the axes are rendered in.
|
|
3669
|
+
*/
|
|
3670
|
+
frozenChartArea?: Rect;
|
|
3655
3671
|
}
|
|
3656
3672
|
/** Extended compile options for table visualizations. */
|
|
3657
3673
|
interface CompileTableOptions extends CompileOptions {
|