svelteplot 0.3.5-pr-121.8 → 0.3.5
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 +23 -23
- package/dist/Plot.svelte +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/core/FacetAxes.svelte +0 -2
- package/dist/helpers/autoScales.d.ts +1 -1
- package/dist/helpers/autoTicks.d.ts +1 -1
- package/dist/helpers/autoTimeFormat.d.ts +2 -2
- package/dist/helpers/autoTimeFormat.js +1 -1
- package/dist/helpers/callWithProps.d.ts +1 -1
- package/dist/helpers/colors.d.ts +2 -2
- package/dist/helpers/curves.d.ts +1 -1
- package/dist/helpers/facets.d.ts +1 -1
- package/dist/helpers/getBaseStyles.d.ts +2 -2
- package/dist/helpers/group.d.ts +1 -1
- package/dist/helpers/index.d.ts +6 -3
- package/dist/helpers/isDataRecord.d.ts +1 -1
- package/dist/helpers/isRawValue.d.ts +1 -1
- package/dist/helpers/reduce.d.ts +1 -1
- package/dist/helpers/regressionLoess.d.ts +1 -1
- package/dist/helpers/resolve.d.ts +2 -2
- package/dist/helpers/scales.d.ts +2 -2
- package/dist/helpers/typeChecks.d.ts +5 -5
- package/dist/marks/Area.svelte +2 -2
- package/dist/marks/Area.svelte.d.ts +24 -23
- package/dist/marks/AreaX.svelte.d.ts +23 -24
- package/dist/marks/AreaY.svelte.d.ts +23 -24
- package/dist/marks/Arrow.svelte.d.ts +22 -22
- package/dist/marks/AxisX.svelte +16 -20
- package/dist/marks/AxisX.svelte.d.ts +24 -25
- package/dist/marks/AxisY.svelte +14 -33
- package/dist/marks/AxisY.svelte.d.ts +24 -26
- package/dist/marks/BarX.svelte.d.ts +22 -22
- package/dist/marks/BarY.svelte.d.ts +22 -22
- package/dist/marks/BollingerX.svelte.d.ts +73 -2
- package/dist/marks/BollingerY.svelte.d.ts +73 -2
- package/dist/marks/BoxY.svelte.d.ts +65 -6
- package/dist/marks/Cell.svelte.d.ts +22 -22
- package/dist/marks/ColorLegend.svelte +2 -4
- package/dist/marks/CustomMark.svelte.d.ts +71 -2
- package/dist/marks/DifferenceY.svelte +1 -1
- package/dist/marks/DifferenceY.svelte.d.ts +66 -7
- package/dist/marks/Dot.svelte.d.ts +22 -22
- package/dist/marks/DotX.svelte.d.ts +23 -23
- package/dist/marks/DotY.svelte.d.ts +23 -23
- package/dist/marks/Geo.svelte +1 -1
- package/dist/marks/Geo.svelte.d.ts +22 -22
- package/dist/marks/GridX.svelte.d.ts +22 -22
- package/dist/marks/GridY.svelte.d.ts +22 -22
- package/dist/marks/Line.svelte.d.ts +23 -23
- package/dist/marks/LineX.svelte.d.ts +2 -3
- package/dist/marks/LineY.svelte.d.ts +2 -3
- package/dist/marks/Link.svelte.d.ts +22 -22
- package/dist/marks/Rect.svelte.d.ts +22 -22
- package/dist/marks/RectX.svelte +1 -1
- package/dist/marks/RectX.svelte.d.ts +1 -1
- package/dist/marks/RectY.svelte +1 -1
- package/dist/marks/RectY.svelte.d.ts +1 -1
- package/dist/marks/RuleX.svelte.d.ts +22 -22
- package/dist/marks/RuleY.svelte.d.ts +22 -22
- package/dist/marks/Spike.svelte.d.ts +23 -23
- package/dist/marks/Text.svelte.d.ts +23 -23
- package/dist/marks/TickX.svelte.d.ts +22 -22
- package/dist/marks/TickY.svelte.d.ts +22 -22
- package/dist/marks/Vector.svelte.d.ts +22 -22
- package/dist/marks/helpers/Anchor.svelte +1 -1
- package/dist/marks/helpers/AreaCanvas.svelte +1 -1
- package/dist/marks/helpers/BaseAxisX.svelte +2 -4
- package/dist/marks/helpers/BaseAxisY.svelte +6 -8
- package/dist/marks/helpers/BaseAxisY.svelte.d.ts +0 -2
- package/dist/marks/helpers/DotCanvas.svelte +1 -1
- package/dist/marks/helpers/LineCanvas.svelte +1 -1
- package/dist/marks/helpers/RectPath.svelte +1 -1
- package/dist/marks/helpers/Regression.svelte +1 -1
- package/dist/marks/helpers/events.d.ts +1 -1
- package/dist/transforms/bin.d.ts +2 -2
- package/dist/transforms/bollinger.d.ts +67 -2
- package/dist/transforms/centroid.d.ts +1 -1
- package/dist/transforms/filter.d.ts +1 -1
- package/dist/transforms/group.d.ts +13 -5
- package/dist/transforms/interval.d.ts +123 -3
- package/dist/transforms/jitter.d.ts +1 -1
- package/dist/transforms/map.d.ts +1 -1
- package/dist/transforms/normalize.d.ts +1 -1
- package/dist/transforms/recordize.d.ts +1 -1
- package/dist/transforms/rename.d.ts +2 -2
- package/dist/transforms/select.d.ts +428 -8
- package/dist/transforms/shift.d.ts +1 -1
- package/dist/transforms/sort.d.ts +243 -4
- package/dist/transforms/stack.d.ts +1 -1
- package/dist/transforms/window.d.ts +131 -3
- package/dist/types/channel.d.ts +1 -1
- package/dist/types/data.d.ts +1 -1
- package/dist/types/facet.d.ts +1 -1
- package/dist/types/index.d.ts +4 -4
- package/dist/types/mark.d.ts +2 -2
- package/dist/types/plot.d.ts +3 -3
- package/dist/types/scale.d.ts +1 -1
- package/dist/types.d.ts +834 -0
- package/dist/types.js +1 -0
- package/package.json +124 -126
package/dist/marks/AxisX.svelte
CHANGED
|
@@ -26,14 +26,13 @@
|
|
|
26
26
|
> {
|
|
27
27
|
data?: Datum[];
|
|
28
28
|
automatic?: boolean;
|
|
29
|
-
title?: string
|
|
29
|
+
title?: string;
|
|
30
30
|
anchor?: 'top' | 'bottom';
|
|
31
31
|
interval?: string | number;
|
|
32
32
|
facetAnchor?: 'auto' | 'top-empty' | 'bottom-empty' | 'top' | 'bottom';
|
|
33
33
|
labelAnchor?: 'auto' | 'left' | 'center' | 'right';
|
|
34
34
|
tickSize?: number;
|
|
35
35
|
tickFontSize?: ConstantAccessor<number, Datum>;
|
|
36
|
-
titleFontSize?: number;
|
|
37
36
|
tickPadding?: number;
|
|
38
37
|
tickFormat?:
|
|
39
38
|
| 'auto'
|
|
@@ -44,7 +43,7 @@
|
|
|
44
43
|
/** ticks is a shorthand for defining data, tickCount or interval */
|
|
45
44
|
ticks?: number | string | Datum[];
|
|
46
45
|
/** set to false or null to disable tick labels */
|
|
47
|
-
text
|
|
46
|
+
text: boolean | null;
|
|
48
47
|
/** approximate number of ticks to be generated */
|
|
49
48
|
tickCount?: number;
|
|
50
49
|
/** approximate number of pixels between generated ticks */
|
|
@@ -57,8 +56,6 @@
|
|
|
57
56
|
tickSize: 6,
|
|
58
57
|
tickPadding: 3,
|
|
59
58
|
tickFontSize: 11,
|
|
60
|
-
titleFontSize: 11,
|
|
61
|
-
opacity: 0.8,
|
|
62
59
|
anchor: 'bottom',
|
|
63
60
|
...getContext<PlotDefaults>('svelteplot/_defaults').axis,
|
|
64
61
|
...getContext<PlotDefaults>('svelteplot/_defaults').axisX
|
|
@@ -143,19 +140,18 @@
|
|
|
143
140
|
const isQuantitative = $derived(scaleType !== 'point' && scaleType !== 'band');
|
|
144
141
|
|
|
145
142
|
const useTitle = $derived(
|
|
146
|
-
title
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
: ''
|
|
143
|
+
title ||
|
|
144
|
+
(optionsLabel === null
|
|
145
|
+
? null
|
|
146
|
+
: optionsLabel !== undefined
|
|
147
|
+
? optionsLabel
|
|
148
|
+
: plot.scales.x.autoTitle
|
|
149
|
+
? isQuantitative
|
|
150
|
+
? plot.options.x?.reverse
|
|
151
|
+
? `← ${plot.scales.x.autoTitle}${plot.options.x.percent ? ' (%)' : ''}`
|
|
152
|
+
: `${plot.scales.x.autoTitle}${plot.options.x.percent ? ' (%)' : ''} →`
|
|
153
|
+
: plot.scales.x.autoTitle
|
|
154
|
+
: '')
|
|
159
155
|
);
|
|
160
156
|
|
|
161
157
|
const useLabelAnchor = $derived(labelAnchor || plot.options?.x?.labelAnchor || 'auto');
|
|
@@ -192,10 +188,8 @@
|
|
|
192
188
|
style={resolveScaledStyles(
|
|
193
189
|
null,
|
|
194
190
|
{
|
|
195
|
-
opacity: 0.8,
|
|
196
191
|
...options,
|
|
197
192
|
stroke: null,
|
|
198
|
-
fontSize: options.titleFontSize || 11,
|
|
199
193
|
textAnchor:
|
|
200
194
|
titleAlign === 'right'
|
|
201
195
|
? 'end'
|
|
@@ -237,6 +231,8 @@
|
|
|
237
231
|
|
|
238
232
|
<style>
|
|
239
233
|
text {
|
|
234
|
+
font-size: 11px;
|
|
235
|
+
opacity: 0.8;
|
|
240
236
|
fill: currentColor;
|
|
241
237
|
}
|
|
242
238
|
</style>
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import type { RawValue, ConstantAccessor } from '../types/index.js';
|
|
2
2
|
declare class __sveltets_Render<Datum extends RawValue> {
|
|
3
3
|
props(): Omit<Partial<{
|
|
4
|
-
filter?: ConstantAccessor<boolean, Datum>;
|
|
4
|
+
filter?: import("../types").ConstantAccessor<boolean, Datum>;
|
|
5
5
|
facet?: "auto" | "include" | "exclude";
|
|
6
|
-
fx: import("../types
|
|
7
|
-
fy: import("../types
|
|
8
|
-
dx: ConstantAccessor<number, Datum>;
|
|
9
|
-
dy: ConstantAccessor<number, Datum>;
|
|
10
|
-
fill: import("../types
|
|
11
|
-
fillOpacity: ConstantAccessor<number, Datum>;
|
|
6
|
+
fx: import("../types").ChannelAccessor<Datum>;
|
|
7
|
+
fy: import("../types").ChannelAccessor<Datum>;
|
|
8
|
+
dx: import("../types").ConstantAccessor<number, Datum>;
|
|
9
|
+
dy: import("../types").ConstantAccessor<number, Datum>;
|
|
10
|
+
fill: import("../types").ChannelAccessor<Datum>;
|
|
11
|
+
fillOpacity: import("../types").ConstantAccessor<number, Datum>;
|
|
12
12
|
sort: {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} | ((a: RawValue, b: RawValue) => number) | ConstantAccessor<RawValue, Datum>;
|
|
16
|
-
stroke: import("../types
|
|
17
|
-
strokeWidth: ConstantAccessor<number, Datum>;
|
|
18
|
-
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
19
|
-
strokeLinejoin: ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
|
|
20
|
-
strokeLinecap: ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
|
|
21
|
-
strokeMiterlimit: ConstantAccessor<number, Datum>;
|
|
22
|
-
opacity: import("../types
|
|
23
|
-
strokeDasharray: ConstantAccessor<string, Datum>;
|
|
24
|
-
strokeDashoffset: ConstantAccessor<number, Datum>;
|
|
25
|
-
mixBlendMode: ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
|
|
15
|
+
} | ((a: import("../types").RawValue, b: import("../types").RawValue) => number) | import("../types").ConstantAccessor<import("../types").RawValue, Datum>;
|
|
16
|
+
stroke: import("../types").ChannelAccessor<Datum>;
|
|
17
|
+
strokeWidth: import("../types").ConstantAccessor<number, Datum>;
|
|
18
|
+
strokeOpacity: import("../types").ConstantAccessor<number, Datum>;
|
|
19
|
+
strokeLinejoin: import("../types").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
|
|
20
|
+
strokeLinecap: import("../types").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
|
|
21
|
+
strokeMiterlimit: import("../types").ConstantAccessor<number, Datum>;
|
|
22
|
+
opacity: import("../types").ChannelAccessor<Datum>;
|
|
23
|
+
strokeDasharray: import("../types").ConstantAccessor<string, Datum>;
|
|
24
|
+
strokeDashoffset: import("../types").ConstantAccessor<number, Datum>;
|
|
25
|
+
mixBlendMode: import("../types").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
|
|
26
26
|
clipPath: string;
|
|
27
|
-
imageFilter: ConstantAccessor<string, Datum>;
|
|
28
|
-
shapeRendering: ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
29
|
-
paintOrder: ConstantAccessor<string, Datum>;
|
|
27
|
+
imageFilter: import("../types").ConstantAccessor<string, Datum>;
|
|
28
|
+
shapeRendering: import("../types").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
29
|
+
paintOrder: import("../types").ConstantAccessor<string, Datum>;
|
|
30
30
|
onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
31
31
|
ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
32
32
|
onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
@@ -58,25 +58,24 @@ declare class __sveltets_Render<Datum extends RawValue> {
|
|
|
58
58
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
59
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
60
|
class: string | null;
|
|
61
|
-
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
61
|
+
cursor: import("../types").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
62
62
|
}>, "fill" | "fillOpacity" | "href" | "target" | "title" | "paintOrder"> & {
|
|
63
63
|
data?: Datum[] | undefined;
|
|
64
64
|
automatic?: boolean;
|
|
65
|
-
title?: string
|
|
65
|
+
title?: string;
|
|
66
66
|
anchor?: "top" | "bottom";
|
|
67
67
|
interval?: string | number;
|
|
68
68
|
facetAnchor?: "auto" | "top-empty" | "bottom-empty" | "top" | "bottom";
|
|
69
69
|
labelAnchor?: "auto" | "left" | "center" | "right";
|
|
70
70
|
tickSize?: number;
|
|
71
71
|
tickFontSize?: ConstantAccessor<number, Datum>;
|
|
72
|
-
titleFontSize?: number;
|
|
73
72
|
tickPadding?: number;
|
|
74
73
|
tickFormat?: "auto" | Intl.NumberFormatOptions | Intl.DateTimeFormatOptions | ((d: RawValue) => string) | undefined;
|
|
75
74
|
tickClass?: ConstantAccessor<string, Datum>;
|
|
76
75
|
/** ticks is a shorthand for defining data, tickCount or interval */
|
|
77
76
|
ticks?: string | number | Datum[] | undefined;
|
|
78
77
|
/** set to false or null to disable tick labels */
|
|
79
|
-
text
|
|
78
|
+
text: boolean | null;
|
|
80
79
|
/** approximate number of ticks to be generated */
|
|
81
80
|
tickCount?: number;
|
|
82
81
|
/** approximate number of pixels between generated ticks */
|
package/dist/marks/AxisY.svelte
CHANGED
|
@@ -25,16 +25,14 @@
|
|
|
25
25
|
> {
|
|
26
26
|
data?: Datum[];
|
|
27
27
|
automatic?: boolean;
|
|
28
|
-
title?: string
|
|
28
|
+
title?: string;
|
|
29
29
|
anchor?: 'left' | 'right';
|
|
30
30
|
facetAnchor?: 'auto' | 'left' | 'right' | 'left-empty' | 'right-empty';
|
|
31
31
|
lineAnchor?: 'top' | 'center' | 'bottom';
|
|
32
32
|
interval?: string | number;
|
|
33
33
|
labelAnchor?: 'auto' | 'left' | 'center' | 'right';
|
|
34
|
-
textAnchor?: 'auto' | 'start' | 'middle' | 'end';
|
|
35
34
|
tickSize?: number;
|
|
36
35
|
tickFontSize?: ConstantAccessor<number, Datum>;
|
|
37
|
-
titleFontSize?: number;
|
|
38
36
|
tickPadding?: number;
|
|
39
37
|
tickFormat?:
|
|
40
38
|
| 'auto'
|
|
@@ -45,7 +43,7 @@
|
|
|
45
43
|
/** ticks is a shorthand for defining data, tickCount or interval */
|
|
46
44
|
ticks?: number | string | Datum[];
|
|
47
45
|
/** set to false or null to disable tick labels */
|
|
48
|
-
text
|
|
46
|
+
text: boolean | null;
|
|
49
47
|
/** approximate number of ticks to be generated */
|
|
50
48
|
tickCount?: number;
|
|
51
49
|
/** approximate number of pixels between generated ticks */
|
|
@@ -58,9 +56,7 @@
|
|
|
58
56
|
tickSize: 6,
|
|
59
57
|
tickPadding: 3,
|
|
60
58
|
tickFontSize: 11,
|
|
61
|
-
opacity: 0.8,
|
|
62
59
|
anchor: 'left',
|
|
63
|
-
textAnchor: 'auto',
|
|
64
60
|
...getContext<PlotDefaults>('svelteplot/_defaults').axis,
|
|
65
61
|
...getContext<PlotDefaults>('svelteplot/_defaults').axisY
|
|
66
62
|
};
|
|
@@ -75,7 +71,6 @@
|
|
|
75
71
|
facetAnchor = 'auto',
|
|
76
72
|
interval = typeof magicTicks === 'string' ? magicTicks : undefined,
|
|
77
73
|
lineAnchor = 'center',
|
|
78
|
-
textAnchor,
|
|
79
74
|
tickSize,
|
|
80
75
|
tickFontSize,
|
|
81
76
|
tickPadding,
|
|
@@ -143,15 +138,14 @@
|
|
|
143
138
|
const optionsLabel = $derived(plot.options.y.label);
|
|
144
139
|
|
|
145
140
|
const useTitle = $derived(
|
|
146
|
-
title
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
: ''
|
|
141
|
+
title ||
|
|
142
|
+
(optionsLabel === null
|
|
143
|
+
? null
|
|
144
|
+
: optionsLabel !== undefined
|
|
145
|
+
? optionsLabel
|
|
146
|
+
: plot.scales.y.autoTitle
|
|
147
|
+
? `↑ ${plot.scales.y.autoTitle}${plot.options.y.percent ? ' (%)' : ''}`
|
|
148
|
+
: '')
|
|
155
149
|
);
|
|
156
150
|
|
|
157
151
|
const { getFacetState } = getContext<FacetContext>('svelteplot/facet');
|
|
@@ -182,14 +176,7 @@
|
|
|
182
176
|
<text
|
|
183
177
|
style={resolveScaledStyles(
|
|
184
178
|
null,
|
|
185
|
-
{
|
|
186
|
-
opacity: 0.8,
|
|
187
|
-
...options,
|
|
188
|
-
fontSize: options.titleFontSize ?? 11,
|
|
189
|
-
fill: 'currentColor',
|
|
190
|
-
stroke: null,
|
|
191
|
-
textAnchor: anchor === 'left' ? 'start' : 'end'
|
|
192
|
-
},
|
|
179
|
+
{ ...options, stroke: null, textAnchor: anchor === 'left' ? 'start' : 'end' },
|
|
193
180
|
{},
|
|
194
181
|
plot,
|
|
195
182
|
'fill'
|
|
@@ -204,15 +191,7 @@
|
|
|
204
191
|
{anchor}
|
|
205
192
|
{className}
|
|
206
193
|
{lineAnchor}
|
|
207
|
-
options
|
|
208
|
-
...options,
|
|
209
|
-
textAnchor:
|
|
210
|
-
textAnchor == null || textAnchor === 'auto'
|
|
211
|
-
? anchor === 'left'
|
|
212
|
-
? 'end'
|
|
213
|
-
: 'start'
|
|
214
|
-
: textAnchor
|
|
215
|
-
}}
|
|
194
|
+
{options}
|
|
216
195
|
{plot}
|
|
217
196
|
{text}
|
|
218
197
|
{tickClass}
|
|
@@ -231,6 +210,8 @@
|
|
|
231
210
|
|
|
232
211
|
<style>
|
|
233
212
|
text {
|
|
213
|
+
font-size: 11px;
|
|
214
|
+
opacity: 0.8;
|
|
234
215
|
fill: currentColor;
|
|
235
216
|
}
|
|
236
217
|
</style>
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import type { RawValue, ConstantAccessor } from '../types/index.js';
|
|
2
2
|
declare class __sveltets_Render<Datum extends RawValue> {
|
|
3
3
|
props(): Omit<Partial<{
|
|
4
|
-
filter?: ConstantAccessor<boolean, Datum>;
|
|
4
|
+
filter?: import("../types").ConstantAccessor<boolean, Datum>;
|
|
5
5
|
facet?: "auto" | "include" | "exclude";
|
|
6
|
-
fx: import("../types
|
|
7
|
-
fy: import("../types
|
|
8
|
-
dx: ConstantAccessor<number, Datum>;
|
|
9
|
-
dy: ConstantAccessor<number, Datum>;
|
|
10
|
-
fill: import("../types
|
|
11
|
-
fillOpacity: ConstantAccessor<number, Datum>;
|
|
6
|
+
fx: import("../types").ChannelAccessor<Datum>;
|
|
7
|
+
fy: import("../types").ChannelAccessor<Datum>;
|
|
8
|
+
dx: import("../types").ConstantAccessor<number, Datum>;
|
|
9
|
+
dy: import("../types").ConstantAccessor<number, Datum>;
|
|
10
|
+
fill: import("../types").ChannelAccessor<Datum>;
|
|
11
|
+
fillOpacity: import("../types").ConstantAccessor<number, Datum>;
|
|
12
12
|
sort: {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} | ((a: RawValue, b: RawValue) => number) | ConstantAccessor<RawValue, Datum>;
|
|
16
|
-
stroke: import("../types
|
|
17
|
-
strokeWidth: ConstantAccessor<number, Datum>;
|
|
18
|
-
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
19
|
-
strokeLinejoin: ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
|
|
20
|
-
strokeLinecap: ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
|
|
21
|
-
strokeMiterlimit: ConstantAccessor<number, Datum>;
|
|
22
|
-
opacity: import("../types
|
|
23
|
-
strokeDasharray: ConstantAccessor<string, Datum>;
|
|
24
|
-
strokeDashoffset: ConstantAccessor<number, Datum>;
|
|
25
|
-
mixBlendMode: ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
|
|
15
|
+
} | ((a: import("../types").RawValue, b: import("../types").RawValue) => number) | import("../types").ConstantAccessor<import("../types").RawValue, Datum>;
|
|
16
|
+
stroke: import("../types").ChannelAccessor<Datum>;
|
|
17
|
+
strokeWidth: import("../types").ConstantAccessor<number, Datum>;
|
|
18
|
+
strokeOpacity: import("../types").ConstantAccessor<number, Datum>;
|
|
19
|
+
strokeLinejoin: import("../types").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
|
|
20
|
+
strokeLinecap: import("../types").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
|
|
21
|
+
strokeMiterlimit: import("../types").ConstantAccessor<number, Datum>;
|
|
22
|
+
opacity: import("../types").ChannelAccessor<Datum>;
|
|
23
|
+
strokeDasharray: import("../types").ConstantAccessor<string, Datum>;
|
|
24
|
+
strokeDashoffset: import("../types").ConstantAccessor<number, Datum>;
|
|
25
|
+
mixBlendMode: import("../types").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
|
|
26
26
|
clipPath: string;
|
|
27
|
-
imageFilter: ConstantAccessor<string, Datum>;
|
|
28
|
-
shapeRendering: ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
29
|
-
paintOrder: ConstantAccessor<string, Datum>;
|
|
27
|
+
imageFilter: import("../types").ConstantAccessor<string, Datum>;
|
|
28
|
+
shapeRendering: import("../types").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
29
|
+
paintOrder: import("../types").ConstantAccessor<string, Datum>;
|
|
30
30
|
onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
31
31
|
ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
32
32
|
onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
@@ -58,27 +58,25 @@ declare class __sveltets_Render<Datum extends RawValue> {
|
|
|
58
58
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
59
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
60
|
class: string | null;
|
|
61
|
-
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
61
|
+
cursor: import("../types").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
62
62
|
}>, "fill" | "fillOpacity" | "href" | "target" | "title" | "paintOrder"> & {
|
|
63
63
|
data?: Datum[] | undefined;
|
|
64
64
|
automatic?: boolean;
|
|
65
|
-
title?: string
|
|
65
|
+
title?: string;
|
|
66
66
|
anchor?: "left" | "right";
|
|
67
67
|
facetAnchor?: "auto" | "left" | "right" | "left-empty" | "right-empty";
|
|
68
68
|
lineAnchor?: "top" | "center" | "bottom";
|
|
69
69
|
interval?: string | number;
|
|
70
70
|
labelAnchor?: "auto" | "left" | "center" | "right";
|
|
71
|
-
textAnchor?: "auto" | "start" | "middle" | "end";
|
|
72
71
|
tickSize?: number;
|
|
73
72
|
tickFontSize?: ConstantAccessor<number, Datum>;
|
|
74
|
-
titleFontSize?: number;
|
|
75
73
|
tickPadding?: number;
|
|
76
74
|
tickFormat?: "auto" | Intl.NumberFormatOptions | Intl.DateTimeFormatOptions | ((d: RawValue) => string) | undefined;
|
|
77
75
|
tickClass?: ConstantAccessor<string, Datum>;
|
|
78
76
|
/** ticks is a shorthand for defining data, tickCount or interval */
|
|
79
77
|
ticks?: string | number | Datum[] | undefined;
|
|
80
78
|
/** set to false or null to disable tick labels */
|
|
81
|
-
text
|
|
79
|
+
text: boolean | null;
|
|
82
80
|
/** approximate number of ticks to be generated */
|
|
83
81
|
tickCount?: number;
|
|
84
82
|
/** approximate number of pixels between generated ticks */
|
|
@@ -3,32 +3,32 @@ import type { DataRow } from '../types/index.js';
|
|
|
3
3
|
import type { BaseRectMarkProps, ChannelAccessor, LinkableMarkProps } from '../types/index.js';
|
|
4
4
|
declare class __sveltets_Render<Datum extends DataRow> {
|
|
5
5
|
props(): Partial<{
|
|
6
|
-
filter?: import("../types
|
|
6
|
+
filter?: import("../types").ConstantAccessor<boolean, Datum>;
|
|
7
7
|
facet?: "auto" | "include" | "exclude";
|
|
8
|
-
fx: ChannelAccessor<Datum>;
|
|
9
|
-
fy: ChannelAccessor<Datum>;
|
|
10
|
-
dx: import("../types
|
|
11
|
-
dy: import("../types
|
|
12
|
-
fill: ChannelAccessor<Datum>;
|
|
13
|
-
fillOpacity: import("../types
|
|
8
|
+
fx: import("../types").ChannelAccessor<Datum>;
|
|
9
|
+
fy: import("../types").ChannelAccessor<Datum>;
|
|
10
|
+
dx: import("../types").ConstantAccessor<number, Datum>;
|
|
11
|
+
dy: import("../types").ConstantAccessor<number, Datum>;
|
|
12
|
+
fill: import("../types").ChannelAccessor<Datum>;
|
|
13
|
+
fillOpacity: import("../types").ConstantAccessor<number, Datum>;
|
|
14
14
|
sort: {
|
|
15
15
|
channel: string;
|
|
16
16
|
order?: "ascending" | "descending";
|
|
17
|
-
} | ((a: import("../types
|
|
18
|
-
stroke: ChannelAccessor<Datum>;
|
|
19
|
-
strokeWidth: import("../types
|
|
20
|
-
strokeOpacity: import("../types
|
|
21
|
-
strokeLinejoin: import("../types
|
|
22
|
-
strokeLinecap: import("../types
|
|
23
|
-
strokeMiterlimit: import("../types
|
|
24
|
-
opacity: ChannelAccessor<Datum>;
|
|
25
|
-
strokeDasharray: import("../types
|
|
26
|
-
strokeDashoffset: import("../types
|
|
27
|
-
mixBlendMode: import("../types
|
|
17
|
+
} | ((a: import("../types").RawValue, b: import("../types").RawValue) => number) | import("../types").ConstantAccessor<import("../types").RawValue, Datum>;
|
|
18
|
+
stroke: import("../types").ChannelAccessor<Datum>;
|
|
19
|
+
strokeWidth: import("../types").ConstantAccessor<number, Datum>;
|
|
20
|
+
strokeOpacity: import("../types").ConstantAccessor<number, Datum>;
|
|
21
|
+
strokeLinejoin: import("../types").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
|
|
22
|
+
strokeLinecap: import("../types").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
|
|
23
|
+
strokeMiterlimit: import("../types").ConstantAccessor<number, Datum>;
|
|
24
|
+
opacity: import("../types").ChannelAccessor<Datum>;
|
|
25
|
+
strokeDasharray: import("../types").ConstantAccessor<string, Datum>;
|
|
26
|
+
strokeDashoffset: import("../types").ConstantAccessor<number, Datum>;
|
|
27
|
+
mixBlendMode: import("../types").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
|
|
28
28
|
clipPath: string;
|
|
29
|
-
imageFilter: import("../types
|
|
30
|
-
shapeRendering: import("../types
|
|
31
|
-
paintOrder: import("../types
|
|
29
|
+
imageFilter: import("../types").ConstantAccessor<string, Datum>;
|
|
30
|
+
shapeRendering: import("../types").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
31
|
+
paintOrder: import("../types").ConstantAccessor<string, Datum>;
|
|
32
32
|
onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
33
33
|
ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
34
34
|
onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
@@ -60,7 +60,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
60
60
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
61
61
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
62
62
|
class: string | null;
|
|
63
|
-
cursor: import("../types
|
|
63
|
+
cursor: import("../types").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
64
64
|
}> & LinkableMarkProps<Datum> & BaseRectMarkProps<Datum> & {
|
|
65
65
|
data: Datum[];
|
|
66
66
|
x?: ChannelAccessor<Datum>;
|
|
@@ -2,32 +2,32 @@ import type { StackOptions } from '../transforms/stack.js';
|
|
|
2
2
|
import type { BaseRectMarkProps, ChannelAccessor, DataRow, LinkableMarkProps } from '../types/index.js';
|
|
3
3
|
declare class __sveltets_Render<Datum extends DataRow> {
|
|
4
4
|
props(): Partial<{
|
|
5
|
-
filter?: import("../types
|
|
5
|
+
filter?: import("../types").ConstantAccessor<boolean, Datum>;
|
|
6
6
|
facet?: "auto" | "include" | "exclude";
|
|
7
|
-
fx: ChannelAccessor<Datum>;
|
|
8
|
-
fy: ChannelAccessor<Datum>;
|
|
9
|
-
dx: import("../types
|
|
10
|
-
dy: import("../types
|
|
11
|
-
fill: ChannelAccessor<Datum>;
|
|
12
|
-
fillOpacity: import("../types
|
|
7
|
+
fx: import("../types").ChannelAccessor<Datum>;
|
|
8
|
+
fy: import("../types").ChannelAccessor<Datum>;
|
|
9
|
+
dx: import("../types").ConstantAccessor<number, Datum>;
|
|
10
|
+
dy: import("../types").ConstantAccessor<number, Datum>;
|
|
11
|
+
fill: import("../types").ChannelAccessor<Datum>;
|
|
12
|
+
fillOpacity: import("../types").ConstantAccessor<number, Datum>;
|
|
13
13
|
sort: {
|
|
14
14
|
channel: string;
|
|
15
15
|
order?: "ascending" | "descending";
|
|
16
|
-
} | ((a: import("../types
|
|
17
|
-
stroke: ChannelAccessor<Datum>;
|
|
18
|
-
strokeWidth: import("../types
|
|
19
|
-
strokeOpacity: import("../types
|
|
20
|
-
strokeLinejoin: import("../types
|
|
21
|
-
strokeLinecap: import("../types
|
|
22
|
-
strokeMiterlimit: import("../types
|
|
23
|
-
opacity: ChannelAccessor<Datum>;
|
|
24
|
-
strokeDasharray: import("../types
|
|
25
|
-
strokeDashoffset: import("../types
|
|
26
|
-
mixBlendMode: import("../types
|
|
16
|
+
} | ((a: import("../types").RawValue, b: import("../types").RawValue) => number) | import("../types").ConstantAccessor<import("../types").RawValue, Datum>;
|
|
17
|
+
stroke: import("../types").ChannelAccessor<Datum>;
|
|
18
|
+
strokeWidth: import("../types").ConstantAccessor<number, Datum>;
|
|
19
|
+
strokeOpacity: import("../types").ConstantAccessor<number, Datum>;
|
|
20
|
+
strokeLinejoin: import("../types").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
|
|
21
|
+
strokeLinecap: import("../types").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
|
|
22
|
+
strokeMiterlimit: import("../types").ConstantAccessor<number, Datum>;
|
|
23
|
+
opacity: import("../types").ChannelAccessor<Datum>;
|
|
24
|
+
strokeDasharray: import("../types").ConstantAccessor<string, Datum>;
|
|
25
|
+
strokeDashoffset: import("../types").ConstantAccessor<number, Datum>;
|
|
26
|
+
mixBlendMode: import("../types").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
|
|
27
27
|
clipPath: string;
|
|
28
|
-
imageFilter: import("../types
|
|
29
|
-
shapeRendering: import("../types
|
|
30
|
-
paintOrder: import("../types
|
|
28
|
+
imageFilter: import("../types").ConstantAccessor<string, Datum>;
|
|
29
|
+
shapeRendering: import("../types").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
30
|
+
paintOrder: import("../types").ConstantAccessor<string, Datum>;
|
|
31
31
|
onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
32
32
|
ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
33
33
|
onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
@@ -59,7 +59,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
59
59
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
60
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
61
61
|
class: string | null;
|
|
62
|
-
cursor: import("../types
|
|
62
|
+
cursor: import("../types").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
63
63
|
}> & LinkableMarkProps<Datum> & BaseRectMarkProps<Datum> & {
|
|
64
64
|
data: Datum[];
|
|
65
65
|
x?: ChannelAccessor<Datum>;
|
|
@@ -1,6 +1,77 @@
|
|
|
1
|
-
import type { DataRecord } from '../types/index.js';
|
|
1
|
+
import type { ChannelAccessor, DataRecord } from '../types/index.js';
|
|
2
2
|
declare class __sveltets_Render<Datum extends DataRecord> {
|
|
3
|
-
props():
|
|
3
|
+
props(): Partial<{
|
|
4
|
+
filter?: import("../types").ConstantAccessor<boolean, Datum>;
|
|
5
|
+
facet?: "auto" | "include" | "exclude";
|
|
6
|
+
fx: import("../types").ChannelAccessor<Datum>;
|
|
7
|
+
fy: import("../types").ChannelAccessor<Datum>;
|
|
8
|
+
dx: import("../types").ConstantAccessor<number, Datum>;
|
|
9
|
+
dy: import("../types").ConstantAccessor<number, Datum>;
|
|
10
|
+
fill: import("../types").ChannelAccessor<Datum>;
|
|
11
|
+
fillOpacity: import("../types").ConstantAccessor<number, Datum>;
|
|
12
|
+
sort: {
|
|
13
|
+
channel: string;
|
|
14
|
+
order?: "ascending" | "descending";
|
|
15
|
+
} | ((a: import("../types").RawValue, b: import("../types").RawValue) => number) | import("../types").ConstantAccessor<import("../types").RawValue, Datum>;
|
|
16
|
+
stroke: import("../types").ChannelAccessor<Datum>;
|
|
17
|
+
strokeWidth: import("../types").ConstantAccessor<number, Datum>;
|
|
18
|
+
strokeOpacity: import("../types").ConstantAccessor<number, Datum>;
|
|
19
|
+
strokeLinejoin: import("../types").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
|
|
20
|
+
strokeLinecap: import("../types").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
|
|
21
|
+
strokeMiterlimit: import("../types").ConstantAccessor<number, Datum>;
|
|
22
|
+
opacity: import("../types").ChannelAccessor<Datum>;
|
|
23
|
+
strokeDasharray: import("../types").ConstantAccessor<string, Datum>;
|
|
24
|
+
strokeDashoffset: import("../types").ConstantAccessor<number, Datum>;
|
|
25
|
+
mixBlendMode: import("../types").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
|
|
26
|
+
clipPath: string;
|
|
27
|
+
imageFilter: import("../types").ConstantAccessor<string, Datum>;
|
|
28
|
+
shapeRendering: import("../types").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
29
|
+
paintOrder: import("../types").ConstantAccessor<string, Datum>;
|
|
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 | null;
|
|
61
|
+
cursor: import("../types").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
62
|
+
}> & {
|
|
63
|
+
data: Datum[];
|
|
64
|
+
x?: ChannelAccessor<Datum>;
|
|
65
|
+
y?: ChannelAccessor<Datum>;
|
|
66
|
+
/**
|
|
67
|
+
* the window size (the window transform's k option), an integer; defaults to 20
|
|
68
|
+
*/
|
|
69
|
+
n?: number;
|
|
70
|
+
/**
|
|
71
|
+
* the band radius, a number representing a multiple of standard deviations; defaults to 2
|
|
72
|
+
*/
|
|
73
|
+
k?: number;
|
|
74
|
+
};
|
|
4
75
|
events(): {};
|
|
5
76
|
slots(): {};
|
|
6
77
|
bindings(): "";
|