svelteplot 0.4.7 → 0.4.8
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 +2 -2
- package/dist/core/Plot.svelte +54 -31
- package/dist/hooks/plotDefaults.d.ts +3 -0
- package/dist/hooks/plotDefaults.js +16 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/marks/Area.svelte +2 -1
- package/dist/marks/Area.svelte.d.ts +2 -2
- package/dist/marks/AreaX.svelte +4 -3
- package/dist/marks/AreaX.svelte.d.ts +2 -2
- package/dist/marks/AreaY.svelte +4 -5
- package/dist/marks/Arrow.svelte +3 -2
- package/dist/marks/Arrow.svelte.d.ts +2 -2
- package/dist/marks/AxisX.svelte +3 -4
- package/dist/marks/AxisX.svelte.d.ts +3 -3
- package/dist/marks/AxisY.svelte +3 -4
- package/dist/marks/AxisY.svelte.d.ts +8 -9
- package/dist/marks/BarX.svelte +4 -4
- package/dist/marks/BarX.svelte.d.ts +2 -2
- package/dist/marks/BarY.svelte +3 -3
- package/dist/marks/BarY.svelte.d.ts +2 -2
- package/dist/marks/BollingerX.svelte.d.ts +2 -2
- package/dist/marks/BollingerY.svelte.d.ts +2 -2
- package/dist/marks/BoxX.svelte +4 -4
- package/dist/marks/BoxY.svelte +4 -4
- package/dist/marks/BoxY.svelte.d.ts +67 -6
- package/dist/marks/Brush.svelte +13 -7
- package/dist/marks/Brush.svelte.d.ts +10 -1
- package/dist/marks/BrushX.svelte +4 -4
- package/dist/marks/BrushY.svelte +4 -4
- package/dist/marks/Cell.svelte +3 -4
- package/dist/marks/Cell.svelte.d.ts +2 -2
- package/dist/marks/ColorLegend.svelte +5 -4
- package/dist/marks/CustomMark.svelte.d.ts +2 -2
- package/dist/marks/CustomMarkHTML.svelte.d.ts +1 -1
- package/dist/marks/DifferenceY.svelte +3 -3
- package/dist/marks/DifferenceY.svelte.d.ts +2 -2
- package/dist/marks/Dot.svelte +2 -2
- package/dist/marks/Dot.svelte.d.ts +2 -2
- package/dist/marks/DotX.svelte.d.ts +3 -3
- package/dist/marks/DotY.svelte.d.ts +3 -3
- package/dist/marks/Frame.svelte +2 -2
- package/dist/marks/Geo.svelte +2 -2
- package/dist/marks/Geo.svelte.d.ts +2 -2
- package/dist/marks/Graticule.svelte +3 -3
- package/dist/marks/GridX.svelte +3 -3
- package/dist/marks/GridX.svelte.d.ts +2 -2
- package/dist/marks/GridY.svelte +4 -9
- package/dist/marks/GridY.svelte.d.ts +2 -2
- package/dist/marks/Line.svelte +3 -2
- package/dist/marks/Line.svelte.d.ts +2 -2
- package/dist/marks/LineX.svelte.d.ts +3 -3
- package/dist/marks/LineY.svelte.d.ts +3 -3
- package/dist/marks/Link.svelte +3 -3
- package/dist/marks/Link.svelte.d.ts +2 -2
- package/dist/marks/Pointer.svelte +3 -3
- package/dist/marks/Rect.svelte +2 -3
- package/dist/marks/Rect.svelte.d.ts +2 -2
- package/dist/marks/RectX.svelte +4 -3
- package/dist/marks/RectY.svelte +4 -3
- package/dist/marks/RuleX.svelte +3 -3
- package/dist/marks/RuleX.svelte.d.ts +2 -2
- package/dist/marks/RuleY.svelte +4 -4
- package/dist/marks/RuleY.svelte.d.ts +2 -2
- package/dist/marks/Sphere.svelte +2 -2
- package/dist/marks/Spike.svelte +4 -3
- package/dist/marks/Spike.svelte.d.ts +3 -3
- package/dist/marks/Text.svelte +4 -4
- package/dist/marks/Text.svelte.d.ts +4 -4
- package/dist/marks/TickX.svelte +3 -3
- package/dist/marks/TickX.svelte.d.ts +2 -2
- package/dist/marks/TickY.svelte +4 -4
- package/dist/marks/TickY.svelte.d.ts +2 -2
- package/dist/marks/Vector.svelte +3 -3
- package/dist/marks/Vector.svelte.d.ts +2 -2
- package/dist/marks/helpers/CanvasLayer.svelte +1 -1
- package/dist/marks/helpers/Marker.svelte +2 -1
- package/dist/marks/helpers/MarkerPath.svelte +4 -4
- package/dist/marks/helpers/MarkerPath.svelte.d.ts +175 -2
- package/dist/marks/helpers/RectPath.svelte.d.ts +2 -2
- package/dist/transforms/bollinger.d.ts +2 -2
- package/dist/transforms/interval.d.ts +4 -4
- package/dist/transforms/select.d.ts +14 -14
- package/dist/transforms/sort.d.ts +4 -4
- package/dist/transforms/window.d.ts +4 -4
- package/dist/types/plot.d.ts +15 -8
- package/package.json +1 -1
- package/dist/marks/AreaY.svelte.d.ts +0 -99
|
@@ -1,4 +1,177 @@
|
|
|
1
|
+
import { type MarkerShape } from './Marker.svelte';
|
|
2
|
+
import type { ConstantAccessor, DataRecord, Mark, PlotScales } from '../../types/index.js';
|
|
3
|
+
declare class __sveltets_Render<Datum extends DataRecord> {
|
|
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
|
+
fill: import("../../types/index.js").ChannelAccessor<Datum>;
|
|
12
|
+
fillOpacity: ConstantAccessor<number, Datum>;
|
|
13
|
+
sort: ((a: import("../../types/index.js").RawValue, b: import("../../types/index.js").RawValue) => number) | {
|
|
14
|
+
channel: string;
|
|
15
|
+
order?: "ascending" | "descending";
|
|
16
|
+
} | ConstantAccessor<import("../../types/index.js").RawValue, Datum>;
|
|
17
|
+
stroke: import("../../types/index.js").ChannelAccessor<Datum>;
|
|
18
|
+
strokeWidth: ConstantAccessor<number, Datum>;
|
|
19
|
+
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
20
|
+
strokeLinejoin: ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
|
|
21
|
+
strokeLinecap: ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
|
|
22
|
+
strokeMiterlimit: ConstantAccessor<number, Datum>;
|
|
23
|
+
opacity: import("../../types/index.js").ChannelAccessor<Datum>;
|
|
24
|
+
strokeDasharray: ConstantAccessor<string, Datum>;
|
|
25
|
+
strokeDashoffset: ConstantAccessor<number, Datum>;
|
|
26
|
+
mixBlendMode: ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
|
|
27
|
+
clipPath: string;
|
|
28
|
+
imageFilter: ConstantAccessor<string, Datum>;
|
|
29
|
+
shapeRendering: ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
30
|
+
paintOrder: ConstantAccessor<string, Datum>;
|
|
31
|
+
onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
32
|
+
ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
33
|
+
onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
34
|
+
onmousedown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
35
|
+
onmouseenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
36
|
+
onmousemove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
37
|
+
onmouseleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
38
|
+
onmouseout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
39
|
+
onmouseover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
40
|
+
onpointercancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
41
|
+
onpointerdown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
42
|
+
onpointerup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
43
|
+
onpointerenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
44
|
+
onpointerleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
45
|
+
onpointermove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
46
|
+
onpointerover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
47
|
+
onpointerout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
48
|
+
ondrag?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
49
|
+
ondrop?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
50
|
+
ondragstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
51
|
+
ondragenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
52
|
+
ondragleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
53
|
+
ondragover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
54
|
+
ondragend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
55
|
+
ontouchstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
56
|
+
ontouchmove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
57
|
+
ontouchend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
58
|
+
ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
|
+
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
|
+
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
61
|
+
class?: string;
|
|
62
|
+
style?: string;
|
|
63
|
+
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
64
|
+
}> & {
|
|
65
|
+
/**
|
|
66
|
+
* the datum associated with this path, usually the first
|
|
67
|
+
* element of the data array group
|
|
68
|
+
*/
|
|
69
|
+
datum: Datum;
|
|
70
|
+
/**
|
|
71
|
+
* the marker shape to use at the start of the path, defaults to
|
|
72
|
+
* circle
|
|
73
|
+
*/
|
|
74
|
+
markerStart?: boolean | MarkerShape;
|
|
75
|
+
/**
|
|
76
|
+
* the marker shape to use at the middle of the path, defaults to circle
|
|
77
|
+
*/
|
|
78
|
+
markerMid?: boolean | MarkerShape;
|
|
79
|
+
/**
|
|
80
|
+
* the marker shape to use at the end of the path, defaults to circle
|
|
81
|
+
*/
|
|
82
|
+
markerEnd?: boolean | MarkerShape;
|
|
83
|
+
/**
|
|
84
|
+
* shorthand for setting all markers
|
|
85
|
+
*/
|
|
86
|
+
marker?: boolean | MarkerShape;
|
|
87
|
+
/**
|
|
88
|
+
* path string
|
|
89
|
+
*/
|
|
90
|
+
d: string;
|
|
91
|
+
style: string;
|
|
92
|
+
startOffset: string;
|
|
93
|
+
textStyle: string;
|
|
94
|
+
textStyleClass?: string | null;
|
|
95
|
+
text: string;
|
|
96
|
+
transform: string;
|
|
97
|
+
color: string;
|
|
98
|
+
strokeWidth: ConstantAccessor<number>;
|
|
99
|
+
mark: Mark<Partial<{
|
|
100
|
+
filter?: ConstantAccessor<boolean, Datum>;
|
|
101
|
+
facet?: "auto" | "include" | "exclude";
|
|
102
|
+
fx: import("../../types/index.js").ChannelAccessor<Datum>;
|
|
103
|
+
fy: import("../../types/index.js").ChannelAccessor<Datum>;
|
|
104
|
+
dx: ConstantAccessor<number, Datum>;
|
|
105
|
+
dy: ConstantAccessor<number, Datum>;
|
|
106
|
+
fill: import("../../types/index.js").ChannelAccessor<Datum>;
|
|
107
|
+
fillOpacity: ConstantAccessor<number, Datum>;
|
|
108
|
+
sort: ((a: import("../../types/index.js").RawValue, b: import("../../types/index.js").RawValue) => number) | {
|
|
109
|
+
channel: string;
|
|
110
|
+
order?: "ascending" | "descending";
|
|
111
|
+
} | ConstantAccessor<import("../../types/index.js").RawValue, Datum>;
|
|
112
|
+
stroke: import("../../types/index.js").ChannelAccessor<Datum>;
|
|
113
|
+
strokeWidth: ConstantAccessor<number, Datum>;
|
|
114
|
+
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
115
|
+
strokeLinejoin: ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
|
|
116
|
+
strokeLinecap: ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
|
|
117
|
+
strokeMiterlimit: ConstantAccessor<number, Datum>;
|
|
118
|
+
opacity: import("../../types/index.js").ChannelAccessor<Datum>;
|
|
119
|
+
strokeDasharray: ConstantAccessor<string, Datum>;
|
|
120
|
+
strokeDashoffset: ConstantAccessor<number, Datum>;
|
|
121
|
+
mixBlendMode: ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
|
|
122
|
+
clipPath: string;
|
|
123
|
+
imageFilter: ConstantAccessor<string, Datum>;
|
|
124
|
+
shapeRendering: ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
125
|
+
paintOrder: ConstantAccessor<string, Datum>;
|
|
126
|
+
onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
127
|
+
ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
128
|
+
onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
129
|
+
onmousedown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
130
|
+
onmouseenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
131
|
+
onmousemove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
132
|
+
onmouseleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
133
|
+
onmouseout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
134
|
+
onmouseover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
135
|
+
onpointercancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
136
|
+
onpointerdown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
137
|
+
onpointerup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
138
|
+
onpointerenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
139
|
+
onpointerleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
140
|
+
onpointermove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
141
|
+
onpointerover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
142
|
+
onpointerout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
143
|
+
ondrag?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
144
|
+
ondrop?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
145
|
+
ondragstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
146
|
+
ondragenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
147
|
+
ondragleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
148
|
+
ondragover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
149
|
+
ondragend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
150
|
+
ontouchstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
151
|
+
ontouchmove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
152
|
+
ontouchend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
153
|
+
ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
154
|
+
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
155
|
+
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
156
|
+
class?: string;
|
|
157
|
+
style?: string;
|
|
158
|
+
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
159
|
+
}>>;
|
|
160
|
+
scales: PlotScales;
|
|
161
|
+
};
|
|
162
|
+
events(): {};
|
|
163
|
+
slots(): {};
|
|
164
|
+
bindings(): "";
|
|
165
|
+
exports(): {};
|
|
166
|
+
}
|
|
167
|
+
interface $$IsomorphicComponent {
|
|
168
|
+
new <Datum extends DataRecord>(options: import('svelte').ComponentConstructorOptions<ReturnType<__sveltets_Render<Datum>['props']>>): import('svelte').SvelteComponent<ReturnType<__sveltets_Render<Datum>['props']>, ReturnType<__sveltets_Render<Datum>['events']>, ReturnType<__sveltets_Render<Datum>['slots']>> & {
|
|
169
|
+
$$bindings?: ReturnType<__sveltets_Render<Datum>['bindings']>;
|
|
170
|
+
} & ReturnType<__sveltets_Render<Datum>['exports']>;
|
|
171
|
+
<Datum extends DataRecord>(internal: unknown, props: ReturnType<__sveltets_Render<Datum>['props']> & {}): ReturnType<__sveltets_Render<Datum>['exports']>;
|
|
172
|
+
z_$$bindings?: ReturnType<__sveltets_Render<any>['bindings']>;
|
|
173
|
+
}
|
|
1
174
|
/** Helper component for paths with markers and optional text along the path. */
|
|
2
|
-
declare const MarkerPath:
|
|
3
|
-
type MarkerPath =
|
|
175
|
+
declare const MarkerPath: $$IsomorphicComponent;
|
|
176
|
+
type MarkerPath<Datum extends DataRecord> = InstanceType<typeof MarkerPath<Datum>>;
|
|
4
177
|
export default MarkerPath;
|
|
@@ -18,10 +18,10 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
18
18
|
dy: import("../../types/index.js").ConstantAccessor<number, Datum>;
|
|
19
19
|
fill: import("../../types/index.js").ChannelAccessor<Datum>;
|
|
20
20
|
fillOpacity: import("../../types/index.js").ConstantAccessor<number, Datum>;
|
|
21
|
-
sort: {
|
|
21
|
+
sort: ((a: import("../../types/data.js").RawValue, b: import("../../types/data.js").RawValue) => number) | {
|
|
22
22
|
channel: string;
|
|
23
23
|
order?: "ascending" | "descending";
|
|
24
|
-
} |
|
|
24
|
+
} | import("../../types/index.js").ConstantAccessor<import("../../types/data.js").RawValue, Datum>;
|
|
25
25
|
stroke: import("../../types/index.js").ChannelAccessor<Datum>;
|
|
26
26
|
strokeWidth: import("../../types/index.js").ConstantAccessor<number, Datum>;
|
|
27
27
|
strokeOpacity: import("../../types/index.js").ConstantAccessor<number, Datum>;
|
|
@@ -20,10 +20,10 @@ export declare function bollingerDim(dim: 'x' | 'y', { data, ...channels }: Tran
|
|
|
20
20
|
dy?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
21
21
|
fill?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
22
22
|
fillOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
23
|
-
sort?: {
|
|
23
|
+
sort?: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
24
24
|
channel: string;
|
|
25
25
|
order?: "ascending" | "descending";
|
|
26
|
-
} |
|
|
26
|
+
} | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
27
27
|
stroke?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
28
28
|
strokeWidth?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
29
29
|
strokeOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
@@ -10,10 +10,10 @@ export declare function intervalX<T>(args: TransformArg<T>, { plot }: {
|
|
|
10
10
|
dy?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
11
11
|
fill?: import("../types/index.js").ChannelAccessor<T>;
|
|
12
12
|
fillOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
13
|
-
sort?: {
|
|
13
|
+
sort?: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
14
14
|
channel: string;
|
|
15
15
|
order?: "ascending" | "descending";
|
|
16
|
-
} |
|
|
16
|
+
} | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, T>;
|
|
17
17
|
stroke?: import("../types/index.js").ChannelAccessor<T>;
|
|
18
18
|
strokeWidth?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
19
19
|
strokeOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
@@ -74,10 +74,10 @@ export declare function intervalY<T>(args: TransformArg<T>, { plot }: {
|
|
|
74
74
|
dy?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
75
75
|
fill?: import("../types/index.js").ChannelAccessor<T>;
|
|
76
76
|
fillOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
77
|
-
sort?: {
|
|
77
|
+
sort?: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
78
78
|
channel: string;
|
|
79
79
|
order?: "ascending" | "descending";
|
|
80
|
-
} |
|
|
80
|
+
} | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, T>;
|
|
81
81
|
stroke?: import("../types/index.js").ChannelAccessor<T>;
|
|
82
82
|
strokeWidth?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
83
83
|
strokeOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
@@ -14,10 +14,10 @@ export declare function select({ data, ...channels }: TransformArg<DataRecord>,
|
|
|
14
14
|
dy?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
15
15
|
fill?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
16
16
|
fillOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
17
|
-
sort?: {
|
|
17
|
+
sort?: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
18
18
|
channel: string;
|
|
19
19
|
order?: "ascending" | "descending";
|
|
20
|
-
} |
|
|
20
|
+
} | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
21
21
|
stroke?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
22
22
|
strokeWidth?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
23
23
|
strokeOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
@@ -79,10 +79,10 @@ export declare function selectFirst(args: TransformArg<DataRecord>): {
|
|
|
79
79
|
dy?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
80
80
|
fill?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
81
81
|
fillOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
82
|
-
sort?: {
|
|
82
|
+
sort?: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
83
83
|
channel: string;
|
|
84
84
|
order?: "ascending" | "descending";
|
|
85
|
-
} |
|
|
85
|
+
} | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
86
86
|
stroke?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
87
87
|
strokeWidth?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
88
88
|
strokeOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
@@ -144,10 +144,10 @@ export declare function selectLast(args: TransformArg<DataRecord>): {
|
|
|
144
144
|
dy?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
145
145
|
fill?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
146
146
|
fillOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
147
|
-
sort?: {
|
|
147
|
+
sort?: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
148
148
|
channel: string;
|
|
149
149
|
order?: "ascending" | "descending";
|
|
150
|
-
} |
|
|
150
|
+
} | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
151
151
|
stroke?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
152
152
|
strokeWidth?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
153
153
|
strokeOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
@@ -206,10 +206,10 @@ export declare function selectMinX(args: TransformArg<DataRecord>): {
|
|
|
206
206
|
dy?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
207
207
|
fill?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
208
208
|
fillOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
209
|
-
sort?: {
|
|
209
|
+
sort?: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
210
210
|
channel: string;
|
|
211
211
|
order?: "ascending" | "descending";
|
|
212
|
-
} |
|
|
212
|
+
} | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
213
213
|
stroke?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
214
214
|
strokeWidth?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
215
215
|
strokeOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
@@ -268,10 +268,10 @@ export declare function selectMaxX(args: TransformArg<DataRecord>): {
|
|
|
268
268
|
dy?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
269
269
|
fill?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
270
270
|
fillOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
271
|
-
sort?: {
|
|
271
|
+
sort?: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
272
272
|
channel: string;
|
|
273
273
|
order?: "ascending" | "descending";
|
|
274
|
-
} |
|
|
274
|
+
} | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
275
275
|
stroke?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
276
276
|
strokeWidth?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
277
277
|
strokeOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
@@ -330,10 +330,10 @@ export declare function selectMinY(args: TransformArg<DataRecord>): {
|
|
|
330
330
|
dy?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
331
331
|
fill?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
332
332
|
fillOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
333
|
-
sort?: {
|
|
333
|
+
sort?: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
334
334
|
channel: string;
|
|
335
335
|
order?: "ascending" | "descending";
|
|
336
|
-
} |
|
|
336
|
+
} | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
337
337
|
stroke?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
338
338
|
strokeWidth?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
339
339
|
strokeOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
@@ -392,10 +392,10 @@ export declare function selectMaxY(args: TransformArg<DataRecord>): {
|
|
|
392
392
|
dy?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
393
393
|
fill?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
394
394
|
fillOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
395
|
-
sort?: {
|
|
395
|
+
sort?: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
396
396
|
channel: string;
|
|
397
397
|
order?: "ascending" | "descending";
|
|
398
|
-
} |
|
|
398
|
+
} | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
399
399
|
stroke?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
400
400
|
strokeWidth?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
401
401
|
strokeOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
@@ -4,10 +4,10 @@ export declare const IS_SORTED: unique symbol;
|
|
|
4
4
|
export declare function sort<T>({ data, ...channels }: TransformArg<T>, options?: {
|
|
5
5
|
reverse?: boolean;
|
|
6
6
|
}): {
|
|
7
|
-
[IS_SORTED]: string | number | true | symbol | Date | {
|
|
7
|
+
[IS_SORTED]: string | number | true | symbol | Date | ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
8
8
|
channel: string;
|
|
9
9
|
order?: "ascending" | "descending";
|
|
10
|
-
} | ((
|
|
10
|
+
} | ((d: T, index: number) => import("../types/index.js").RawValue);
|
|
11
11
|
sort: null;
|
|
12
12
|
filter?: import("../types/index.js").ConstantAccessor<boolean, T>;
|
|
13
13
|
facet?: "auto" | "include" | "exclude" | undefined;
|
|
@@ -76,10 +76,10 @@ export declare function sort<T>({ data, ...channels }: TransformArg<T>, options?
|
|
|
76
76
|
dy?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
77
77
|
fill?: import("../types/index.js").ChannelAccessor<T>;
|
|
78
78
|
fillOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
79
|
-
sort?: {
|
|
79
|
+
sort?: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
80
80
|
channel: string;
|
|
81
81
|
order?: "ascending" | "descending";
|
|
82
|
-
} |
|
|
82
|
+
} | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, T>;
|
|
83
83
|
stroke?: import("../types/index.js").ChannelAccessor<T>;
|
|
84
84
|
strokeWidth?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
85
85
|
strokeOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
@@ -16,10 +16,10 @@ export declare function windowX(args: TransformArg<DataRecord>, options: WindowO
|
|
|
16
16
|
dy?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
17
17
|
fill?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
18
18
|
fillOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
19
|
-
sort?: {
|
|
19
|
+
sort?: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
20
20
|
channel: string;
|
|
21
21
|
order?: "ascending" | "descending";
|
|
22
|
-
} |
|
|
22
|
+
} | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
23
23
|
stroke?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
24
24
|
strokeWidth?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
25
25
|
strokeOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
@@ -81,10 +81,10 @@ export declare function windowY(args: TransformArg<DataRecord>, options: WindowO
|
|
|
81
81
|
dy?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
82
82
|
fill?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
83
83
|
fillOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
84
|
-
sort?: {
|
|
84
|
+
sort?: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
85
85
|
channel: string;
|
|
86
86
|
order?: "ascending" | "descending";
|
|
87
|
-
} |
|
|
87
|
+
} | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
88
88
|
stroke?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
89
89
|
strokeWidth?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
90
90
|
strokeOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
package/dist/types/plot.d.ts
CHANGED
|
@@ -50,9 +50,15 @@ export type PlotContext = {
|
|
|
50
50
|
updateDimensions: (width: number, height: number) => void;
|
|
51
51
|
};
|
|
52
52
|
type IgnoreDefaults = 'data' | 'facet' | ChannelName | 'title' | 'automatic' | 'children';
|
|
53
|
+
export type PlotMargin = {
|
|
54
|
+
top?: number | 'auto';
|
|
55
|
+
right?: number | 'auto';
|
|
56
|
+
bottom?: number | 'auto';
|
|
57
|
+
left?: number | 'auto';
|
|
58
|
+
};
|
|
53
59
|
/**
|
|
54
60
|
* these are the default options for the plot marks that can be set using
|
|
55
|
-
* the
|
|
61
|
+
* the setPlotDefaults hook
|
|
56
62
|
*/
|
|
57
63
|
export type PlotDefaults = {
|
|
58
64
|
/**
|
|
@@ -63,6 +69,10 @@ export type PlotDefaults = {
|
|
|
63
69
|
* default plot inset
|
|
64
70
|
*/
|
|
65
71
|
inset: number;
|
|
72
|
+
/**
|
|
73
|
+
* default plot margin
|
|
74
|
+
*/
|
|
75
|
+
margin: 'auto' | number | PlotMargin;
|
|
66
76
|
/**
|
|
67
77
|
* default color scheme
|
|
68
78
|
*/
|
|
@@ -314,14 +324,11 @@ export type PlotOptions = {
|
|
|
314
324
|
*/
|
|
315
325
|
height: 'auto' | number | ((d: number) => number);
|
|
316
326
|
/**
|
|
317
|
-
*
|
|
327
|
+
* If margin is set to "auto" (the default), the plot will automatically
|
|
328
|
+
* compute appropriate margins based on the presence of axes, labels, and
|
|
329
|
+
* the overall plot size. You can also set a fixed margin value in px.
|
|
318
330
|
*/
|
|
319
|
-
margin: number |
|
|
320
|
-
top?: number;
|
|
321
|
-
right?: number;
|
|
322
|
-
bottom?: number;
|
|
323
|
-
left?: number;
|
|
324
|
-
};
|
|
331
|
+
margin: PlotMargin | number | 'auto';
|
|
325
332
|
/**
|
|
326
333
|
* Left margin of the plot, in px.
|
|
327
334
|
*/
|
package/package.json
CHANGED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import type { ChannelAccessor, DataRow } from '../types/index.js';
|
|
2
|
-
declare class __sveltets_Render<Datum extends DataRow> {
|
|
3
|
-
props(): Omit<Partial<{
|
|
4
|
-
filter?: import("../types/index.js").ConstantAccessor<boolean, Record<string | symbol, import("../types/data").RawValue>>;
|
|
5
|
-
facet?: "auto" | "include" | "exclude";
|
|
6
|
-
fx: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
7
|
-
fy: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
8
|
-
dx: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
9
|
-
dy: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
10
|
-
fill: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
11
|
-
fillOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
12
|
-
sort: {
|
|
13
|
-
channel: string;
|
|
14
|
-
order?: "ascending" | "descending";
|
|
15
|
-
} | ((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>>;
|
|
16
|
-
stroke: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
17
|
-
strokeWidth: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
18
|
-
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
19
|
-
strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Record<string | symbol, import("../types/data").RawValue>>;
|
|
20
|
-
strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Record<string | symbol, import("../types/data").RawValue>>;
|
|
21
|
-
strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
22
|
-
opacity: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
23
|
-
strokeDasharray: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
24
|
-
strokeDashoffset: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
25
|
-
mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Record<string | symbol, import("../types/data").RawValue>>;
|
|
26
|
-
clipPath: string;
|
|
27
|
-
imageFilter: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
28
|
-
shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Record<string | symbol, import("../types/data").RawValue>>;
|
|
29
|
-
paintOrder: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
30
|
-
onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
31
|
-
ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
32
|
-
onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
33
|
-
onmousedown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
34
|
-
onmouseenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
35
|
-
onmousemove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
36
|
-
onmouseleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
37
|
-
onmouseout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
38
|
-
onmouseover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
39
|
-
onpointercancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
40
|
-
onpointerdown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
41
|
-
onpointerup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
42
|
-
onpointerenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
43
|
-
onpointerleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
44
|
-
onpointermove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
45
|
-
onpointerover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
46
|
-
onpointerout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
47
|
-
ondrag?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
48
|
-
ondrop?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
49
|
-
ondragstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
50
|
-
ondragenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
51
|
-
ondragleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
52
|
-
ondragover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
53
|
-
ondragend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
54
|
-
ontouchstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
55
|
-
ontouchmove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
56
|
-
ontouchend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
57
|
-
ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
58
|
-
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
|
-
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
|
-
class?: string;
|
|
61
|
-
style?: string;
|
|
62
|
-
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types/data").RawValue>>;
|
|
63
|
-
}> & import("../types/mark").LinkableMarkProps<Record<string | symbol, import("../types/data").RawValue>> & {
|
|
64
|
-
data: Record<string | symbol, import("../types/data").RawValue>[];
|
|
65
|
-
x1?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
66
|
-
x2?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
67
|
-
y1?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
68
|
-
y2?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
69
|
-
z?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
70
|
-
curve?: import("../types/index.js").CurveName | import("d3-shape").CurveFactory;
|
|
71
|
-
tension?: number;
|
|
72
|
-
sort?: import("../types/index.js").ConstantAccessor<import("../types/data").RawValue> | {
|
|
73
|
-
channel: "stroke" | "fill";
|
|
74
|
-
};
|
|
75
|
-
stack?: Partial<import("../transforms/stack.js").StackOptions>;
|
|
76
|
-
canvas?: boolean;
|
|
77
|
-
}, "x1" | "x2"> & {
|
|
78
|
-
x?: ChannelAccessor<Datum>;
|
|
79
|
-
y?: ChannelAccessor<Datum>;
|
|
80
|
-
};
|
|
81
|
-
events(): {};
|
|
82
|
-
slots(): {};
|
|
83
|
-
bindings(): "";
|
|
84
|
-
exports(): {};
|
|
85
|
-
}
|
|
86
|
-
interface $$IsomorphicComponent {
|
|
87
|
-
new <Datum extends DataRow>(options: import('svelte').ComponentConstructorOptions<ReturnType<__sveltets_Render<Datum>['props']>>): import('svelte').SvelteComponent<ReturnType<__sveltets_Render<Datum>['props']>, ReturnType<__sveltets_Render<Datum>['events']>, ReturnType<__sveltets_Render<Datum>['slots']>> & {
|
|
88
|
-
$$bindings?: ReturnType<__sveltets_Render<Datum>['bindings']>;
|
|
89
|
-
} & ReturnType<__sveltets_Render<Datum>['exports']>;
|
|
90
|
-
<Datum extends DataRow>(internal: unknown, props: ReturnType<__sveltets_Render<Datum>['props']> & {}): ReturnType<__sveltets_Render<Datum>['exports']>;
|
|
91
|
-
z_$$bindings?: ReturnType<__sveltets_Render<any>['bindings']>;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Creates a vertical area chart with y value and baseline. Areas are implicitly
|
|
95
|
-
* stacked vertically if just the y channel is defined.
|
|
96
|
-
*/
|
|
97
|
-
declare const AreaY: $$IsomorphicComponent;
|
|
98
|
-
type AreaY<Datum extends DataRow> = InstanceType<typeof AreaY<Datum>>;
|
|
99
|
-
export default AreaY;
|