svelteplot 0.10.3-pr-476.0 → 0.10.3-pr-475.2
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/Mark.svelte.d.ts +1 -0
- package/dist/core/Plot.svelte +4 -3
- package/dist/helpers/resolve.d.ts +3 -3
- package/dist/helpers/scales.d.ts +6 -6
- package/dist/helpers/scales.js +15 -2
- package/dist/hooks/usePlot.svelte.d.ts +2 -2
- package/dist/marks/Area.svelte.d.ts +1 -0
- package/dist/marks/AreaX.svelte.d.ts +1 -0
- package/dist/marks/AreaY.svelte.d.ts +1 -0
- package/dist/marks/Arrow.svelte.d.ts +1 -0
- package/dist/marks/AxisX.svelte.d.ts +2 -1
- package/dist/marks/AxisY.svelte.d.ts +2 -1
- package/dist/marks/BarX.svelte.d.ts +1 -0
- package/dist/marks/BarY.svelte.d.ts +1 -0
- package/dist/marks/BollingerX.svelte.d.ts +1 -0
- package/dist/marks/BollingerY.svelte.d.ts +1 -0
- package/dist/marks/BoxY.svelte.d.ts +1 -0
- package/dist/marks/Brush.svelte.d.ts +1 -0
- package/dist/marks/Cell.svelte.d.ts +1 -0
- package/dist/marks/CellX.svelte.d.ts +1 -0
- package/dist/marks/CellY.svelte.d.ts +1 -0
- package/dist/marks/CustomMark.svelte.d.ts +1 -0
- package/dist/marks/DifferenceY.svelte.d.ts +1 -0
- package/dist/marks/Dot.svelte.d.ts +1 -0
- package/dist/marks/DotX.svelte.d.ts +1 -0
- package/dist/marks/DotY.svelte.d.ts +1 -0
- package/dist/marks/Frame.svelte.d.ts +1 -0
- package/dist/marks/Geo.svelte.d.ts +1 -0
- package/dist/marks/GridX.svelte.d.ts +1 -0
- package/dist/marks/GridY.svelte.d.ts +1 -0
- package/dist/marks/Image.svelte.d.ts +1 -0
- package/dist/marks/Line.svelte.d.ts +1 -0
- package/dist/marks/LineX.svelte.d.ts +1 -0
- package/dist/marks/LineY.svelte.d.ts +1 -0
- package/dist/marks/Link.svelte.d.ts +1 -0
- package/dist/marks/Rect.svelte.d.ts +1 -0
- package/dist/marks/RegressionX.svelte.d.ts +1 -1
- package/dist/marks/RegressionY.svelte.d.ts +1 -1
- package/dist/marks/RuleX.svelte.d.ts +1 -0
- package/dist/marks/RuleY.svelte.d.ts +1 -0
- package/dist/marks/Spike.svelte.d.ts +1 -0
- package/dist/marks/Text.svelte.d.ts +2 -0
- package/dist/marks/TickX.svelte.d.ts +1 -0
- package/dist/marks/TickY.svelte.d.ts +1 -0
- package/dist/marks/Trail.svelte.d.ts +1 -0
- package/dist/marks/Vector.svelte.d.ts +1 -0
- package/dist/marks/WaffleX.svelte.d.ts +1 -0
- package/dist/marks/WaffleY.svelte.d.ts +1 -0
- package/dist/marks/helpers/BaseAxisX.svelte +35 -40
- package/dist/marks/helpers/BaseAxisX.svelte.d.ts +11 -19
- package/dist/marks/helpers/BaseAxisY.svelte +34 -35
- package/dist/marks/helpers/BaseAxisY.svelte.d.ts +12 -17
- package/dist/marks/helpers/Box.svelte.d.ts +1 -0
- package/dist/marks/helpers/MarkerPath.svelte.d.ts +1 -0
- package/dist/marks/helpers/Regression.svelte.d.ts +4 -1
- package/dist/marks/helpers/TrailCanvas.svelte +1 -1
- package/dist/marks/helpers/TrailCanvas.svelte.d.ts +1 -1
- package/dist/transforms/group.d.ts +1 -0
- package/dist/transforms/interval.d.ts +2 -0
- package/dist/transforms/jitter.d.ts +3 -0
- package/dist/transforms/map.d.ts +421 -0
- package/dist/transforms/normalize.d.ts +305 -0
- package/dist/transforms/rename.d.ts +7 -4
- package/dist/transforms/rename.js +3 -2
- package/dist/transforms/select.d.ts +7 -0
- package/dist/transforms/sort.d.ts +9 -542
- package/dist/transforms/sort.js +9 -10
- package/dist/transforms/window.d.ts +2 -0
- package/dist/types/axes.d.ts +43 -0
- package/dist/types/axes.js +1 -0
- package/dist/types/channel.d.ts +10 -3
- package/dist/types/index.d.ts +5 -1
- package/dist/types/index.js +1 -0
- package/dist/types/mark.d.ts +4 -2
- package/dist/types/plot.d.ts +48 -9
- package/dist/types/scale.d.ts +18 -8
- package/package.json +1 -1
package/dist/Mark.svelte.d.ts
CHANGED
|
@@ -136,6 +136,7 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
136
136
|
class: string;
|
|
137
137
|
style: string;
|
|
138
138
|
cursor: import("./types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
139
|
+
title: import("./types/index.js").ConstantAccessor<string, Datum>;
|
|
139
140
|
}>> & {
|
|
140
141
|
data?: Datum[];
|
|
141
142
|
automatic?: boolean;
|
package/dist/core/Plot.svelte
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
import type {
|
|
16
16
|
PlotOptions,
|
|
17
|
+
ResolvedPlotOptions,
|
|
17
18
|
GenericMarkOptions,
|
|
18
19
|
Mark,
|
|
19
20
|
PlotScales,
|
|
@@ -375,13 +376,13 @@
|
|
|
375
376
|
function extendPlotOptions(
|
|
376
377
|
initialOpts: Partial<PlotOptions>,
|
|
377
378
|
opts: PlotOptionsParameters
|
|
378
|
-
):
|
|
379
|
+
): ResolvedPlotOptions {
|
|
379
380
|
return mergeDeep<PlotOptions>(
|
|
380
381
|
{},
|
|
381
382
|
{ sortOrdinalDomains: DEFAULTS.sortOrdinalDomains },
|
|
382
383
|
smartDefaultPlotOptions(opts),
|
|
383
384
|
initialOptions
|
|
384
|
-
);
|
|
385
|
+
) as ResolvedPlotOptions;
|
|
385
386
|
}
|
|
386
387
|
|
|
387
388
|
function maybeMargin(
|
|
@@ -424,7 +425,7 @@
|
|
|
424
425
|
explicitDomains,
|
|
425
426
|
hasProjection,
|
|
426
427
|
margin
|
|
427
|
-
}: PlotOptionsParameters):
|
|
428
|
+
}: PlotOptionsParameters): ResolvedPlotOptions {
|
|
428
429
|
const autoXAxis = explicitScales.has('x') || explicitDomains.has('x');
|
|
429
430
|
const autoYAxis = explicitScales.has('y') || explicitDomains.has('y');
|
|
430
431
|
const isOneDimensional = autoXAxis !== autoYAxis;
|
|
@@ -11,14 +11,14 @@ type ChannelOptions = {
|
|
|
11
11
|
};
|
|
12
12
|
export declare function toChannelOption(name: ScaledChannelName, channel: ChannelAccessor | ChannelAlias): ChannelOptions;
|
|
13
13
|
export declare function resolveChannel<T>(channel: ChannelName, datum: DataRow<T>, channels: Partial<Record<ChannelName, ChannelAccessor<T> | ChannelAlias>>): RawValue;
|
|
14
|
-
export declare function resolveScaledStyleProps(datum: DataRecord, channels: Partial<Record<ScaledChannelName, ChannelAccessor>>, useScale: Record<ScaledChannelName, boolean>, plot: PlotState, defaultColorProp?: 'fill' | 'stroke' | null): {
|
|
14
|
+
export declare function resolveScaledStyleProps(datum: DataRecord, channels: Partial<Record<ScaledChannelName | MarkStyleProps, ChannelAccessor>>, useScale: Record<ScaledChannelName, boolean>, plot: PlotState, defaultColorProp?: 'fill' | 'stroke' | null): {
|
|
15
15
|
fill: string;
|
|
16
16
|
stroke: string;
|
|
17
17
|
};
|
|
18
|
-
export declare function resolveScaledStyles(datum: DataRecord, channels: Partial<Record<ScaledChannelName, ChannelAccessor> & {
|
|
18
|
+
export declare function resolveScaledStyles(datum: DataRecord, channels: Partial<Record<ScaledChannelName | MarkStyleProps, ChannelAccessor> & {
|
|
19
19
|
style: string;
|
|
20
20
|
}>, useScale: Record<ScaledChannelName, boolean>, plot: PlotState, defaultColorProp?: 'fill' | 'stroke' | null): string;
|
|
21
|
-
export declare function resolveStyles(plot: PlotState, datum: ScaledDataRecord, channels: Partial<Record<
|
|
21
|
+
export declare function resolveStyles(plot: PlotState, datum: ScaledDataRecord, channels: Partial<Record<ScaledChannelName | MarkStyleProps, ChannelAccessor> & {
|
|
22
22
|
style: string;
|
|
23
23
|
}>, defaultColorProp: "fill" | "stroke" | null | undefined, useScale: Record<ScaledChannelName, boolean>, recomputeChannels?: boolean): [string | null, string | null];
|
|
24
24
|
export {};
|
package/dist/helpers/scales.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { ChannelAccessor, GenericMarkOptions, Mark, MarkType, PlotDefaults,
|
|
1
|
+
import type { ChannelAccessor, GenericMarkOptions, Mark, MarkType, PlotDefaults, PlotScaleFunction, ResolvedPlotOptions, PlotScales, PlotState, RawValue, ScaleName, ScaleOptions, ScaleType, ScaledChannelName, UsedScales } from '../types/index.js';
|
|
2
2
|
/**
|
|
3
3
|
* compute the plot scales
|
|
4
4
|
*/
|
|
5
|
-
export declare function computeScales(plotOptions:
|
|
6
|
-
export declare function createScale(name: ScaleName, scaleOptions: Partial<ScaleOptions>, marks: Mark<GenericMarkOptions>[], plotOptions:
|
|
5
|
+
export declare function computeScales(plotOptions: ResolvedPlotOptions, plotWidth: number, plotHeight: number, plotHasFilledDotMarks: boolean, marks: Mark<GenericMarkOptions>[], plotDefaults: PlotDefaults): PlotScales;
|
|
6
|
+
export declare function createScale(name: ScaleName, scaleOptions: Partial<ScaleOptions>, marks: Mark<GenericMarkOptions>[], plotOptions: ResolvedPlotOptions, plotWidth: number, plotHeight: number, plotHasFilledDotMarks: boolean, plotDefaults: PlotDefaults): {
|
|
7
7
|
type: ScaleType;
|
|
8
8
|
domain: number[];
|
|
9
9
|
range: number[];
|
|
10
|
-
fn:
|
|
10
|
+
fn: PlotScaleFunction;
|
|
11
11
|
skip: Map<any, any>;
|
|
12
12
|
isDummy: boolean;
|
|
13
13
|
manualActiveMarks: number;
|
|
@@ -16,8 +16,8 @@ export declare function createScale(name: ScaleName, scaleOptions: Partial<Scale
|
|
|
16
16
|
} | {
|
|
17
17
|
type: ScaleType;
|
|
18
18
|
domain: RawValue[];
|
|
19
|
-
range:
|
|
20
|
-
fn:
|
|
19
|
+
range: RawValue[];
|
|
20
|
+
fn: PlotScaleFunction;
|
|
21
21
|
skip: Map<ScaledChannelName, Set<symbol>>;
|
|
22
22
|
manualActiveMarks: number;
|
|
23
23
|
uniqueScaleProps: Set<ChannelAccessor>;
|
package/dist/helpers/scales.js
CHANGED
|
@@ -7,6 +7,17 @@ import isDataRecord from './isDataRecord.js';
|
|
|
7
7
|
import { createProjection } from './projection.js';
|
|
8
8
|
import { maybeInterval } from './autoTicks.js';
|
|
9
9
|
import { IS_SORTED } from '../transforms/sort.js';
|
|
10
|
+
function normalizeScaleFn(fn) {
|
|
11
|
+
const out = fn;
|
|
12
|
+
out.range ||= () => [];
|
|
13
|
+
out.invert ||= (value) => value;
|
|
14
|
+
out.bandwidth ||= () => 0;
|
|
15
|
+
out.ticks ||= () => [];
|
|
16
|
+
out.quantiles ||= () => [];
|
|
17
|
+
out.thresholds ||= () => [];
|
|
18
|
+
out.domain ||= () => [];
|
|
19
|
+
return out;
|
|
20
|
+
}
|
|
10
21
|
/**
|
|
11
22
|
* compute the plot scales
|
|
12
23
|
*/
|
|
@@ -38,11 +49,12 @@ export function createScale(name, scaleOptions, marks, plotOptions, plotWidth, p
|
|
|
38
49
|
// no scale defined, return a dummy scale
|
|
39
50
|
const fn = name === 'color' ? () => 'currentColor' : () => 0;
|
|
40
51
|
fn.range = name === 'color' ? () => ['currentColor'] : () => [0];
|
|
52
|
+
const normalizedFn = normalizeScaleFn(fn);
|
|
41
53
|
return {
|
|
42
54
|
type: 'linear',
|
|
43
55
|
domain: [0],
|
|
44
56
|
range: [0],
|
|
45
|
-
fn,
|
|
57
|
+
fn: normalizedFn,
|
|
46
58
|
skip: new Map(),
|
|
47
59
|
isDummy: true,
|
|
48
60
|
manualActiveMarks: 0,
|
|
@@ -195,7 +207,7 @@ export function createScale(name, scaleOptions, marks, plotOptions, plotWidth, p
|
|
|
195
207
|
if (!scaleFn) {
|
|
196
208
|
throw new Error(`No scale function defined for ${name}`);
|
|
197
209
|
}
|
|
198
|
-
const
|
|
210
|
+
const rawFn = scaleFn({
|
|
199
211
|
name,
|
|
200
212
|
type,
|
|
201
213
|
domain,
|
|
@@ -206,6 +218,7 @@ export function createScale(name, scaleOptions, marks, plotOptions, plotWidth, p
|
|
|
206
218
|
plotHasFilledDotMarks,
|
|
207
219
|
plotDefaults
|
|
208
220
|
});
|
|
221
|
+
const fn = normalizeScaleFn(rawFn);
|
|
209
222
|
const range = fn.range();
|
|
210
223
|
return {
|
|
211
224
|
type,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ResolvedPlotOptions } from '../types/plot';
|
|
2
2
|
import type { PlotScales, PlotState as TPlotState } from '../types';
|
|
3
3
|
/**
|
|
4
4
|
* internal state representation of a Plot, using Svelte 5 runes for reactivity
|
|
@@ -6,7 +6,7 @@ import type { PlotScales, PlotState as TPlotState } from '../types';
|
|
|
6
6
|
declare class PlotState implements TPlotState {
|
|
7
7
|
width: number;
|
|
8
8
|
height: number;
|
|
9
|
-
options:
|
|
9
|
+
options: ResolvedPlotOptions;
|
|
10
10
|
facetWidth: number;
|
|
11
11
|
facetHeight: number;
|
|
12
12
|
plotWidth: number;
|
|
@@ -136,6 +136,7 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
136
136
|
class: string;
|
|
137
137
|
style: string;
|
|
138
138
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
139
|
+
title: ConstantAccessor<string, Datum>;
|
|
139
140
|
}> & LinkableMarkProps<Datum> & {
|
|
140
141
|
/** the input data array; each element becomes one point in the area */
|
|
141
142
|
data?: Datum[];
|
|
@@ -136,6 +136,7 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
136
136
|
class: string;
|
|
137
137
|
style: string;
|
|
138
138
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
139
|
+
title: ConstantAccessor<string, Datum>;
|
|
139
140
|
}> & LinkableMarkProps<Datum> & {
|
|
140
141
|
/** the input data array; each element becomes one point in the area */
|
|
141
142
|
data?: Datum[];
|
|
@@ -136,6 +136,7 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
136
136
|
class: string;
|
|
137
137
|
style: string;
|
|
138
138
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
139
|
+
title: ConstantAccessor<string, Datum>;
|
|
139
140
|
}> & LinkableMarkProps<Datum> & {
|
|
140
141
|
/** the input data array; each element becomes one point in the area */
|
|
141
142
|
data?: Datum[];
|
|
@@ -135,6 +135,7 @@ declare function $$render<Datum = DataRecord | GeoJSON.GeoJsonObject>(): {
|
|
|
135
135
|
class: string;
|
|
136
136
|
style: string;
|
|
137
137
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
138
|
+
title: ConstantAccessor<string, Datum>;
|
|
138
139
|
}>, "fill" | "fillOpacity"> & {
|
|
139
140
|
/** the input data array; each element becomes one arrow */
|
|
140
141
|
data: Datum[];
|
|
@@ -135,7 +135,8 @@ declare function $$render<Datum extends RawValue>(): {
|
|
|
135
135
|
class: string;
|
|
136
136
|
style: string;
|
|
137
137
|
cursor: ConstantAccessor<CSS.Property.Cursor, Datum>;
|
|
138
|
-
|
|
138
|
+
title: ConstantAccessor<string, Datum>;
|
|
139
|
+
}>, "fillOpacity" | "paintOrder" | "title" | "href" | "target"> & {
|
|
139
140
|
/** custom tick values to display on the axis */
|
|
140
141
|
data?: Datum[];
|
|
141
142
|
/** whether this axis was automatically added by the Plot component */
|
|
@@ -134,7 +134,8 @@ declare function $$render<Datum extends RawValue>(): {
|
|
|
134
134
|
class: string;
|
|
135
135
|
style: string;
|
|
136
136
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
137
|
-
|
|
137
|
+
title: ConstantAccessor<string, Datum>;
|
|
138
|
+
}>, "fillOpacity" | "paintOrder" | "title" | "href" | "target"> & {
|
|
138
139
|
/** custom tick values to display on the axis */
|
|
139
140
|
data?: Datum[];
|
|
140
141
|
/** whether this axis was automatically added by the Plot component */
|
|
@@ -136,6 +136,7 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
136
136
|
class: string;
|
|
137
137
|
style: string;
|
|
138
138
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
139
|
+
title: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
139
140
|
}> & LinkableMarkProps<Datum> & BaseRectMarkProps<Datum> & {
|
|
140
141
|
data: Datum[];
|
|
141
142
|
x?: ChannelAccessor<Datum>;
|
|
@@ -135,6 +135,7 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
135
135
|
class: string;
|
|
136
136
|
style: string;
|
|
137
137
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
138
|
+
title: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
138
139
|
}> & LinkableMarkProps<Datum> & BaseRectMarkProps<Datum> & {
|
|
139
140
|
data: Datum[];
|
|
140
141
|
x?: ChannelAccessor<Datum>;
|
|
@@ -134,6 +134,7 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
134
134
|
class: string;
|
|
135
135
|
style: string;
|
|
136
136
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
137
|
+
title: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
137
138
|
}> & {
|
|
138
139
|
/** the input data array */
|
|
139
140
|
data: Datum[];
|
|
@@ -134,6 +134,7 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
134
134
|
class: string;
|
|
135
135
|
style: string;
|
|
136
136
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
137
|
+
title: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
137
138
|
}> & {
|
|
138
139
|
/** the input data array */
|
|
139
140
|
data: Datum[];
|
|
@@ -134,6 +134,7 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
134
134
|
class: string;
|
|
135
135
|
style: string;
|
|
136
136
|
cursor: import("../types").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
137
|
+
title: import("../types").ConstantAccessor<string, Datum>;
|
|
137
138
|
}>, "fx" | "fy" | "fill" | "stroke" | "class"> & {
|
|
138
139
|
/** the input data array */
|
|
139
140
|
data: Datum[];
|
|
@@ -134,6 +134,7 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
134
134
|
class: string;
|
|
135
135
|
style: string;
|
|
136
136
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
137
|
+
title: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
137
138
|
}>, "stroke" | "strokeWidth" | "strokeOpacity" | "strokeLinejoin" | "strokeLinecap" | "strokeMiterlimit" | "strokeDasharray" | "strokeDashoffset" | "cursor"> & {
|
|
138
139
|
/** the brush state object (bindable); contains x1, x2, y1, y2, and enabled */
|
|
139
140
|
brush: {
|
|
@@ -134,6 +134,7 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
134
134
|
class: string;
|
|
135
135
|
style: string;
|
|
136
136
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
137
|
+
title: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
137
138
|
}> & LinkableMarkProps<Datum> & BaseRectMarkProps<Datum> & {
|
|
138
139
|
/** the input data array; each element becomes one cell */
|
|
139
140
|
data: Datum[];
|
|
@@ -134,6 +134,7 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
134
134
|
class: string;
|
|
135
135
|
style: string;
|
|
136
136
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
137
|
+
title: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
137
138
|
}> & import("../types/index.js").LinkableMarkProps<Record<string | symbol, import("../types/index.js").RawValue>> & import("../types/index.js").BaseRectMarkProps<Record<string | symbol, import("../types/index.js").RawValue>> & {
|
|
138
139
|
data: Record<string | symbol, import("../types/index.js").RawValue>[];
|
|
139
140
|
x?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
@@ -134,6 +134,7 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
134
134
|
class: string;
|
|
135
135
|
style: string;
|
|
136
136
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
137
|
+
title: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
137
138
|
}> & import("../types/index.js").LinkableMarkProps<Record<string | symbol, import("../types/index.js").RawValue>> & import("../types/index.js").BaseRectMarkProps<Record<string | symbol, import("../types/index.js").RawValue>> & {
|
|
138
139
|
data: Record<string | symbol, import("../types/index.js").RawValue>[];
|
|
139
140
|
x?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
@@ -135,6 +135,7 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
135
135
|
class: string;
|
|
136
136
|
style: string;
|
|
137
137
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
138
|
+
title: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
138
139
|
}> & {
|
|
139
140
|
/** the input data array */
|
|
140
141
|
data?: Datum[];
|
|
@@ -135,6 +135,7 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
135
135
|
class: string;
|
|
136
136
|
style: string;
|
|
137
137
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
138
|
+
title: ConstantAccessor<string, Datum>;
|
|
138
139
|
}>, "fill" | "fillOpacity"> & {
|
|
139
140
|
/** the input data array */
|
|
140
141
|
data: Datum[];
|
|
@@ -135,6 +135,7 @@ declare function $$render<Datum = DataRecord | GeoJSON.GeoJsonObject>(): {
|
|
|
135
135
|
class: string;
|
|
136
136
|
style: string;
|
|
137
137
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
138
|
+
title: ConstantAccessor<string, Datum>;
|
|
138
139
|
}> & LinkableMarkProps<Datum> & {
|
|
139
140
|
/** the input data array; each element becomes one dot */
|
|
140
141
|
data?: Datum[];
|
|
@@ -134,6 +134,7 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
134
134
|
class: string;
|
|
135
135
|
style: string;
|
|
136
136
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, unknown>;
|
|
137
|
+
title: import("../types/index.js").ConstantAccessor<string, unknown>;
|
|
137
138
|
}> & import("../types/mark").LinkableMarkProps<unknown> & {
|
|
138
139
|
data?: unknown[] | undefined;
|
|
139
140
|
x?: ChannelAccessor<unknown>;
|
|
@@ -134,6 +134,7 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
134
134
|
class: string;
|
|
135
135
|
style: string;
|
|
136
136
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, unknown>;
|
|
137
|
+
title: import("../types/index.js").ConstantAccessor<string, unknown>;
|
|
137
138
|
}> & import("../types/mark").LinkableMarkProps<unknown> & {
|
|
138
139
|
data?: unknown[] | undefined;
|
|
139
140
|
x?: import("../types/channel").ChannelAccessor<unknown>;
|
|
@@ -134,6 +134,7 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
134
134
|
class: string;
|
|
135
135
|
style: string;
|
|
136
136
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
137
|
+
title: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
137
138
|
}>, "fill" | "fillOpacity" | "stroke" | "strokeOpacity"> & BaseRectMarkProps<Datum> & LinkableMarkProps<Datum> & {
|
|
138
139
|
/** the fill color of the frame */
|
|
139
140
|
fill?: string;
|
|
@@ -134,6 +134,7 @@ declare function $$render<Datum = DataRecord | GeoJSON.GeoJsonObject>(): {
|
|
|
134
134
|
class: string;
|
|
135
135
|
style: string;
|
|
136
136
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
137
|
+
title: ConstantAccessor<string, Datum>;
|
|
137
138
|
}> & LinkableMarkProps<Datum> & {
|
|
138
139
|
/** the input GeoJSON data array */
|
|
139
140
|
data?: Datum[] | {
|
|
@@ -134,6 +134,7 @@ declare function $$render<Datum = RawValue>(): {
|
|
|
134
134
|
class: string;
|
|
135
135
|
style: string;
|
|
136
136
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
137
|
+
title: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
137
138
|
}>, "fill" | "fillOpacity"> & {
|
|
138
139
|
/** custom values at which to draw vertical gridlines */
|
|
139
140
|
data?: Datum[];
|
|
@@ -134,6 +134,7 @@ declare function $$render<Datum = RawValue>(): {
|
|
|
134
134
|
class: string;
|
|
135
135
|
style: string;
|
|
136
136
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
137
|
+
title: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
137
138
|
}>, "fill" | "fillOpacity"> & {
|
|
138
139
|
/** custom values at which to draw horizontal gridlines */
|
|
139
140
|
data?: Datum[];
|
|
@@ -134,6 +134,7 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
134
134
|
class: string;
|
|
135
135
|
style: string;
|
|
136
136
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
137
|
+
title: ConstantAccessor<string, Datum>;
|
|
137
138
|
}> & LinkableMarkProps<Datum> & {
|
|
138
139
|
/** the input data array; each element becomes one image */
|
|
139
140
|
data: Datum[];
|
|
@@ -136,6 +136,7 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
136
136
|
class: string;
|
|
137
137
|
style: string;
|
|
138
138
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
139
|
+
title: ConstantAccessor<string, Datum>;
|
|
139
140
|
}> & {
|
|
140
141
|
/** the input data array; each element becomes one point in the line */
|
|
141
142
|
data?: Datum[];
|
|
@@ -134,6 +134,7 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
134
134
|
class: string;
|
|
135
135
|
style: string;
|
|
136
136
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
137
|
+
title: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
137
138
|
}> & {
|
|
138
139
|
data?: Record<string | symbol, import("../types/index.js").RawValue>[] | undefined;
|
|
139
140
|
x?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
@@ -134,6 +134,7 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
134
134
|
class: string;
|
|
135
135
|
style: string;
|
|
136
136
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
137
|
+
title: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
137
138
|
}> & {
|
|
138
139
|
data?: Record<string | symbol, import("../types/index.js").RawValue>[] | undefined;
|
|
139
140
|
x?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
@@ -135,6 +135,7 @@ declare function $$render<Datum = DataRecord | GeoJSON.GeoJsonObject>(): {
|
|
|
135
135
|
class: string;
|
|
136
136
|
style: string;
|
|
137
137
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
138
|
+
title: ConstantAccessor<string, Datum>;
|
|
138
139
|
}> & MarkerOptions & {
|
|
139
140
|
/** the input data array; each element becomes one link */
|
|
140
141
|
data?: Datum[];
|
|
@@ -134,6 +134,7 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
134
134
|
class: string;
|
|
135
135
|
style: string;
|
|
136
136
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
137
|
+
title: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
137
138
|
}> & LinkableMarkProps<Datum> & BaseRectMarkProps<Datum> & {
|
|
138
139
|
/** the input data array; each element becomes one rectangle */
|
|
139
140
|
data?: Datum[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type RegressionXMarkProps = RegressionMarkProps;
|
|
2
2
|
import { type RegressionMarkProps } from './helpers/Regression.svelte';
|
|
3
3
|
/** Calculates and displays a regression line with x as the dependent variable */
|
|
4
|
-
declare const RegressionX: import("svelte").Component<
|
|
4
|
+
declare const RegressionX: import("svelte").Component<RegressionMarkProps, {}, "">;
|
|
5
5
|
type RegressionX = ReturnType<typeof RegressionX>;
|
|
6
6
|
export default RegressionX;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type RegressionYMarkProps = RegressionMarkProps;
|
|
2
2
|
import { type RegressionMarkProps } from './helpers/Regression.svelte';
|
|
3
3
|
/** Calculates and displays a regression line with y as the dependent variable */
|
|
4
|
-
declare const RegressionY: import("svelte").Component<
|
|
4
|
+
declare const RegressionY: import("svelte").Component<RegressionMarkProps, {}, "">;
|
|
5
5
|
type RegressionY = ReturnType<typeof RegressionY>;
|
|
6
6
|
export default RegressionY;
|
|
@@ -134,6 +134,7 @@ declare function $$render<Datum = DataRecord | RawValue>(): {
|
|
|
134
134
|
class: string;
|
|
135
135
|
style: string;
|
|
136
136
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
137
|
+
title: ConstantAccessor<string, Datum>;
|
|
137
138
|
}>, "fill" | "fillOpacity"> & {
|
|
138
139
|
/** the input data array; each element becomes one vertical rule */
|
|
139
140
|
data?: Datum[];
|
|
@@ -134,6 +134,7 @@ declare function $$render<Datum = DataRecord>(): {
|
|
|
134
134
|
class: string;
|
|
135
135
|
style: string;
|
|
136
136
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
137
|
+
title: ConstantAccessor<string, Datum>;
|
|
137
138
|
}>, "fill" | "fillOpacity"> & {
|
|
138
139
|
/** the input data array; each element becomes one horizontal rule */
|
|
139
140
|
data?: Datum[];
|
|
@@ -134,6 +134,7 @@ declare function $$render<Datum = DataRecord | GeoJSON.GeoJsonObject>(): {
|
|
|
134
134
|
class: string;
|
|
135
135
|
style: string;
|
|
136
136
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, unknown>;
|
|
137
|
+
title: import("../types/index.js").ConstantAccessor<string, unknown>;
|
|
137
138
|
}> & {
|
|
138
139
|
data: unknown[];
|
|
139
140
|
x: ChannelAccessor<unknown>;
|
|
@@ -136,6 +136,7 @@ declare function $$render<Datum = DataRecord | GeoJSON.GeoJsonObject>(): {
|
|
|
136
136
|
class: string;
|
|
137
137
|
style: string;
|
|
138
138
|
cursor: ConstantAccessor<CSS.Property.Cursor, Datum>;
|
|
139
|
+
title: ConstantAccessor<string, Datum>;
|
|
139
140
|
}> & LinkableMarkProps<Datum> & {
|
|
140
141
|
/** the input data array; each element becomes one text label */
|
|
141
142
|
data?: Datum[];
|
|
@@ -333,6 +334,7 @@ declare function $$render<Datum = DataRecord | GeoJSON.GeoJsonObject>(): {
|
|
|
333
334
|
class: string;
|
|
334
335
|
style: string;
|
|
335
336
|
cursor: ConstantAccessor<CSS.Property.Cursor, Datum>;
|
|
337
|
+
title: ConstantAccessor<string, Datum>;
|
|
336
338
|
}> & LinkableMarkProps<Datum> & {
|
|
337
339
|
/** the input data array; each element becomes one text label */
|
|
338
340
|
data?: Datum[];
|
|
@@ -134,6 +134,7 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
134
134
|
class: string;
|
|
135
135
|
style: string;
|
|
136
136
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
137
|
+
title: ConstantAccessor<string, Datum>;
|
|
137
138
|
}>, "fill" | "fillOpacity"> & {
|
|
138
139
|
/** the input data array; each element becomes one vertical tick */
|
|
139
140
|
data: Datum[];
|
|
@@ -134,6 +134,7 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
134
134
|
class: string;
|
|
135
135
|
style: string;
|
|
136
136
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
137
|
+
title: ConstantAccessor<string, Datum>;
|
|
137
138
|
}>, "fill" | "fillOpacity"> & {
|
|
138
139
|
/** the input data array; each element becomes one horizontal tick */
|
|
139
140
|
data: Datum[];
|
|
@@ -135,6 +135,7 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
135
135
|
class: string;
|
|
136
136
|
style: string;
|
|
137
137
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
138
|
+
title: ConstantAccessor<string, Datum>;
|
|
138
139
|
}>, "stroke" | "strokeWidth" | "strokeDasharray"> & {
|
|
139
140
|
/** the input data array */
|
|
140
141
|
data?: Datum[];
|
|
@@ -139,6 +139,7 @@ declare function $$render<Datum = DataRecord | GeoJSON.GeoJsonObject>(): {
|
|
|
139
139
|
class: string;
|
|
140
140
|
style: string;
|
|
141
141
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
142
|
+
title: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
142
143
|
}> & {
|
|
143
144
|
/** the input data array; each element becomes one vector */
|
|
144
145
|
data: Datum[];
|
|
@@ -136,6 +136,7 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
136
136
|
class: string;
|
|
137
137
|
style: string;
|
|
138
138
|
cursor: import("../types").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
139
|
+
title: import("../types").ConstantAccessor<string, Datum>;
|
|
139
140
|
}> & LinkableMarkProps<Datum> & WaffleOptions<Datum> & {
|
|
140
141
|
/** the input data array */
|
|
141
142
|
data?: Datum[];
|
|
@@ -135,6 +135,7 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
135
135
|
class: string;
|
|
136
136
|
style: string;
|
|
137
137
|
cursor: import("../types").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
138
|
+
title: import("../types").ConstantAccessor<string, Datum>;
|
|
138
139
|
}> & LinkableMarkProps<Datum> & WaffleOptions<Datum> & {
|
|
139
140
|
/** the input data array */
|
|
140
141
|
data?: Datum[];
|