svelteplot 0.10.3 → 0.11.0-pr-514.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/dist/Mark.svelte +42 -25
- package/dist/Mark.svelte.d.ts +111 -32
- package/dist/Plot.svelte +21 -15
- package/dist/core/Facet.svelte +1 -1
- package/dist/core/FacetAxes.svelte +13 -8
- package/dist/core/FacetGrid.svelte +4 -4
- package/dist/core/Plot.svelte +70 -36
- package/dist/helpers/arrowPath.js +10 -5
- package/dist/helpers/autoScales.d.ts +3 -3
- package/dist/helpers/autoScales.js +28 -18
- package/dist/helpers/autoTicks.js +2 -0
- package/dist/helpers/callWithProps.d.ts +1 -2
- package/dist/helpers/colors.d.ts +4 -4
- package/dist/helpers/facets.d.ts +42 -1
- package/dist/helpers/facets.js +83 -1
- package/dist/helpers/index.js +1 -1
- package/dist/helpers/math.js +1 -1
- package/dist/helpers/mergeDeep.d.ts +1 -3
- package/dist/helpers/mergeDeep.js +15 -16
- package/dist/helpers/noise.js +1 -1
- package/dist/helpers/projection.d.ts +4 -3
- package/dist/helpers/projection.js +17 -5
- package/dist/helpers/reduce.d.ts +4 -4
- package/dist/helpers/reduce.js +6 -4
- package/dist/helpers/regressionLoess.js +2 -1
- package/dist/helpers/resolve.d.ts +6 -3
- package/dist/helpers/resolve.js +25 -16
- package/dist/helpers/roundedRect.js +1 -1
- package/dist/helpers/scales.d.ts +11 -10
- package/dist/helpers/scales.js +43 -13
- package/dist/helpers/time.d.ts +10 -3
- package/dist/helpers/time.js +2 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/plotDefaults.d.ts +3 -1
- package/dist/hooks/plotDefaults.js +33 -1
- package/dist/hooks/usePlot.svelte.d.ts +10 -25
- package/dist/hooks/usePlot.svelte.js +8 -7
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -3
- package/dist/marks/Area.svelte +24 -13
- package/dist/marks/Area.svelte.d.ts +118 -34
- package/dist/marks/AreaX.svelte +42 -8
- package/dist/marks/AreaX.svelte.d.ts +154 -71
- package/dist/marks/AreaY.svelte +42 -8
- package/dist/marks/AreaY.svelte.d.ts +154 -71
- package/dist/marks/Arrow.svelte +42 -23
- package/dist/marks/Arrow.svelte.d.ts +114 -35
- package/dist/marks/AxisX.svelte +43 -28
- package/dist/marks/AxisX.svelte.d.ts +125 -40
- package/dist/marks/AxisY.svelte +43 -26
- package/dist/marks/AxisY.svelte.d.ts +127 -40
- package/dist/marks/BarX.svelte +12 -10
- package/dist/marks/BarX.svelte.d.ts +104 -32
- package/dist/marks/BarY.svelte +11 -10
- package/dist/marks/BarY.svelte.d.ts +106 -34
- package/dist/marks/BollingerX.svelte +4 -7
- package/dist/marks/BollingerX.svelte.d.ts +105 -30
- package/dist/marks/BollingerY.svelte +3 -0
- package/dist/marks/BollingerY.svelte.d.ts +105 -30
- package/dist/marks/BoxX.svelte +3 -3
- package/dist/marks/BoxY.svelte +12 -9
- package/dist/marks/BoxY.svelte.d.ts +128 -53
- package/dist/marks/Brush.svelte +26 -21
- package/dist/marks/Brush.svelte.d.ts +119 -60
- package/dist/marks/Cell.svelte +13 -9
- package/dist/marks/Cell.svelte.d.ts +105 -30
- package/dist/marks/CellX.svelte +2 -1
- package/dist/marks/CellX.svelte.d.ts +105 -32
- package/dist/marks/CellY.svelte +2 -1
- package/dist/marks/CellY.svelte.d.ts +105 -32
- package/dist/marks/ColorLegend.svelte +24 -13
- package/dist/marks/ColorLegend.svelte.d.ts +1 -0
- package/dist/marks/CustomMark.svelte +16 -10
- package/dist/marks/CustomMark.svelte.d.ts +112 -31
- package/dist/marks/CustomMarkHTML.svelte +8 -2
- package/dist/marks/CustomMarkHTML.svelte.d.ts +8 -2
- package/dist/marks/DifferenceY.svelte +31 -20
- package/dist/marks/DifferenceY.svelte.d.ts +134 -55
- package/dist/marks/Dot.svelte +21 -11
- package/dist/marks/Dot.svelte.d.ts +117 -38
- package/dist/marks/DotX.svelte +2 -0
- package/dist/marks/DotX.svelte.d.ts +136 -62
- package/dist/marks/DotY.svelte +1 -0
- package/dist/marks/DotY.svelte.d.ts +135 -62
- package/dist/marks/Frame.svelte +47 -9
- package/dist/marks/Frame.svelte.d.ts +124 -41
- package/dist/marks/Geo.svelte +21 -12
- package/dist/marks/Geo.svelte.d.ts +105 -30
- package/dist/marks/Graticule.svelte +3 -0
- package/dist/marks/Graticule.svelte.d.ts +3 -0
- package/dist/marks/GridX.svelte +31 -16
- package/dist/marks/GridX.svelte.d.ts +108 -32
- package/dist/marks/GridY.svelte +30 -15
- package/dist/marks/GridY.svelte.d.ts +108 -32
- package/dist/marks/HTMLTooltip.svelte +37 -27
- package/dist/marks/HTMLTooltip.svelte.d.ts +7 -0
- package/dist/marks/Image.svelte +50 -25
- package/dist/marks/Image.svelte.d.ts +117 -35
- package/dist/marks/Line.svelte +67 -44
- package/dist/marks/Line.svelte.d.ts +119 -30
- package/dist/marks/LineX.svelte +2 -1
- package/dist/marks/LineX.svelte.d.ts +142 -69
- package/dist/marks/LineY.svelte +2 -1
- package/dist/marks/LineY.svelte.d.ts +142 -69
- package/dist/marks/Link.svelte +70 -46
- package/dist/marks/Link.svelte.d.ts +126 -41
- package/dist/marks/Pointer.svelte +46 -35
- package/dist/marks/Pointer.svelte.d.ts +7 -0
- package/dist/marks/Rect.svelte +13 -5
- package/dist/marks/Rect.svelte.d.ts +116 -35
- package/dist/marks/RectX.svelte +6 -3
- package/dist/marks/RectX.svelte.d.ts +158 -12
- package/dist/marks/RectY.svelte +6 -3
- package/dist/marks/RectY.svelte.d.ts +158 -12
- package/dist/marks/RegressionX.svelte +13 -6
- package/dist/marks/RegressionX.svelte.d.ts +8 -3
- package/dist/marks/RegressionY.svelte +13 -6
- package/dist/marks/RegressionY.svelte.d.ts +8 -3
- package/dist/marks/RuleX.svelte +18 -11
- package/dist/marks/RuleX.svelte.d.ts +112 -32
- package/dist/marks/RuleY.svelte +19 -12
- package/dist/marks/RuleY.svelte.d.ts +114 -34
- package/dist/marks/Spike.svelte +11 -5
- package/dist/marks/Spike.svelte.d.ts +146 -68
- package/dist/marks/Text.svelte +24 -7
- package/dist/marks/Text.svelte.d.ts +253 -75
- package/dist/marks/TickX.svelte +56 -48
- package/dist/marks/TickX.svelte.d.ts +114 -40
- package/dist/marks/TickY.svelte +59 -51
- package/dist/marks/TickY.svelte.d.ts +117 -43
- package/dist/marks/Trail.svelte +25 -13
- package/dist/marks/Trail.svelte.d.ts +116 -33
- package/dist/marks/Vector.svelte +20 -11
- package/dist/marks/Vector.svelte.d.ts +116 -35
- package/dist/marks/WaffleX.svelte +18 -16
- package/dist/marks/WaffleX.svelte.d.ts +131 -57
- package/dist/marks/WaffleY.svelte +16 -15
- package/dist/marks/WaffleY.svelte.d.ts +129 -56
- package/dist/marks/helpers/Anchor.svelte +17 -2
- package/dist/marks/helpers/Anchor.svelte.d.ts +16 -1
- package/dist/marks/helpers/AreaCanvas.svelte +8 -8
- package/dist/marks/helpers/BaseAxisX.svelte +38 -41
- package/dist/marks/helpers/BaseAxisX.svelte.d.ts +11 -17
- package/dist/marks/helpers/BaseAxisY.svelte +35 -35
- package/dist/marks/helpers/BaseAxisY.svelte.d.ts +12 -15
- package/dist/marks/helpers/Box.svelte +35 -28
- package/dist/marks/helpers/Box.svelte.d.ts +122 -50
- package/dist/marks/helpers/DotCanvas.svelte +11 -9
- package/dist/marks/helpers/GeoCanvas.svelte +7 -6
- package/dist/marks/helpers/LineCanvas.svelte +7 -7
- package/dist/marks/helpers/LinearGradientX.svelte +2 -2
- package/dist/marks/helpers/LinearGradientX.svelte.d.ts +1 -1
- package/dist/marks/helpers/LinearGradientY.svelte +2 -2
- package/dist/marks/helpers/LinearGradientY.svelte.d.ts +1 -1
- package/dist/marks/helpers/Marker.svelte +2 -2
- package/dist/marks/helpers/MarkerPath.svelte +15 -12
- package/dist/marks/helpers/MarkerPath.svelte.d.ts +105 -32
- package/dist/marks/helpers/MultilineText.svelte +24 -17
- package/dist/marks/helpers/MultilineText.svelte.d.ts +1 -1
- package/dist/marks/helpers/RectCanvas.svelte +31 -26
- package/dist/marks/helpers/RectPath.svelte +2 -2
- package/dist/marks/helpers/Regression.svelte +176 -86
- package/dist/marks/helpers/Regression.svelte.d.ts +20 -8
- package/dist/marks/helpers/RuleCanvas.svelte +9 -6
- package/dist/marks/helpers/TextCanvas.svelte +13 -9
- package/dist/marks/helpers/TextCanvas.svelte.d.ts +6 -6
- package/dist/marks/helpers/TickCanvas.svelte +6 -5
- package/dist/marks/helpers/TrailCanvas.svelte +16 -18
- package/dist/marks/helpers/TrailCanvas.svelte.d.ts +3 -5
- package/dist/marks/helpers/canvas.js +16 -9
- package/dist/marks/helpers/events.d.ts +2 -2
- package/dist/marks/helpers/events.js +14 -7
- package/dist/marks/helpers/trail.js +1 -1
- package/dist/marks/helpers/waffle.d.ts +3 -3
- package/dist/marks/helpers/waffle.js +7 -5
- package/dist/regression/polynomial.d.ts +1 -1
- package/dist/regression/polynomial.js +7 -7
- package/dist/regression/utils/determination.d.ts +1 -1
- package/dist/regression/utils/determination.js +1 -1
- package/dist/regression/utils/geometry.d.ts +1 -1
- package/dist/regression/utils/interpose.d.ts +1 -1
- package/dist/regression/utils/interpose.js +1 -1
- package/dist/regression/utils/points.d.ts +1 -1
- package/dist/transforms/bin.d.ts +3 -3
- package/dist/transforms/bin.js +29 -20
- package/dist/transforms/bollinger.d.ts +8 -0
- package/dist/transforms/bollinger.js +15 -4
- package/dist/transforms/centroid.d.ts +4 -0
- package/dist/transforms/centroid.js +4 -0
- package/dist/transforms/density.d.ts +4 -4
- package/dist/transforms/density.js +23 -16
- package/dist/transforms/dodge.d.ts +12 -1
- package/dist/transforms/dodge.js +15 -6
- package/dist/transforms/group.d.ts +141 -4
- package/dist/transforms/group.js +4 -1
- package/dist/transforms/interval.d.ts +204 -60
- package/dist/transforms/jitter.d.ts +421 -4
- package/dist/transforms/jitter.js +10 -1
- package/dist/transforms/map.d.ts +412 -4
- package/dist/transforms/map.js +5 -5
- package/dist/transforms/normalize.d.ts +276 -5
- package/dist/transforms/normalize.js +6 -4
- package/dist/transforms/recordize.d.ts +17 -5
- package/dist/transforms/recordize.js +13 -9
- package/dist/transforms/rename.d.ts +11 -4
- package/dist/transforms/rename.js +7 -2
- package/dist/transforms/select.d.ts +722 -210
- package/dist/transforms/select.js +13 -1
- package/dist/transforms/shift.d.ts +8 -0
- package/dist/transforms/shift.js +20 -6
- package/dist/transforms/sort.d.ts +13 -258
- package/dist/transforms/sort.js +13 -10
- package/dist/transforms/stack.d.ts +58 -9
- package/dist/transforms/stack.js +27 -11
- package/dist/transforms/window.d.ts +221 -66
- package/dist/transforms/window.js +8 -2
- package/dist/types/axes.d.ts +43 -0
- package/dist/types/axes.js +1 -0
- package/dist/types/channel.d.ts +30 -2
- package/dist/types/data.d.ts +14 -1
- package/dist/types/facet.d.ts +5 -0
- package/dist/types/index.d.ts +33 -8
- package/dist/types/index.js +11 -7
- package/dist/types/mark.d.ts +125 -36
- package/dist/types/plot.d.ts +118 -16
- package/dist/types/scale.d.ts +125 -8
- package/package.json +37 -32
- package/dist/helpers/autoTicks.d.ts +0 -12
package/dist/transforms/dodge.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import IntervalTree from 'interval-tree-1d';
|
|
2
|
-
import { groupFacetsAndZ } from '../helpers/group';
|
|
2
|
+
import { groupFacetsAndZ } from '../helpers/group.js';
|
|
3
|
+
/**
|
|
4
|
+
* offsets marks horizontally to avoid overlap, using circle-packing
|
|
5
|
+
*/
|
|
3
6
|
export function dodgeX(args, plotState) {
|
|
4
7
|
if (!args.dodgeX)
|
|
5
8
|
return args.data;
|
|
6
|
-
let { anchor = 'left', padding = 1, r = args.dodgeX
|
|
9
|
+
let { anchor = 'left', padding = 1, r = args.dodgeX?.r } = maybeAnchor(args.dodgeX);
|
|
7
10
|
let anchorFunction;
|
|
8
11
|
switch (`${anchor}`.toLowerCase()) {
|
|
9
12
|
case 'left':
|
|
@@ -20,10 +23,13 @@ export function dodgeX(args, plotState) {
|
|
|
20
23
|
}
|
|
21
24
|
return dodge('x', 'y', anchorFunction, Number(padding), r, args, plotState);
|
|
22
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* offsets marks vertically to avoid overlap, using circle-packing
|
|
28
|
+
*/
|
|
23
29
|
export function dodgeY(args, plotState) {
|
|
24
30
|
if (!args.dodgeY)
|
|
25
31
|
return args.data;
|
|
26
|
-
let { anchor = 'bottom', padding = 1, r = args.dodgeY
|
|
32
|
+
let { anchor = 'bottom', padding = 1, r = args.dodgeY?.r } = maybeAnchor(args.dodgeY);
|
|
27
33
|
let anchorFunction;
|
|
28
34
|
switch (`${anchor}`.toLowerCase()) {
|
|
29
35
|
case 'top':
|
|
@@ -57,7 +63,9 @@ function dodge(y, x, anchor, padding, r, { data, ...channels }, plotState) {
|
|
|
57
63
|
groupFacetsAndZ(data, { fx, fy }, (items) => {
|
|
58
64
|
// apply dodge within each facet
|
|
59
65
|
const tree = IntervalTree();
|
|
60
|
-
const data = items.filter((d) => (typeof d.r !== 'number' || d.r >= 0) &&
|
|
66
|
+
const data = items.filter((d) => (typeof d.r !== 'number' || d.r >= 0) &&
|
|
67
|
+
isFinite(d[x]) &&
|
|
68
|
+
isFinite(d[y]));
|
|
61
69
|
const intervals = new Float64Array(2 * data.length + 2);
|
|
62
70
|
data.forEach((d, i) => {
|
|
63
71
|
const ri = d.r ?? r ?? 3;
|
|
@@ -69,7 +77,8 @@ function dodge(y, x, anchor, padding, r, { data, ...channels }, plotState) {
|
|
|
69
77
|
// For any previously placed circles that may overlap this circle, compute
|
|
70
78
|
// the y-positions that place this circle tangent to these other circles.
|
|
71
79
|
// https://observablehq.com/@mbostock/circle-offset-along-line
|
|
72
|
-
tree.queryInterval(l - padding, h + padding, (
|
|
80
|
+
tree.queryInterval(l - padding, h + padding, (interval) => {
|
|
81
|
+
const j = interval[2];
|
|
73
82
|
const yj = data[j][y] - y0;
|
|
74
83
|
const dx = d[x] - data[j][x];
|
|
75
84
|
const dr = padding + (channels.r ? d.r + data[j].r : 2 * cr);
|
|
@@ -117,7 +126,7 @@ function anchorYTop({ options: { marginTop } }) {
|
|
|
117
126
|
function anchorYBottom({ facetHeight: height }) {
|
|
118
127
|
return [-1, height];
|
|
119
128
|
}
|
|
120
|
-
function anchorYMiddle({ facetHeight: height, options: { marginTop, marginBottom } }) {
|
|
129
|
+
function anchorYMiddle({ facetHeight: height, options: { marginTop, marginBottom: _marginBottom } }) {
|
|
121
130
|
return [0, (marginTop + height) / 2];
|
|
122
131
|
}
|
|
123
132
|
function compareSymmetric(a, b) {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type ReducerName } from '../helpers/reduce.js';
|
|
2
2
|
import type { DataRecord, DataRow, RawValue, TransformArg } from '../types/index.js';
|
|
3
|
+
import { type ThresholdCountGenerator } from 'd3-array';
|
|
4
|
+
type NamedThresholdsGenerator = 'auto' | 'scott' | 'sturges' | 'freedman-diaconis';
|
|
3
5
|
type ReducerFunc = (group: DataRow[]) => RawValue;
|
|
4
6
|
type ReducerOption = ReducerName | ReducerFunc;
|
|
5
7
|
type GroupBaseOptions = {
|
|
@@ -38,21 +40,156 @@ type GroupZOptions = GroupXOptions | GroupYOptions;
|
|
|
38
40
|
* groups the dataset by x and y channel and optionally reduces the group items
|
|
39
41
|
* to output channels fill, stroke, r, opacity, fillOpacity, or strokeOpacity
|
|
40
42
|
*/
|
|
41
|
-
export declare function group({ data, ...channels }: TransformArg<
|
|
43
|
+
export declare function group({ data, ...channels }: TransformArg<DataRecord>, options?: GroupXOptions): {
|
|
44
|
+
facet?: "auto" | "include" | "exclude" | undefined;
|
|
45
|
+
fx?: import("../types/channel.js").ChannelAccessor<Record<string | symbol, RawValue>>;
|
|
46
|
+
fy?: import("../types/channel.js").ChannelAccessor<Record<string | symbol, RawValue>>;
|
|
47
|
+
dx?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, RawValue>>;
|
|
48
|
+
dy?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, RawValue>>;
|
|
49
|
+
dodgeX?: import("./dodge.js").DodgeXOptions | undefined;
|
|
50
|
+
dodgeY?: import("./dodge.js").DodgeYOptions | undefined;
|
|
51
|
+
fill?: import("../types/channel.js").ChannelAccessor<Record<string | symbol, RawValue>>;
|
|
52
|
+
fillOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, RawValue>>;
|
|
53
|
+
fontFamily?: import("../types/index.js").ConstantAccessor<import("csstype").Property.FontFamily, Record<string | symbol, RawValue>>;
|
|
54
|
+
fontSize?: import("../types/index.js").ConstantAccessor<import("csstype").Property.FontSize<number>, Record<string | symbol, RawValue>>;
|
|
55
|
+
fontStyle?: import("../types/index.js").ConstantAccessor<import("csstype").Property.FontStyle, Record<string | symbol, RawValue>>;
|
|
56
|
+
fontVariant?: import("../types/index.js").ConstantAccessor<import("csstype").Property.FontVariant, Record<string | symbol, RawValue>>;
|
|
57
|
+
fontWeight?: import("../types/index.js").ConstantAccessor<import("csstype").Property.FontWeight, Record<string | symbol, RawValue>>;
|
|
58
|
+
letterSpacing?: import("../types/index.js").ConstantAccessor<import("csstype").Property.LetterSpacing<0 | (string & {})>, Record<string | symbol, RawValue>>;
|
|
59
|
+
wordSpacing?: import("../types/index.js").ConstantAccessor<import("csstype").Property.WordSpacing<0 | (string & {})>, Record<string | symbol, RawValue>>;
|
|
60
|
+
textAnchor?: import("../types/index.js").ConstantAccessor<import("csstype").Property.TextAnchor, Record<string | symbol, RawValue>>;
|
|
61
|
+
textTransform?: import("../types/index.js").ConstantAccessor<import("csstype").Property.TextTransform, Record<string | symbol, RawValue>>;
|
|
62
|
+
textDecoration?: import("../types/index.js").ConstantAccessor<import("csstype").Property.TextDecoration<0 | (string & {})>, Record<string | symbol, RawValue>>;
|
|
63
|
+
sort?: ((a: RawValue, b: RawValue) => number) | {
|
|
64
|
+
channel: string;
|
|
65
|
+
order?: "ascending" | "descending";
|
|
66
|
+
} | import("../types/index.js").ConstantAccessor<RawValue, Record<string | symbol, RawValue>>;
|
|
67
|
+
stroke?: import("../types/channel.js").ChannelAccessor<Record<string | symbol, RawValue>>;
|
|
68
|
+
strokeWidth?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, RawValue>>;
|
|
69
|
+
strokeOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, RawValue>>;
|
|
70
|
+
strokeLinejoin?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Record<string | symbol, RawValue>>;
|
|
71
|
+
strokeLinecap?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Record<string | symbol, RawValue>>;
|
|
72
|
+
strokeMiterlimit?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, RawValue>>;
|
|
73
|
+
opacity?: import("../types/channel.js").ChannelAccessor<Record<string | symbol, RawValue>>;
|
|
74
|
+
strokeDasharray?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, RawValue>>;
|
|
75
|
+
strokeDashoffset?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, RawValue>>;
|
|
76
|
+
blend?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Record<string | symbol, RawValue>>;
|
|
77
|
+
mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Record<string | symbol, RawValue>>;
|
|
78
|
+
clipPath?: string | undefined;
|
|
79
|
+
mask?: string | undefined;
|
|
80
|
+
imageFilter?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, RawValue>>;
|
|
81
|
+
shapeRendering?: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Record<string | symbol, RawValue>>;
|
|
82
|
+
paintOrder?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, RawValue>>;
|
|
83
|
+
onclick?: ((event: Event & {
|
|
84
|
+
currentTarget: SVGPathElement;
|
|
85
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
86
|
+
ondblclick?: ((event: Event & {
|
|
87
|
+
currentTarget: SVGPathElement;
|
|
88
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
89
|
+
onmouseup?: ((event: Event & {
|
|
90
|
+
currentTarget: SVGPathElement;
|
|
91
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
92
|
+
onmousedown?: ((event: Event & {
|
|
93
|
+
currentTarget: SVGPathElement;
|
|
94
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
95
|
+
onmouseenter?: ((event: Event & {
|
|
96
|
+
currentTarget: SVGPathElement;
|
|
97
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
98
|
+
onmousemove?: ((event: Event & {
|
|
99
|
+
currentTarget: SVGPathElement;
|
|
100
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
101
|
+
onmouseleave?: ((event: Event & {
|
|
102
|
+
currentTarget: SVGPathElement;
|
|
103
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
104
|
+
onmouseout?: ((event: Event & {
|
|
105
|
+
currentTarget: SVGPathElement;
|
|
106
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
107
|
+
onmouseover?: ((event: Event & {
|
|
108
|
+
currentTarget: SVGPathElement;
|
|
109
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
110
|
+
onpointercancel?: ((event: Event & {
|
|
111
|
+
currentTarget: SVGPathElement;
|
|
112
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
113
|
+
onpointerdown?: ((event: Event & {
|
|
114
|
+
currentTarget: SVGPathElement;
|
|
115
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
116
|
+
onpointerup?: ((event: Event & {
|
|
117
|
+
currentTarget: SVGPathElement;
|
|
118
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
119
|
+
onpointerenter?: ((event: Event & {
|
|
120
|
+
currentTarget: SVGPathElement;
|
|
121
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
122
|
+
onpointerleave?: ((event: Event & {
|
|
123
|
+
currentTarget: SVGPathElement;
|
|
124
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
125
|
+
onpointermove?: ((event: Event & {
|
|
126
|
+
currentTarget: SVGPathElement;
|
|
127
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
128
|
+
onpointerover?: ((event: Event & {
|
|
129
|
+
currentTarget: SVGPathElement;
|
|
130
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
131
|
+
onpointerout?: ((event: Event & {
|
|
132
|
+
currentTarget: SVGPathElement;
|
|
133
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
134
|
+
ondrag?: ((event: Event & {
|
|
135
|
+
currentTarget: SVGPathElement;
|
|
136
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
137
|
+
ondrop?: ((event: Event & {
|
|
138
|
+
currentTarget: SVGPathElement;
|
|
139
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
140
|
+
ondragstart?: ((event: Event & {
|
|
141
|
+
currentTarget: SVGPathElement;
|
|
142
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
143
|
+
ondragenter?: ((event: Event & {
|
|
144
|
+
currentTarget: SVGPathElement;
|
|
145
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
146
|
+
ondragleave?: ((event: Event & {
|
|
147
|
+
currentTarget: SVGPathElement;
|
|
148
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
149
|
+
ondragover?: ((event: Event & {
|
|
150
|
+
currentTarget: SVGPathElement;
|
|
151
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
152
|
+
ondragend?: ((event: Event & {
|
|
153
|
+
currentTarget: SVGPathElement;
|
|
154
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
155
|
+
ontouchstart?: ((event: Event & {
|
|
156
|
+
currentTarget: SVGPathElement;
|
|
157
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
158
|
+
ontouchmove?: ((event: Event & {
|
|
159
|
+
currentTarget: SVGPathElement;
|
|
160
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
161
|
+
ontouchend?: ((event: Event & {
|
|
162
|
+
currentTarget: SVGPathElement;
|
|
163
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
164
|
+
ontouchcancel?: ((event: Event & {
|
|
165
|
+
currentTarget: SVGPathElement;
|
|
166
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
167
|
+
oncontextmenu?: ((event: Event & {
|
|
168
|
+
currentTarget: SVGPathElement;
|
|
169
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
170
|
+
onwheel?: ((event: Event & {
|
|
171
|
+
currentTarget: SVGPathElement;
|
|
172
|
+
}, datum: Record<string | symbol, RawValue>, index: number) => void) | undefined;
|
|
173
|
+
class?: string | undefined;
|
|
174
|
+
style?: string | undefined;
|
|
175
|
+
cursor?: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, RawValue>>;
|
|
176
|
+
title?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, RawValue>>;
|
|
177
|
+
x: string;
|
|
178
|
+
y: string;
|
|
42
179
|
data: Record<string | symbol, RawValue>[];
|
|
43
180
|
};
|
|
44
181
|
/**
|
|
45
182
|
* groups the dataset by the x channel and optionally reduces the group items
|
|
46
183
|
* to output channels y, y1, y2, fill, stroke, r, opacity, fillOpacity, or strokeOpacity
|
|
47
184
|
*/
|
|
48
|
-
export declare function groupX(input: TransformArg<
|
|
185
|
+
export declare function groupX(input: TransformArg<DataRecord>, options?: GroupXOptions): {
|
|
49
186
|
data: Record<string | symbol, RawValue>[];
|
|
50
187
|
};
|
|
51
188
|
/**
|
|
52
189
|
* groups the dataset by the y channel and optionally reduces the group items
|
|
53
190
|
* to output channels x, x1, x2, fill, stroke, r, opacity, fillOpacity, or strokeOpacity
|
|
54
191
|
*/
|
|
55
|
-
export declare function groupY(input: TransformArg<
|
|
192
|
+
export declare function groupY(input: TransformArg<DataRecord>, options?: GroupYOptions): {
|
|
56
193
|
data: Record<string | symbol, RawValue>[];
|
|
57
194
|
};
|
|
58
195
|
/**
|
|
@@ -60,7 +197,7 @@ export declare function groupY(input: TransformArg<T, DataRecord>, options?: Gro
|
|
|
60
197
|
* to output channels x, x1, x2, y, y1, y2, fill, stroke, r, opacity, fillOpacity,
|
|
61
198
|
* or strokeOpacity
|
|
62
199
|
*/
|
|
63
|
-
export declare function groupZ(input: TransformArg<
|
|
200
|
+
export declare function groupZ(input: TransformArg<DataRecord>, options?: GroupZOptions): {
|
|
64
201
|
data: Record<string | symbol, RawValue>[];
|
|
65
202
|
};
|
|
66
203
|
export {};
|
package/dist/transforms/group.js
CHANGED
|
@@ -76,7 +76,10 @@ function groupXYZ(dim, { data, ...channels }, options = {}) {
|
|
|
76
76
|
? [[null, data]]
|
|
77
77
|
: d3Groups(data
|
|
78
78
|
.filter((d) => testFilter(d, channels))
|
|
79
|
-
.map((d) => ({
|
|
79
|
+
.map((d) => ({
|
|
80
|
+
...d,
|
|
81
|
+
[groupDimRaw]: resolveChannel(dim, d, channels)
|
|
82
|
+
}))
|
|
80
83
|
.filter((d) => isValid(d[groupDimRaw])), (d) => {
|
|
81
84
|
return interval ? interval.floor(d[groupDimRaw]) : d[groupDimRaw];
|
|
82
85
|
});
|
|
@@ -13,6 +13,16 @@ export declare function intervalX<T>(args: TransformArg<T>): {
|
|
|
13
13
|
dodgeY?: import("./dodge.js").DodgeYOptions | undefined;
|
|
14
14
|
fill?: import("../types/channel.js").ChannelAccessor<T>;
|
|
15
15
|
fillOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
16
|
+
fontFamily?: import("../types/index.js").ConstantAccessor<import("csstype").Property.FontFamily, T>;
|
|
17
|
+
fontSize?: import("../types/index.js").ConstantAccessor<import("csstype").Property.FontSize<number>, T>;
|
|
18
|
+
fontStyle?: import("../types/index.js").ConstantAccessor<import("csstype").Property.FontStyle, T>;
|
|
19
|
+
fontVariant?: import("../types/index.js").ConstantAccessor<import("csstype").Property.FontVariant, T>;
|
|
20
|
+
fontWeight?: import("../types/index.js").ConstantAccessor<import("csstype").Property.FontWeight, T>;
|
|
21
|
+
letterSpacing?: import("../types/index.js").ConstantAccessor<import("csstype").Property.LetterSpacing<0 | (string & {})>, T>;
|
|
22
|
+
wordSpacing?: import("../types/index.js").ConstantAccessor<import("csstype").Property.WordSpacing<0 | (string & {})>, T>;
|
|
23
|
+
textAnchor?: import("../types/index.js").ConstantAccessor<import("csstype").Property.TextAnchor, T>;
|
|
24
|
+
textTransform?: import("../types/index.js").ConstantAccessor<import("csstype").Property.TextTransform, T>;
|
|
25
|
+
textDecoration?: import("../types/index.js").ConstantAccessor<import("csstype").Property.TextDecoration<0 | (string & {})>, T>;
|
|
16
26
|
sort?: ((a: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | {
|
|
17
27
|
channel: string;
|
|
18
28
|
order?: "ascending" | "descending";
|
|
@@ -26,45 +36,107 @@ export declare function intervalX<T>(args: TransformArg<T>): {
|
|
|
26
36
|
opacity?: import("../types/channel.js").ChannelAccessor<T>;
|
|
27
37
|
strokeDasharray?: import("../types/index.js").ConstantAccessor<string, T>;
|
|
28
38
|
strokeDashoffset?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
39
|
+
blend?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, T>;
|
|
29
40
|
mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, T>;
|
|
30
41
|
clipPath?: string | undefined;
|
|
31
42
|
mask?: string | undefined;
|
|
32
43
|
imageFilter?: import("../types/index.js").ConstantAccessor<string, T>;
|
|
33
44
|
shapeRendering?: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, T>;
|
|
34
45
|
paintOrder?: import("../types/index.js").ConstantAccessor<string, T>;
|
|
35
|
-
onclick?:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
46
|
+
onclick?: ((event: Event & {
|
|
47
|
+
currentTarget: SVGPathElement;
|
|
48
|
+
}, datum: T, index: number) => void) | undefined;
|
|
49
|
+
ondblclick?: ((event: Event & {
|
|
50
|
+
currentTarget: SVGPathElement;
|
|
51
|
+
}, datum: T, index: number) => void) | undefined;
|
|
52
|
+
onmouseup?: ((event: Event & {
|
|
53
|
+
currentTarget: SVGPathElement;
|
|
54
|
+
}, datum: T, index: number) => void) | undefined;
|
|
55
|
+
onmousedown?: ((event: Event & {
|
|
56
|
+
currentTarget: SVGPathElement;
|
|
57
|
+
}, datum: T, index: number) => void) | undefined;
|
|
58
|
+
onmouseenter?: ((event: Event & {
|
|
59
|
+
currentTarget: SVGPathElement;
|
|
60
|
+
}, datum: T, index: number) => void) | undefined;
|
|
61
|
+
onmousemove?: ((event: Event & {
|
|
62
|
+
currentTarget: SVGPathElement;
|
|
63
|
+
}, datum: T, index: number) => void) | undefined;
|
|
64
|
+
onmouseleave?: ((event: Event & {
|
|
65
|
+
currentTarget: SVGPathElement;
|
|
66
|
+
}, datum: T, index: number) => void) | undefined;
|
|
67
|
+
onmouseout?: ((event: Event & {
|
|
68
|
+
currentTarget: SVGPathElement;
|
|
69
|
+
}, datum: T, index: number) => void) | undefined;
|
|
70
|
+
onmouseover?: ((event: Event & {
|
|
71
|
+
currentTarget: SVGPathElement;
|
|
72
|
+
}, datum: T, index: number) => void) | undefined;
|
|
73
|
+
onpointercancel?: ((event: Event & {
|
|
74
|
+
currentTarget: SVGPathElement;
|
|
75
|
+
}, datum: T, index: number) => void) | undefined;
|
|
76
|
+
onpointerdown?: ((event: Event & {
|
|
77
|
+
currentTarget: SVGPathElement;
|
|
78
|
+
}, datum: T, index: number) => void) | undefined;
|
|
79
|
+
onpointerup?: ((event: Event & {
|
|
80
|
+
currentTarget: SVGPathElement;
|
|
81
|
+
}, datum: T, index: number) => void) | undefined;
|
|
82
|
+
onpointerenter?: ((event: Event & {
|
|
83
|
+
currentTarget: SVGPathElement;
|
|
84
|
+
}, datum: T, index: number) => void) | undefined;
|
|
85
|
+
onpointerleave?: ((event: Event & {
|
|
86
|
+
currentTarget: SVGPathElement;
|
|
87
|
+
}, datum: T, index: number) => void) | undefined;
|
|
88
|
+
onpointermove?: ((event: Event & {
|
|
89
|
+
currentTarget: SVGPathElement;
|
|
90
|
+
}, datum: T, index: number) => void) | undefined;
|
|
91
|
+
onpointerover?: ((event: Event & {
|
|
92
|
+
currentTarget: SVGPathElement;
|
|
93
|
+
}, datum: T, index: number) => void) | undefined;
|
|
94
|
+
onpointerout?: ((event: Event & {
|
|
95
|
+
currentTarget: SVGPathElement;
|
|
96
|
+
}, datum: T, index: number) => void) | undefined;
|
|
97
|
+
ondrag?: ((event: Event & {
|
|
98
|
+
currentTarget: SVGPathElement;
|
|
99
|
+
}, datum: T, index: number) => void) | undefined;
|
|
100
|
+
ondrop?: ((event: Event & {
|
|
101
|
+
currentTarget: SVGPathElement;
|
|
102
|
+
}, datum: T, index: number) => void) | undefined;
|
|
103
|
+
ondragstart?: ((event: Event & {
|
|
104
|
+
currentTarget: SVGPathElement;
|
|
105
|
+
}, datum: T, index: number) => void) | undefined;
|
|
106
|
+
ondragenter?: ((event: Event & {
|
|
107
|
+
currentTarget: SVGPathElement;
|
|
108
|
+
}, datum: T, index: number) => void) | undefined;
|
|
109
|
+
ondragleave?: ((event: Event & {
|
|
110
|
+
currentTarget: SVGPathElement;
|
|
111
|
+
}, datum: T, index: number) => void) | undefined;
|
|
112
|
+
ondragover?: ((event: Event & {
|
|
113
|
+
currentTarget: SVGPathElement;
|
|
114
|
+
}, datum: T, index: number) => void) | undefined;
|
|
115
|
+
ondragend?: ((event: Event & {
|
|
116
|
+
currentTarget: SVGPathElement;
|
|
117
|
+
}, datum: T, index: number) => void) | undefined;
|
|
118
|
+
ontouchstart?: ((event: Event & {
|
|
119
|
+
currentTarget: SVGPathElement;
|
|
120
|
+
}, datum: T, index: number) => void) | undefined;
|
|
121
|
+
ontouchmove?: ((event: Event & {
|
|
122
|
+
currentTarget: SVGPathElement;
|
|
123
|
+
}, datum: T, index: number) => void) | undefined;
|
|
124
|
+
ontouchend?: ((event: Event & {
|
|
125
|
+
currentTarget: SVGPathElement;
|
|
126
|
+
}, datum: T, index: number) => void) | undefined;
|
|
127
|
+
ontouchcancel?: ((event: Event & {
|
|
128
|
+
currentTarget: SVGPathElement;
|
|
129
|
+
}, datum: T, index: number) => void) | undefined;
|
|
130
|
+
oncontextmenu?: ((event: Event & {
|
|
131
|
+
currentTarget: SVGPathElement;
|
|
132
|
+
}, datum: T, index: number) => void) | undefined;
|
|
133
|
+
onwheel?: ((event: Event & {
|
|
134
|
+
currentTarget: SVGPathElement;
|
|
135
|
+
}, datum: T, index: number) => void) | undefined;
|
|
65
136
|
class?: string | undefined;
|
|
66
137
|
style?: string | undefined;
|
|
67
138
|
cursor?: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, T>;
|
|
139
|
+
title?: import("../types/index.js").ConstantAccessor<string, T>;
|
|
68
140
|
data: T[];
|
|
69
141
|
};
|
|
70
142
|
/**
|
|
@@ -81,6 +153,16 @@ export declare function intervalY<T>(args: TransformArg<T>): {
|
|
|
81
153
|
dodgeY?: import("./dodge.js").DodgeYOptions | undefined;
|
|
82
154
|
fill?: import("../types/channel.js").ChannelAccessor<T>;
|
|
83
155
|
fillOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
156
|
+
fontFamily?: import("../types/index.js").ConstantAccessor<import("csstype").Property.FontFamily, T>;
|
|
157
|
+
fontSize?: import("../types/index.js").ConstantAccessor<import("csstype").Property.FontSize<number>, T>;
|
|
158
|
+
fontStyle?: import("../types/index.js").ConstantAccessor<import("csstype").Property.FontStyle, T>;
|
|
159
|
+
fontVariant?: import("../types/index.js").ConstantAccessor<import("csstype").Property.FontVariant, T>;
|
|
160
|
+
fontWeight?: import("../types/index.js").ConstantAccessor<import("csstype").Property.FontWeight, T>;
|
|
161
|
+
letterSpacing?: import("../types/index.js").ConstantAccessor<import("csstype").Property.LetterSpacing<0 | (string & {})>, T>;
|
|
162
|
+
wordSpacing?: import("../types/index.js").ConstantAccessor<import("csstype").Property.WordSpacing<0 | (string & {})>, T>;
|
|
163
|
+
textAnchor?: import("../types/index.js").ConstantAccessor<import("csstype").Property.TextAnchor, T>;
|
|
164
|
+
textTransform?: import("../types/index.js").ConstantAccessor<import("csstype").Property.TextTransform, T>;
|
|
165
|
+
textDecoration?: import("../types/index.js").ConstantAccessor<import("csstype").Property.TextDecoration<0 | (string & {})>, T>;
|
|
84
166
|
sort?: ((a: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | {
|
|
85
167
|
channel: string;
|
|
86
168
|
order?: "ascending" | "descending";
|
|
@@ -94,44 +176,106 @@ export declare function intervalY<T>(args: TransformArg<T>): {
|
|
|
94
176
|
opacity?: import("../types/channel.js").ChannelAccessor<T>;
|
|
95
177
|
strokeDasharray?: import("../types/index.js").ConstantAccessor<string, T>;
|
|
96
178
|
strokeDashoffset?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
179
|
+
blend?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, T>;
|
|
97
180
|
mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, T>;
|
|
98
181
|
clipPath?: string | undefined;
|
|
99
182
|
mask?: string | undefined;
|
|
100
183
|
imageFilter?: import("../types/index.js").ConstantAccessor<string, T>;
|
|
101
184
|
shapeRendering?: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, T>;
|
|
102
185
|
paintOrder?: import("../types/index.js").ConstantAccessor<string, T>;
|
|
103
|
-
onclick?:
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
186
|
+
onclick?: ((event: Event & {
|
|
187
|
+
currentTarget: SVGPathElement;
|
|
188
|
+
}, datum: T, index: number) => void) | undefined;
|
|
189
|
+
ondblclick?: ((event: Event & {
|
|
190
|
+
currentTarget: SVGPathElement;
|
|
191
|
+
}, datum: T, index: number) => void) | undefined;
|
|
192
|
+
onmouseup?: ((event: Event & {
|
|
193
|
+
currentTarget: SVGPathElement;
|
|
194
|
+
}, datum: T, index: number) => void) | undefined;
|
|
195
|
+
onmousedown?: ((event: Event & {
|
|
196
|
+
currentTarget: SVGPathElement;
|
|
197
|
+
}, datum: T, index: number) => void) | undefined;
|
|
198
|
+
onmouseenter?: ((event: Event & {
|
|
199
|
+
currentTarget: SVGPathElement;
|
|
200
|
+
}, datum: T, index: number) => void) | undefined;
|
|
201
|
+
onmousemove?: ((event: Event & {
|
|
202
|
+
currentTarget: SVGPathElement;
|
|
203
|
+
}, datum: T, index: number) => void) | undefined;
|
|
204
|
+
onmouseleave?: ((event: Event & {
|
|
205
|
+
currentTarget: SVGPathElement;
|
|
206
|
+
}, datum: T, index: number) => void) | undefined;
|
|
207
|
+
onmouseout?: ((event: Event & {
|
|
208
|
+
currentTarget: SVGPathElement;
|
|
209
|
+
}, datum: T, index: number) => void) | undefined;
|
|
210
|
+
onmouseover?: ((event: Event & {
|
|
211
|
+
currentTarget: SVGPathElement;
|
|
212
|
+
}, datum: T, index: number) => void) | undefined;
|
|
213
|
+
onpointercancel?: ((event: Event & {
|
|
214
|
+
currentTarget: SVGPathElement;
|
|
215
|
+
}, datum: T, index: number) => void) | undefined;
|
|
216
|
+
onpointerdown?: ((event: Event & {
|
|
217
|
+
currentTarget: SVGPathElement;
|
|
218
|
+
}, datum: T, index: number) => void) | undefined;
|
|
219
|
+
onpointerup?: ((event: Event & {
|
|
220
|
+
currentTarget: SVGPathElement;
|
|
221
|
+
}, datum: T, index: number) => void) | undefined;
|
|
222
|
+
onpointerenter?: ((event: Event & {
|
|
223
|
+
currentTarget: SVGPathElement;
|
|
224
|
+
}, datum: T, index: number) => void) | undefined;
|
|
225
|
+
onpointerleave?: ((event: Event & {
|
|
226
|
+
currentTarget: SVGPathElement;
|
|
227
|
+
}, datum: T, index: number) => void) | undefined;
|
|
228
|
+
onpointermove?: ((event: Event & {
|
|
229
|
+
currentTarget: SVGPathElement;
|
|
230
|
+
}, datum: T, index: number) => void) | undefined;
|
|
231
|
+
onpointerover?: ((event: Event & {
|
|
232
|
+
currentTarget: SVGPathElement;
|
|
233
|
+
}, datum: T, index: number) => void) | undefined;
|
|
234
|
+
onpointerout?: ((event: Event & {
|
|
235
|
+
currentTarget: SVGPathElement;
|
|
236
|
+
}, datum: T, index: number) => void) | undefined;
|
|
237
|
+
ondrag?: ((event: Event & {
|
|
238
|
+
currentTarget: SVGPathElement;
|
|
239
|
+
}, datum: T, index: number) => void) | undefined;
|
|
240
|
+
ondrop?: ((event: Event & {
|
|
241
|
+
currentTarget: SVGPathElement;
|
|
242
|
+
}, datum: T, index: number) => void) | undefined;
|
|
243
|
+
ondragstart?: ((event: Event & {
|
|
244
|
+
currentTarget: SVGPathElement;
|
|
245
|
+
}, datum: T, index: number) => void) | undefined;
|
|
246
|
+
ondragenter?: ((event: Event & {
|
|
247
|
+
currentTarget: SVGPathElement;
|
|
248
|
+
}, datum: T, index: number) => void) | undefined;
|
|
249
|
+
ondragleave?: ((event: Event & {
|
|
250
|
+
currentTarget: SVGPathElement;
|
|
251
|
+
}, datum: T, index: number) => void) | undefined;
|
|
252
|
+
ondragover?: ((event: Event & {
|
|
253
|
+
currentTarget: SVGPathElement;
|
|
254
|
+
}, datum: T, index: number) => void) | undefined;
|
|
255
|
+
ondragend?: ((event: Event & {
|
|
256
|
+
currentTarget: SVGPathElement;
|
|
257
|
+
}, datum: T, index: number) => void) | undefined;
|
|
258
|
+
ontouchstart?: ((event: Event & {
|
|
259
|
+
currentTarget: SVGPathElement;
|
|
260
|
+
}, datum: T, index: number) => void) | undefined;
|
|
261
|
+
ontouchmove?: ((event: Event & {
|
|
262
|
+
currentTarget: SVGPathElement;
|
|
263
|
+
}, datum: T, index: number) => void) | undefined;
|
|
264
|
+
ontouchend?: ((event: Event & {
|
|
265
|
+
currentTarget: SVGPathElement;
|
|
266
|
+
}, datum: T, index: number) => void) | undefined;
|
|
267
|
+
ontouchcancel?: ((event: Event & {
|
|
268
|
+
currentTarget: SVGPathElement;
|
|
269
|
+
}, datum: T, index: number) => void) | undefined;
|
|
270
|
+
oncontextmenu?: ((event: Event & {
|
|
271
|
+
currentTarget: SVGPathElement;
|
|
272
|
+
}, datum: T, index: number) => void) | undefined;
|
|
273
|
+
onwheel?: ((event: Event & {
|
|
274
|
+
currentTarget: SVGPathElement;
|
|
275
|
+
}, datum: T, index: number) => void) | undefined;
|
|
133
276
|
class?: string | undefined;
|
|
134
277
|
style?: string | undefined;
|
|
135
278
|
cursor?: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, T>;
|
|
279
|
+
title?: import("../types/index.js").ConstantAccessor<string, T>;
|
|
136
280
|
data: T[];
|
|
137
281
|
};
|