svelteplot 0.6.0 → 0.7.0-pr-274.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +19 -1
- package/dist/Mark.svelte +7 -0
- package/dist/Mark.svelte.d.ts +5 -4
- package/dist/Plot.svelte +10 -2
- package/dist/constants.d.ts +1 -1
- package/dist/core/FacetAxes.svelte +2 -2
- package/dist/core/Plot.svelte +7 -11
- package/dist/helpers/colors.d.ts +9 -12
- package/dist/helpers/facets.d.ts +1 -1
- package/dist/helpers/getBaseStyles.d.ts +4 -4
- package/dist/helpers/getBaseStyles.js +8 -0
- package/dist/helpers/index.d.ts +3 -3
- package/dist/helpers/reduce.d.ts +1 -1
- package/dist/helpers/removeIdenticalLines.js +3 -2
- package/dist/helpers/scales.d.ts +7 -7
- package/dist/helpers/scales.js +2 -2
- package/dist/helpers/symbols.d.ts +2 -2
- package/dist/helpers/time.d.ts +3 -3
- package/dist/helpers/typeChecks.d.ts +8 -8
- package/dist/helpers/wordwrap.d.ts +14 -0
- package/dist/helpers/wordwrap.js +129 -0
- package/dist/marks/Area.svelte.d.ts +5 -4
- package/dist/marks/AreaX.svelte.d.ts +6 -5
- package/dist/marks/Arrow.svelte.d.ts +5 -4
- package/dist/marks/AxisX.svelte +2 -1
- package/dist/marks/AxisX.svelte.d.ts +7 -5
- package/dist/marks/AxisY.svelte.d.ts +6 -5
- package/dist/marks/BarX.svelte.d.ts +5 -4
- package/dist/marks/BarY.svelte.d.ts +5 -4
- package/dist/marks/BollingerX.svelte.d.ts +2 -76
- package/dist/marks/BollingerY.svelte.d.ts +2 -76
- package/dist/marks/BoxY.svelte.d.ts +6 -68
- package/dist/marks/Brush.svelte +44 -4
- package/dist/marks/Cell.svelte.d.ts +5 -4
- package/dist/marks/CustomMark.svelte.d.ts +2 -84
- package/dist/marks/CustomMarkHTML.svelte.d.ts +1 -1
- package/dist/marks/DifferenceY.svelte.d.ts +7 -69
- package/dist/marks/Dot.svelte.d.ts +5 -4
- package/dist/marks/DotX.svelte.d.ts +6 -5
- package/dist/marks/DotY.svelte.d.ts +6 -5
- package/dist/marks/Geo.svelte.d.ts +5 -4
- package/dist/marks/GridX.svelte.d.ts +5 -4
- package/dist/marks/GridY.svelte.d.ts +5 -4
- package/dist/marks/Image.svelte.d.ts +2 -75
- package/dist/marks/Line.svelte +1 -1
- package/dist/marks/Line.svelte.d.ts +6 -5
- package/dist/marks/LineX.svelte.d.ts +7 -6
- package/dist/marks/LineY.svelte.d.ts +7 -6
- package/dist/marks/Link.svelte.d.ts +5 -4
- package/dist/marks/Rect.svelte.d.ts +5 -4
- package/dist/marks/RuleX.svelte.d.ts +5 -4
- package/dist/marks/RuleY.svelte.d.ts +5 -4
- package/dist/marks/Spike.svelte.d.ts +6 -5
- package/dist/marks/Text.svelte.d.ts +7 -6
- package/dist/marks/TickX.svelte.d.ts +5 -4
- package/dist/marks/TickY.svelte.d.ts +5 -4
- package/dist/marks/Vector.svelte.d.ts +5 -4
- package/dist/marks/WaffleX.svelte +115 -0
- package/dist/marks/WaffleX.svelte.d.ts +19 -0
- package/dist/marks/WaffleY.svelte +119 -0
- package/dist/marks/WaffleY.svelte.d.ts +19 -0
- package/dist/marks/helpers/Anchor.svelte.d.ts +5 -5
- package/dist/marks/helpers/BaseAxisX.svelte +31 -3
- package/dist/marks/helpers/BaseAxisX.svelte.d.ts +2 -0
- package/dist/marks/helpers/MarkerPath.svelte.d.ts +2 -164
- package/dist/marks/helpers/RectPath.svelte.d.ts +3 -65
- package/dist/marks/helpers/waffle.d.ts +64 -0
- package/dist/marks/helpers/waffle.js +162 -0
- package/dist/marks/index.d.ts +3 -1
- package/dist/marks/index.js +3 -1
- package/dist/transforms/bollinger.d.ts +1 -69
- package/dist/transforms/centroid.d.ts +1 -4
- package/dist/transforms/group.d.ts +4 -12
- package/dist/transforms/group.js +11 -5
- package/dist/transforms/interval.d.ts +2 -128
- package/dist/transforms/recordize.d.ts +4 -7
- package/dist/transforms/select.d.ts +7 -448
- package/dist/transforms/sort.d.ts +5 -253
- package/dist/transforms/stack.d.ts +3 -23
- package/dist/transforms/window.d.ts +2 -134
- package/dist/types/data.d.ts +1 -0
- package/dist/types/mark.d.ts +1 -1
- package/dist/types/plot.d.ts +19 -5
- package/dist/types/scale.d.ts +8 -0
- package/dist/ui/ExamplesPagePreview.svelte +148 -0
- package/dist/ui/ExamplesPagePreview.svelte.d.ts +13 -0
- package/package.json +130 -128
|
@@ -1,85 +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
|
-
dodgeX: import("../transforms/dodge").DodgeXOptions;
|
|
12
|
-
dodgeY: import("../transforms/dodge").DodgeYOptions;
|
|
13
|
-
fill: ChannelAccessor<Datum>;
|
|
14
|
-
fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
15
|
-
sort: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
16
|
-
channel: string;
|
|
17
|
-
order?: "ascending" | "descending";
|
|
18
|
-
} | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Datum>;
|
|
19
|
-
stroke: ChannelAccessor<Datum>;
|
|
20
|
-
strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
21
|
-
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
22
|
-
strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
|
|
23
|
-
strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
|
|
24
|
-
strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
25
|
-
opacity: ChannelAccessor<Datum>;
|
|
26
|
-
strokeDasharray: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
27
|
-
strokeDashoffset: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
28
|
-
mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
|
|
29
|
-
clipPath: string;
|
|
30
|
-
imageFilter: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
31
|
-
shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
32
|
-
paintOrder: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
33
|
-
onclick: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
34
|
-
ondblclick: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
35
|
-
onmouseup: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
36
|
-
onmousedown: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
37
|
-
onmouseenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
38
|
-
onmousemove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
39
|
-
onmouseleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
40
|
-
onmouseout: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
41
|
-
onmouseover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
42
|
-
onpointercancel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
43
|
-
onpointerdown: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
44
|
-
onpointerup: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
45
|
-
onpointerenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
46
|
-
onpointerleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
47
|
-
onpointermove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
48
|
-
onpointerover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
49
|
-
onpointerout: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
50
|
-
ondrag: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
51
|
-
ondrop: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
52
|
-
ondragstart: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
53
|
-
ondragenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
54
|
-
ondragleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
55
|
-
ondragover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
56
|
-
ondragend: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
57
|
-
ontouchstart: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
58
|
-
ontouchmove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
|
-
ontouchend: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
|
-
ontouchcancel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
61
|
-
oncontextmenu: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
62
|
-
onwheel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
63
|
-
class: string;
|
|
64
|
-
style: string;
|
|
65
|
-
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
66
|
-
}>, "fill" | "fillOpacity"> & {
|
|
4
|
+
props(): Omit<BaseMarkProps<Datum_1>, "fill" | "fillOpacity"> & {
|
|
67
5
|
data: Datum[];
|
|
68
|
-
x1: ChannelAccessor<
|
|
6
|
+
x1: ChannelAccessor<Datum_1>;
|
|
69
7
|
/**
|
|
70
8
|
* the horizontal position of the metric; bound to the x scale
|
|
71
9
|
*/
|
|
72
|
-
x2: ChannelAccessor<
|
|
73
|
-
x: ChannelAccessor<
|
|
10
|
+
x2: ChannelAccessor<Datum_1>;
|
|
11
|
+
x: ChannelAccessor<Datum_1>;
|
|
74
12
|
/**
|
|
75
13
|
* the vertical position of the comparison; bound to the y scale
|
|
76
14
|
*/
|
|
77
|
-
y1: ChannelAccessor<
|
|
15
|
+
y1: ChannelAccessor<Datum_1>;
|
|
78
16
|
/**
|
|
79
17
|
* the vertical position of the metric; bound to the y scale
|
|
80
18
|
*/
|
|
81
|
-
y2: ChannelAccessor<
|
|
82
|
-
y: ChannelAccessor<
|
|
19
|
+
y2: ChannelAccessor<Datum_1>;
|
|
20
|
+
y: ChannelAccessor<Datum_1>;
|
|
83
21
|
fillOpacity?: number;
|
|
84
22
|
/**
|
|
85
23
|
* the stroke color of the "positive" area; defaults to 'blue'
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type Snippet } from 'svelte';
|
|
2
2
|
import type { DataRecord, ConstantAccessor, ChannelAccessor, LinkableMarkProps } from '../types/index.js';
|
|
3
|
+
import { maybeSymbol } from '../helpers/symbols.js';
|
|
3
4
|
declare class __sveltets_Render<Datum extends DataRecord> {
|
|
4
5
|
props(): Partial<{
|
|
5
6
|
filter: ConstantAccessor<boolean, Datum>;
|
|
@@ -8,14 +9,14 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
8
9
|
fy: ChannelAccessor<Datum>;
|
|
9
10
|
dx: ConstantAccessor<number, Datum>;
|
|
10
11
|
dy: ConstantAccessor<number, Datum>;
|
|
11
|
-
dodgeX:
|
|
12
|
-
dodgeY:
|
|
12
|
+
dodgeX: maybeSymbol;
|
|
13
|
+
dodgeY: maybeSymbol;
|
|
13
14
|
fill: ChannelAccessor<Datum>;
|
|
14
15
|
fillOpacity: ConstantAccessor<number, Datum>;
|
|
15
|
-
sort:
|
|
16
|
+
sort: {
|
|
16
17
|
channel: string;
|
|
17
18
|
order?: "ascending" | "descending";
|
|
18
|
-
} | ConstantAccessor<import("../types/data.js").RawValue, Datum>;
|
|
19
|
+
} | ((a: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | ConstantAccessor<import("../types/data.js").RawValue, Datum>;
|
|
19
20
|
stroke: ChannelAccessor<Datum>;
|
|
20
21
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
21
22
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { recordizeX } from '../index.js';
|
|
1
2
|
import type { DataRow } from '../types/index.js';
|
|
2
3
|
declare class __sveltets_Render<Datum extends DataRow> {
|
|
3
4
|
props(): Omit<Partial<{
|
|
@@ -7,14 +8,14 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
7
8
|
fy: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
8
9
|
dx: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
9
10
|
dy: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
10
|
-
dodgeX:
|
|
11
|
-
dodgeY:
|
|
11
|
+
dodgeX: recordizeX;
|
|
12
|
+
dodgeY: recordizeX;
|
|
12
13
|
fill: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
13
14
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
14
|
-
sort:
|
|
15
|
+
sort: {
|
|
15
16
|
channel: string;
|
|
16
17
|
order?: "ascending" | "descending";
|
|
17
|
-
} | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Record<string | symbol, import("../types/data").RawValue>>;
|
|
18
|
+
} | ((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>>;
|
|
18
19
|
stroke: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
19
20
|
strokeWidth: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
20
21
|
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
@@ -70,7 +71,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
70
71
|
symbol?: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>> | import("svelte").Snippet<[number, string]>;
|
|
71
72
|
canvas?: boolean;
|
|
72
73
|
dotClass?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
73
|
-
}, "
|
|
74
|
+
}, "y" | "data"> & {
|
|
74
75
|
data: Datum[];
|
|
75
76
|
};
|
|
76
77
|
events(): {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { recordizeY } from '../index.js';
|
|
1
2
|
import type { DataRow } from '../types/index.js';
|
|
2
3
|
declare class __sveltets_Render<Datum extends DataRow> {
|
|
3
4
|
props(): Omit<Partial<{
|
|
@@ -7,14 +8,14 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
7
8
|
fy: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
8
9
|
dx: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
9
10
|
dy: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
10
|
-
dodgeX:
|
|
11
|
-
dodgeY:
|
|
11
|
+
dodgeX: recordizeY;
|
|
12
|
+
dodgeY: recordizeY;
|
|
12
13
|
fill: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
13
14
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
14
|
-
sort:
|
|
15
|
+
sort: {
|
|
15
16
|
channel: string;
|
|
16
17
|
order?: "ascending" | "descending";
|
|
17
|
-
} | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Record<string | symbol, import("../types/data").RawValue>>;
|
|
18
|
+
} | ((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>>;
|
|
18
19
|
stroke: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
19
20
|
strokeWidth: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
20
21
|
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
@@ -70,7 +71,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
70
71
|
symbol?: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>> | import("svelte").Snippet<[number, string]>;
|
|
71
72
|
canvas?: boolean;
|
|
72
73
|
dotClass?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
73
|
-
}, "
|
|
74
|
+
}, "x" | "data"> & {
|
|
74
75
|
data: Datum[];
|
|
75
76
|
};
|
|
76
77
|
events(): {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DataRecord, ConstantAccessor, LinkableMarkProps, ChannelAccessor } from '../types/index.js';
|
|
2
|
+
import { resolveChannel } from '../helpers/resolve.js';
|
|
2
3
|
declare class __sveltets_Render<Datum = DataRecord | GeoJSON.GeoJsonObject> {
|
|
3
4
|
props(): Partial<{
|
|
4
5
|
filter: ConstantAccessor<boolean, Datum>;
|
|
@@ -7,14 +8,14 @@ declare class __sveltets_Render<Datum = DataRecord | GeoJSON.GeoJsonObject> {
|
|
|
7
8
|
fy: ChannelAccessor<Datum>;
|
|
8
9
|
dx: ConstantAccessor<number, Datum>;
|
|
9
10
|
dy: ConstantAccessor<number, Datum>;
|
|
10
|
-
dodgeX:
|
|
11
|
-
dodgeY:
|
|
11
|
+
dodgeX: resolveChannel;
|
|
12
|
+
dodgeY: resolveChannel;
|
|
12
13
|
fill: ChannelAccessor<Datum>;
|
|
13
14
|
fillOpacity: ConstantAccessor<number, Datum>;
|
|
14
|
-
sort:
|
|
15
|
+
sort: {
|
|
15
16
|
channel: string;
|
|
16
17
|
order?: "ascending" | "descending";
|
|
17
|
-
} | ConstantAccessor<import("../types/data.js").RawValue, Datum>;
|
|
18
|
+
} | ((a: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | ConstantAccessor<import("../types/data.js").RawValue, Datum>;
|
|
18
19
|
stroke: ChannelAccessor<Datum>;
|
|
19
20
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
20
21
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { RawValue, ChannelAccessor } from '../types/index.js';
|
|
2
|
+
import { autoTicks } from '../helpers/autoTicks.js';
|
|
2
3
|
declare class __sveltets_Render<Datum = RawValue> {
|
|
3
4
|
props(): Omit<Partial<{
|
|
4
5
|
filter: import("../types/index.js").ConstantAccessor<boolean, Datum>;
|
|
@@ -7,14 +8,14 @@ declare class __sveltets_Render<Datum = RawValue> {
|
|
|
7
8
|
fy: ChannelAccessor<Datum>;
|
|
8
9
|
dx: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
9
10
|
dy: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
10
|
-
dodgeX:
|
|
11
|
-
dodgeY:
|
|
11
|
+
dodgeX: autoTicks;
|
|
12
|
+
dodgeY: autoTicks;
|
|
12
13
|
fill: ChannelAccessor<Datum>;
|
|
13
14
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
14
|
-
sort:
|
|
15
|
+
sort: {
|
|
15
16
|
channel: string;
|
|
16
17
|
order?: "ascending" | "descending";
|
|
17
|
-
} | import("../types/index.js").ConstantAccessor<RawValue, Datum>;
|
|
18
|
+
} | ((a: RawValue, b: RawValue) => number) | import("../types/index.js").ConstantAccessor<RawValue, Datum>;
|
|
18
19
|
stroke: ChannelAccessor<Datum>;
|
|
19
20
|
strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
20
21
|
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { RawValue, ChannelAccessor } from '../types/index.js';
|
|
2
|
+
import { autoTicks } from '../helpers/autoTicks.js';
|
|
2
3
|
declare class __sveltets_Render<Datum = RawValue> {
|
|
3
4
|
props(): Omit<Partial<{
|
|
4
5
|
filter: import("../types/index.js").ConstantAccessor<boolean, Datum>;
|
|
@@ -7,14 +8,14 @@ declare class __sveltets_Render<Datum = RawValue> {
|
|
|
7
8
|
fy: ChannelAccessor<Datum>;
|
|
8
9
|
dx: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
9
10
|
dy: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
10
|
-
dodgeX:
|
|
11
|
-
dodgeY:
|
|
11
|
+
dodgeX: autoTicks;
|
|
12
|
+
dodgeY: autoTicks;
|
|
12
13
|
fill: ChannelAccessor<Datum>;
|
|
13
14
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
14
|
-
sort:
|
|
15
|
+
sort: {
|
|
15
16
|
channel: string;
|
|
16
17
|
order?: "ascending" | "descending";
|
|
17
|
-
} | import("../types/index.js").ConstantAccessor<RawValue, Datum>;
|
|
18
|
+
} | ((a: RawValue, b: RawValue) => number) | import("../types/index.js").ConstantAccessor<RawValue, Datum>;
|
|
18
19
|
stroke: ChannelAccessor<Datum>;
|
|
19
20
|
strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
20
21
|
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
@@ -1,79 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DataRecord } from '../types';
|
|
2
2
|
declare class __sveltets_Render<Datum extends DataRecord> {
|
|
3
|
-
props():
|
|
4
|
-
filter: ConstantAccessor<boolean, Datum>;
|
|
5
|
-
facet: "auto" | "include" | "exclude";
|
|
6
|
-
fx: ChannelAccessor<Datum>;
|
|
7
|
-
fy: ChannelAccessor<Datum>;
|
|
8
|
-
dx: ConstantAccessor<number, Datum>;
|
|
9
|
-
dy: ConstantAccessor<number, Datum>;
|
|
10
|
-
dodgeX: import("../transforms/dodge").DodgeXOptions;
|
|
11
|
-
dodgeY: import("../transforms/dodge").DodgeYOptions;
|
|
12
|
-
fill: ChannelAccessor<Datum>;
|
|
13
|
-
fillOpacity: ConstantAccessor<number, Datum>;
|
|
14
|
-
sort: ((a: import("../types").RawValue, b: import("../types").RawValue) => number) | {
|
|
15
|
-
channel: string;
|
|
16
|
-
order?: "ascending" | "descending";
|
|
17
|
-
} | ConstantAccessor<import("../types").RawValue, Datum>;
|
|
18
|
-
stroke: ChannelAccessor<Datum>;
|
|
19
|
-
strokeWidth: ConstantAccessor<number, Datum>;
|
|
20
|
-
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
21
|
-
strokeLinejoin: ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
|
|
22
|
-
strokeLinecap: ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
|
|
23
|
-
strokeMiterlimit: ConstantAccessor<number, Datum>;
|
|
24
|
-
opacity: ChannelAccessor<Datum>;
|
|
25
|
-
strokeDasharray: ConstantAccessor<string, Datum>;
|
|
26
|
-
strokeDashoffset: ConstantAccessor<number, Datum>;
|
|
27
|
-
mixBlendMode: ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
|
|
28
|
-
clipPath: string;
|
|
29
|
-
imageFilter: ConstantAccessor<string, Datum>;
|
|
30
|
-
shapeRendering: ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
31
|
-
paintOrder: ConstantAccessor<string, Datum>;
|
|
32
|
-
onclick: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
33
|
-
ondblclick: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
34
|
-
onmouseup: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
35
|
-
onmousedown: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
36
|
-
onmouseenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
37
|
-
onmousemove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
38
|
-
onmouseleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
39
|
-
onmouseout: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
40
|
-
onmouseover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
41
|
-
onpointercancel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
42
|
-
onpointerdown: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
43
|
-
onpointerup: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
44
|
-
onpointerenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
45
|
-
onpointerleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
46
|
-
onpointermove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
47
|
-
onpointerover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
48
|
-
onpointerout: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
49
|
-
ondrag: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
50
|
-
ondrop: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
51
|
-
ondragstart: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
52
|
-
ondragenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
53
|
-
ondragleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
54
|
-
ondragover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
55
|
-
ondragend: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
56
|
-
ontouchstart: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
57
|
-
ontouchmove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
58
|
-
ontouchend: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
|
-
ontouchcancel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
|
-
oncontextmenu: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
61
|
-
onwheel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
62
|
-
class: string;
|
|
63
|
-
style: string;
|
|
64
|
-
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
65
|
-
}> & LinkableMarkProps<Datum> & {
|
|
66
|
-
data: Datum[];
|
|
67
|
-
x: ChannelAccessor<Datum>;
|
|
68
|
-
y: ChannelAccessor<Datum>;
|
|
69
|
-
r?: ChannelAccessor<Datum>;
|
|
70
|
-
width?: ConstantAccessor<number, Datum>;
|
|
71
|
-
height?: ConstantAccessor<number, Datum>;
|
|
72
|
-
src?: ConstantAccessor<string, Datum>;
|
|
73
|
-
title?: ConstantAccessor<string, Datum>;
|
|
74
|
-
preserveAspectRatio?: string;
|
|
75
|
-
imageClass?: ConstantAccessor<string, Datum>;
|
|
76
|
-
};
|
|
3
|
+
props(): any;
|
|
77
4
|
events(): {};
|
|
78
5
|
slots(): {};
|
|
79
6
|
bindings(): "";
|
package/dist/marks/Line.svelte
CHANGED
|
@@ -139,7 +139,7 @@
|
|
|
139
139
|
{...args}>
|
|
140
140
|
{#snippet children({ mark, usedScales, scaledData })}
|
|
141
141
|
{#if scaledData.length > 0}
|
|
142
|
-
{@const groupedLineData = groupIndex(scaledData, groupByKey)}
|
|
142
|
+
{@const groupedLineData = groupIndex(scaledData, groupByKey)}
|
|
143
143
|
{#if canvas}
|
|
144
144
|
<LineCanvas {groupedLineData} {mark} {usedScales} {linePath} {groupByKey} />
|
|
145
145
|
{:else}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { CurveName, DataRecord, ConstantAccessor, ChannelAccessor, MarkerOptions } from '../types/index.js';
|
|
2
2
|
import { type CurveFactory } from 'd3-shape';
|
|
3
|
+
import callWithProps from '../helpers/callWithProps.js';
|
|
3
4
|
import type { RawValue } from '../types/index.js';
|
|
4
5
|
declare class __sveltets_Render<Datum extends DataRecord> {
|
|
5
6
|
props(): MarkerOptions & Partial<{
|
|
@@ -9,14 +10,14 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
9
10
|
fy: ChannelAccessor<Datum>;
|
|
10
11
|
dx: ConstantAccessor<number, Datum>;
|
|
11
12
|
dy: ConstantAccessor<number, Datum>;
|
|
12
|
-
dodgeX:
|
|
13
|
-
dodgeY:
|
|
13
|
+
dodgeX: callWithProps;
|
|
14
|
+
dodgeY: callWithProps;
|
|
14
15
|
fill: ChannelAccessor<Datum>;
|
|
15
16
|
fillOpacity: ConstantAccessor<number, Datum>;
|
|
16
|
-
sort:
|
|
17
|
+
sort: {
|
|
17
18
|
channel: string;
|
|
18
19
|
order?: "ascending" | "descending";
|
|
19
|
-
} | ConstantAccessor<RawValue, Datum>;
|
|
20
|
+
} | ((a: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | ConstantAccessor<import("../types/data.js").RawValue, Datum>;
|
|
20
21
|
stroke: ChannelAccessor<Datum>;
|
|
21
22
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
22
23
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
@@ -74,7 +75,7 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
74
75
|
outlineStrokeOpacity?: number;
|
|
75
76
|
curve?: CurveName | CurveFactory | "auto";
|
|
76
77
|
tension?: number;
|
|
77
|
-
sort?: ConstantAccessor<RawValue,
|
|
78
|
+
sort?: ConstantAccessor<RawValue, Datum_1> | {
|
|
78
79
|
channel: "stroke" | "fill";
|
|
79
80
|
};
|
|
80
81
|
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<{
|
|
@@ -7,14 +8,14 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
7
8
|
fy: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
8
9
|
dx: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
9
10
|
dy: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
10
|
-
dodgeX:
|
|
11
|
-
dodgeY:
|
|
11
|
+
dodgeX: recordizeX;
|
|
12
|
+
dodgeY: recordizeX;
|
|
12
13
|
fill: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
13
14
|
fillOpacity: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
14
|
-
sort:
|
|
15
|
+
sort: {
|
|
15
16
|
channel: string;
|
|
16
17
|
order?: "ascending" | "descending";
|
|
17
|
-
} | import("../types").ConstantAccessor<import("../types").RawValue, Record<string | symbol, import("../types").RawValue>>;
|
|
18
|
+
} | ((a: import("../types").RawValue, b: import("../types").RawValue) => number) | import("../types").ConstantAccessor<import("../types").RawValue, Record<string | symbol, import("../types").RawValue>>;
|
|
18
19
|
stroke: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
19
20
|
strokeWidth: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
20
21
|
strokeOpacity: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
@@ -72,7 +73,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
72
73
|
outlineStrokeOpacity?: number;
|
|
73
74
|
curve?: import("../types").CurveName | import("d3-shape").CurveFactory | "auto";
|
|
74
75
|
tension?: number;
|
|
75
|
-
sort?: import("../types").ConstantAccessor<
|
|
76
|
+
sort?: import("../types").ConstantAccessor<recordizeX, Datum_1> | {
|
|
76
77
|
channel: "stroke" | "fill";
|
|
77
78
|
};
|
|
78
79
|
text?: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
|
|
@@ -82,7 +83,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
82
83
|
textStrokeWidth?: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
83
84
|
lineClass?: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
|
|
84
85
|
canvas?: boolean;
|
|
85
|
-
}, "
|
|
86
|
+
}, "y" | "data"> & {
|
|
86
87
|
data: Datum[];
|
|
87
88
|
};
|
|
88
89
|
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<{
|
|
@@ -7,14 +8,14 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
7
8
|
fy: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
8
9
|
dx: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
9
10
|
dy: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
10
|
-
dodgeX:
|
|
11
|
-
dodgeY:
|
|
11
|
+
dodgeX: recordizeY;
|
|
12
|
+
dodgeY: recordizeY;
|
|
12
13
|
fill: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
13
14
|
fillOpacity: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
14
|
-
sort:
|
|
15
|
+
sort: {
|
|
15
16
|
channel: string;
|
|
16
17
|
order?: "ascending" | "descending";
|
|
17
|
-
} | import("../types").ConstantAccessor<import("../types").RawValue, Record<string | symbol, import("../types").RawValue>>;
|
|
18
|
+
} | ((a: import("../types").RawValue, b: import("../types").RawValue) => number) | import("../types").ConstantAccessor<import("../types").RawValue, Record<string | symbol, import("../types").RawValue>>;
|
|
18
19
|
stroke: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
19
20
|
strokeWidth: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
20
21
|
strokeOpacity: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
@@ -72,7 +73,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
72
73
|
outlineStrokeOpacity?: number;
|
|
73
74
|
curve?: import("../types").CurveName | import("d3-shape").CurveFactory | "auto";
|
|
74
75
|
tension?: number;
|
|
75
|
-
sort?: import("../types").ConstantAccessor<
|
|
76
|
+
sort?: import("../types").ConstantAccessor<recordizeY, Datum_1> | {
|
|
76
77
|
channel: "stroke" | "fill";
|
|
77
78
|
};
|
|
78
79
|
text?: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
|
|
@@ -82,7 +83,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
82
83
|
textStrokeWidth?: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
83
84
|
lineClass?: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
|
|
84
85
|
canvas?: boolean;
|
|
85
|
-
}, "
|
|
86
|
+
}, "x" | "data"> & {
|
|
86
87
|
data: Datum[];
|
|
87
88
|
};
|
|
88
89
|
events(): {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DataRecord, ConstantAccessor, ChannelAccessor, CurveName, MarkerOptions, RawValue } from '../types/index.js';
|
|
2
|
+
import { replaceChannels } from '../transforms/rename.js';
|
|
2
3
|
import { type CurveFactory } from 'd3-shape';
|
|
3
4
|
declare class __sveltets_Render<Datum extends DataRecord> {
|
|
4
5
|
props(): Partial<{
|
|
@@ -8,14 +9,14 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
8
9
|
fy: ChannelAccessor<Datum>;
|
|
9
10
|
dx: ConstantAccessor<number, Datum>;
|
|
10
11
|
dy: ConstantAccessor<number, Datum>;
|
|
11
|
-
dodgeX:
|
|
12
|
-
dodgeY:
|
|
12
|
+
dodgeX: replaceChannels;
|
|
13
|
+
dodgeY: replaceChannels;
|
|
13
14
|
fill: ChannelAccessor<Datum>;
|
|
14
15
|
fillOpacity: ConstantAccessor<number, Datum>;
|
|
15
|
-
sort:
|
|
16
|
+
sort: {
|
|
16
17
|
channel: string;
|
|
17
18
|
order?: "ascending" | "descending";
|
|
18
|
-
} | ConstantAccessor<RawValue, Datum>;
|
|
19
|
+
} | ((a: RawValue, b: RawValue) => number) | ConstantAccessor<RawValue, Datum>;
|
|
19
20
|
stroke: ChannelAccessor<Datum>;
|
|
20
21
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
21
22
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { intervalX } from '../index.js';
|
|
1
2
|
import type { DataRecord, BaseRectMarkProps, ChannelAccessor, LinkableMarkProps } from '../types/index.js';
|
|
2
3
|
declare class __sveltets_Render<Datum extends DataRecord> {
|
|
3
4
|
props(): Partial<{
|
|
@@ -7,14 +8,14 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
7
8
|
fy: ChannelAccessor<Datum>;
|
|
8
9
|
dx: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
9
10
|
dy: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
10
|
-
dodgeX:
|
|
11
|
-
dodgeY:
|
|
11
|
+
dodgeX: intervalX;
|
|
12
|
+
dodgeY: intervalX;
|
|
12
13
|
fill: ChannelAccessor<Datum>;
|
|
13
14
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
14
|
-
sort:
|
|
15
|
+
sort: {
|
|
15
16
|
channel: string;
|
|
16
17
|
order?: "ascending" | "descending";
|
|
17
|
-
} | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Datum>;
|
|
18
|
+
} | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Datum>;
|
|
18
19
|
stroke: ChannelAccessor<Datum>;
|
|
19
20
|
strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
20
21
|
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { recordizeX } from '../transforms/recordize.js';
|
|
1
2
|
import type { DataRecord, ConstantAccessor, ChannelAccessor, RawValue } from '../types/index.js';
|
|
2
3
|
declare class __sveltets_Render<Datum = DataRecord | RawValue> {
|
|
3
4
|
props(): Omit<Partial<{
|
|
@@ -7,14 +8,14 @@ declare class __sveltets_Render<Datum = DataRecord | RawValue> {
|
|
|
7
8
|
fy: ChannelAccessor<Datum>;
|
|
8
9
|
dx: ConstantAccessor<number, Datum>;
|
|
9
10
|
dy: ConstantAccessor<number, Datum>;
|
|
10
|
-
dodgeX:
|
|
11
|
-
dodgeY:
|
|
11
|
+
dodgeX: recordizeX;
|
|
12
|
+
dodgeY: recordizeX;
|
|
12
13
|
fill: ChannelAccessor<Datum>;
|
|
13
14
|
fillOpacity: ConstantAccessor<number, Datum>;
|
|
14
|
-
sort:
|
|
15
|
+
sort: {
|
|
15
16
|
channel: string;
|
|
16
17
|
order?: "ascending" | "descending";
|
|
17
|
-
} | ConstantAccessor<RawValue, Datum>;
|
|
18
|
+
} | ((a: RawValue, b: RawValue) => number) | ConstantAccessor<RawValue, Datum>;
|
|
18
19
|
stroke: ChannelAccessor<Datum>;
|
|
19
20
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
20
21
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { recordizeY } from '../transforms/recordize.js';
|
|
1
2
|
import type { DataRecord, ConstantAccessor, ChannelAccessor } from '../types/index.js';
|
|
2
3
|
declare class __sveltets_Render<Datum = DataRecord> {
|
|
3
4
|
props(): Omit<Partial<{
|
|
@@ -7,14 +8,14 @@ declare class __sveltets_Render<Datum = DataRecord> {
|
|
|
7
8
|
fy: ChannelAccessor<Datum>;
|
|
8
9
|
dx: ConstantAccessor<number, Datum>;
|
|
9
10
|
dy: ConstantAccessor<number, Datum>;
|
|
10
|
-
dodgeX:
|
|
11
|
-
dodgeY:
|
|
11
|
+
dodgeX: recordizeY;
|
|
12
|
+
dodgeY: recordizeY;
|
|
12
13
|
fill: ChannelAccessor<Datum>;
|
|
13
14
|
fillOpacity: ConstantAccessor<number, Datum>;
|
|
14
|
-
sort:
|
|
15
|
+
sort: {
|
|
15
16
|
channel: string;
|
|
16
17
|
order?: "ascending" | "descending";
|
|
17
|
-
} | ConstantAccessor<import("../types/data").RawValue, Datum>;
|
|
18
|
+
} | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | ConstantAccessor<import("../types/data").RawValue, Datum>;
|
|
18
19
|
stroke: ChannelAccessor<Datum>;
|
|
19
20
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
20
21
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ChannelAccessor, DataRecord } from '../types/index.js';
|
|
2
|
+
import { getPlotDefaults } from '../hooks/plotDefaults.js';
|
|
2
3
|
declare class __sveltets_Render<Datum extends DataRecord> {
|
|
3
4
|
props(): Omit<Partial<{
|
|
4
5
|
filter: import("../types/index.js").ConstantAccessor<boolean, Record<string | symbol, import("../types/data").RawValue>>;
|
|
@@ -7,14 +8,14 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
7
8
|
fy: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
8
9
|
dx: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
9
10
|
dy: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
10
|
-
dodgeX:
|
|
11
|
-
dodgeY:
|
|
11
|
+
dodgeX: getPlotDefaults;
|
|
12
|
+
dodgeY: getPlotDefaults;
|
|
12
13
|
fill: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
13
14
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
14
|
-
sort:
|
|
15
|
+
sort: {
|
|
15
16
|
channel: string;
|
|
16
17
|
order?: "ascending" | "descending";
|
|
17
|
-
} | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Record<string | symbol, import("../types/data").RawValue>>;
|
|
18
|
+
} | ((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>>;
|
|
18
19
|
stroke: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
19
20
|
strokeWidth: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
20
21
|
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
@@ -73,7 +74,7 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
73
74
|
shape?: "arrow" | "spike" | "arrow-filled" | import("./Vector.svelte").ShapeRenderer;
|
|
74
75
|
children?: import("svelte").Snippet;
|
|
75
76
|
canvas?: boolean;
|
|
76
|
-
}, "
|
|
77
|
+
}, "r" | "length" | "x" | "y" | "data" | "rotate"> & {
|
|
77
78
|
data: Datum[];
|
|
78
79
|
x: ChannelAccessor<Datum>;
|
|
79
80
|
y: ChannelAccessor<Datum>;
|