svelteplot 0.4.8 → 0.4.9-pr-230.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/Mark.svelte.d.ts +2 -2
- package/dist/core/Plot.svelte +3 -2
- package/dist/helpers/colors.d.ts +1 -1
- package/dist/helpers/index.d.ts +3 -3
- package/dist/helpers/index.js +10 -1
- package/dist/helpers/scales.d.ts +1 -1
- package/dist/helpers/scales.js +5 -1
- package/dist/helpers/typeChecks.d.ts +4 -4
- package/dist/marks/Area.svelte.d.ts +2 -2
- package/dist/marks/AreaX.svelte.d.ts +4 -3
- package/dist/marks/Arrow.svelte.d.ts +2 -2
- package/dist/marks/AxisX.svelte.d.ts +3 -3
- package/dist/marks/AxisY.svelte.d.ts +3 -3
- package/dist/marks/BarX.svelte.d.ts +2 -2
- package/dist/marks/BarY.svelte.d.ts +2 -2
- package/dist/marks/BollingerX.svelte.d.ts +2 -74
- package/dist/marks/BollingerY.svelte.d.ts +2 -74
- package/dist/marks/BoxY.svelte.d.ts +6 -66
- package/dist/marks/Cell.svelte.d.ts +2 -2
- package/dist/marks/CustomMark.svelte.d.ts +2 -81
- package/dist/marks/CustomMarkHTML.svelte.d.ts +1 -1
- package/dist/marks/DifferenceY.svelte.d.ts +7 -67
- package/dist/marks/Dot.svelte.d.ts +2 -2
- package/dist/marks/DotX.svelte.d.ts +3 -3
- package/dist/marks/DotY.svelte.d.ts +3 -3
- package/dist/marks/Geo.svelte.d.ts +2 -2
- package/dist/marks/GridX.svelte.d.ts +2 -2
- package/dist/marks/GridY.svelte.d.ts +2 -2
- package/dist/marks/HTMLTooltip.svelte +7 -19
- package/dist/marks/Line.svelte.d.ts +3 -3
- package/dist/marks/LineX.svelte.d.ts +5 -4
- package/dist/marks/LineY.svelte.d.ts +5 -4
- package/dist/marks/Link.svelte.d.ts +2 -2
- package/dist/marks/Rect.svelte.d.ts +2 -2
- package/dist/marks/RuleX.svelte.d.ts +2 -2
- package/dist/marks/RuleY.svelte.d.ts +2 -2
- package/dist/marks/Spike.svelte.d.ts +3 -3
- package/dist/marks/Text.svelte +4 -0
- package/dist/marks/Text.svelte.d.ts +8 -4
- package/dist/marks/TickX.svelte.d.ts +2 -2
- package/dist/marks/TickY.svelte.d.ts +2 -2
- package/dist/marks/Vector.svelte.d.ts +2 -2
- package/dist/marks/helpers/MarkerPath.svelte.d.ts +2 -160
- package/dist/marks/helpers/RectPath.svelte.d.ts +3 -63
- package/dist/transforms/bollinger.d.ts +1 -67
- package/dist/transforms/group.d.ts +4 -12
- package/dist/transforms/interval.d.ts +2 -124
- package/dist/transforms/recordize.d.ts +1 -4
- package/dist/transforms/select.d.ts +7 -434
- package/dist/transforms/sort.d.ts +3 -246
- package/dist/transforms/stack.d.ts +3 -23
- package/dist/transforms/window.d.ts +2 -130
- package/package.json +128 -127
|
@@ -1,85 +1,6 @@
|
|
|
1
|
-
import type { DataRecord
|
|
2
|
-
import type { Snippet } from 'svelte';
|
|
1
|
+
import type { DataRecord } from '../types/index.js';
|
|
3
2
|
declare class __sveltets_Render<Datum extends DataRecord> {
|
|
4
|
-
props():
|
|
5
|
-
filter?: import("../types/index.js").ConstantAccessor<boolean, Datum>;
|
|
6
|
-
facet?: "auto" | "include" | "exclude";
|
|
7
|
-
fx: ChannelAccessor<Datum>;
|
|
8
|
-
fy: ChannelAccessor<Datum>;
|
|
9
|
-
dx: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
10
|
-
dy: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
11
|
-
fill: ChannelAccessor<Datum>;
|
|
12
|
-
fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
13
|
-
sort: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
14
|
-
channel: string;
|
|
15
|
-
order?: "ascending" | "descending";
|
|
16
|
-
} | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Datum>;
|
|
17
|
-
stroke: ChannelAccessor<Datum>;
|
|
18
|
-
strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
19
|
-
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
20
|
-
strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
|
|
21
|
-
strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
|
|
22
|
-
strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
23
|
-
opacity: ChannelAccessor<Datum>;
|
|
24
|
-
strokeDasharray: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
25
|
-
strokeDashoffset: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
26
|
-
mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
|
|
27
|
-
clipPath: string;
|
|
28
|
-
imageFilter: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
29
|
-
shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
30
|
-
paintOrder: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
31
|
-
onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
32
|
-
ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
33
|
-
onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
34
|
-
onmousedown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
35
|
-
onmouseenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
36
|
-
onmousemove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
37
|
-
onmouseleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
38
|
-
onmouseout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
39
|
-
onmouseover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
40
|
-
onpointercancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
41
|
-
onpointerdown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
42
|
-
onpointerup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
43
|
-
onpointerenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
44
|
-
onpointerleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
45
|
-
onpointermove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
46
|
-
onpointerover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
47
|
-
onpointerout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
48
|
-
ondrag?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
49
|
-
ondrop?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
50
|
-
ondragstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
51
|
-
ondragenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
52
|
-
ondragleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
53
|
-
ondragover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
54
|
-
ondragend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
55
|
-
ontouchstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
56
|
-
ontouchmove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
57
|
-
ontouchend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
58
|
-
ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
|
-
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
|
-
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
61
|
-
class?: string;
|
|
62
|
-
style?: string;
|
|
63
|
-
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
64
|
-
}> & {
|
|
65
|
-
data?: Datum[] | undefined;
|
|
66
|
-
x?: ChannelAccessor<Datum>;
|
|
67
|
-
x1?: ChannelAccessor<Datum>;
|
|
68
|
-
x2?: ChannelAccessor<Datum>;
|
|
69
|
-
y?: ChannelAccessor<Datum>;
|
|
70
|
-
y1?: ChannelAccessor<Datum>;
|
|
71
|
-
y2?: ChannelAccessor<Datum>;
|
|
72
|
-
r?: ChannelAccessor<Datum>;
|
|
73
|
-
mark?: Snippet<[{
|
|
74
|
-
record: ScaledDataRecord<Datum>;
|
|
75
|
-
index: number;
|
|
76
|
-
usedScales: UsedScales;
|
|
77
|
-
}]> | undefined;
|
|
78
|
-
marks?: Snippet<[{
|
|
79
|
-
records: ScaledDataRecord<Datum>[];
|
|
80
|
-
usedScales: UsedScales;
|
|
81
|
-
}]> | undefined;
|
|
82
|
-
};
|
|
3
|
+
props(): any;
|
|
83
4
|
events(): {};
|
|
84
5
|
slots(): {};
|
|
85
6
|
bindings(): "";
|
|
@@ -5,7 +5,7 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
5
5
|
data: Datum[];
|
|
6
6
|
x?: ChannelAccessor<Datum>;
|
|
7
7
|
y?: ChannelAccessor<Datum>;
|
|
8
|
-
frameAnchor?: ConstantAccessor<"
|
|
8
|
+
frameAnchor?: ConstantAccessor<"bottom" | "top" | "left" | "right" | "center" | "top-left" | "bottom-left" | "top-right" | "bottom-right", Datum>;
|
|
9
9
|
class: string | null;
|
|
10
10
|
children: Snippet<{
|
|
11
11
|
datum: Datum;
|
|
@@ -1,83 +1,23 @@
|
|
|
1
1
|
import type { ChannelAccessor, CurveName, DataRecord } from '../types/index.js';
|
|
2
2
|
import type { CurveFactory } from 'd3-shape';
|
|
3
3
|
declare class __sveltets_Render<Datum extends DataRecord> {
|
|
4
|
-
props(): Omit<
|
|
5
|
-
filter?: import("../types/index.js").ConstantAccessor<boolean, Datum>;
|
|
6
|
-
facet?: "auto" | "include" | "exclude";
|
|
7
|
-
fx: ChannelAccessor<Datum>;
|
|
8
|
-
fy: ChannelAccessor<Datum>;
|
|
9
|
-
dx: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
10
|
-
dy: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
11
|
-
fill: ChannelAccessor<Datum>;
|
|
12
|
-
fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
13
|
-
sort: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
14
|
-
channel: string;
|
|
15
|
-
order?: "ascending" | "descending";
|
|
16
|
-
} | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Datum>;
|
|
17
|
-
stroke: ChannelAccessor<Datum>;
|
|
18
|
-
strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
19
|
-
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
20
|
-
strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
|
|
21
|
-
strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
|
|
22
|
-
strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
23
|
-
opacity: ChannelAccessor<Datum>;
|
|
24
|
-
strokeDasharray: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
25
|
-
strokeDashoffset: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
26
|
-
mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
|
|
27
|
-
clipPath: string;
|
|
28
|
-
imageFilter: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
29
|
-
shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
30
|
-
paintOrder: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
31
|
-
onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
32
|
-
ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
33
|
-
onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
34
|
-
onmousedown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
35
|
-
onmouseenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
36
|
-
onmousemove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
37
|
-
onmouseleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
38
|
-
onmouseout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
39
|
-
onmouseover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
40
|
-
onpointercancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
41
|
-
onpointerdown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
42
|
-
onpointerup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
43
|
-
onpointerenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
44
|
-
onpointerleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
45
|
-
onpointermove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
46
|
-
onpointerover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
47
|
-
onpointerout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
48
|
-
ondrag?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
49
|
-
ondrop?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
50
|
-
ondragstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
51
|
-
ondragenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
52
|
-
ondragleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
53
|
-
ondragover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
54
|
-
ondragend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
55
|
-
ontouchstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
56
|
-
ontouchmove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
57
|
-
ontouchend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
58
|
-
ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
|
-
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
|
-
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
61
|
-
class?: string;
|
|
62
|
-
style?: string;
|
|
63
|
-
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
64
|
-
}>, "fill" | "fillOpacity"> & {
|
|
4
|
+
props(): Omit<BaseMarkProps<Datum_1>, "fill" | "fillOpacity"> & {
|
|
65
5
|
data: Datum[];
|
|
66
|
-
x1: ChannelAccessor<
|
|
6
|
+
x1: ChannelAccessor<Datum_1>;
|
|
67
7
|
/**
|
|
68
8
|
* the horizontal position of the metric; bound to the x scale
|
|
69
9
|
*/
|
|
70
|
-
x2: ChannelAccessor<
|
|
71
|
-
x: ChannelAccessor<
|
|
10
|
+
x2: ChannelAccessor<Datum_1>;
|
|
11
|
+
x: ChannelAccessor<Datum_1>;
|
|
72
12
|
/**
|
|
73
13
|
* the vertical position of the comparison; bound to the y scale
|
|
74
14
|
*/
|
|
75
|
-
y1: ChannelAccessor<
|
|
15
|
+
y1: ChannelAccessor<Datum_1>;
|
|
76
16
|
/**
|
|
77
17
|
* the vertical position of the metric; bound to the y scale
|
|
78
18
|
*/
|
|
79
|
-
y2: ChannelAccessor<
|
|
80
|
-
y: ChannelAccessor<
|
|
19
|
+
y2: ChannelAccessor<Datum_1>;
|
|
20
|
+
y: ChannelAccessor<Datum_1>;
|
|
81
21
|
fillOpacity?: number;
|
|
82
22
|
/**
|
|
83
23
|
* the stroke color of the "positive" area; defaults to 'blue'
|
|
@@ -10,10 +10,10 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
10
10
|
dy: ConstantAccessor<number, Datum>;
|
|
11
11
|
fill: ChannelAccessor<Datum>;
|
|
12
12
|
fillOpacity: ConstantAccessor<number, Datum>;
|
|
13
|
-
sort:
|
|
13
|
+
sort: {
|
|
14
14
|
channel: string;
|
|
15
15
|
order?: "ascending" | "descending";
|
|
16
|
-
} | ConstantAccessor<import("../types/data.js").RawValue, Datum>;
|
|
16
|
+
} | ((a: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | ConstantAccessor<import("../types/data.js").RawValue, Datum>;
|
|
17
17
|
stroke: ChannelAccessor<Datum>;
|
|
18
18
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
19
19
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
@@ -9,10 +9,10 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
9
9
|
dy: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
10
10
|
fill: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
11
11
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
12
|
-
sort:
|
|
12
|
+
sort: {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Record<string | symbol, import("../types/data").RawValue>>;
|
|
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
16
|
stroke: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
17
17
|
strokeWidth: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
18
18
|
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
@@ -68,7 +68,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
68
68
|
symbol?: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>> | import("svelte").Snippet<[number, string]>;
|
|
69
69
|
canvas?: boolean;
|
|
70
70
|
dotClass?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
71
|
-
}, "
|
|
71
|
+
}, "y" | "data"> & {
|
|
72
72
|
data: Datum[];
|
|
73
73
|
};
|
|
74
74
|
events(): {};
|
|
@@ -9,10 +9,10 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
9
9
|
dy: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
10
10
|
fill: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
11
11
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
12
|
-
sort:
|
|
12
|
+
sort: {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Record<string | symbol, import("../types/data").RawValue>>;
|
|
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
16
|
stroke: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
17
17
|
strokeWidth: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
18
18
|
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
@@ -68,7 +68,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
68
68
|
symbol?: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>> | import("svelte").Snippet<[number, string]>;
|
|
69
69
|
canvas?: boolean;
|
|
70
70
|
dotClass?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
71
|
-
}, "
|
|
71
|
+
}, "x" | "data"> & {
|
|
72
72
|
data: Datum[];
|
|
73
73
|
};
|
|
74
74
|
events(): {};
|
|
@@ -9,10 +9,10 @@ declare class __sveltets_Render<Datum = DataRecord | GeoJSON.GeoJsonObject> {
|
|
|
9
9
|
dy: ConstantAccessor<number, Datum>;
|
|
10
10
|
fill: ChannelAccessor<Datum>;
|
|
11
11
|
fillOpacity: ConstantAccessor<number, Datum>;
|
|
12
|
-
sort:
|
|
12
|
+
sort: {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} | ConstantAccessor<import("../types/data.js").RawValue, Datum>;
|
|
15
|
+
} | ((a: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | ConstantAccessor<import("../types/data.js").RawValue, Datum>;
|
|
16
16
|
stroke: ChannelAccessor<Datum>;
|
|
17
17
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
18
18
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
@@ -9,10 +9,10 @@ declare class __sveltets_Render<Datum = RawValue> {
|
|
|
9
9
|
dy: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
10
10
|
fill: ChannelAccessor<Datum>;
|
|
11
11
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
12
|
-
sort:
|
|
12
|
+
sort: {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} | import("../types/index.js").ConstantAccessor<RawValue, Datum>;
|
|
15
|
+
} | ((a: RawValue, b: RawValue) => number) | import("../types/index.js").ConstantAccessor<RawValue, Datum>;
|
|
16
16
|
stroke: ChannelAccessor<Datum>;
|
|
17
17
|
strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
18
18
|
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
@@ -9,10 +9,10 @@ declare class __sveltets_Render<Datum = RawValue> {
|
|
|
9
9
|
dy: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
10
10
|
fill: ChannelAccessor<Datum>;
|
|
11
11
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
12
|
-
sort:
|
|
12
|
+
sort: {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} | import("../types/index.js").ConstantAccessor<RawValue, Datum>;
|
|
15
|
+
} | ((a: RawValue, b: RawValue) => number) | import("../types/index.js").ConstantAccessor<RawValue, Datum>;
|
|
16
16
|
stroke: ChannelAccessor<Datum>;
|
|
17
17
|
strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
18
18
|
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
@@ -88,31 +88,19 @@
|
|
|
88
88
|
</script>
|
|
89
89
|
|
|
90
90
|
<div
|
|
91
|
-
class={['tooltip', { hide: !datum }]}
|
|
91
|
+
class={['svelteplot-tooltip', { hide: !datum }]}
|
|
92
92
|
style:left="{tooltipX ? facetOffsetX + projectX('x', plot.scales, tooltipX) : 0}px"
|
|
93
93
|
style:top="{tooltipY ? facetOffsetY + projectY('y', plot.scales, tooltipY) : 0}px">
|
|
94
|
-
|
|
95
|
-
{@render children({ datum })}
|
|
96
|
-
</div>
|
|
94
|
+
{@render children({ datum })}
|
|
97
95
|
</div>
|
|
98
96
|
|
|
99
97
|
<style>
|
|
100
|
-
div.tooltip {
|
|
101
|
-
background: white;
|
|
102
|
-
background: var(--svelteplot-tooltip-bg);
|
|
103
|
-
border: 1px solid #ccc;
|
|
104
|
-
border-color: var(--svelteplot-tooltip-border);
|
|
105
|
-
font-size: 12px;
|
|
106
|
-
padding: 1ex 1em;
|
|
107
|
-
border-radius: 3px;
|
|
108
|
-
line-height: 1.2;
|
|
109
|
-
box-shadow:
|
|
110
|
-
rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
|
|
111
|
-
rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
|
|
98
|
+
div.svelteplot-tooltip {
|
|
112
99
|
position: absolute;
|
|
113
100
|
pointer-events: none;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
101
|
+
|
|
102
|
+
&.hide {
|
|
103
|
+
display: none;
|
|
104
|
+
}
|
|
117
105
|
}
|
|
118
106
|
</style>
|
|
@@ -11,10 +11,10 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
11
11
|
dy: ConstantAccessor<number, Datum>;
|
|
12
12
|
fill: ChannelAccessor<Datum>;
|
|
13
13
|
fillOpacity: ConstantAccessor<number, Datum>;
|
|
14
|
-
sort:
|
|
14
|
+
sort: {
|
|
15
15
|
channel: string;
|
|
16
16
|
order?: "ascending" | "descending";
|
|
17
|
-
} | ConstantAccessor<RawValue, Datum>;
|
|
17
|
+
} | ((a: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | ConstantAccessor<import("../types/data.js").RawValue, Datum>;
|
|
18
18
|
stroke: ChannelAccessor<Datum>;
|
|
19
19
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
20
20
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
@@ -72,7 +72,7 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
72
72
|
outlineStrokeOpacity?: number;
|
|
73
73
|
curve?: CurveName | CurveFactory | "auto";
|
|
74
74
|
tension?: number;
|
|
75
|
-
sort?: ConstantAccessor<RawValue,
|
|
75
|
+
sort?: ConstantAccessor<RawValue, Datum_1> | {
|
|
76
76
|
channel: "stroke" | "fill";
|
|
77
77
|
};
|
|
78
78
|
text?: ConstantAccessor<string, Datum>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { recordizeX } from '../index.js';
|
|
1
2
|
import type { DataRow } from '../index.js';
|
|
2
3
|
declare class __sveltets_Render<Datum extends DataRow> {
|
|
3
4
|
props(): Omit<import("../types").MarkerOptions & Partial<{
|
|
@@ -9,10 +10,10 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
9
10
|
dy: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
10
11
|
fill: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
11
12
|
fillOpacity: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
12
|
-
sort:
|
|
13
|
+
sort: {
|
|
13
14
|
channel: string;
|
|
14
15
|
order?: "ascending" | "descending";
|
|
15
|
-
} | import("../types").ConstantAccessor<import("../types").RawValue, Record<string | symbol, import("../types").RawValue>>;
|
|
16
|
+
} | ((a: import("../types").RawValue, b: import("../types").RawValue) => number) | import("../types").ConstantAccessor<import("../types").RawValue, Record<string | symbol, import("../types").RawValue>>;
|
|
16
17
|
stroke: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
17
18
|
strokeWidth: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
18
19
|
strokeOpacity: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
@@ -70,7 +71,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
70
71
|
outlineStrokeOpacity?: number;
|
|
71
72
|
curve?: import("../types").CurveName | import("d3-shape").CurveFactory | "auto";
|
|
72
73
|
tension?: number;
|
|
73
|
-
sort?: import("../types").ConstantAccessor<
|
|
74
|
+
sort?: import("../types").ConstantAccessor<recordizeX, Datum_1> | {
|
|
74
75
|
channel: "stroke" | "fill";
|
|
75
76
|
};
|
|
76
77
|
text?: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
|
|
@@ -80,7 +81,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
80
81
|
textStrokeWidth?: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
81
82
|
lineClass?: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
|
|
82
83
|
canvas?: boolean;
|
|
83
|
-
}, "
|
|
84
|
+
}, "y" | "data"> & {
|
|
84
85
|
data: Datum[];
|
|
85
86
|
};
|
|
86
87
|
events(): {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { recordizeY } from '../index.js';
|
|
1
2
|
import type { DataRow } from '../index.js';
|
|
2
3
|
declare class __sveltets_Render<Datum extends DataRow> {
|
|
3
4
|
props(): Omit<import("../types").MarkerOptions & Partial<{
|
|
@@ -9,10 +10,10 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
9
10
|
dy: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
10
11
|
fill: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
11
12
|
fillOpacity: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
12
|
-
sort:
|
|
13
|
+
sort: {
|
|
13
14
|
channel: string;
|
|
14
15
|
order?: "ascending" | "descending";
|
|
15
|
-
} | import("../types").ConstantAccessor<import("../types").RawValue, Record<string | symbol, import("../types").RawValue>>;
|
|
16
|
+
} | ((a: import("../types").RawValue, b: import("../types").RawValue) => number) | import("../types").ConstantAccessor<import("../types").RawValue, Record<string | symbol, import("../types").RawValue>>;
|
|
16
17
|
stroke: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
17
18
|
strokeWidth: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
18
19
|
strokeOpacity: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
@@ -70,7 +71,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
70
71
|
outlineStrokeOpacity?: number;
|
|
71
72
|
curve?: import("../types").CurveName | import("d3-shape").CurveFactory | "auto";
|
|
72
73
|
tension?: number;
|
|
73
|
-
sort?: import("../types").ConstantAccessor<
|
|
74
|
+
sort?: import("../types").ConstantAccessor<recordizeY, Datum_1> | {
|
|
74
75
|
channel: "stroke" | "fill";
|
|
75
76
|
};
|
|
76
77
|
text?: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
|
|
@@ -80,7 +81,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
80
81
|
textStrokeWidth?: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
81
82
|
lineClass?: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
|
|
82
83
|
canvas?: boolean;
|
|
83
|
-
}, "
|
|
84
|
+
}, "x" | "data"> & {
|
|
84
85
|
data: Datum[];
|
|
85
86
|
};
|
|
86
87
|
events(): {};
|
|
@@ -10,10 +10,10 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
10
10
|
dy: ConstantAccessor<number, Datum>;
|
|
11
11
|
fill: ChannelAccessor<Datum>;
|
|
12
12
|
fillOpacity: ConstantAccessor<number, Datum>;
|
|
13
|
-
sort:
|
|
13
|
+
sort: {
|
|
14
14
|
channel: string;
|
|
15
15
|
order?: "ascending" | "descending";
|
|
16
|
-
} | ConstantAccessor<RawValue, Datum>;
|
|
16
|
+
} | ((a: RawValue, b: RawValue) => number) | ConstantAccessor<RawValue, Datum>;
|
|
17
17
|
stroke: ChannelAccessor<Datum>;
|
|
18
18
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
19
19
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
@@ -9,10 +9,10 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
9
9
|
dy: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
10
10
|
fill: ChannelAccessor<Datum>;
|
|
11
11
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
12
|
-
sort:
|
|
12
|
+
sort: {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Datum>;
|
|
15
|
+
} | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Datum>;
|
|
16
16
|
stroke: ChannelAccessor<Datum>;
|
|
17
17
|
strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
18
18
|
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
@@ -9,10 +9,10 @@ declare class __sveltets_Render<Datum = DataRecord | RawValue> {
|
|
|
9
9
|
dy: ConstantAccessor<number, Datum>;
|
|
10
10
|
fill: ChannelAccessor<Datum>;
|
|
11
11
|
fillOpacity: ConstantAccessor<number, Datum>;
|
|
12
|
-
sort:
|
|
12
|
+
sort: {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} | ConstantAccessor<RawValue, Datum>;
|
|
15
|
+
} | ((a: RawValue, b: RawValue) => number) | ConstantAccessor<RawValue, Datum>;
|
|
16
16
|
stroke: ChannelAccessor<Datum>;
|
|
17
17
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
18
18
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
@@ -9,10 +9,10 @@ declare class __sveltets_Render<Datum = DataRecord> {
|
|
|
9
9
|
dy: ConstantAccessor<number, Datum>;
|
|
10
10
|
fill: ChannelAccessor<Datum>;
|
|
11
11
|
fillOpacity: ConstantAccessor<number, Datum>;
|
|
12
|
-
sort:
|
|
12
|
+
sort: {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} | ConstantAccessor<import("../types/data").RawValue, Datum>;
|
|
15
|
+
} | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | ConstantAccessor<import("../types/data").RawValue, Datum>;
|
|
16
16
|
stroke: ChannelAccessor<Datum>;
|
|
17
17
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
18
18
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
@@ -9,10 +9,10 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
9
9
|
dy: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
10
10
|
fill: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
11
11
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
12
|
-
sort:
|
|
12
|
+
sort: {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Record<string | symbol, import("../types/data").RawValue>>;
|
|
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
16
|
stroke: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
17
17
|
strokeWidth: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
18
18
|
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
@@ -71,7 +71,7 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
71
71
|
shape?: "arrow" | "spike" | "arrow-filled" | import("./Vector.svelte").ShapeRenderer;
|
|
72
72
|
children?: import("svelte").Snippet;
|
|
73
73
|
canvas?: boolean;
|
|
74
|
-
}, "
|
|
74
|
+
}, "r" | "length" | "x" | "y" | "data" | "rotate"> & {
|
|
75
75
|
data: Datum[];
|
|
76
76
|
x: ChannelAccessor<Datum>;
|
|
77
77
|
y: ChannelAccessor<Datum>;
|
package/dist/marks/Text.svelte
CHANGED
|
@@ -25,6 +25,10 @@
|
|
|
25
25
|
wordSpacing?: ConstantAccessor<CSS.Property.WordSpacing, Datum>;
|
|
26
26
|
textTransform?: ConstantAccessor<CSS.Property.TextTransform, Datum>;
|
|
27
27
|
textDecoration?: ConstantAccessor<CSS.Property.TextDecoration, Datum>;
|
|
28
|
+
/**
|
|
29
|
+
* the horizontal text anchor; start, end, or middle
|
|
30
|
+
*/
|
|
31
|
+
textAnchor?: ConstantAccessor<CSS.Property.TextAnchor, Datum>;
|
|
28
32
|
/**
|
|
29
33
|
* if you want to apply class names to individual text elements
|
|
30
34
|
*/
|
|
@@ -11,10 +11,10 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
11
11
|
dy: ConstantAccessor<number, Datum>;
|
|
12
12
|
fill: ChannelAccessor<Datum>;
|
|
13
13
|
fillOpacity: ConstantAccessor<number, Datum>;
|
|
14
|
-
sort:
|
|
14
|
+
sort: {
|
|
15
15
|
channel: string;
|
|
16
16
|
order?: "ascending" | "descending";
|
|
17
|
-
} | ConstantAccessor<import("../types/data").RawValue, Datum>;
|
|
17
|
+
} | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | ConstantAccessor<import("../types/data").RawValue, Datum>;
|
|
18
18
|
stroke: ChannelAccessor<Datum>;
|
|
19
19
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
20
20
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
@@ -73,7 +73,7 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
73
73
|
* the font size of the text
|
|
74
74
|
*/
|
|
75
75
|
fontFamily?: ConstantAccessor<CSS.Property.FontFamily, Datum>;
|
|
76
|
-
fontSize?: ConstantAccessor<number | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | (string & {}) | "small" | "
|
|
76
|
+
fontSize?: ConstantAccessor<number | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | (string & {}) | "small" | "medium" | "large" | "x-large" | "x-small" | "xx-large" | "xx-small" | "xxx-large" | "larger" | "smaller", Datum>;
|
|
77
77
|
fontWeight?: ConstantAccessor<CSS.Property.FontWeight, Datum>;
|
|
78
78
|
fontStyle?: ConstantAccessor<CSS.Property.FontStyle, Datum>;
|
|
79
79
|
fontVariant?: ConstantAccessor<CSS.Property.FontVariant, Datum>;
|
|
@@ -81,6 +81,10 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
81
81
|
wordSpacing?: ConstantAccessor<CSS.Property.WordSpacing<0 | (string & {})>, Datum>;
|
|
82
82
|
textTransform?: ConstantAccessor<CSS.Property.TextTransform, Datum>;
|
|
83
83
|
textDecoration?: ConstantAccessor<CSS.Property.TextDecoration<0 | (string & {})>, Datum>;
|
|
84
|
+
/**
|
|
85
|
+
* the horizontal text anchor; start, end, or middle
|
|
86
|
+
*/
|
|
87
|
+
textAnchor?: ConstantAccessor<CSS.Property.TextAnchor, Datum>;
|
|
84
88
|
/**
|
|
85
89
|
* if you want to apply class names to individual text elements
|
|
86
90
|
*/
|
|
@@ -94,7 +98,7 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
94
98
|
* @default 1.2
|
|
95
99
|
*/
|
|
96
100
|
lineHeight?: ConstantAccessor<number, Datum>;
|
|
97
|
-
frameAnchor?: ConstantAccessor<"
|
|
101
|
+
frameAnchor?: ConstantAccessor<"bottom" | "top" | "left" | "right" | "middle" | "top-left" | "bottom-left" | "top-right" | "bottom-right", Datum>;
|
|
98
102
|
/**
|
|
99
103
|
* rotate text by angle in degrees
|
|
100
104
|
*/
|
|
@@ -9,10 +9,10 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
9
9
|
dy: ConstantAccessor<number, Datum>;
|
|
10
10
|
fill: ChannelAccessor<Datum>;
|
|
11
11
|
fillOpacity: ConstantAccessor<number, Datum>;
|
|
12
|
-
sort:
|
|
12
|
+
sort: {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} | ConstantAccessor<import("../types/data").RawValue, Datum>;
|
|
15
|
+
} | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | ConstantAccessor<import("../types/data").RawValue, Datum>;
|
|
16
16
|
stroke: ChannelAccessor<Datum>;
|
|
17
17
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
18
18
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
@@ -9,10 +9,10 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
9
9
|
dy: ConstantAccessor<number, Datum>;
|
|
10
10
|
fill: ChannelAccessor<Datum>;
|
|
11
11
|
fillOpacity: ConstantAccessor<number, Datum>;
|
|
12
|
-
sort:
|
|
12
|
+
sort: {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} | ConstantAccessor<import("../types/data").RawValue, Datum>;
|
|
15
|
+
} | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | ConstantAccessor<import("../types/data").RawValue, Datum>;
|
|
16
16
|
stroke: ChannelAccessor<Datum>;
|
|
17
17
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
18
18
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
@@ -14,10 +14,10 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
14
14
|
dy: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
15
15
|
fill: ChannelAccessor<Datum>;
|
|
16
16
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
17
|
-
sort:
|
|
17
|
+
sort: {
|
|
18
18
|
channel: string;
|
|
19
19
|
order?: "ascending" | "descending";
|
|
20
|
-
} | import("../types/index.js").ConstantAccessor<import("../types/data.js").RawValue, Datum>;
|
|
20
|
+
} | ((a: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data.js").RawValue, Datum>;
|
|
21
21
|
stroke: ChannelAccessor<Datum>;
|
|
22
22
|
strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
23
23
|
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|