svelteplot 0.10.2 → 0.10.3-pr-370.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/LICENSE.md +1 -1
- package/dist/Mark.svelte.d.ts +4 -4
- package/dist/constants.d.ts +1 -1
- package/dist/helpers/colors.d.ts +8 -11
- package/dist/helpers/curves.d.ts +2 -2
- package/dist/helpers/facets.d.ts +1 -1
- package/dist/helpers/getBaseStyles.d.ts +2 -4
- package/dist/helpers/index.d.ts +1 -1
- package/dist/helpers/reduce.d.ts +1 -1
- package/dist/helpers/scales.d.ts +7 -7
- package/dist/helpers/symbols.d.ts +1 -1
- package/dist/helpers/time.d.ts +3 -3
- package/dist/helpers/typeChecks.d.ts +4 -4
- package/dist/marks/Area.svelte.d.ts +5 -4
- package/dist/marks/AreaX.svelte.d.ts +4 -4
- package/dist/marks/AreaY.svelte.d.ts +4 -4
- package/dist/marks/Arrow.svelte.d.ts +5 -4
- package/dist/marks/AxisX.svelte +13 -0
- package/dist/marks/AxisX.svelte.d.ts +19 -5
- package/dist/marks/AxisY.svelte +15 -0
- package/dist/marks/AxisY.svelte.d.ts +21 -5
- package/dist/marks/BarX.svelte.d.ts +4 -4
- package/dist/marks/BarY.svelte.d.ts +5 -4
- package/dist/marks/BollingerX.svelte +3 -0
- package/dist/marks/BollingerX.svelte.d.ts +2 -77
- package/dist/marks/BollingerY.svelte +3 -0
- package/dist/marks/BollingerY.svelte.d.ts +2 -77
- package/dist/marks/BoxY.svelte +3 -0
- package/dist/marks/BoxY.svelte.d.ts +4 -64
- package/dist/marks/Brush.svelte +4 -0
- package/dist/marks/Brush.svelte.d.ts +5 -64
- package/dist/marks/Cell.svelte.d.ts +5 -4
- package/dist/marks/CellX.svelte.d.ts +30 -30
- package/dist/marks/CellY.svelte.d.ts +30 -30
- package/dist/marks/ColorLegend.svelte +1 -0
- package/dist/marks/ColorLegend.svelte.d.ts +1 -0
- package/dist/marks/CustomMark.svelte +11 -0
- package/dist/marks/CustomMark.svelte.d.ts +2 -85
- package/dist/marks/CustomMarkHTML.svelte +6 -0
- package/dist/marks/CustomMarkHTML.svelte.d.ts +6 -0
- package/dist/marks/DifferenceY.svelte +5 -1
- package/dist/marks/DifferenceY.svelte.d.ts +8 -64
- package/dist/marks/Dot.svelte.d.ts +5 -4
- package/dist/marks/DotX.svelte.d.ts +5 -5
- package/dist/marks/DotY.svelte.d.ts +5 -5
- package/dist/marks/Frame.svelte +11 -0
- package/dist/marks/Frame.svelte.d.ts +17 -5
- package/dist/marks/Geo.svelte +3 -0
- package/dist/marks/Geo.svelte.d.ts +8 -4
- package/dist/marks/Graticule.svelte +3 -0
- package/dist/marks/Graticule.svelte.d.ts +3 -0
- package/dist/marks/GridX.svelte +4 -0
- package/dist/marks/GridX.svelte.d.ts +9 -4
- package/dist/marks/GridY.svelte +4 -0
- package/dist/marks/GridY.svelte.d.ts +9 -4
- package/dist/marks/HTMLTooltip.svelte +7 -0
- package/dist/marks/HTMLTooltip.svelte.d.ts +7 -0
- package/dist/marks/Image.svelte.d.ts +5 -4
- package/dist/marks/Line.svelte.d.ts +4 -4
- package/dist/marks/LineX.svelte.d.ts +6 -6
- package/dist/marks/LineY.svelte.d.ts +6 -6
- package/dist/marks/Link.svelte +3 -1
- package/dist/marks/Link.svelte.d.ts +8 -4
- package/dist/marks/Pointer.svelte +7 -0
- package/dist/marks/Pointer.svelte.d.ts +7 -0
- 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 +6 -0
- package/dist/marks/Spike.svelte.d.ts +11 -5
- package/dist/marks/Text.svelte.d.ts +9 -8
- package/dist/marks/TickX.svelte +2 -0
- package/dist/marks/TickX.svelte.d.ts +7 -4
- package/dist/marks/TickY.svelte +5 -3
- package/dist/marks/TickY.svelte.d.ts +10 -7
- package/dist/marks/Trail.svelte +11 -0
- package/dist/marks/Trail.svelte.d.ts +12 -64
- package/dist/marks/Vector.svelte +9 -0
- package/dist/marks/Vector.svelte.d.ts +14 -4
- package/dist/marks/WaffleX.svelte +6 -4
- package/dist/marks/WaffleX.svelte.d.ts +2 -86
- package/dist/marks/WaffleY.svelte +5 -4
- package/dist/marks/WaffleY.svelte.d.ts +10 -8
- package/dist/marks/helpers/Box.svelte.d.ts +1 -64
- package/dist/marks/helpers/MarkerPath.svelte.d.ts +2 -107
- package/dist/marks/helpers/Regression.svelte +6 -3
- package/dist/marks/helpers/Regression.svelte.d.ts +6 -0
- package/dist/transforms/bollinger.d.ts +8 -0
- package/dist/transforms/bollinger.js +8 -0
- package/dist/transforms/centroid.d.ts +5 -4
- package/dist/transforms/centroid.js +4 -0
- package/dist/transforms/dodge.d.ts +11 -0
- package/dist/transforms/dodge.js +6 -0
- package/dist/transforms/interval.d.ts +8 -8
- package/dist/transforms/jitter.d.ts +9 -0
- package/dist/transforms/jitter.js +9 -0
- package/dist/transforms/recordize.d.ts +16 -7
- package/dist/transforms/recordize.js +10 -6
- package/dist/transforms/rename.d.ts +5 -1
- package/dist/transforms/rename.js +4 -0
- package/dist/transforms/select.d.ts +36 -28
- package/dist/transforms/select.js +8 -0
- package/dist/transforms/shift.d.ts +8 -0
- package/dist/transforms/shift.js +6 -0
- package/dist/transforms/sort.d.ts +18 -19
- package/dist/transforms/sort.js +4 -0
- package/dist/transforms/stack.d.ts +32 -12
- package/dist/transforms/stack.js +14 -0
- package/dist/transforms/window.d.ts +13 -136
- package/dist/transforms/window.js +6 -0
- package/dist/types/channel.d.ts +12 -0
- package/dist/types/data.d.ts +13 -0
- package/dist/types/facet.d.ts +5 -0
- package/dist/types/index.d.ts +18 -0
- package/dist/types/mark.d.ts +62 -0
- package/dist/types/plot.d.ts +31 -0
- package/dist/types/scale.d.ts +98 -0
- package/package.json +13 -5
|
@@ -4,18 +4,29 @@
|
|
|
4
4
|
-->
|
|
5
5
|
<script lang="ts" generics="Datum extends DataRecord">
|
|
6
6
|
interface CustomMarkProps extends BaseMarkProps<Datum> {
|
|
7
|
+
/** the input data array */
|
|
7
8
|
data?: Datum[];
|
|
9
|
+
/** a custom mark type identifier for debugging */
|
|
8
10
|
type?: string;
|
|
11
|
+
/** the horizontal position channel; bound to the x scale */
|
|
9
12
|
x?: ChannelAccessor<Datum>;
|
|
13
|
+
/** the starting horizontal position; bound to the x scale */
|
|
10
14
|
x1?: ChannelAccessor<Datum>;
|
|
15
|
+
/** the ending horizontal position; bound to the x scale */
|
|
11
16
|
x2?: ChannelAccessor<Datum>;
|
|
17
|
+
/** the vertical position channel; bound to the y scale */
|
|
12
18
|
y?: ChannelAccessor<Datum>;
|
|
19
|
+
/** the starting vertical position; bound to the y scale */
|
|
13
20
|
y1?: ChannelAccessor<Datum>;
|
|
21
|
+
/** the ending vertical position; bound to the y scale */
|
|
14
22
|
y2?: ChannelAccessor<Datum>;
|
|
23
|
+
/** the radius channel; bound to the r scale */
|
|
15
24
|
r?: ChannelAccessor<Datum>;
|
|
25
|
+
/** snippet rendered once per data point with the scaled record */
|
|
16
26
|
mark?: Snippet<
|
|
17
27
|
[{ record: ScaledDataRecord<Datum>; index: number; usedScales: UsedScales }]
|
|
18
28
|
>;
|
|
29
|
+
/** snippet rendered once with all scaled records */
|
|
19
30
|
marks?: Snippet<[{ records: ScaledDataRecord<Datum>[]; usedScales: UsedScales }]>;
|
|
20
31
|
}
|
|
21
32
|
|
|
@@ -1,89 +1,6 @@
|
|
|
1
|
-
import type { DataRecord
|
|
2
|
-
import type { Snippet } from 'svelte';
|
|
1
|
+
import type { DataRecord } from '../types/index.js';
|
|
3
2
|
declare function $$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
|
-
dodgeX: import("../transforms/dodge.js").DodgeXOptions;
|
|
12
|
-
dodgeY: import("../transforms/dodge.js").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
|
-
mask: string;
|
|
31
|
-
imageFilter: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
32
|
-
shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
33
|
-
paintOrder: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
34
|
-
onclick: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
35
|
-
ondblclick: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
36
|
-
onmouseup: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
37
|
-
onmousedown: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
38
|
-
onmouseenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
39
|
-
onmousemove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
40
|
-
onmouseleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
41
|
-
onmouseout: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
42
|
-
onmouseover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
43
|
-
onpointercancel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
44
|
-
onpointerdown: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
45
|
-
onpointerup: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
46
|
-
onpointerenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
47
|
-
onpointerleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
48
|
-
onpointermove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
49
|
-
onpointerover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
50
|
-
onpointerout: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
51
|
-
ondrag: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
52
|
-
ondrop: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
53
|
-
ondragstart: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
54
|
-
ondragenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
55
|
-
ondragleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
56
|
-
ondragover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
57
|
-
ondragend: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
58
|
-
ontouchstart: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
|
-
ontouchmove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
|
-
ontouchend: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
61
|
-
ontouchcancel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
62
|
-
oncontextmenu: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
63
|
-
onwheel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
64
|
-
class: string;
|
|
65
|
-
style: string;
|
|
66
|
-
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
67
|
-
}> & {
|
|
68
|
-
data?: Datum[];
|
|
69
|
-
type?: string;
|
|
70
|
-
x?: ChannelAccessor<Datum>;
|
|
71
|
-
x1?: ChannelAccessor<Datum>;
|
|
72
|
-
x2?: ChannelAccessor<Datum>;
|
|
73
|
-
y?: ChannelAccessor<Datum>;
|
|
74
|
-
y1?: ChannelAccessor<Datum>;
|
|
75
|
-
y2?: ChannelAccessor<Datum>;
|
|
76
|
-
r?: ChannelAccessor<Datum>;
|
|
77
|
-
mark?: Snippet<[{
|
|
78
|
-
record: ScaledDataRecord<Datum>;
|
|
79
|
-
index: number;
|
|
80
|
-
usedScales: UsedScales;
|
|
81
|
-
}]>;
|
|
82
|
-
marks?: Snippet<[{
|
|
83
|
-
records: ScaledDataRecord<Datum>[];
|
|
84
|
-
usedScales: UsedScales;
|
|
85
|
-
}]>;
|
|
86
|
-
};
|
|
3
|
+
props: any;
|
|
87
4
|
exports: {};
|
|
88
5
|
bindings: "";
|
|
89
6
|
slots: {};
|
|
@@ -5,9 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
<script lang="ts" generics="Datum extends DataRecord">
|
|
7
7
|
interface CustomMarkHTMLProps {
|
|
8
|
+
/** the input data array */
|
|
8
9
|
data: Datum[];
|
|
10
|
+
/** the horizontal position channel; bound to the x scale */
|
|
9
11
|
x?: ChannelAccessor<Datum>;
|
|
12
|
+
/** the vertical position channel; bound to the y scale */
|
|
10
13
|
y?: ChannelAccessor<Datum>;
|
|
14
|
+
/** anchor position within the frame when x or y is not specified */
|
|
11
15
|
frameAnchor?: ConstantAccessor<
|
|
12
16
|
| 'bottom'
|
|
13
17
|
| 'top'
|
|
@@ -20,7 +24,9 @@
|
|
|
20
24
|
| 'center',
|
|
21
25
|
Datum
|
|
22
26
|
>;
|
|
27
|
+
/** CSS class applied to the wrapper element */
|
|
23
28
|
class: string | null;
|
|
29
|
+
/** snippet rendered for each data point with the datum and its projected coordinates */
|
|
24
30
|
children: Snippet<{ datum: Datum; x: number; y: number }>;
|
|
25
31
|
}
|
|
26
32
|
import { type Snippet } from 'svelte';
|
|
@@ -2,11 +2,17 @@ import { type Snippet } from 'svelte';
|
|
|
2
2
|
import type { ChannelAccessor, ConstantAccessor, DataRecord } from '../types/index.js';
|
|
3
3
|
declare function $$render<Datum extends DataRecord>(): {
|
|
4
4
|
props: {
|
|
5
|
+
/** the input data array */
|
|
5
6
|
data: Datum[];
|
|
7
|
+
/** the horizontal position channel; bound to the x scale */
|
|
6
8
|
x?: ChannelAccessor<Datum>;
|
|
9
|
+
/** the vertical position channel; bound to the y scale */
|
|
7
10
|
y?: ChannelAccessor<Datum>;
|
|
11
|
+
/** anchor position within the frame when x or y is not specified */
|
|
8
12
|
frameAnchor?: ConstantAccessor<"bottom" | "top" | "left" | "right" | "top-left" | "bottom-left" | "top-right" | "bottom-right" | "center", Datum>;
|
|
13
|
+
/** CSS class applied to the wrapper element */
|
|
9
14
|
class: string | null;
|
|
15
|
+
/** snippet rendered for each data point with the datum and its projected coordinates */
|
|
10
16
|
children: Snippet<{
|
|
11
17
|
datum: Datum;
|
|
12
18
|
x: number;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<script lang="ts" generics="Datum extends DataRecord">
|
|
2
2
|
interface DifferenceYMarkProps extends Omit<BaseMarkProps<Datum>, 'fill' | 'fillOpacity'> {
|
|
3
|
+
/** the input data array */
|
|
3
4
|
data: Datum[];
|
|
4
|
-
|
|
5
|
+
/**
|
|
5
6
|
* the horizontal position of the comparison; bound to the x scale
|
|
6
7
|
*/
|
|
7
8
|
x1: ChannelAccessor<Datum>;
|
|
@@ -9,6 +10,7 @@
|
|
|
9
10
|
* the horizontal position of the metric; bound to the x scale
|
|
10
11
|
*/
|
|
11
12
|
x2: ChannelAccessor<Datum>;
|
|
13
|
+
/** the shared horizontal position channel; used when x1 and x2 are the same */
|
|
12
14
|
x: ChannelAccessor<Datum>;
|
|
13
15
|
/**
|
|
14
16
|
* the vertical position of the comparison; bound to the y scale
|
|
@@ -18,7 +20,9 @@
|
|
|
18
20
|
* the vertical position of the metric; bound to the y scale
|
|
19
21
|
*/
|
|
20
22
|
y2: ChannelAccessor<Datum>;
|
|
23
|
+
/** the shared vertical position channel; used when y1 and y2 are the same */
|
|
21
24
|
y: ChannelAccessor<Datum>;
|
|
25
|
+
/** the fill opacity for both positive and negative areas */
|
|
22
26
|
fillOpacity?: number;
|
|
23
27
|
/**
|
|
24
28
|
* the stroke color of the "positive" area; defaults to 'blue'
|
|
@@ -1,76 +1,18 @@
|
|
|
1
1
|
import type { ChannelAccessor, CurveName, DataRecord } from '../types/index.js';
|
|
2
2
|
import type { CurveFactory } from 'd3-shape';
|
|
3
3
|
declare function $$render<Datum extends DataRecord>(): {
|
|
4
|
-
props: Omit<
|
|
5
|
-
|
|
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.js").DodgeXOptions;
|
|
12
|
-
dodgeY: import("../transforms/dodge.js").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
|
-
mask: string;
|
|
31
|
-
imageFilter: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
32
|
-
shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
33
|
-
paintOrder: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
34
|
-
onclick: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
35
|
-
ondblclick: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
36
|
-
onmouseup: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
37
|
-
onmousedown: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
38
|
-
onmouseenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
39
|
-
onmousemove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
40
|
-
onmouseleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
41
|
-
onmouseout: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
42
|
-
onmouseover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
43
|
-
onpointercancel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
44
|
-
onpointerdown: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
45
|
-
onpointerup: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
46
|
-
onpointerenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
47
|
-
onpointerleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
48
|
-
onpointermove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
49
|
-
onpointerover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
50
|
-
onpointerout: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
51
|
-
ondrag: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
52
|
-
ondrop: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
53
|
-
ondragstart: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
54
|
-
ondragenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
55
|
-
ondragleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
56
|
-
ondragover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
57
|
-
ondragend: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
58
|
-
ontouchstart: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
|
-
ontouchmove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
|
-
ontouchend: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
61
|
-
ontouchcancel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
62
|
-
oncontextmenu: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
63
|
-
onwheel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
64
|
-
class: string;
|
|
65
|
-
style: string;
|
|
66
|
-
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
67
|
-
}>, "fill" | "fillOpacity"> & {
|
|
4
|
+
props: Omit<BaseMarkProps<Datum>, "fill" | "fillOpacity"> & {
|
|
5
|
+
/** the input data array */
|
|
68
6
|
data: Datum[];
|
|
7
|
+
/**
|
|
8
|
+
* the horizontal position of the comparison; bound to the x scale
|
|
9
|
+
*/
|
|
69
10
|
x1: ChannelAccessor<Datum>;
|
|
70
11
|
/**
|
|
71
12
|
* the horizontal position of the metric; bound to the x scale
|
|
72
13
|
*/
|
|
73
14
|
x2: ChannelAccessor<Datum>;
|
|
15
|
+
/** the shared horizontal position channel; used when x1 and x2 are the same */
|
|
74
16
|
x: ChannelAccessor<Datum>;
|
|
75
17
|
/**
|
|
76
18
|
* the vertical position of the comparison; bound to the y scale
|
|
@@ -80,7 +22,9 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
80
22
|
* the vertical position of the metric; bound to the y scale
|
|
81
23
|
*/
|
|
82
24
|
y2: ChannelAccessor<Datum>;
|
|
25
|
+
/** the shared vertical position channel; used when y1 and y2 are the same */
|
|
83
26
|
y: ChannelAccessor<Datum>;
|
|
27
|
+
/** the fill opacity for both positive and negative areas */
|
|
84
28
|
fillOpacity?: number;
|
|
85
29
|
/**
|
|
86
30
|
* 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 { isOrdinalScale } from '../helpers/scales.js';
|
|
3
4
|
declare function $$render<Datum extends DataRecord>(): {
|
|
4
5
|
props: Partial<{
|
|
5
6
|
filter: ConstantAccessor<boolean, Datum>;
|
|
@@ -8,14 +9,14 @@ declare function $$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: isOrdinalScale;
|
|
13
|
+
dodgeY: isOrdinalScale;
|
|
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>;
|
|
@@ -7,14 +7,14 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
7
7
|
fy: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
8
8
|
dx: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
9
9
|
dy: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
10
|
-
dodgeX:
|
|
11
|
-
dodgeY:
|
|
10
|
+
dodgeX: DodgeXOptions;
|
|
11
|
+
dodgeY: DodgeYOptions;
|
|
12
12
|
fill: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
13
13
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
14
|
-
sort:
|
|
14
|
+
sort: {
|
|
15
15
|
channel: string;
|
|
16
16
|
order?: "ascending" | "descending";
|
|
17
|
-
} | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Record<string | symbol, import("../types/data").RawValue>>;
|
|
17
|
+
} | ((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
18
|
stroke: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
19
19
|
strokeWidth: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
20
20
|
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
@@ -71,7 +71,7 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
71
71
|
symbol?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>> | import("svelte").Snippet<[number, string]>;
|
|
72
72
|
canvas?: boolean;
|
|
73
73
|
dotClass?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
74
|
-
}, "
|
|
74
|
+
}, "x" | "y" | "data"> & {
|
|
75
75
|
data: Datum[];
|
|
76
76
|
x?: ChannelAccessor<Datum>;
|
|
77
77
|
};
|
|
@@ -7,14 +7,14 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
7
7
|
fy: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
8
8
|
dx: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
9
9
|
dy: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
10
|
-
dodgeX:
|
|
11
|
-
dodgeY:
|
|
10
|
+
dodgeX: DodgeXOptions;
|
|
11
|
+
dodgeY: DodgeYOptions;
|
|
12
12
|
fill: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
13
13
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
14
|
-
sort:
|
|
14
|
+
sort: {
|
|
15
15
|
channel: string;
|
|
16
16
|
order?: "ascending" | "descending";
|
|
17
|
-
} | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Record<string | symbol, import("../types/data").RawValue>>;
|
|
17
|
+
} | ((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
18
|
stroke: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
19
19
|
strokeWidth: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
20
20
|
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
@@ -71,7 +71,7 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
71
71
|
symbol?: import("../types/channel").ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>> | import("svelte").Snippet<[number, string]>;
|
|
72
72
|
canvas?: boolean;
|
|
73
73
|
dotClass?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
74
|
-
}, "
|
|
74
|
+
}, "x" | "data"> & {
|
|
75
75
|
data: Datum[];
|
|
76
76
|
};
|
|
77
77
|
exports: {};
|
package/dist/marks/Frame.svelte
CHANGED
|
@@ -8,16 +8,27 @@
|
|
|
8
8
|
Omit<BaseMarkProps<Datum>, 'fill' | 'stroke' | 'fillOpacity' | 'strokeOpacity'>,
|
|
9
9
|
BaseRectMarkProps<Datum>,
|
|
10
10
|
LinkableMarkProps<Datum> {
|
|
11
|
+
/** the fill color of the frame */
|
|
11
12
|
fill?: string;
|
|
13
|
+
/** the stroke color of the frame */
|
|
12
14
|
stroke?: string;
|
|
15
|
+
/** the fill opacity of the frame */
|
|
13
16
|
fillOpacity?: number;
|
|
17
|
+
/** the stroke opacity of the frame */
|
|
14
18
|
strokeOpacity?: number;
|
|
19
|
+
/** the overall opacity of the frame */
|
|
15
20
|
opacity?: number;
|
|
21
|
+
/** whether this frame was automatically added by the Plot component */
|
|
16
22
|
automatic?: boolean;
|
|
23
|
+
/** shorthand to inset the frame from all edges, in pixels */
|
|
17
24
|
inset?: number;
|
|
25
|
+
/** inset the frame from the left edge, in pixels */
|
|
18
26
|
insetLeft?: number;
|
|
27
|
+
/** inset the frame from the right edge, in pixels */
|
|
19
28
|
insetRight?: number;
|
|
29
|
+
/** inset the frame from the top edge, in pixels */
|
|
20
30
|
insetTop?: number;
|
|
31
|
+
/** inset the frame from the bottom edge, in pixels */
|
|
21
32
|
insetBottom?: number;
|
|
22
33
|
}
|
|
23
34
|
import Mark from '../Mark.svelte';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { BaseRectMarkProps, LinkableMarkProps, DataRecord } from '../types/index.js';
|
|
2
|
+
import { resolveProp } from '../helpers/resolve';
|
|
2
3
|
declare function $$render<Datum extends DataRecord>(): {
|
|
3
4
|
props: Omit<Partial<{
|
|
4
5
|
filter: import("../types/index.js").ConstantAccessor<boolean, Datum>;
|
|
@@ -7,14 +8,14 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
7
8
|
fy: import("../types/channel").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: resolveProp;
|
|
12
|
+
dodgeY: resolveProp;
|
|
12
13
|
fill: import("../types/channel").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: import("../types/channel").ChannelAccessor<Datum>;
|
|
19
20
|
strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
20
21
|
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
@@ -63,17 +64,28 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
63
64
|
class: string;
|
|
64
65
|
style: string;
|
|
65
66
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
66
|
-
}>, "fill" | "
|
|
67
|
+
}>, "fill" | "stroke" | "fillOpacity" | "strokeOpacity"> & BaseRectMarkProps<Datum> & LinkableMarkProps<Datum> & {
|
|
68
|
+
/** the fill color of the frame */
|
|
67
69
|
fill?: string;
|
|
70
|
+
/** the stroke color of the frame */
|
|
68
71
|
stroke?: string;
|
|
72
|
+
/** the fill opacity of the frame */
|
|
69
73
|
fillOpacity?: number;
|
|
74
|
+
/** the stroke opacity of the frame */
|
|
70
75
|
strokeOpacity?: number;
|
|
76
|
+
/** the overall opacity of the frame */
|
|
71
77
|
opacity?: number;
|
|
78
|
+
/** whether this frame was automatically added by the Plot component */
|
|
72
79
|
automatic?: boolean;
|
|
80
|
+
/** shorthand to inset the frame from all edges, in pixels */
|
|
73
81
|
inset?: number;
|
|
82
|
+
/** inset the frame from the left edge, in pixels */
|
|
74
83
|
insetLeft?: number;
|
|
84
|
+
/** inset the frame from the right edge, in pixels */
|
|
75
85
|
insetRight?: number;
|
|
86
|
+
/** inset the frame from the top edge, in pixels */
|
|
76
87
|
insetTop?: number;
|
|
88
|
+
/** inset the frame from the bottom edge, in pixels */
|
|
77
89
|
insetBottom?: number;
|
|
78
90
|
};
|
|
79
91
|
exports: {};
|
package/dist/marks/Geo.svelte
CHANGED
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
-->
|
|
4
4
|
<script lang="ts" generics="Datum = DataRecord | GeoJSON.GeoJsonObject">
|
|
5
5
|
interface GeoMarkProps extends BaseMarkProps<Datum>, LinkableMarkProps<Datum> {
|
|
6
|
+
/** the input GeoJSON data array */
|
|
6
7
|
data?: Datum[] | { type: 'Sphere' }[];
|
|
8
|
+
/** internal: whether this is a sphere or graticule geo mark */
|
|
7
9
|
geoType?: 'sphere' | 'graticule';
|
|
8
10
|
/**
|
|
9
11
|
* todo: implement?
|
|
@@ -21,6 +23,7 @@
|
|
|
21
23
|
* radius for point features
|
|
22
24
|
*/
|
|
23
25
|
r?: ChannelAccessor<Datum>;
|
|
26
|
+
/** SVG filter attribute applied to each geo path element */
|
|
24
27
|
svgFilter?: ConstantAccessor<string | undefined, Datum>;
|
|
25
28
|
}
|
|
26
29
|
import type {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DataRecord, ConstantAccessor, LinkableMarkProps, ChannelAccessor } from '../types/index.js';
|
|
2
|
+
import { usePlot } from '../hooks/usePlot.svelte.js';
|
|
2
3
|
declare function $$render<Datum = DataRecord | GeoJSON.GeoJsonObject>(): {
|
|
3
4
|
props: Partial<{
|
|
4
5
|
filter: ConstantAccessor<boolean, Datum>;
|
|
@@ -7,14 +8,14 @@ declare function $$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: usePlot;
|
|
12
|
+
dodgeY: usePlot;
|
|
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>;
|
|
@@ -64,9 +65,11 @@ declare function $$render<Datum = DataRecord | GeoJSON.GeoJsonObject>(): {
|
|
|
64
65
|
style: string;
|
|
65
66
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
66
67
|
}> & LinkableMarkProps<Datum> & {
|
|
68
|
+
/** the input GeoJSON data array */
|
|
67
69
|
data?: Datum[] | {
|
|
68
70
|
type: "Sphere";
|
|
69
71
|
}[];
|
|
72
|
+
/** internal: whether this is a sphere or graticule geo mark */
|
|
70
73
|
geoType?: "sphere" | "graticule";
|
|
71
74
|
/**
|
|
72
75
|
* todo: implement?
|
|
@@ -84,6 +87,7 @@ declare function $$render<Datum = DataRecord | GeoJSON.GeoJsonObject>(): {
|
|
|
84
87
|
* radius for point features
|
|
85
88
|
*/
|
|
86
89
|
r?: ChannelAccessor<Datum>;
|
|
90
|
+
/** SVG filter attribute applied to each geo path element */
|
|
87
91
|
svgFilter?: ConstantAccessor<string | undefined, Datum>;
|
|
88
92
|
};
|
|
89
93
|
exports: {};
|
|
@@ -7,8 +7,11 @@
|
|
|
7
7
|
BaseMarkProps<GeoJSON.GeoJsonObject>,
|
|
8
8
|
'fill' | 'fillOpacity' | 'paintOrder' | 'title' | 'href' | 'target' | 'cursor'
|
|
9
9
|
> {
|
|
10
|
+
/** the step size for both longitude and latitude gridlines in degrees */
|
|
10
11
|
step?: number;
|
|
12
|
+
/** the step size for longitude gridlines in degrees */
|
|
11
13
|
stepX?: number;
|
|
14
|
+
/** the step size for latitude gridlines in degrees */
|
|
12
15
|
stepY?: number;
|
|
13
16
|
}
|
|
14
17
|
import Geo from './Geo.svelte';
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { BaseMarkProps } from '../types/index.js';
|
|
2
2
|
interface GraticuleMarkProps extends Omit<BaseMarkProps<GeoJSON.GeoJsonObject>, 'fill' | 'fillOpacity' | 'paintOrder' | 'title' | 'href' | 'target' | 'cursor'> {
|
|
3
|
+
/** the step size for both longitude and latitude gridlines in degrees */
|
|
3
4
|
step?: number;
|
|
5
|
+
/** the step size for longitude gridlines in degrees */
|
|
4
6
|
stepX?: number;
|
|
7
|
+
/** the step size for latitude gridlines in degrees */
|
|
5
8
|
stepY?: number;
|
|
6
9
|
}
|
|
7
10
|
/** Renders a geographic graticule grid with customizable step sizes */
|
package/dist/marks/GridX.svelte
CHANGED
|
@@ -3,9 +3,13 @@
|
|
|
3
3
|
-->
|
|
4
4
|
<script lang="ts" generics="Datum = RawValue">
|
|
5
5
|
interface GridXMarkProps extends Omit<BaseMarkProps<Datum>, 'fill' | 'fillOpacity'> {
|
|
6
|
+
/** custom values at which to draw vertical gridlines */
|
|
6
7
|
data?: Datum[];
|
|
8
|
+
/** whether these gridlines were automatically added by the Plot component */
|
|
7
9
|
automatic?: boolean;
|
|
10
|
+
/** the starting vertical position of the gridline */
|
|
8
11
|
y1?: ChannelAccessor<Datum>;
|
|
12
|
+
/** the ending vertical position of the gridline */
|
|
9
13
|
y2?: ChannelAccessor<Datum>;
|
|
10
14
|
}
|
|
11
15
|
import Mark from '../Mark.svelte';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { RawValue, ChannelAccessor } from '../types/index.js';
|
|
2
|
+
import { usePlot } from '../hooks/usePlot.svelte.js';
|
|
2
3
|
declare function $$render<Datum = RawValue>(): {
|
|
3
4
|
props: Omit<Partial<{
|
|
4
5
|
filter: import("../types/index.js").ConstantAccessor<boolean, Datum>;
|
|
@@ -7,14 +8,14 @@ declare function $$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: usePlot;
|
|
12
|
+
dodgeY: usePlot;
|
|
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>;
|
|
@@ -64,9 +65,13 @@ declare function $$render<Datum = RawValue>(): {
|
|
|
64
65
|
style: string;
|
|
65
66
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
66
67
|
}>, "fill" | "fillOpacity"> & {
|
|
68
|
+
/** custom values at which to draw vertical gridlines */
|
|
67
69
|
data?: Datum[];
|
|
70
|
+
/** whether these gridlines were automatically added by the Plot component */
|
|
68
71
|
automatic?: boolean;
|
|
72
|
+
/** the starting vertical position of the gridline */
|
|
69
73
|
y1?: ChannelAccessor<Datum>;
|
|
74
|
+
/** the ending vertical position of the gridline */
|
|
70
75
|
y2?: ChannelAccessor<Datum>;
|
|
71
76
|
};
|
|
72
77
|
exports: {};
|
package/dist/marks/GridY.svelte
CHANGED
|
@@ -3,9 +3,13 @@
|
|
|
3
3
|
-->
|
|
4
4
|
<script lang="ts" generics="Datum = RawValue">
|
|
5
5
|
interface GridYMarkProps extends Omit<BaseMarkProps<Datum>, 'fill' | 'fillOpacity'> {
|
|
6
|
+
/** custom values at which to draw horizontal gridlines */
|
|
6
7
|
data?: Datum[];
|
|
8
|
+
/** whether these gridlines were automatically added by the Plot component */
|
|
7
9
|
automatic?: boolean;
|
|
10
|
+
/** the starting horizontal position of the gridline */
|
|
8
11
|
x1?: ChannelAccessor<Datum>;
|
|
12
|
+
/** the ending horizontal position of the gridline */
|
|
9
13
|
x2?: ChannelAccessor<Datum>;
|
|
10
14
|
}
|
|
11
15
|
import Mark from '../Mark.svelte';
|