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