svelteplot 0.4.9-pr-230.0 → 0.4.9
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/helpers/colors.d.ts +1 -1
- package/dist/helpers/index.d.ts +2 -2
- package/dist/helpers/scales.d.ts +1 -1
- package/dist/helpers/scales.js +1 -5
- package/dist/helpers/typeChecks.d.ts +4 -4
- package/dist/marks/Area.svelte.d.ts +2 -2
- package/dist/marks/AreaX.svelte.d.ts +3 -4
- 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 +74 -2
- package/dist/marks/BollingerY.svelte.d.ts +74 -2
- package/dist/marks/BoxY.svelte.d.ts +66 -6
- package/dist/marks/Cell.svelte.d.ts +2 -2
- package/dist/marks/CustomMark.svelte.d.ts +81 -2
- package/dist/marks/CustomMarkHTML.svelte.d.ts +1 -1
- package/dist/marks/DifferenceY.svelte.d.ts +67 -7
- 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/Line.svelte.d.ts +3 -3
- package/dist/marks/LineX.svelte.d.ts +4 -5
- package/dist/marks/LineY.svelte.d.ts +4 -5
- 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.d.ts +4 -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 +160 -2
- package/dist/marks/helpers/RectPath.svelte.d.ts +63 -3
- package/dist/transforms/bollinger.d.ts +67 -1
- package/dist/transforms/group.d.ts +12 -4
- package/dist/transforms/interval.d.ts +124 -2
- package/dist/transforms/recordize.d.ts +4 -1
- package/dist/transforms/select.d.ts +434 -7
- package/dist/transforms/sort.d.ts +246 -3
- package/dist/transforms/stack.d.ts +23 -3
- package/dist/transforms/window.d.ts +130 -2
- package/package.json +127 -128
|
@@ -1,23 +1,83 @@
|
|
|
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<
|
|
4
|
+
props(): Omit<Partial<{
|
|
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"> & {
|
|
5
65
|
data: Datum[];
|
|
6
|
-
x1: ChannelAccessor<
|
|
66
|
+
x1: ChannelAccessor<Datum>;
|
|
7
67
|
/**
|
|
8
68
|
* the horizontal position of the metric; bound to the x scale
|
|
9
69
|
*/
|
|
10
|
-
x2: ChannelAccessor<
|
|
11
|
-
x: ChannelAccessor<
|
|
70
|
+
x2: ChannelAccessor<Datum>;
|
|
71
|
+
x: ChannelAccessor<Datum>;
|
|
12
72
|
/**
|
|
13
73
|
* the vertical position of the comparison; bound to the y scale
|
|
14
74
|
*/
|
|
15
|
-
y1: ChannelAccessor<
|
|
75
|
+
y1: ChannelAccessor<Datum>;
|
|
16
76
|
/**
|
|
17
77
|
* the vertical position of the metric; bound to the y scale
|
|
18
78
|
*/
|
|
19
|
-
y2: ChannelAccessor<
|
|
20
|
-
y: ChannelAccessor<
|
|
79
|
+
y2: ChannelAccessor<Datum>;
|
|
80
|
+
y: ChannelAccessor<Datum>;
|
|
21
81
|
fillOpacity?: number;
|
|
22
82
|
/**
|
|
23
83
|
* 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: ((a: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | {
|
|
14
14
|
channel: string;
|
|
15
15
|
order?: "ascending" | "descending";
|
|
16
|
-
} |
|
|
16
|
+
} | 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: ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} |
|
|
15
|
+
} | 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
|
+
}, "data" | "y"> & {
|
|
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: ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} |
|
|
15
|
+
} | 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
|
+
}, "data" | "x"> & {
|
|
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: ((a: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} |
|
|
15
|
+
} | 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: ((a: RawValue, b: RawValue) => number) | {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} |
|
|
15
|
+
} | 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: ((a: RawValue, b: RawValue) => number) | {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} |
|
|
15
|
+
} | 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>;
|
|
@@ -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: ((a: RawValue, b: RawValue) => number) | {
|
|
15
15
|
channel: string;
|
|
16
16
|
order?: "ascending" | "descending";
|
|
17
|
-
} |
|
|
17
|
+
} | ConstantAccessor<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> | {
|
|
76
76
|
channel: "stroke" | "fill";
|
|
77
77
|
};
|
|
78
78
|
text?: ConstantAccessor<string, Datum>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { recordizeX } from '../index.js';
|
|
2
1
|
import type { DataRow } from '../index.js';
|
|
3
2
|
declare class __sveltets_Render<Datum extends DataRow> {
|
|
4
3
|
props(): Omit<import("../types").MarkerOptions & Partial<{
|
|
@@ -10,10 +9,10 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
10
9
|
dy: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
11
10
|
fill: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
12
11
|
fillOpacity: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
13
|
-
sort: {
|
|
12
|
+
sort: ((a: import("../types").RawValue, b: import("../types").RawValue) => number) | {
|
|
14
13
|
channel: string;
|
|
15
14
|
order?: "ascending" | "descending";
|
|
16
|
-
} |
|
|
15
|
+
} | import("../types").ConstantAccessor<import("../types").RawValue, Record<string | symbol, import("../types").RawValue>>;
|
|
17
16
|
stroke: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
18
17
|
strokeWidth: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
19
18
|
strokeOpacity: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
@@ -71,7 +70,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
71
70
|
outlineStrokeOpacity?: number;
|
|
72
71
|
curve?: import("../types").CurveName | import("d3-shape").CurveFactory | "auto";
|
|
73
72
|
tension?: number;
|
|
74
|
-
sort?: import("../types").ConstantAccessor<
|
|
73
|
+
sort?: import("../types").ConstantAccessor<import("../types").RawValue, Record<string | symbol, import("../types").RawValue>> | {
|
|
75
74
|
channel: "stroke" | "fill";
|
|
76
75
|
};
|
|
77
76
|
text?: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
|
|
@@ -81,7 +80,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
81
80
|
textStrokeWidth?: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
82
81
|
lineClass?: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
|
|
83
82
|
canvas?: boolean;
|
|
84
|
-
}, "
|
|
83
|
+
}, "data" | "y"> & {
|
|
85
84
|
data: Datum[];
|
|
86
85
|
};
|
|
87
86
|
events(): {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { recordizeY } from '../index.js';
|
|
2
1
|
import type { DataRow } from '../index.js';
|
|
3
2
|
declare class __sveltets_Render<Datum extends DataRow> {
|
|
4
3
|
props(): Omit<import("../types").MarkerOptions & Partial<{
|
|
@@ -10,10 +9,10 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
10
9
|
dy: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
11
10
|
fill: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
12
11
|
fillOpacity: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
13
|
-
sort: {
|
|
12
|
+
sort: ((a: import("../types").RawValue, b: import("../types").RawValue) => number) | {
|
|
14
13
|
channel: string;
|
|
15
14
|
order?: "ascending" | "descending";
|
|
16
|
-
} |
|
|
15
|
+
} | import("../types").ConstantAccessor<import("../types").RawValue, Record<string | symbol, import("../types").RawValue>>;
|
|
17
16
|
stroke: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
18
17
|
strokeWidth: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
19
18
|
strokeOpacity: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
@@ -71,7 +70,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
71
70
|
outlineStrokeOpacity?: number;
|
|
72
71
|
curve?: import("../types").CurveName | import("d3-shape").CurveFactory | "auto";
|
|
73
72
|
tension?: number;
|
|
74
|
-
sort?: import("../types").ConstantAccessor<
|
|
73
|
+
sort?: import("../types").ConstantAccessor<import("../types").RawValue, Record<string | symbol, import("../types").RawValue>> | {
|
|
75
74
|
channel: "stroke" | "fill";
|
|
76
75
|
};
|
|
77
76
|
text?: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
|
|
@@ -81,7 +80,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
81
80
|
textStrokeWidth?: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
82
81
|
lineClass?: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
|
|
83
82
|
canvas?: boolean;
|
|
84
|
-
}, "
|
|
83
|
+
}, "data" | "x"> & {
|
|
85
84
|
data: Datum[];
|
|
86
85
|
};
|
|
87
86
|
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: ((a: RawValue, b: RawValue) => number) | {
|
|
14
14
|
channel: string;
|
|
15
15
|
order?: "ascending" | "descending";
|
|
16
|
-
} |
|
|
16
|
+
} | 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: ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} |
|
|
15
|
+
} | 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: ((a: RawValue, b: RawValue) => number) | {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} |
|
|
15
|
+
} | 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: ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} |
|
|
15
|
+
} | 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: ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} |
|
|
15
|
+
} | 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
|
+
}, "data" | "r" | "length" | "x" | "y" | "rotate"> & {
|
|
75
75
|
data: Datum[];
|
|
76
76
|
x: ChannelAccessor<Datum>;
|
|
77
77
|
y: ChannelAccessor<Datum>;
|
|
@@ -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: ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | {
|
|
15
15
|
channel: string;
|
|
16
16
|
order?: "ascending" | "descending";
|
|
17
|
-
} |
|
|
17
|
+
} | 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" | "large" | "medium" | "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>;
|
|
@@ -98,7 +98,7 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
98
98
|
* @default 1.2
|
|
99
99
|
*/
|
|
100
100
|
lineHeight?: ConstantAccessor<number, Datum>;
|
|
101
|
-
frameAnchor?: ConstantAccessor<"
|
|
101
|
+
frameAnchor?: ConstantAccessor<"top" | "bottom" | "left" | "right" | "middle" | "top-left" | "bottom-left" | "top-right" | "bottom-right", Datum>;
|
|
102
102
|
/**
|
|
103
103
|
* rotate text by angle in degrees
|
|
104
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: ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} |
|
|
15
|
+
} | 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: ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} |
|
|
15
|
+
} | 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: ((a: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | {
|
|
18
18
|
channel: string;
|
|
19
19
|
order?: "ascending" | "descending";
|
|
20
|
-
} |
|
|
20
|
+
} | 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>;
|