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
|
@@ -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 horizontal gridlines */
|
|
67
69
|
data?: Datum[];
|
|
70
|
+
/** whether these gridlines were automatically added by the Plot component */
|
|
68
71
|
automatic?: boolean;
|
|
72
|
+
/** the starting horizontal position of the gridline */
|
|
69
73
|
x1?: ChannelAccessor<Datum>;
|
|
74
|
+
/** the ending horizontal position of the gridline */
|
|
70
75
|
x2?: ChannelAccessor<Datum>;
|
|
71
76
|
};
|
|
72
77
|
exports: {};
|
|
@@ -4,12 +4,19 @@
|
|
|
4
4
|
-->
|
|
5
5
|
<script lang="ts" generics="Datum = DataRow">
|
|
6
6
|
interface HTMLTooltipMarkProps {
|
|
7
|
+
/** the input data array */
|
|
7
8
|
data: Datum[];
|
|
9
|
+
/** the horizontal position channel; bound to the x scale */
|
|
8
10
|
x?: ChannelAccessor<Datum>;
|
|
11
|
+
/** the vertical position channel; bound to the y scale */
|
|
9
12
|
y?: ChannelAccessor<Datum>;
|
|
13
|
+
/** the radius channel, used for positioning with dot-based data */
|
|
10
14
|
r?: ChannelAccessor<Datum>;
|
|
15
|
+
/** the horizontal facet channel */
|
|
11
16
|
fx?: ChannelAccessor<Datum>;
|
|
17
|
+
/** the vertical facet channel */
|
|
12
18
|
fy?: ChannelAccessor<Datum>;
|
|
19
|
+
/** snippet for rendering the tooltip content; receives the nearest datum */
|
|
13
20
|
children: Snippet<[{ datum: Datum }]>;
|
|
14
21
|
}
|
|
15
22
|
import { type Snippet } from 'svelte';
|
|
@@ -2,12 +2,19 @@ import { type Snippet } from 'svelte';
|
|
|
2
2
|
import type { ChannelAccessor, DataRow } from '../types/index.js';
|
|
3
3
|
declare function $$render<Datum = DataRow>(): {
|
|
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
|
+
/** the radius channel, used for positioning with dot-based data */
|
|
8
12
|
r?: ChannelAccessor<Datum>;
|
|
13
|
+
/** the horizontal facet channel */
|
|
9
14
|
fx?: ChannelAccessor<Datum>;
|
|
15
|
+
/** the vertical facet channel */
|
|
10
16
|
fy?: ChannelAccessor<Datum>;
|
|
17
|
+
/** snippet for rendering the tooltip content; receives the nearest datum */
|
|
11
18
|
children: Snippet<[{
|
|
12
19
|
datum: Datum;
|
|
13
20
|
}]>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ChannelAccessor, ConstantAccessor, DataRecord, LinkableMarkProps } from '../types';
|
|
2
|
+
import { resolveProp } from '../helpers/resolve';
|
|
2
3
|
declare function $$render<Datum extends DataRecord>(): {
|
|
3
4
|
props: Partial<{
|
|
4
5
|
filter: ConstantAccessor<boolean, Datum>;
|
|
@@ -7,14 +8,14 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
7
8
|
fy: ChannelAccessor<Datum>;
|
|
8
9
|
dx: ConstantAccessor<number, Datum>;
|
|
9
10
|
dy: ConstantAccessor<number, Datum>;
|
|
10
|
-
dodgeX:
|
|
11
|
-
dodgeY:
|
|
11
|
+
dodgeX: resolveProp;
|
|
12
|
+
dodgeY: resolveProp;
|
|
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").RawValue, Datum>;
|
|
18
|
+
} | ((a: import("../types").RawValue, b: import("../types").RawValue) => number) | ConstantAccessor<import("../types").RawValue, Datum>;
|
|
18
19
|
stroke: ChannelAccessor<Datum>;
|
|
19
20
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
20
21
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
@@ -9,14 +9,14 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
9
9
|
fy: ChannelAccessor<Datum>;
|
|
10
10
|
dx: ConstantAccessor<number, Datum>;
|
|
11
11
|
dy: ConstantAccessor<number, Datum>;
|
|
12
|
-
dodgeX:
|
|
13
|
-
dodgeY:
|
|
12
|
+
dodgeX: RawValue;
|
|
13
|
+
dodgeY: RawValue;
|
|
14
14
|
fill: ChannelAccessor<Datum>;
|
|
15
15
|
fillOpacity: ConstantAccessor<number, Datum>;
|
|
16
|
-
sort:
|
|
16
|
+
sort: {
|
|
17
17
|
channel: string;
|
|
18
18
|
order?: "ascending" | "descending";
|
|
19
|
-
} | ConstantAccessor<RawValue, Datum>;
|
|
19
|
+
} | ((a: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | ConstantAccessor<import("../types/data.js").RawValue, Datum>;
|
|
20
20
|
stroke: ChannelAccessor<Datum>;
|
|
21
21
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
22
22
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
@@ -7,14 +7,14 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
7
7
|
fy: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
8
8
|
dx: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
9
9
|
dy: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
10
|
-
dodgeX:
|
|
11
|
-
dodgeY:
|
|
10
|
+
dodgeX: DataRow;
|
|
11
|
+
dodgeY: DataRow;
|
|
12
12
|
fill: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
13
13
|
fillOpacity: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
14
|
-
sort:
|
|
14
|
+
sort: {
|
|
15
15
|
channel: string;
|
|
16
16
|
order?: "ascending" | "descending";
|
|
17
|
-
} | import("../types").ConstantAccessor<import("../types").RawValue, Record<string | symbol, import("../types").RawValue>>;
|
|
17
|
+
} | ((a: import("../types").RawValue, b: import("../types").RawValue) => number) | import("../types").ConstantAccessor<import("../types").RawValue, Record<string | symbol, import("../types").RawValue>>;
|
|
18
18
|
stroke: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
19
19
|
strokeWidth: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
20
20
|
strokeOpacity: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
@@ -73,7 +73,7 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
73
73
|
outlineStrokeOpacity?: number;
|
|
74
74
|
curve?: import("../types").CurveName | import("d3-shape").CurveFactory | "auto";
|
|
75
75
|
tension?: number;
|
|
76
|
-
sort?: import("../types").ConstantAccessor<
|
|
76
|
+
sort?: import("../types").ConstantAccessor<DataRow, Datum_1> | {
|
|
77
77
|
channel: "stroke" | "fill";
|
|
78
78
|
};
|
|
79
79
|
text?: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
|
|
@@ -83,7 +83,7 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
83
83
|
textStrokeWidth?: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
84
84
|
lineClass?: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
|
|
85
85
|
canvas?: boolean;
|
|
86
|
-
}, "
|
|
86
|
+
}, "y" | "data"> & {
|
|
87
87
|
data: Datum[];
|
|
88
88
|
};
|
|
89
89
|
exports: {};
|
|
@@ -7,14 +7,14 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
7
7
|
fy: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
8
8
|
dx: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
9
9
|
dy: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
10
|
-
dodgeX:
|
|
11
|
-
dodgeY:
|
|
10
|
+
dodgeX: DataRow;
|
|
11
|
+
dodgeY: DataRow;
|
|
12
12
|
fill: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
13
13
|
fillOpacity: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
14
|
-
sort:
|
|
14
|
+
sort: {
|
|
15
15
|
channel: string;
|
|
16
16
|
order?: "ascending" | "descending";
|
|
17
|
-
} | import("../types").ConstantAccessor<import("../types").RawValue, Record<string | symbol, import("../types").RawValue>>;
|
|
17
|
+
} | ((a: import("../types").RawValue, b: import("../types").RawValue) => number) | import("../types").ConstantAccessor<import("../types").RawValue, Record<string | symbol, import("../types").RawValue>>;
|
|
18
18
|
stroke: import("../types").ChannelAccessor<Record<string | symbol, import("../types").RawValue>>;
|
|
19
19
|
strokeWidth: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
20
20
|
strokeOpacity: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
@@ -73,7 +73,7 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
73
73
|
outlineStrokeOpacity?: number;
|
|
74
74
|
curve?: import("../types").CurveName | import("d3-shape").CurveFactory | "auto";
|
|
75
75
|
tension?: number;
|
|
76
|
-
sort?: import("../types").ConstantAccessor<
|
|
76
|
+
sort?: import("../types").ConstantAccessor<DataRow, Datum_1> | {
|
|
77
77
|
channel: "stroke" | "fill";
|
|
78
78
|
};
|
|
79
79
|
text?: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
|
|
@@ -83,7 +83,7 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
83
83
|
textStrokeWidth?: import("../types").ConstantAccessor<number, Record<string | symbol, import("../types").RawValue>>;
|
|
84
84
|
lineClass?: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
|
|
85
85
|
canvas?: boolean;
|
|
86
|
-
}, "
|
|
86
|
+
}, "x" | "data"> & {
|
|
87
87
|
data: Datum[];
|
|
88
88
|
};
|
|
89
89
|
exports: {};
|
package/dist/marks/Link.svelte
CHANGED
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
<script lang="ts" generics="Datum extends DataRecord">
|
|
6
6
|
interface LinkMarkProps extends BaseMarkProps<Datum>, MarkerOptions {
|
|
7
|
+
/** the input data array; each element becomes one link */
|
|
7
8
|
data: Datum[];
|
|
9
|
+
/** sort order for data points before rendering */
|
|
8
10
|
sort?: ConstantAccessor<RawValue> | { channel: 'stroke' | 'fill' };
|
|
9
11
|
/**
|
|
10
12
|
* the x1 channel accessor for the start of the link
|
|
@@ -18,7 +20,7 @@
|
|
|
18
20
|
* the x2 channel accessor for the end of the link
|
|
19
21
|
*/
|
|
20
22
|
x2: ChannelAccessor<Datum>;
|
|
21
|
-
|
|
23
|
+
/** the y2 channel accessor for the end of the link */
|
|
22
24
|
y2: ChannelAccessor<Datum>;
|
|
23
25
|
/**
|
|
24
26
|
* the curve type, defaults to 'auto' which uses a linear curve for planar projections
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { DataRecord, ConstantAccessor, ChannelAccessor, CurveName, MarkerOptions, RawValue } from '../types/index.js';
|
|
2
2
|
import { type CurveFactory } from 'd3-shape';
|
|
3
|
+
import { sort } from '../transforms/sort.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: sort;
|
|
13
|
+
dodgeY: sort;
|
|
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>;
|
|
@@ -65,7 +66,9 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
65
66
|
style: string;
|
|
66
67
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
67
68
|
}> & MarkerOptions & {
|
|
69
|
+
/** the input data array; each element becomes one link */
|
|
68
70
|
data: Datum[];
|
|
71
|
+
/** sort order for data points before rendering */
|
|
69
72
|
sort?: ConstantAccessor<RawValue> | {
|
|
70
73
|
channel: "stroke" | "fill";
|
|
71
74
|
};
|
|
@@ -81,6 +84,7 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
81
84
|
* the x2 channel accessor for the end of the link
|
|
82
85
|
*/
|
|
83
86
|
x2: ChannelAccessor<Datum>;
|
|
87
|
+
/** the y2 channel accessor for the end of the link */
|
|
84
88
|
y2: ChannelAccessor<Datum>;
|
|
85
89
|
/**
|
|
86
90
|
* the curve type, defaults to 'auto' which uses a linear curve for planar projections
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
<script lang="ts" generics="Datum extends DataRow">
|
|
2
2
|
interface PointerMarkProps {
|
|
3
|
+
/** the input data array */
|
|
3
4
|
data: Datum[];
|
|
5
|
+
/** snippet rendered with the currently selected data points */
|
|
4
6
|
children?: Snippet<[{ data: Datum[] }]>;
|
|
7
|
+
/** the horizontal position channel; bound to the x scale */
|
|
5
8
|
x?: ChannelAccessor<Datum>;
|
|
9
|
+
/** the vertical position channel; bound to the y scale */
|
|
6
10
|
y?: ChannelAccessor<Datum>;
|
|
11
|
+
/** grouping channel for splitting data into separate search trees */
|
|
7
12
|
z?: ChannelAccessor<Datum>;
|
|
13
|
+
/** the horizontal facet channel */
|
|
8
14
|
fx?: ChannelAccessor<Datum>;
|
|
15
|
+
/** the vertical facet channel */
|
|
9
16
|
fy?: ChannelAccessor<Datum>;
|
|
10
17
|
/**
|
|
11
18
|
* maximum cursor distance to select data points
|
|
@@ -2,14 +2,21 @@ import { type Snippet } from 'svelte';
|
|
|
2
2
|
import type { ChannelAccessor, DataRow } from '../types/index.js';
|
|
3
3
|
declare function $$render<Datum extends DataRow>(): {
|
|
4
4
|
props: {
|
|
5
|
+
/** the input data array */
|
|
5
6
|
data: Datum[];
|
|
7
|
+
/** snippet rendered with the currently selected data points */
|
|
6
8
|
children?: Snippet<[{
|
|
7
9
|
data: Datum[];
|
|
8
10
|
}]>;
|
|
11
|
+
/** the horizontal position channel; bound to the x scale */
|
|
9
12
|
x?: ChannelAccessor<Datum>;
|
|
13
|
+
/** the vertical position channel; bound to the y scale */
|
|
10
14
|
y?: ChannelAccessor<Datum>;
|
|
15
|
+
/** grouping channel for splitting data into separate search trees */
|
|
11
16
|
z?: ChannelAccessor<Datum>;
|
|
17
|
+
/** the horizontal facet channel */
|
|
12
18
|
fx?: ChannelAccessor<Datum>;
|
|
19
|
+
/** the vertical facet channel */
|
|
13
20
|
fy?: ChannelAccessor<Datum>;
|
|
14
21
|
/**
|
|
15
22
|
* maximum cursor distance to select data points
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DataRecord, BaseRectMarkProps, ChannelAccessor, LinkableMarkProps } from '../types/index.js';
|
|
2
|
+
import { IS_SORTED } from '../transforms/sort';
|
|
2
3
|
declare function $$render<Datum extends DataRecord>(): {
|
|
3
4
|
props: Partial<{
|
|
4
5
|
filter: import("../types/index.js").ConstantAccessor<boolean, Datum>;
|
|
@@ -7,14 +8,14 @@ declare function $$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: IS_SORTED;
|
|
12
|
+
dodgeY: IS_SORTED;
|
|
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,4 +1,5 @@
|
|
|
1
1
|
import type { DataRecord, ConstantAccessor, ChannelAccessor, RawValue } from '../types/index.js';
|
|
2
|
+
import { usePlot } from '../hooks/usePlot.svelte.js';
|
|
2
3
|
declare function $$render<Datum = DataRecord | RawValue>(): {
|
|
3
4
|
props: Omit<Partial<{
|
|
4
5
|
filter: ConstantAccessor<boolean, Datum>;
|
|
@@ -7,14 +8,14 @@ declare function $$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: 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<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,4 +1,5 @@
|
|
|
1
1
|
import type { DataRecord, ConstantAccessor, ChannelAccessor } from '../types/index.js';
|
|
2
|
+
import { IS_SORTED } from '../transforms/sort';
|
|
2
3
|
declare function $$render<Datum = DataRecord>(): {
|
|
3
4
|
props: Omit<Partial<{
|
|
4
5
|
filter: ConstantAccessor<boolean, Datum>;
|
|
@@ -7,14 +8,14 @@ declare function $$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: IS_SORTED;
|
|
12
|
+
dodgeY: IS_SORTED;
|
|
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>;
|
package/dist/marks/Spike.svelte
CHANGED
|
@@ -7,11 +7,17 @@
|
|
|
7
7
|
ComponentProps<typeof Vector>,
|
|
8
8
|
'data' | 'x' | 'y' | 'r' | 'length' | 'rotate'
|
|
9
9
|
> {
|
|
10
|
+
/** the input data array; each element becomes one spike */
|
|
10
11
|
data: Datum[];
|
|
12
|
+
/** the horizontal position channel; bound to the x scale */
|
|
11
13
|
x: ChannelAccessor<Datum>;
|
|
14
|
+
/** the vertical position channel; bound to the y scale */
|
|
12
15
|
y: ChannelAccessor<Datum>;
|
|
16
|
+
/** the radius (width) of the spike base in pixels */
|
|
13
17
|
r?: number;
|
|
18
|
+
/** the length of the spike in pixels */
|
|
14
19
|
length?: ChannelAccessor<Datum>;
|
|
20
|
+
/** rotation angle of the spike in degrees */
|
|
15
21
|
rotate?: ChannelAccessor<Datum>;
|
|
16
22
|
}
|
|
17
23
|
import Vector from './Vector.svelte';
|
|
@@ -7,14 +7,14 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
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>>;
|
|
@@ -74,12 +74,18 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
74
74
|
shape?: "arrow" | "spike" | "arrow-filled" | import("./Vector.svelte").ShapeRenderer;
|
|
75
75
|
children?: import("svelte").Snippet;
|
|
76
76
|
canvas?: boolean;
|
|
77
|
-
}, "
|
|
77
|
+
}, "r" | "length" | "x" | "y" | "data" | "rotate"> & {
|
|
78
|
+
/** the input data array; each element becomes one spike */
|
|
78
79
|
data: Datum[];
|
|
80
|
+
/** the horizontal position channel; bound to the x scale */
|
|
79
81
|
x: ChannelAccessor<Datum>;
|
|
82
|
+
/** the vertical position channel; bound to the y scale */
|
|
80
83
|
y: ChannelAccessor<Datum>;
|
|
84
|
+
/** the radius (width) of the spike base in pixels */
|
|
81
85
|
r?: number;
|
|
86
|
+
/** the length of the spike in pixels */
|
|
82
87
|
length?: ChannelAccessor<Datum>;
|
|
88
|
+
/** rotation angle of the spike in degrees */
|
|
83
89
|
rotate?: ChannelAccessor<Datum>;
|
|
84
90
|
};
|
|
85
91
|
exports: {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as CSS from 'csstype';
|
|
2
2
|
import { type Snippet } from 'svelte';
|
|
3
3
|
import type { DataRecord, ConstantAccessor, ChannelAccessor, LinkableMarkProps } from '../types/index.js';
|
|
4
|
+
import { indexData } from '../transforms/recordize';
|
|
4
5
|
declare function $$render<Datum extends DataRecord>(): {
|
|
5
6
|
props: (Partial<{
|
|
6
7
|
filter: ConstantAccessor<boolean, Datum>;
|
|
@@ -9,14 +10,14 @@ declare function $$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: indexData;
|
|
14
|
+
dodgeY: indexData;
|
|
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<import("../types/data").RawValue, Datum>;
|
|
20
|
+
} | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | ConstantAccessor<import("../types/data").RawValue, Datum>;
|
|
20
21
|
stroke: ChannelAccessor<Datum>;
|
|
21
22
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
22
23
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
@@ -118,14 +119,14 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
118
119
|
fy: ChannelAccessor<Datum>;
|
|
119
120
|
dx: ConstantAccessor<number, Datum>;
|
|
120
121
|
dy: ConstantAccessor<number, Datum>;
|
|
121
|
-
dodgeX:
|
|
122
|
-
dodgeY:
|
|
122
|
+
dodgeX: indexData;
|
|
123
|
+
dodgeY: indexData;
|
|
123
124
|
fill: ChannelAccessor<Datum>;
|
|
124
125
|
fillOpacity: ConstantAccessor<number, Datum>;
|
|
125
|
-
sort:
|
|
126
|
+
sort: {
|
|
126
127
|
channel: string;
|
|
127
128
|
order?: "ascending" | "descending";
|
|
128
|
-
} | ConstantAccessor<import("../types/data").RawValue, Datum>;
|
|
129
|
+
} | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | ConstantAccessor<import("../types/data").RawValue, Datum>;
|
|
129
130
|
stroke: ChannelAccessor<Datum>;
|
|
130
131
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
131
132
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
package/dist/marks/TickX.svelte
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
<script lang="ts" generics="Datum extends DataRow">
|
|
7
7
|
interface TickXMarkProps extends Omit<BaseMarkProps<Datum>, 'fill' | 'fillOpacity'> {
|
|
8
|
+
/** the input data array; each element becomes one vertical tick */
|
|
8
9
|
data: Datum[];
|
|
9
10
|
/**
|
|
10
11
|
* the horizontal position; bound to the x scale
|
|
@@ -20,6 +21,7 @@
|
|
|
20
21
|
* length of the tick. Defaults to 10 pixel
|
|
21
22
|
*/
|
|
22
23
|
tickLength?: ConstantAccessor<number, Datum>;
|
|
24
|
+
/** if true, renders using Canvas instead of SVG */
|
|
23
25
|
canvas?: boolean;
|
|
24
26
|
}
|
|
25
27
|
import Mark from '../Mark.svelte';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ChannelAccessor, DataRow, ConstantAccessor } from '../types/index.js';
|
|
2
|
+
import { usePlot } from '../hooks/usePlot.svelte.js';
|
|
2
3
|
declare function $$render<Datum extends DataRow>(): {
|
|
3
4
|
props: Omit<Partial<{
|
|
4
5
|
filter: ConstantAccessor<boolean, Datum>;
|
|
@@ -7,14 +8,14 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
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").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>;
|
|
@@ -64,6 +65,7 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
64
65
|
style: string;
|
|
65
66
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
66
67
|
}>, "fill" | "fillOpacity"> & {
|
|
68
|
+
/** the input data array; each element becomes one vertical tick */
|
|
67
69
|
data: Datum[];
|
|
68
70
|
/**
|
|
69
71
|
* the horizontal position; bound to the x scale
|
|
@@ -79,6 +81,7 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
79
81
|
* length of the tick. Defaults to 10 pixel
|
|
80
82
|
*/
|
|
81
83
|
tickLength?: ConstantAccessor<number, Datum>;
|
|
84
|
+
/** if true, renders using Canvas instead of SVG */
|
|
82
85
|
canvas?: boolean;
|
|
83
86
|
};
|
|
84
87
|
exports: {};
|
package/dist/marks/TickY.svelte
CHANGED
|
@@ -4,14 +4,15 @@
|
|
|
4
4
|
-->
|
|
5
5
|
<script lang="ts" generics="Datum extends DataRow">
|
|
6
6
|
interface TickYMarkProps extends Omit<BaseMarkProps<Datum>, 'fill' | 'fillOpacity'> {
|
|
7
|
+
/** the input data array; each element becomes one horizontal tick */
|
|
7
8
|
data: Datum[];
|
|
8
9
|
/**
|
|
9
|
-
* the vertical position; bound to the
|
|
10
|
+
* the vertical position; bound to the y scale
|
|
10
11
|
*/
|
|
11
12
|
y?: ChannelAccessor<Datum>;
|
|
12
13
|
/**
|
|
13
|
-
* the horizontal position; bound to the
|
|
14
|
-
* is not specified, the tick will span the full
|
|
14
|
+
* the horizontal position; bound to the x scale, which must be band. If the x channel
|
|
15
|
+
* is not specified, the tick will span the full horizontal extent of the frame.
|
|
15
16
|
*/
|
|
16
17
|
x?: ChannelAccessor<Datum>;
|
|
17
18
|
/**
|
|
@@ -19,6 +20,7 @@
|
|
|
19
20
|
* length of the tick. Defaults to 10 pixel
|
|
20
21
|
*/
|
|
21
22
|
tickLength?: ConstantAccessor<number, Datum>;
|
|
23
|
+
/** if true, renders using Canvas instead of SVG */
|
|
22
24
|
canvas?: boolean;
|
|
23
25
|
}
|
|
24
26
|
import Mark from '../Mark.svelte';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ChannelAccessor, DataRow, ConstantAccessor } from '../types/index.js';
|
|
2
|
+
import { usePlot } from '../hooks/usePlot.svelte.js';
|
|
2
3
|
declare function $$render<Datum extends DataRow>(): {
|
|
3
4
|
props: Omit<Partial<{
|
|
4
5
|
filter: ConstantAccessor<boolean, Datum>;
|
|
@@ -7,14 +8,14 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
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").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>;
|
|
@@ -64,14 +65,15 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
64
65
|
style: string;
|
|
65
66
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
66
67
|
}>, "fill" | "fillOpacity"> & {
|
|
68
|
+
/** the input data array; each element becomes one horizontal tick */
|
|
67
69
|
data: Datum[];
|
|
68
70
|
/**
|
|
69
|
-
* the vertical position; bound to the
|
|
71
|
+
* the vertical position; bound to the y scale
|
|
70
72
|
*/
|
|
71
73
|
y?: ChannelAccessor<Datum>;
|
|
72
74
|
/**
|
|
73
|
-
* the horizontal position; bound to the
|
|
74
|
-
* is not specified, the tick will span the full
|
|
75
|
+
* the horizontal position; bound to the x scale, which must be band. If the x channel
|
|
76
|
+
* is not specified, the tick will span the full horizontal extent of the frame.
|
|
75
77
|
*/
|
|
76
78
|
x?: ChannelAccessor<Datum>;
|
|
77
79
|
/**
|
|
@@ -79,6 +81,7 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
79
81
|
* length of the tick. Defaults to 10 pixel
|
|
80
82
|
*/
|
|
81
83
|
tickLength?: ConstantAccessor<number, Datum>;
|
|
84
|
+
/** if true, renders using Canvas instead of SVG */
|
|
82
85
|
canvas?: boolean;
|
|
83
86
|
};
|
|
84
87
|
exports: {};
|