svelteplot 0.4.0 → 0.4.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/helpers/autoScales.js +1 -1
- package/dist/helpers/mergeDeep.js +0 -1
- package/dist/helpers/reduce.js +0 -1
- package/dist/helpers/scales.js +1 -1
- package/dist/marks/AreaX.svelte.d.ts +29 -29
- package/dist/marks/AreaY.svelte.d.ts +29 -29
- package/dist/marks/DotX.svelte.d.ts +29 -29
- package/dist/marks/DotY.svelte.d.ts +29 -29
- package/dist/marks/LineX.svelte.d.ts +33 -33
- package/dist/marks/LineY.svelte.d.ts +33 -33
- package/dist/marks/Spike.svelte.d.ts +27 -27
- package/dist/marks/Text.svelte +4 -3
- package/dist/marks/Text.svelte.d.ts +2 -2
- package/dist/marks/helpers/MultilineText.svelte +3 -7
- package/dist/transforms/bollinger.d.ts +22 -22
- package/dist/transforms/group.d.ts +4 -4
- package/dist/transforms/select.d.ts +161 -161
- package/dist/transforms/window.d.ts +44 -46
- package/dist/types/data.d.ts +1 -3
- package/package.json +1 -1
|
@@ -180,7 +180,7 @@ export function autoScaleColor({ type, domain, scaleOptions, plotOptions, plotWi
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
if (!fn) {
|
|
183
|
-
console.
|
|
183
|
+
console.error('color problem', type);
|
|
184
184
|
// problem
|
|
185
185
|
fn = () => 'red';
|
|
186
186
|
fn.range = () => ['red'];
|
package/dist/helpers/reduce.js
CHANGED
|
@@ -72,7 +72,6 @@ export function reduceOutputs(newDatum, data, options, outputs, channels, newCha
|
|
|
72
72
|
if (typeof channels[k] === 'string') {
|
|
73
73
|
// the named reducer is applied to a column name, so we can use a combination
|
|
74
74
|
// of both as axis labels, e.g. MEAN(weight)
|
|
75
|
-
// eslint-disable-next-line no-irregular-whitespace
|
|
76
75
|
newChannels[`__${k}_origField`] = `${reducerName} ( ${channels[k]} )`;
|
|
77
76
|
}
|
|
78
77
|
else {
|
package/dist/helpers/scales.js
CHANGED
|
@@ -177,7 +177,7 @@ export function createScale(name, scaleOptions, marks, plotOptions, plotWidth, p
|
|
|
177
177
|
}
|
|
178
178
|
else {
|
|
179
179
|
if (markTypes.size > 0) {
|
|
180
|
-
console.
|
|
180
|
+
console.error('Setting interval via axis options is only supported for ordinal scales');
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
}
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import type { ChannelAccessor, DataRow } from '../types/index.js';
|
|
2
2
|
declare class __sveltets_Render<Datum extends DataRow> {
|
|
3
3
|
props(): Omit<Partial<{
|
|
4
|
-
filter?: import("../types/index.js").ConstantAccessor<boolean, import("../types/data").
|
|
4
|
+
filter?: import("../types/index.js").ConstantAccessor<boolean, Record<string | symbol, import("../types/data").RawValue>>;
|
|
5
5
|
facet?: "auto" | "include" | "exclude";
|
|
6
|
-
fx: ChannelAccessor<import("../types/data").
|
|
7
|
-
fy: ChannelAccessor<import("../types/data").
|
|
8
|
-
dx: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
9
|
-
dy: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
10
|
-
fill: ChannelAccessor<import("../types/data").
|
|
11
|
-
fillOpacity: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
6
|
+
fx: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
7
|
+
fy: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
8
|
+
dx: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
9
|
+
dy: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
10
|
+
fill: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
11
|
+
fillOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
12
12
|
sort: {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, import("../types/data").
|
|
16
|
-
stroke: ChannelAccessor<import("../types/data").
|
|
17
|
-
strokeWidth: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
18
|
-
strokeOpacity: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
19
|
-
strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, import("../types/data").
|
|
20
|
-
strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, import("../types/data").
|
|
21
|
-
strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
22
|
-
opacity: ChannelAccessor<import("../types/data").
|
|
23
|
-
strokeDasharray: import("../types/index.js").ConstantAccessor<string, import("../types/data").
|
|
24
|
-
strokeDashoffset: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
25
|
-
mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, import("../types/data").
|
|
15
|
+
} | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Record<string | symbol, import("../types/data").RawValue>>;
|
|
16
|
+
stroke: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
17
|
+
strokeWidth: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
18
|
+
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
19
|
+
strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Record<string | symbol, import("../types/data").RawValue>>;
|
|
20
|
+
strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Record<string | symbol, import("../types/data").RawValue>>;
|
|
21
|
+
strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
22
|
+
opacity: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
23
|
+
strokeDasharray: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
24
|
+
strokeDashoffset: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
25
|
+
mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Record<string | symbol, import("../types/data").RawValue>>;
|
|
26
26
|
clipPath: string;
|
|
27
|
-
imageFilter: import("../types/index.js").ConstantAccessor<string, import("../types/data").
|
|
28
|
-
shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, import("../types/data").
|
|
29
|
-
paintOrder: import("../types/index.js").ConstantAccessor<string, import("../types/data").
|
|
27
|
+
imageFilter: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
28
|
+
shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Record<string | symbol, import("../types/data").RawValue>>;
|
|
29
|
+
paintOrder: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
30
30
|
onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
31
31
|
ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
32
32
|
onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
@@ -58,14 +58,14 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
58
58
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
59
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
60
|
class: string | null;
|
|
61
|
-
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, import("../types/data").
|
|
62
|
-
}> & import("../types/mark").LinkableMarkProps<import("../types/data").
|
|
63
|
-
data: import("../types/data").
|
|
64
|
-
x1?: ChannelAccessor<import("../types/data").
|
|
65
|
-
x2?: ChannelAccessor<import("../types/data").
|
|
66
|
-
y1?: ChannelAccessor<import("../types/data").
|
|
67
|
-
y2?: ChannelAccessor<import("../types/data").
|
|
68
|
-
z?: ChannelAccessor<import("../types/data").
|
|
61
|
+
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types/data").RawValue>>;
|
|
62
|
+
}> & import("../types/mark").LinkableMarkProps<Record<string | symbol, import("../types/data").RawValue>> & {
|
|
63
|
+
data: Record<string | symbol, import("../types/data").RawValue>[];
|
|
64
|
+
x1?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
65
|
+
x2?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
66
|
+
y1?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
67
|
+
y2?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
68
|
+
z?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
69
69
|
curve?: import("../types/index.js").CurveName | import("d3-shape").CurveFactory;
|
|
70
70
|
tension?: number;
|
|
71
71
|
sort?: import("../types/index.js").ConstantAccessor<import("../types/data").RawValue> | {
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import type { ChannelAccessor, DataRow } from '../types/index.js';
|
|
2
2
|
declare class __sveltets_Render<Datum extends DataRow> {
|
|
3
3
|
props(): Omit<Partial<{
|
|
4
|
-
filter?: import("../types/index.js").ConstantAccessor<boolean, import("../types/data").
|
|
4
|
+
filter?: import("../types/index.js").ConstantAccessor<boolean, Record<string | symbol, import("../types/data").RawValue>>;
|
|
5
5
|
facet?: "auto" | "include" | "exclude";
|
|
6
|
-
fx: ChannelAccessor<import("../types/data").
|
|
7
|
-
fy: ChannelAccessor<import("../types/data").
|
|
8
|
-
dx: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
9
|
-
dy: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
10
|
-
fill: ChannelAccessor<import("../types/data").
|
|
11
|
-
fillOpacity: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
6
|
+
fx: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
7
|
+
fy: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
8
|
+
dx: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
9
|
+
dy: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
10
|
+
fill: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
11
|
+
fillOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
12
12
|
sort: {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, import("../types/data").
|
|
16
|
-
stroke: ChannelAccessor<import("../types/data").
|
|
17
|
-
strokeWidth: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
18
|
-
strokeOpacity: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
19
|
-
strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, import("../types/data").
|
|
20
|
-
strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, import("../types/data").
|
|
21
|
-
strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
22
|
-
opacity: ChannelAccessor<import("../types/data").
|
|
23
|
-
strokeDasharray: import("../types/index.js").ConstantAccessor<string, import("../types/data").
|
|
24
|
-
strokeDashoffset: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
25
|
-
mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, import("../types/data").
|
|
15
|
+
} | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Record<string | symbol, import("../types/data").RawValue>>;
|
|
16
|
+
stroke: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
17
|
+
strokeWidth: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
18
|
+
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
19
|
+
strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Record<string | symbol, import("../types/data").RawValue>>;
|
|
20
|
+
strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Record<string | symbol, import("../types/data").RawValue>>;
|
|
21
|
+
strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
22
|
+
opacity: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
23
|
+
strokeDasharray: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
24
|
+
strokeDashoffset: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
25
|
+
mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Record<string | symbol, import("../types/data").RawValue>>;
|
|
26
26
|
clipPath: string;
|
|
27
|
-
imageFilter: import("../types/index.js").ConstantAccessor<string, import("../types/data").
|
|
28
|
-
shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, import("../types/data").
|
|
29
|
-
paintOrder: import("../types/index.js").ConstantAccessor<string, import("../types/data").
|
|
27
|
+
imageFilter: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
28
|
+
shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Record<string | symbol, import("../types/data").RawValue>>;
|
|
29
|
+
paintOrder: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
30
30
|
onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
31
31
|
ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
32
32
|
onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
@@ -58,14 +58,14 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
58
58
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
59
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
60
|
class: string | null;
|
|
61
|
-
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, import("../types/data").
|
|
62
|
-
}> & import("../types/mark").LinkableMarkProps<import("../types/data").
|
|
63
|
-
data: import("../types/data").
|
|
64
|
-
x1?: ChannelAccessor<import("../types/data").
|
|
65
|
-
x2?: ChannelAccessor<import("../types/data").
|
|
66
|
-
y1?: ChannelAccessor<import("../types/data").
|
|
67
|
-
y2?: ChannelAccessor<import("../types/data").
|
|
68
|
-
z?: ChannelAccessor<import("../types/data").
|
|
61
|
+
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types/data").RawValue>>;
|
|
62
|
+
}> & import("../types/mark").LinkableMarkProps<Record<string | symbol, import("../types/data").RawValue>> & {
|
|
63
|
+
data: Record<string | symbol, import("../types/data").RawValue>[];
|
|
64
|
+
x1?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
65
|
+
x2?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
66
|
+
y1?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
67
|
+
y2?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
68
|
+
z?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
69
69
|
curve?: import("../types/index.js").CurveName | import("d3-shape").CurveFactory;
|
|
70
70
|
tension?: number;
|
|
71
71
|
sort?: import("../types/index.js").ConstantAccessor<import("../types/data").RawValue> | {
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import type { DataRow } from '../types/index.js';
|
|
2
2
|
declare class __sveltets_Render<Datum extends DataRow> {
|
|
3
3
|
props(): Omit<Partial<{
|
|
4
|
-
filter?: import("../types/index.js").ConstantAccessor<boolean, import("../types/data").
|
|
4
|
+
filter?: import("../types/index.js").ConstantAccessor<boolean, Record<string | symbol, import("../types/data").RawValue>>;
|
|
5
5
|
facet?: "auto" | "include" | "exclude";
|
|
6
|
-
fx: import("../types/channel").ChannelAccessor<import("../types/data").
|
|
7
|
-
fy: import("../types/channel").ChannelAccessor<import("../types/data").
|
|
8
|
-
dx: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
9
|
-
dy: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
10
|
-
fill: import("../types/channel").ChannelAccessor<import("../types/data").
|
|
11
|
-
fillOpacity: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
6
|
+
fx: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
7
|
+
fy: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
8
|
+
dx: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
9
|
+
dy: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
10
|
+
fill: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
11
|
+
fillOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
12
12
|
sort: {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, import("../types/data").
|
|
16
|
-
stroke: import("../types/channel").ChannelAccessor<import("../types/data").
|
|
17
|
-
strokeWidth: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
18
|
-
strokeOpacity: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
19
|
-
strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, import("../types/data").
|
|
20
|
-
strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, import("../types/data").
|
|
21
|
-
strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
22
|
-
opacity: import("../types/channel").ChannelAccessor<import("../types/data").
|
|
23
|
-
strokeDasharray: import("../types/index.js").ConstantAccessor<string, import("../types/data").
|
|
24
|
-
strokeDashoffset: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
25
|
-
mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, import("../types/data").
|
|
15
|
+
} | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Record<string | symbol, import("../types/data").RawValue>>;
|
|
16
|
+
stroke: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
17
|
+
strokeWidth: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
18
|
+
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
19
|
+
strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Record<string | symbol, import("../types/data").RawValue>>;
|
|
20
|
+
strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Record<string | symbol, import("../types/data").RawValue>>;
|
|
21
|
+
strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
22
|
+
opacity: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
23
|
+
strokeDasharray: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
24
|
+
strokeDashoffset: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
25
|
+
mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Record<string | symbol, import("../types/data").RawValue>>;
|
|
26
26
|
clipPath: string;
|
|
27
|
-
imageFilter: import("../types/index.js").ConstantAccessor<string, import("../types/data").
|
|
28
|
-
shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, import("../types/data").
|
|
29
|
-
paintOrder: import("../types/index.js").ConstantAccessor<string, import("../types/data").
|
|
27
|
+
imageFilter: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
28
|
+
shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Record<string | symbol, import("../types/data").RawValue>>;
|
|
29
|
+
paintOrder: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
30
30
|
onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
31
31
|
ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
32
32
|
onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
@@ -58,15 +58,15 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
58
58
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
59
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
60
|
class: string | null;
|
|
61
|
-
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, import("../types/data").
|
|
62
|
-
}> & import("../types/mark").LinkableMarkProps<import("../types/data").
|
|
63
|
-
data: import("../types/data").
|
|
64
|
-
x: import("../types/channel").ChannelAccessor<import("../types/data").
|
|
65
|
-
y: import("../types/channel").ChannelAccessor<import("../types/data").
|
|
66
|
-
r?: import("../types/channel").ChannelAccessor<import("../types/data").
|
|
67
|
-
symbol?: import("../types/channel").ChannelAccessor<import("../types/data").
|
|
61
|
+
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types/data").RawValue>>;
|
|
62
|
+
}> & import("../types/mark").LinkableMarkProps<Record<string | symbol, import("../types/data").RawValue>> & {
|
|
63
|
+
data: Record<string | symbol, import("../types/data").RawValue>[];
|
|
64
|
+
x: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
65
|
+
y: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
66
|
+
r?: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
67
|
+
symbol?: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>> | import("svelte").Snippet<[number, string]>;
|
|
68
68
|
canvas?: boolean;
|
|
69
|
-
dotClass?: import("../types/index.js").ConstantAccessor<string, import("../types/data").
|
|
69
|
+
dotClass?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
70
70
|
}, "y" | "data"> & {
|
|
71
71
|
data: Datum[];
|
|
72
72
|
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import type { DataRow } from '../types/index.js';
|
|
2
2
|
declare class __sveltets_Render<Datum extends DataRow> {
|
|
3
3
|
props(): Omit<Partial<{
|
|
4
|
-
filter?: import("../types/index.js").ConstantAccessor<boolean, import("../types/data").
|
|
4
|
+
filter?: import("../types/index.js").ConstantAccessor<boolean, Record<string | symbol, import("../types/data").RawValue>>;
|
|
5
5
|
facet?: "auto" | "include" | "exclude";
|
|
6
|
-
fx: import("../types/channel").ChannelAccessor<import("../types/data").
|
|
7
|
-
fy: import("../types/channel").ChannelAccessor<import("../types/data").
|
|
8
|
-
dx: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
9
|
-
dy: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
10
|
-
fill: import("../types/channel").ChannelAccessor<import("../types/data").
|
|
11
|
-
fillOpacity: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
6
|
+
fx: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
7
|
+
fy: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
8
|
+
dx: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
9
|
+
dy: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
10
|
+
fill: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
11
|
+
fillOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
12
12
|
sort: {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, import("../types/data").
|
|
16
|
-
stroke: import("../types/channel").ChannelAccessor<import("../types/data").
|
|
17
|
-
strokeWidth: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
18
|
-
strokeOpacity: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
19
|
-
strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, import("../types/data").
|
|
20
|
-
strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, import("../types/data").
|
|
21
|
-
strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
22
|
-
opacity: import("../types/channel").ChannelAccessor<import("../types/data").
|
|
23
|
-
strokeDasharray: import("../types/index.js").ConstantAccessor<string, import("../types/data").
|
|
24
|
-
strokeDashoffset: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
25
|
-
mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, import("../types/data").
|
|
15
|
+
} | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Record<string | symbol, import("../types/data").RawValue>>;
|
|
16
|
+
stroke: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
17
|
+
strokeWidth: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
18
|
+
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
19
|
+
strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Record<string | symbol, import("../types/data").RawValue>>;
|
|
20
|
+
strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Record<string | symbol, import("../types/data").RawValue>>;
|
|
21
|
+
strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
22
|
+
opacity: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
23
|
+
strokeDasharray: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
24
|
+
strokeDashoffset: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
25
|
+
mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Record<string | symbol, import("../types/data").RawValue>>;
|
|
26
26
|
clipPath: string;
|
|
27
|
-
imageFilter: import("../types/index.js").ConstantAccessor<string, import("../types/data").
|
|
28
|
-
shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, import("../types/data").
|
|
29
|
-
paintOrder: import("../types/index.js").ConstantAccessor<string, import("../types/data").
|
|
27
|
+
imageFilter: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
28
|
+
shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Record<string | symbol, import("../types/data").RawValue>>;
|
|
29
|
+
paintOrder: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
30
30
|
onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
31
31
|
ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
32
32
|
onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
@@ -58,15 +58,15 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
58
58
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
59
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
60
|
class: string | null;
|
|
61
|
-
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, import("../types/data").
|
|
62
|
-
}> & import("../types/mark").LinkableMarkProps<import("../types/data").
|
|
63
|
-
data: import("../types/data").
|
|
64
|
-
x: import("../types/channel").ChannelAccessor<import("../types/data").
|
|
65
|
-
y: import("../types/channel").ChannelAccessor<import("../types/data").
|
|
66
|
-
r?: import("../types/channel").ChannelAccessor<import("../types/data").
|
|
67
|
-
symbol?: import("../types/channel").ChannelAccessor<import("../types/data").
|
|
61
|
+
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types/data").RawValue>>;
|
|
62
|
+
}> & import("../types/mark").LinkableMarkProps<Record<string | symbol, import("../types/data").RawValue>> & {
|
|
63
|
+
data: Record<string | symbol, import("../types/data").RawValue>[];
|
|
64
|
+
x: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
65
|
+
y: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
66
|
+
r?: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
67
|
+
symbol?: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>> | import("svelte").Snippet<[number, string]>;
|
|
68
68
|
canvas?: boolean;
|
|
69
|
-
dotClass?: import("../types/index.js").ConstantAccessor<string, import("../types/data").
|
|
69
|
+
dotClass?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
70
70
|
}, "x" | "data"> & {
|
|
71
71
|
data: Datum[];
|
|
72
72
|
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import type { DataRow } from '../index.js';
|
|
2
2
|
declare class __sveltets_Render<Datum extends DataRow> {
|
|
3
3
|
props(): Omit<import("../types").MarkerOptions & Partial<{
|
|
4
|
-
filter?: import("../types").ConstantAccessor<boolean, import("../types").
|
|
4
|
+
filter?: import("../types").ConstantAccessor<boolean, Record<string | symbol, import("../types").RawValue>>;
|
|
5
5
|
facet?: "auto" | "include" | "exclude";
|
|
6
|
-
fx: import("../types").ChannelAccessor<import("../types").
|
|
7
|
-
fy: import("../types").ChannelAccessor<import("../types").
|
|
8
|
-
dx: import("../types").ConstantAccessor<number, import("../types").
|
|
9
|
-
dy: import("../types").ConstantAccessor<number, import("../types").
|
|
10
|
-
fill: import("../types").ChannelAccessor<import("../types").
|
|
11
|
-
fillOpacity: import("../types").ConstantAccessor<number, import("../types").
|
|
6
|
+
fx: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
7
|
+
fy: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
8
|
+
dx: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
9
|
+
dy: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
10
|
+
fill: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
11
|
+
fillOpacity: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
12
12
|
sort: {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} | ((a: import("../types").RawValue, b: import("../types").RawValue) => number) | import("../types").ConstantAccessor<import("../types").RawValue, import("../types").
|
|
16
|
-
stroke: import("../types").ChannelAccessor<import("../types").
|
|
17
|
-
strokeWidth: import("../types").ConstantAccessor<number, import("../types").
|
|
18
|
-
strokeOpacity: import("../types").ConstantAccessor<number, import("../types").
|
|
19
|
-
strokeLinejoin: import("../types").ConstantAccessor<import("csstype").Property.StrokeLinejoin, import("../types").
|
|
20
|
-
strokeLinecap: import("../types").ConstantAccessor<import("csstype").Property.StrokeLinecap, import("../types").
|
|
21
|
-
strokeMiterlimit: import("../types").ConstantAccessor<number, import("../types").
|
|
22
|
-
opacity: import("../types").ChannelAccessor<import("../types").
|
|
23
|
-
strokeDasharray: import("../types").ConstantAccessor<string, import("../types").
|
|
24
|
-
strokeDashoffset: import("../types").ConstantAccessor<number, import("../types").
|
|
25
|
-
mixBlendMode: import("../types").ConstantAccessor<import("csstype").Property.MixBlendMode, import("../types").
|
|
15
|
+
} | ((a: import("../types").RawValue, b: import("../types").RawValue) => number) | import("../types").ConstantAccessor<import("../types").RawValue, Record<string | symbol, import("../types").RawValue>>;
|
|
16
|
+
stroke: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
17
|
+
strokeWidth: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
18
|
+
strokeOpacity: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
19
|
+
strokeLinejoin: import("../types").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Record<string | symbol, import("../types").RawValue>>;
|
|
20
|
+
strokeLinecap: import("../types").ConstantAccessor<import("csstype").Property.StrokeLinecap, Record<string | symbol, import("../types").RawValue>>;
|
|
21
|
+
strokeMiterlimit: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
22
|
+
opacity: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
23
|
+
strokeDasharray: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
|
|
24
|
+
strokeDashoffset: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
25
|
+
mixBlendMode: import("../types").ConstantAccessor<import("csstype").Property.MixBlendMode, Record<string | symbol, import("../types").RawValue>>;
|
|
26
26
|
clipPath: string;
|
|
27
|
-
imageFilter: import("../types").ConstantAccessor<string, import("../types").
|
|
28
|
-
shapeRendering: import("../types").ConstantAccessor<import("csstype").Property.ShapeRendering, import("../types").
|
|
29
|
-
paintOrder: import("../types").ConstantAccessor<string, import("../types").
|
|
27
|
+
imageFilter: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
|
|
28
|
+
shapeRendering: import("../types").ConstantAccessor<import("csstype").Property.ShapeRendering, Record<string | symbol, import("../types").RawValue>>;
|
|
29
|
+
paintOrder: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
|
|
30
30
|
onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
31
31
|
ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
32
32
|
onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
@@ -58,26 +58,26 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
58
58
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
59
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
60
|
class: string | null;
|
|
61
|
-
cursor: import("../types").ConstantAccessor<import("csstype").Property.Cursor, import("../types").
|
|
61
|
+
cursor: import("../types").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types").RawValue>>;
|
|
62
62
|
}> & {
|
|
63
|
-
data?: import("../types").
|
|
64
|
-
x?: import("../types").ChannelAccessor<import("../types").
|
|
65
|
-
y?: import("../types").ChannelAccessor<import("../types").
|
|
66
|
-
z?: import("../types").ChannelAccessor<import("../types").
|
|
63
|
+
data?: Record<string | symbol, import("../types").RawValue>[] | undefined;
|
|
64
|
+
x?: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
65
|
+
y?: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
66
|
+
z?: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
67
67
|
outlineStroke?: string;
|
|
68
68
|
outlineStrokeWidth?: number;
|
|
69
69
|
outlineStrokeOpacity?: number;
|
|
70
70
|
curve?: import("../types").CurveName | import("d3-shape").CurveFactory | "auto";
|
|
71
71
|
tension?: number;
|
|
72
|
-
sort?: import("../types").ConstantAccessor<import("../types").RawValue, import("../types").
|
|
72
|
+
sort?: import("../types").ConstantAccessor<import("../types").RawValue, Record<string | symbol, import("../types").RawValue>> | {
|
|
73
73
|
channel: "stroke" | "fill";
|
|
74
74
|
};
|
|
75
|
-
text?: import("../types").ConstantAccessor<string, import("../types").
|
|
76
|
-
textFill?: import("../types").ConstantAccessor<string, import("../types").
|
|
77
|
-
textStroke?: import("../types").ConstantAccessor<string, import("../types").
|
|
78
|
-
textStartOffset?: import("../types").ConstantAccessor<string, import("../types").
|
|
79
|
-
textStrokeWidth?: import("../types").ConstantAccessor<number, import("../types").
|
|
80
|
-
lineClass?: import("../types").ConstantAccessor<string, import("../types").
|
|
75
|
+
text?: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
|
|
76
|
+
textFill?: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
|
|
77
|
+
textStroke?: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
|
|
78
|
+
textStartOffset?: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
|
|
79
|
+
textStrokeWidth?: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
80
|
+
lineClass?: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
|
|
81
81
|
canvas?: boolean;
|
|
82
82
|
}, "y" | "data"> & {
|
|
83
83
|
data: Datum[];
|