svelteplot 0.8.0-pr-282.2 → 0.8.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/dist/Mark.svelte.d.ts +4 -5
- package/dist/constants.d.ts +1 -1
- package/dist/helpers/colors.d.ts +12 -9
- package/dist/helpers/facets.d.ts +1 -1
- package/dist/helpers/getBaseStyles.d.ts +4 -2
- package/dist/helpers/index.d.ts +3 -3
- package/dist/helpers/reduce.d.ts +1 -1
- package/dist/helpers/scales.d.ts +7 -7
- package/dist/helpers/symbols.d.ts +2 -2
- package/dist/helpers/time.d.ts +3 -3
- package/dist/helpers/typeChecks.d.ts +8 -8
- package/dist/marks/Area.svelte.d.ts +4 -5
- package/dist/marks/AreaX.svelte.d.ts +5 -6
- package/dist/marks/Arrow.svelte.d.ts +4 -5
- package/dist/marks/AxisX.svelte.d.ts +5 -6
- package/dist/marks/AxisY.svelte.d.ts +5 -6
- package/dist/marks/BarX.svelte.d.ts +4 -5
- package/dist/marks/BarY.svelte.d.ts +4 -5
- package/dist/marks/BollingerX.svelte.d.ts +76 -2
- package/dist/marks/BollingerY.svelte.d.ts +76 -2
- package/dist/marks/BoxY.svelte.d.ts +63 -1
- package/dist/marks/Brush.svelte.d.ts +63 -1
- package/dist/marks/Cell.svelte.d.ts +4 -5
- package/dist/marks/CustomMark.svelte.d.ts +84 -2
- package/dist/marks/DifferenceY.svelte.d.ts +63 -1
- package/dist/marks/Dot.svelte.d.ts +4 -5
- package/dist/marks/DotX.svelte.d.ts +5 -6
- package/dist/marks/DotY.svelte.d.ts +5 -6
- package/dist/marks/Frame.svelte.d.ts +5 -6
- package/dist/marks/Geo.svelte.d.ts +4 -5
- package/dist/marks/GridX.svelte.d.ts +4 -5
- package/dist/marks/GridY.svelte.d.ts +4 -5
- package/dist/marks/Image.svelte.d.ts +75 -2
- package/dist/marks/Line.svelte.d.ts +4 -5
- package/dist/marks/LineX.svelte.d.ts +6 -7
- package/dist/marks/LineY.svelte.d.ts +6 -7
- package/dist/marks/Link.svelte.d.ts +4 -5
- package/dist/marks/Rect.svelte.d.ts +4 -5
- package/dist/marks/RuleX.svelte.d.ts +4 -5
- package/dist/marks/RuleY.svelte.d.ts +4 -5
- package/dist/marks/Spike.svelte.d.ts +5 -6
- package/dist/marks/Text.svelte.d.ts +4 -5
- package/dist/marks/TickX.svelte.d.ts +4 -5
- package/dist/marks/TickY.svelte.d.ts +4 -5
- package/dist/marks/Vector.svelte.d.ts +4 -5
- package/dist/marks/WaffleX.svelte.d.ts +85 -2
- package/dist/marks/WaffleY.svelte.d.ts +83 -2
- package/dist/marks/helpers/MarkerPath.svelte.d.ts +102 -2
- package/dist/transforms/bollinger.d.ts +69 -1
- package/dist/transforms/centroid.d.ts +4 -1
- package/dist/transforms/group.d.ts +12 -4
- package/dist/transforms/interval.d.ts +128 -2
- package/dist/transforms/recordize.d.ts +7 -4
- package/dist/transforms/select.d.ts +448 -7
- package/dist/transforms/sort.d.ts +253 -5
- package/dist/transforms/stack.d.ts +23 -3
- package/dist/transforms/window.d.ts +134 -2
- package/package.json +1 -1
- package/dist/transforms/normalize.d.ts +0 -23
|
@@ -1,6 +1,106 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type MarkerShape } from './Marker.svelte';
|
|
2
|
+
import type { BaseMarkProps, ConstantAccessor, DataRecord, Mark, PlotScales } from '../../types/index.js';
|
|
2
3
|
declare function $$render<Datum extends DataRecord>(): {
|
|
3
|
-
props:
|
|
4
|
+
props: Partial<{
|
|
5
|
+
filter: ConstantAccessor<boolean, Datum>;
|
|
6
|
+
facet: "auto" | "include" | "exclude";
|
|
7
|
+
fx: import("../../types/index.js").ChannelAccessor<Datum>;
|
|
8
|
+
fy: import("../../types/index.js").ChannelAccessor<Datum>;
|
|
9
|
+
dx: ConstantAccessor<number, Datum>;
|
|
10
|
+
dy: ConstantAccessor<number, Datum>;
|
|
11
|
+
dodgeX: import("../../transforms/dodge").DodgeXOptions;
|
|
12
|
+
dodgeY: import("../../transforms/dodge").DodgeYOptions;
|
|
13
|
+
fill: import("../../types/index.js").ChannelAccessor<Datum>;
|
|
14
|
+
fillOpacity: 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
|
+
} | ConstantAccessor<import("../../types/index.js").RawValue, Datum>;
|
|
19
|
+
stroke: import("../../types/index.js").ChannelAccessor<Datum>;
|
|
20
|
+
strokeWidth: ConstantAccessor<number, Datum>;
|
|
21
|
+
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
22
|
+
strokeLinejoin: ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
|
|
23
|
+
strokeLinecap: ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
|
|
24
|
+
strokeMiterlimit: ConstantAccessor<number, Datum>;
|
|
25
|
+
opacity: import("../../types/index.js").ChannelAccessor<Datum>;
|
|
26
|
+
strokeDasharray: ConstantAccessor<string, Datum>;
|
|
27
|
+
strokeDashoffset: ConstantAccessor<number, Datum>;
|
|
28
|
+
mixBlendMode: ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
|
|
29
|
+
clipPath: string;
|
|
30
|
+
imageFilter: ConstantAccessor<string, Datum>;
|
|
31
|
+
shapeRendering: ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
32
|
+
paintOrder: ConstantAccessor<string, Datum>;
|
|
33
|
+
onclick: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
34
|
+
ondblclick: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
35
|
+
onmouseup: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
36
|
+
onmousedown: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
37
|
+
onmouseenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
38
|
+
onmousemove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
39
|
+
onmouseleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
40
|
+
onmouseout: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
41
|
+
onmouseover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
42
|
+
onpointercancel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
43
|
+
onpointerdown: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
44
|
+
onpointerup: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
45
|
+
onpointerenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
46
|
+
onpointerleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
47
|
+
onpointermove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
48
|
+
onpointerover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
49
|
+
onpointerout: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
50
|
+
ondrag: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
51
|
+
ondrop: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
52
|
+
ondragstart: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
53
|
+
ondragenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
54
|
+
ondragleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
55
|
+
ondragover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
56
|
+
ondragend: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
57
|
+
ontouchstart: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
58
|
+
ontouchmove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
|
+
ontouchend: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
|
+
ontouchcancel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
61
|
+
oncontextmenu: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
62
|
+
onwheel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
63
|
+
class: string;
|
|
64
|
+
style: string;
|
|
65
|
+
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
66
|
+
}> & {
|
|
67
|
+
/**
|
|
68
|
+
* the datum associated with this path, usually the first
|
|
69
|
+
* element of the data array group
|
|
70
|
+
*/
|
|
71
|
+
datum: Datum;
|
|
72
|
+
/**
|
|
73
|
+
* the marker shape to use at the start of the path, defaults to
|
|
74
|
+
* circle
|
|
75
|
+
*/
|
|
76
|
+
markerStart?: boolean | MarkerShape;
|
|
77
|
+
/**
|
|
78
|
+
* the marker shape to use at the middle of the path, defaults to circle
|
|
79
|
+
*/
|
|
80
|
+
markerMid?: boolean | MarkerShape;
|
|
81
|
+
/**
|
|
82
|
+
* the marker shape to use at the end of the path, defaults to circle
|
|
83
|
+
*/
|
|
84
|
+
markerEnd?: boolean | MarkerShape;
|
|
85
|
+
/**
|
|
86
|
+
* shorthand for setting all markers
|
|
87
|
+
*/
|
|
88
|
+
marker?: boolean | MarkerShape;
|
|
89
|
+
/**
|
|
90
|
+
* path string
|
|
91
|
+
*/
|
|
92
|
+
d: string;
|
|
93
|
+
style: string;
|
|
94
|
+
startOffset: string;
|
|
95
|
+
textStyle: string;
|
|
96
|
+
textStyleClass?: string | null;
|
|
97
|
+
text: string;
|
|
98
|
+
transform: string;
|
|
99
|
+
color: string;
|
|
100
|
+
strokeWidth: ConstantAccessor<number>;
|
|
101
|
+
mark: Mark<BaseMarkProps<Datum>>;
|
|
102
|
+
scales: PlotScales;
|
|
103
|
+
};
|
|
4
104
|
exports: {};
|
|
5
105
|
bindings: "";
|
|
6
106
|
slots: {};
|
|
@@ -11,4 +11,72 @@ export type BollingerOptions = {
|
|
|
11
11
|
};
|
|
12
12
|
export declare function bollingerX(args: TransformArg<DataRecord>, options?: BollingerOptions): TransformArg<DataRecord>;
|
|
13
13
|
export declare function bollingerY(args: TransformArg<DataRecord>, options?: BollingerOptions): TransformArg<DataRecord>;
|
|
14
|
-
export declare function bollingerDim(dim: 'x' | 'y', { data, ...channels }: TransformArg<DataRecord>, options?: BollingerOptions):
|
|
14
|
+
export declare function bollingerDim(dim: 'x' | 'y', { data, ...channels }: TransformArg<DataRecord>, options?: BollingerOptions): {
|
|
15
|
+
filter?: import("../types/index.js").ConstantAccessor<boolean, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
16
|
+
facet?: "auto" | "include" | "exclude" | undefined;
|
|
17
|
+
fx?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
18
|
+
fy?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
19
|
+
dx?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
20
|
+
dy?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
21
|
+
dodgeX?: import("./dodge").DodgeXOptions | undefined;
|
|
22
|
+
dodgeY?: import("./dodge").DodgeYOptions | undefined;
|
|
23
|
+
fill?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
24
|
+
fillOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
25
|
+
sort?: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
26
|
+
channel: string;
|
|
27
|
+
order?: "ascending" | "descending";
|
|
28
|
+
} | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
29
|
+
stroke?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
30
|
+
strokeWidth?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
31
|
+
strokeOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
32
|
+
strokeLinejoin?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
33
|
+
strokeLinecap?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
34
|
+
strokeMiterlimit?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
35
|
+
opacity?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
36
|
+
strokeDasharray?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
37
|
+
strokeDashoffset?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
38
|
+
mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
39
|
+
clipPath?: string | undefined;
|
|
40
|
+
imageFilter?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
41
|
+
shapeRendering?: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
42
|
+
paintOrder?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
43
|
+
onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
44
|
+
ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
45
|
+
onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
46
|
+
onmousedown?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
47
|
+
onmouseenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
48
|
+
onmousemove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
49
|
+
onmouseleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
50
|
+
onmouseout?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
51
|
+
onmouseover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
52
|
+
onpointercancel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
53
|
+
onpointerdown?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
54
|
+
onpointerup?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
55
|
+
onpointerenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
56
|
+
onpointerleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
57
|
+
onpointermove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
58
|
+
onpointerover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
59
|
+
onpointerout?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
60
|
+
ondrag?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
61
|
+
ondrop?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
62
|
+
ondragstart?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
63
|
+
ondragenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
64
|
+
ondragleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
65
|
+
ondragover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
66
|
+
ondragend?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
67
|
+
ontouchstart?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
68
|
+
ontouchmove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
69
|
+
ontouchend?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
70
|
+
ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
71
|
+
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
72
|
+
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
73
|
+
class?: string | undefined;
|
|
74
|
+
style?: string | undefined;
|
|
75
|
+
cursor?: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
76
|
+
data: {
|
|
77
|
+
__x: import("../types/index.js").RawValue;
|
|
78
|
+
__lo: number;
|
|
79
|
+
__avg: number;
|
|
80
|
+
__hi: number;
|
|
81
|
+
}[];
|
|
82
|
+
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { DataRecord, TransformArg } from '../types/index.js';
|
|
2
|
-
|
|
2
|
+
declare const CENTROID: unique symbol;
|
|
3
|
+
type WithCentroid<T> = T & {
|
|
4
|
+
[CENTROID]: [number, number];
|
|
5
|
+
};
|
|
3
6
|
export declare function geoCentroid<Datum extends DataRecord>({ data, ...options }: {
|
|
4
7
|
data: Datum[];
|
|
5
8
|
} & TransformArg<Datum>): TransformArg<WithCentroid<Datum>>;
|
|
@@ -38,21 +38,29 @@ type GroupZOptions = GroupXOptions | GroupYOptions;
|
|
|
38
38
|
* groups the dataset by x and y channel and optionally reduces the group items
|
|
39
39
|
* to output channels fill, stroke, r, opacity, fillOpacity, or strokeOpacity
|
|
40
40
|
*/
|
|
41
|
-
export declare function group({ data, ...channels }: TransformArg<T, DataRecord>, options?: GroupXOptions):
|
|
41
|
+
export declare function group({ data, ...channels }: TransformArg<T, DataRecord>, options?: GroupXOptions): {
|
|
42
|
+
data: Record<string | symbol, RawValue>[];
|
|
43
|
+
};
|
|
42
44
|
/**
|
|
43
45
|
* groups the dataset by the x channel and optionally reduces the group items
|
|
44
46
|
* to output channels y, y1, y2, fill, stroke, r, opacity, fillOpacity, or strokeOpacity
|
|
45
47
|
*/
|
|
46
|
-
export declare function groupX(input: TransformArg<T, DataRecord>, options?: GroupXOptions):
|
|
48
|
+
export declare function groupX(input: TransformArg<T, DataRecord>, options?: GroupXOptions): {
|
|
49
|
+
data: Record<string | symbol, RawValue>[];
|
|
50
|
+
};
|
|
47
51
|
/**
|
|
48
52
|
* groups the dataset by the y channel and optionally reduces the group items
|
|
49
53
|
* to output channels x, x1, x2, fill, stroke, r, opacity, fillOpacity, or strokeOpacity
|
|
50
54
|
*/
|
|
51
|
-
export declare function groupY(input: TransformArg<T, DataRecord>, options?: GroupYOptions):
|
|
55
|
+
export declare function groupY(input: TransformArg<T, DataRecord>, options?: GroupYOptions): {
|
|
56
|
+
data: Record<string | symbol, RawValue>[];
|
|
57
|
+
};
|
|
52
58
|
/**
|
|
53
59
|
* groups the dataset by the z channel and optionally reduces the group items
|
|
54
60
|
* to output channels x, x1, x2, y, y1, y2, fill, stroke, r, opacity, fillOpacity,
|
|
55
61
|
* or strokeOpacity
|
|
56
62
|
*/
|
|
57
|
-
export declare function groupZ(input: TransformArg<T, DataRecord>, options?: GroupZOptions):
|
|
63
|
+
export declare function groupZ(input: TransformArg<T, DataRecord>, options?: GroupZOptions): {
|
|
64
|
+
data: Record<string | symbol, RawValue>[];
|
|
65
|
+
};
|
|
58
66
|
export {};
|
|
@@ -1,7 +1,133 @@
|
|
|
1
1
|
import type { PlotState, TransformArg } from '../types/index.js';
|
|
2
2
|
export declare function intervalX<T>(args: TransformArg<T>, { plot }: {
|
|
3
3
|
plot: PlotState;
|
|
4
|
-
}):
|
|
4
|
+
}): {
|
|
5
|
+
filter?: import("../types/index.js").ConstantAccessor<boolean, T>;
|
|
6
|
+
facet?: "auto" | "include" | "exclude" | undefined;
|
|
7
|
+
fx?: import("../types/index.js").ChannelAccessor<T>;
|
|
8
|
+
fy?: import("../types/index.js").ChannelAccessor<T>;
|
|
9
|
+
dx?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
10
|
+
dy?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
11
|
+
dodgeX?: import("./dodge").DodgeXOptions | undefined;
|
|
12
|
+
dodgeY?: import("./dodge").DodgeYOptions | undefined;
|
|
13
|
+
fill?: import("../types/index.js").ChannelAccessor<T>;
|
|
14
|
+
fillOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
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, T>;
|
|
19
|
+
stroke?: import("../types/index.js").ChannelAccessor<T>;
|
|
20
|
+
strokeWidth?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
21
|
+
strokeOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
22
|
+
strokeLinejoin?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, T>;
|
|
23
|
+
strokeLinecap?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, T>;
|
|
24
|
+
strokeMiterlimit?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
25
|
+
opacity?: import("../types/index.js").ChannelAccessor<T>;
|
|
26
|
+
strokeDasharray?: import("../types/index.js").ConstantAccessor<string, T>;
|
|
27
|
+
strokeDashoffset?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
28
|
+
mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, T>;
|
|
29
|
+
clipPath?: string | undefined;
|
|
30
|
+
imageFilter?: import("../types/index.js").ConstantAccessor<string, T>;
|
|
31
|
+
shapeRendering?: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, T>;
|
|
32
|
+
paintOrder?: import("../types/index.js").ConstantAccessor<string, T>;
|
|
33
|
+
onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
34
|
+
ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
35
|
+
onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
36
|
+
onmousedown?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
37
|
+
onmouseenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
38
|
+
onmousemove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
39
|
+
onmouseleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
40
|
+
onmouseout?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
41
|
+
onmouseover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
42
|
+
onpointercancel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
43
|
+
onpointerdown?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
44
|
+
onpointerup?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
45
|
+
onpointerenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
46
|
+
onpointerleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
47
|
+
onpointermove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
48
|
+
onpointerover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
49
|
+
onpointerout?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
50
|
+
ondrag?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
51
|
+
ondrop?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
52
|
+
ondragstart?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
53
|
+
ondragenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
54
|
+
ondragleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
55
|
+
ondragover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
56
|
+
ondragend?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
57
|
+
ontouchstart?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
58
|
+
ontouchmove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
59
|
+
ontouchend?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
60
|
+
ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
61
|
+
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
62
|
+
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
63
|
+
class?: string | undefined;
|
|
64
|
+
style?: string | undefined;
|
|
65
|
+
cursor?: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, T>;
|
|
66
|
+
data: T[];
|
|
67
|
+
};
|
|
5
68
|
export declare function intervalY<T>(args: TransformArg<T>, { plot }: {
|
|
6
69
|
plot: PlotState;
|
|
7
|
-
}):
|
|
70
|
+
}): {
|
|
71
|
+
filter?: import("../types/index.js").ConstantAccessor<boolean, T>;
|
|
72
|
+
facet?: "auto" | "include" | "exclude" | undefined;
|
|
73
|
+
fx?: import("../types/index.js").ChannelAccessor<T>;
|
|
74
|
+
fy?: import("../types/index.js").ChannelAccessor<T>;
|
|
75
|
+
dx?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
76
|
+
dy?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
77
|
+
dodgeX?: import("./dodge").DodgeXOptions | undefined;
|
|
78
|
+
dodgeY?: import("./dodge").DodgeYOptions | undefined;
|
|
79
|
+
fill?: import("../types/index.js").ChannelAccessor<T>;
|
|
80
|
+
fillOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
81
|
+
sort?: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
82
|
+
channel: string;
|
|
83
|
+
order?: "ascending" | "descending";
|
|
84
|
+
} | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, T>;
|
|
85
|
+
stroke?: import("../types/index.js").ChannelAccessor<T>;
|
|
86
|
+
strokeWidth?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
87
|
+
strokeOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
88
|
+
strokeLinejoin?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, T>;
|
|
89
|
+
strokeLinecap?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, T>;
|
|
90
|
+
strokeMiterlimit?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
91
|
+
opacity?: import("../types/index.js").ChannelAccessor<T>;
|
|
92
|
+
strokeDasharray?: import("../types/index.js").ConstantAccessor<string, T>;
|
|
93
|
+
strokeDashoffset?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
94
|
+
mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, T>;
|
|
95
|
+
clipPath?: string | undefined;
|
|
96
|
+
imageFilter?: import("../types/index.js").ConstantAccessor<string, T>;
|
|
97
|
+
shapeRendering?: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, T>;
|
|
98
|
+
paintOrder?: import("../types/index.js").ConstantAccessor<string, T>;
|
|
99
|
+
onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
100
|
+
ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
101
|
+
onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
102
|
+
onmousedown?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
103
|
+
onmouseenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
104
|
+
onmousemove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
105
|
+
onmouseleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
106
|
+
onmouseout?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
107
|
+
onmouseover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
108
|
+
onpointercancel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
109
|
+
onpointerdown?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
110
|
+
onpointerup?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
111
|
+
onpointerenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
112
|
+
onpointerleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
113
|
+
onpointermove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
114
|
+
onpointerover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
115
|
+
onpointerout?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
116
|
+
ondrag?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
117
|
+
ondrop?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
118
|
+
ondragstart?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
119
|
+
ondragenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
120
|
+
ondragleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
121
|
+
ondragover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
122
|
+
ondragend?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
123
|
+
ontouchstart?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
124
|
+
ontouchmove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
125
|
+
ontouchend?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
126
|
+
ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
127
|
+
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
128
|
+
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
129
|
+
class?: string | undefined;
|
|
130
|
+
style?: string | undefined;
|
|
131
|
+
cursor?: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, T>;
|
|
132
|
+
data: T[];
|
|
133
|
+
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import type { TransformArgsRow, TransformArgsRecord } from '../types/index.js';
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare
|
|
2
|
+
import { INDEX } from '../constants';
|
|
3
|
+
export declare const X: unique symbol;
|
|
4
|
+
export declare const Y: unique symbol;
|
|
5
|
+
export declare const RAW_VALUE: unique symbol;
|
|
6
|
+
export declare function indexData<T extends object>(data: T[]): (T & {
|
|
7
|
+
[INDEX]: number;
|
|
8
|
+
})[];
|
|
6
9
|
export declare function recordizeX<T>({ data, ...channels }: TransformArgsRow<T>, { withIndex }?: {
|
|
7
10
|
withIndex: boolean;
|
|
8
11
|
}): TransformArgsRecord<T>;
|