svelteplot 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +19 -1
- package/README.md +1 -1
- package/dist/Mark.svelte.d.ts +43 -36
- package/dist/helpers/data.d.ts +1 -0
- package/dist/helpers/data.js +1 -1
- package/dist/helpers/index.js +1 -2
- package/dist/helpers/time.js +1 -1
- package/dist/marks/Area.svelte.d.ts +11 -4
- package/dist/marks/AreaX.svelte.d.ts +11 -4
- package/dist/marks/Arrow.svelte.d.ts +42 -35
- package/dist/marks/AxisX.svelte.d.ts +15 -8
- package/dist/marks/AxisY.svelte.d.ts +14 -7
- package/dist/marks/BarX.svelte.d.ts +11 -4
- package/dist/marks/BarY.svelte.d.ts +11 -4
- package/dist/marks/BollingerX.svelte.d.ts +11 -4
- package/dist/marks/BollingerY.svelte.d.ts +11 -4
- package/dist/marks/BoxY.svelte.d.ts +13 -6
- package/dist/marks/Brush.svelte.d.ts +120 -31
- package/dist/marks/Cell.svelte.d.ts +41 -34
- package/dist/marks/CustomMark.svelte.d.ts +14 -7
- package/dist/marks/CustomMarkHTML.svelte.d.ts +15 -8
- package/dist/marks/DifferenceY.svelte.d.ts +11 -4
- package/dist/marks/Dot.svelte.d.ts +42 -35
- package/dist/marks/DotX.svelte.d.ts +11 -4
- package/dist/marks/DotY.svelte.d.ts +11 -4
- package/dist/marks/Frame.svelte.d.ts +84 -17
- package/dist/marks/Geo.svelte.d.ts +42 -35
- package/dist/marks/GridX.svelte.d.ts +12 -5
- package/dist/marks/GridY.svelte.d.ts +12 -5
- package/dist/marks/HTMLTooltip.svelte.d.ts +14 -7
- package/dist/marks/Image.svelte.d.ts +11 -4
- package/dist/marks/Line.svelte +1 -1
- package/dist/marks/Line.svelte.d.ts +42 -35
- package/dist/marks/LineX.svelte.d.ts +11 -4
- package/dist/marks/LineY.svelte.d.ts +11 -4
- package/dist/marks/Link.svelte.d.ts +41 -34
- package/dist/marks/Pointer.svelte.d.ts +13 -6
- package/dist/marks/Rect.svelte.d.ts +11 -4
- package/dist/marks/RectX.svelte.d.ts +10 -3
- package/dist/marks/RectY.svelte.d.ts +10 -3
- package/dist/marks/RuleX.svelte.d.ts +12 -5
- package/dist/marks/RuleY.svelte.d.ts +12 -5
- package/dist/marks/Spike.svelte.d.ts +11 -4
- package/dist/marks/Text.svelte.d.ts +18 -11
- package/dist/marks/TickX.svelte.d.ts +11 -4
- package/dist/marks/TickY.svelte.d.ts +11 -4
- package/dist/marks/Vector.svelte.d.ts +41 -34
- package/dist/marks/WaffleX.svelte.d.ts +12 -5
- package/dist/marks/WaffleY.svelte.d.ts +12 -5
- package/dist/marks/helpers/Anchor.svelte.d.ts +15 -8
- package/dist/marks/helpers/MarkerPath.svelte.d.ts +13 -68
- package/dist/marks/helpers/RectPath.svelte.d.ts +13 -68
- package/dist/marks/helpers/canvas.js +1 -1
- package/dist/marks/helpers/waffle.d.ts +6 -0
- package/dist/marks/helpers/waffle.js +6 -38
- package/dist/transforms/index.d.ts +1 -1
- package/dist/transforms/index.js +1 -1
- package/dist/transforms/normalize.js +45 -0
- package/dist/ui/ExamplesGrid.svelte +19 -3
- package/dist/ui/ExamplesPagePreview.svelte +149 -0
- package/dist/ui/ExamplesPagePreview.svelte.d.ts +12 -0
- package/dist/ui/isDark.svelte.d.ts +6 -0
- package/dist/ui/isDark.svelte.js +10 -0
- package/package.json +140 -128
- package/dist/transforms/normalize.d.ts +0 -5
package/LICENSE.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
|
-
Copyright 2024, Gregor Aisch
|
|
1
|
+
Copyright 2024-2025, Gregor Aisch
|
|
2
2
|
|
|
3
3
|
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
|
|
4
4
|
|
|
5
5
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
Portions of this library have been ported from Observable Plot, which is covered by the following license:
|
|
10
|
+
|
|
11
|
+
Copyright 2020-2025 Observable, Inc.
|
|
12
|
+
|
|
13
|
+
Permission to use, copy, modify, and/or distribute this software for any purpose
|
|
14
|
+
with or without fee is hereby granted, provided that the above copyright notice
|
|
15
|
+
and this permission notice appear in all copies.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
18
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
19
|
+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
20
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
|
21
|
+
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
22
|
+
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
23
|
+
THIS SOFTWARE.
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
SveltePlot is a visualization framework based on the [layered grammar of graphics](https://vita.had.co.nz/papers/layered-grammar.html) ideas. It's API is heavily inspired by [Observable Plot](https://github.com/observablehq/plot). Created by Gregor Aisch.
|
|
6
6
|
|
|
7
|
-
<img src="static/logo.
|
|
7
|
+
<img src="static/logo.svg" alt="SveltePlot logo" width="401" />
|
|
8
8
|
|
|
9
9
|
## Development
|
|
10
10
|
|
package/dist/Mark.svelte.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type Snippet } from 'svelte';
|
|
2
2
|
import type { ScaledChannelName, MarkType, DataRecord, ChannelAccessor, ScaleName, RawValue, ScaledDataRecord, ScaleType } from './types/index.js';
|
|
3
3
|
import { getUsedScales } from './helpers/scales.js';
|
|
4
|
-
declare
|
|
5
|
-
props
|
|
4
|
+
declare function $$render<Datum extends DataRecord>(): {
|
|
5
|
+
props: Partial<Partial<{
|
|
6
6
|
filter: import("./types/index.js").ConstantAccessor<boolean, Datum>;
|
|
7
7
|
facet: "auto" | "include" | "exclude";
|
|
8
8
|
fx: ChannelAccessor<Datum>;
|
|
@@ -31,41 +31,41 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
31
31
|
imageFilter: import("./types/index.js").ConstantAccessor<string, Datum>;
|
|
32
32
|
shapeRendering: import("./types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
33
33
|
paintOrder: import("./types/index.js").ConstantAccessor<string, Datum>;
|
|
34
|
-
onclick: import("svelte/elements
|
|
35
|
-
ondblclick: import("svelte/elements
|
|
36
|
-
onmouseup: import("svelte/elements
|
|
37
|
-
onmousedown: import("svelte/elements
|
|
38
|
-
onmouseenter: import("svelte/elements
|
|
39
|
-
onmousemove: import("svelte/elements
|
|
40
|
-
onmouseleave: import("svelte/elements
|
|
41
|
-
onmouseout: import("svelte/elements
|
|
42
|
-
onmouseover: import("svelte/elements
|
|
43
|
-
onpointercancel: import("svelte/elements
|
|
44
|
-
onpointerdown: import("svelte/elements
|
|
45
|
-
onpointerup: import("svelte/elements
|
|
46
|
-
onpointerenter: import("svelte/elements
|
|
47
|
-
onpointerleave: import("svelte/elements
|
|
48
|
-
onpointermove: import("svelte/elements
|
|
49
|
-
onpointerover: import("svelte/elements
|
|
50
|
-
onpointerout: import("svelte/elements
|
|
51
|
-
ondrag: import("svelte/elements
|
|
52
|
-
ondrop: import("svelte/elements
|
|
53
|
-
ondragstart: import("svelte/elements
|
|
54
|
-
ondragenter: import("svelte/elements
|
|
55
|
-
ondragleave: import("svelte/elements
|
|
56
|
-
ondragover: import("svelte/elements
|
|
57
|
-
ondragend: import("svelte/elements
|
|
58
|
-
ontouchstart: import("svelte/elements
|
|
59
|
-
ontouchmove: import("svelte/elements
|
|
60
|
-
ontouchend: import("svelte/elements
|
|
61
|
-
ontouchcancel: import("svelte/elements
|
|
62
|
-
oncontextmenu: import("svelte/elements
|
|
63
|
-
onwheel: import("svelte/elements
|
|
34
|
+
onclick: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
35
|
+
ondblclick: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
36
|
+
onmouseup: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
37
|
+
onmousedown: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
38
|
+
onmouseenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
39
|
+
onmousemove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
40
|
+
onmouseleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
41
|
+
onmouseout: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
42
|
+
onmouseover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
43
|
+
onpointercancel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
44
|
+
onpointerdown: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
45
|
+
onpointerup: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
46
|
+
onpointerenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
47
|
+
onpointerleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
48
|
+
onpointermove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
49
|
+
onpointerover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
50
|
+
onpointerout: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
51
|
+
ondrag: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
52
|
+
ondrop: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
53
|
+
ondragstart: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
54
|
+
ondragenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
55
|
+
ondragleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
56
|
+
ondragover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
57
|
+
ondragend: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
58
|
+
ontouchstart: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
|
+
ontouchmove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
|
+
ontouchend: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
61
|
+
ontouchcancel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
62
|
+
oncontextmenu: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
63
|
+
onwheel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
64
64
|
class: string;
|
|
65
65
|
style: string;
|
|
66
66
|
cursor: import("./types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
67
67
|
}>> & {
|
|
68
|
-
data?: Datum[]
|
|
68
|
+
data?: Datum[];
|
|
69
69
|
automatic?: boolean;
|
|
70
70
|
type: MarkType;
|
|
71
71
|
channels?: ScaledChannelName[];
|
|
@@ -75,11 +75,18 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
75
75
|
mark: any;
|
|
76
76
|
usedScales: ReturnType<typeof getUsedScales>;
|
|
77
77
|
scaledData: ScaledDataRecord<Datum>[];
|
|
78
|
-
}]
|
|
78
|
+
}]>;
|
|
79
79
|
defaults?: Partial<Record<ScaledChannelName, RawValue>>;
|
|
80
80
|
};
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
exports: {};
|
|
82
|
+
bindings: "";
|
|
83
|
+
slots: {};
|
|
84
|
+
events: {};
|
|
85
|
+
};
|
|
86
|
+
declare class __sveltets_Render<Datum extends DataRecord> {
|
|
87
|
+
props(): ReturnType<typeof $$render<Datum>>['props'];
|
|
88
|
+
events(): ReturnType<typeof $$render<Datum>>['events'];
|
|
89
|
+
slots(): ReturnType<typeof $$render<Datum>>['slots'];
|
|
83
90
|
bindings(): "";
|
|
84
91
|
exports(): {};
|
|
85
92
|
}
|
package/dist/helpers/data.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
type Fetch = (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
2
|
+
export declare function loadCSV(fetch: Fetch, dataset: string): Promise<any[]>;
|
|
2
3
|
export declare function loadJSON(fetch: Fetch, dataset: string): Promise<any>;
|
|
3
4
|
/**
|
|
4
5
|
* helper function used in the SveltePlot docs to load example datasets
|
package/dist/helpers/data.js
CHANGED
package/dist/helpers/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { resolveProp } from './resolve.js';
|
|
2
2
|
import { isDate } from './typeChecks.js';
|
|
3
|
-
import { RAW_VALUE } from '../transforms/recordize.js';
|
|
4
3
|
/**
|
|
5
4
|
* Returns first argument that is not null or undefined
|
|
6
5
|
*/
|
|
@@ -31,7 +30,7 @@ export function isObject(option) {
|
|
|
31
30
|
// doesn't work with Proxies
|
|
32
31
|
return (typeof option === 'object' && !isDate(option) && !Array.isArray(option) && option !== null);
|
|
33
32
|
}
|
|
34
|
-
const NUMERIC = /^[+-]?(
|
|
33
|
+
const NUMERIC = /^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i;
|
|
35
34
|
export function maybeNumber(value) {
|
|
36
35
|
if (typeof value === 'number' && Number.isFinite(value))
|
|
37
36
|
return value;
|
package/dist/helpers/time.js
CHANGED
|
@@ -157,7 +157,7 @@ export function parseTimeInterval(input) {
|
|
|
157
157
|
if (name.endsWith('s'))
|
|
158
158
|
name = name.slice(0, -1); // drop plural
|
|
159
159
|
let period = 1;
|
|
160
|
-
const match = /^(
|
|
160
|
+
const match = /^(\d+)\s+/.exec(name);
|
|
161
161
|
if (match) {
|
|
162
162
|
name = name.slice(match[0].length);
|
|
163
163
|
period = +match[1];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type CurveFactory } from 'd3-shape';
|
|
2
2
|
import type { CurveName, DataRecord, ConstantAccessor, ChannelAccessor, LinkableMarkProps, RawValue } from '../types/index.js';
|
|
3
3
|
import type { StackOptions } from '../transforms/stack.js';
|
|
4
|
-
declare
|
|
5
|
-
props
|
|
4
|
+
declare function $$render<Datum extends DataRecord>(): {
|
|
5
|
+
props: Partial<{
|
|
6
6
|
filter: ConstantAccessor<boolean, Datum>;
|
|
7
7
|
facet: "auto" | "include" | "exclude";
|
|
8
8
|
fx: ChannelAccessor<Datum>;
|
|
@@ -80,8 +80,15 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
80
80
|
canvas?: boolean;
|
|
81
81
|
areaClass?: ConstantAccessor<string, Datum>;
|
|
82
82
|
};
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
exports: {};
|
|
84
|
+
bindings: "";
|
|
85
|
+
slots: {};
|
|
86
|
+
events: {};
|
|
87
|
+
};
|
|
88
|
+
declare class __sveltets_Render<Datum extends DataRecord> {
|
|
89
|
+
props(): ReturnType<typeof $$render<Datum>>['props'];
|
|
90
|
+
events(): ReturnType<typeof $$render<Datum>>['events'];
|
|
91
|
+
slots(): ReturnType<typeof $$render<Datum>>['slots'];
|
|
85
92
|
bindings(): "";
|
|
86
93
|
exports(): {};
|
|
87
94
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ChannelAccessor, DataRow } from '../types/index.js';
|
|
2
|
-
declare
|
|
3
|
-
props
|
|
2
|
+
declare function $$render<Datum extends DataRow>(): {
|
|
3
|
+
props: Omit<Partial<{
|
|
4
4
|
filter: import("../types/index.js").ConstantAccessor<boolean, Record<string | symbol, import("../types/data").RawValue>>;
|
|
5
5
|
facet: "auto" | "include" | "exclude";
|
|
6
6
|
fx: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
@@ -81,8 +81,15 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
81
81
|
x?: ChannelAccessor<Datum>;
|
|
82
82
|
y?: ChannelAccessor<Datum>;
|
|
83
83
|
};
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
exports: {};
|
|
85
|
+
bindings: "";
|
|
86
|
+
slots: {};
|
|
87
|
+
events: {};
|
|
88
|
+
};
|
|
89
|
+
declare class __sveltets_Render<Datum extends DataRow> {
|
|
90
|
+
props(): ReturnType<typeof $$render<Datum>>['props'];
|
|
91
|
+
events(): ReturnType<typeof $$render<Datum>>['events'];
|
|
92
|
+
slots(): ReturnType<typeof $$render<Datum>>['slots'];
|
|
86
93
|
bindings(): "";
|
|
87
94
|
exports(): {};
|
|
88
95
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DataRecord, ConstantAccessor, ChannelAccessor, RawValue } from '../types/index.js';
|
|
2
2
|
import { type SweepOption } from '../helpers/arrowPath.js';
|
|
3
|
-
declare
|
|
4
|
-
props
|
|
3
|
+
declare function $$render<Datum extends DataRecord>(): {
|
|
4
|
+
props: Omit<Partial<{
|
|
5
5
|
filter: ConstantAccessor<boolean, Datum>;
|
|
6
6
|
facet: "auto" | "include" | "exclude";
|
|
7
7
|
fx: ChannelAccessor<Datum>;
|
|
@@ -30,36 +30,36 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
30
30
|
imageFilter: ConstantAccessor<string, Datum>;
|
|
31
31
|
shapeRendering: ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
32
32
|
paintOrder: ConstantAccessor<string, Datum>;
|
|
33
|
-
onclick: import("svelte/elements
|
|
34
|
-
ondblclick: import("svelte/elements
|
|
35
|
-
onmouseup: import("svelte/elements
|
|
36
|
-
onmousedown: import("svelte/elements
|
|
37
|
-
onmouseenter: import("svelte/elements
|
|
38
|
-
onmousemove: import("svelte/elements
|
|
39
|
-
onmouseleave: import("svelte/elements
|
|
40
|
-
onmouseout: import("svelte/elements
|
|
41
|
-
onmouseover: import("svelte/elements
|
|
42
|
-
onpointercancel: import("svelte/elements
|
|
43
|
-
onpointerdown: import("svelte/elements
|
|
44
|
-
onpointerup: import("svelte/elements
|
|
45
|
-
onpointerenter: import("svelte/elements
|
|
46
|
-
onpointerleave: import("svelte/elements
|
|
47
|
-
onpointermove: import("svelte/elements
|
|
48
|
-
onpointerover: import("svelte/elements
|
|
49
|
-
onpointerout: import("svelte/elements
|
|
50
|
-
ondrag: import("svelte/elements
|
|
51
|
-
ondrop: import("svelte/elements
|
|
52
|
-
ondragstart: import("svelte/elements
|
|
53
|
-
ondragenter: import("svelte/elements
|
|
54
|
-
ondragleave: import("svelte/elements
|
|
55
|
-
ondragover: import("svelte/elements
|
|
56
|
-
ondragend: import("svelte/elements
|
|
57
|
-
ontouchstart: import("svelte/elements
|
|
58
|
-
ontouchmove: import("svelte/elements
|
|
59
|
-
ontouchend: import("svelte/elements
|
|
60
|
-
ontouchcancel: import("svelte/elements
|
|
61
|
-
oncontextmenu: import("svelte/elements
|
|
62
|
-
onwheel: import("svelte/elements
|
|
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
63
|
class: string;
|
|
64
64
|
style: string;
|
|
65
65
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
@@ -75,7 +75,7 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
75
75
|
/**
|
|
76
76
|
* the bend angle, in degrees; defaults to 0°; true for 22.5°
|
|
77
77
|
*/
|
|
78
|
-
bend?:
|
|
78
|
+
bend?: ConstantAccessor<number, Datum> | true;
|
|
79
79
|
/**
|
|
80
80
|
* the arrowhead angle, in degrees; defaults to 60°
|
|
81
81
|
*/
|
|
@@ -98,8 +98,15 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
98
98
|
inset?: ConstantAccessor<number, Datum>;
|
|
99
99
|
sweep?: SweepOption;
|
|
100
100
|
};
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
exports: {};
|
|
102
|
+
bindings: "";
|
|
103
|
+
slots: {};
|
|
104
|
+
events: {};
|
|
105
|
+
};
|
|
106
|
+
declare class __sveltets_Render<Datum extends DataRecord> {
|
|
107
|
+
props(): ReturnType<typeof $$render<Datum>>['props'];
|
|
108
|
+
events(): ReturnType<typeof $$render<Datum>>['events'];
|
|
109
|
+
slots(): ReturnType<typeof $$render<Datum>>['slots'];
|
|
103
110
|
bindings(): "";
|
|
104
111
|
exports(): {};
|
|
105
112
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RawValue, ConstantAccessor } from '../types/index.js';
|
|
2
2
|
import type * as CSS from 'csstype';
|
|
3
|
-
declare
|
|
4
|
-
props
|
|
3
|
+
declare function $$render<Datum extends RawValue>(): {
|
|
4
|
+
props: Omit<Partial<{
|
|
5
5
|
filter: ConstantAccessor<boolean, Datum>;
|
|
6
6
|
facet: "auto" | "include" | "exclude";
|
|
7
7
|
fx: import("../types/channel").ChannelAccessor<Datum>;
|
|
@@ -64,7 +64,7 @@ declare class __sveltets_Render<Datum extends RawValue> {
|
|
|
64
64
|
style: string;
|
|
65
65
|
cursor: ConstantAccessor<CSS.Property.Cursor, Datum>;
|
|
66
66
|
}>, "fillOpacity" | "paintOrder" | "href" | "target" | "title"> & {
|
|
67
|
-
data?: Datum[]
|
|
67
|
+
data?: Datum[];
|
|
68
68
|
automatic?: boolean;
|
|
69
69
|
title?: string | false | null;
|
|
70
70
|
anchor?: "top" | "bottom";
|
|
@@ -75,10 +75,10 @@ declare class __sveltets_Render<Datum extends RawValue> {
|
|
|
75
75
|
tickFontSize?: ConstantAccessor<number, Datum>;
|
|
76
76
|
titleFontSize?: number;
|
|
77
77
|
tickPadding?: number;
|
|
78
|
-
tickFormat?: "auto" | Intl.
|
|
78
|
+
tickFormat?: "auto" | Intl.DateTimeFormatOptions | Intl.NumberFormatOptions | ((d: RawValue, i: number) => string);
|
|
79
79
|
tickClass?: ConstantAccessor<string, Datum>;
|
|
80
80
|
/** ticks is a shorthand for defining data, tickCount or interval */
|
|
81
|
-
ticks?:
|
|
81
|
+
ticks?: number | string | Datum[];
|
|
82
82
|
/** set to false or null to disable tick labels */
|
|
83
83
|
text?: boolean | null;
|
|
84
84
|
/** approximate number of ticks to be generated */
|
|
@@ -86,11 +86,18 @@ declare class __sveltets_Render<Datum extends RawValue> {
|
|
|
86
86
|
/** approximate number of pixels between generated ticks */
|
|
87
87
|
tickSpacing?: number;
|
|
88
88
|
/** text anchor for axis labels */
|
|
89
|
-
textAnchor?: ConstantAccessor<
|
|
89
|
+
textAnchor?: ConstantAccessor<CSS.Property.TextAnchor | "auto", Datum>;
|
|
90
90
|
removeDuplicateTicks: boolean;
|
|
91
91
|
};
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
exports: {};
|
|
93
|
+
bindings: "";
|
|
94
|
+
slots: {};
|
|
95
|
+
events: {};
|
|
96
|
+
};
|
|
97
|
+
declare class __sveltets_Render<Datum extends RawValue> {
|
|
98
|
+
props(): ReturnType<typeof $$render<Datum>>['props'];
|
|
99
|
+
events(): ReturnType<typeof $$render<Datum>>['events'];
|
|
100
|
+
slots(): ReturnType<typeof $$render<Datum>>['slots'];
|
|
94
101
|
bindings(): "";
|
|
95
102
|
exports(): {};
|
|
96
103
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RawValue, ConstantAccessor } from '../types/index.js';
|
|
2
|
-
declare
|
|
3
|
-
props
|
|
2
|
+
declare function $$render<Datum extends RawValue>(): {
|
|
3
|
+
props: Omit<Partial<{
|
|
4
4
|
filter: ConstantAccessor<boolean, Datum>;
|
|
5
5
|
facet: "auto" | "include" | "exclude";
|
|
6
6
|
fx: import("../types/channel").ChannelAccessor<Datum>;
|
|
@@ -63,7 +63,7 @@ declare class __sveltets_Render<Datum extends RawValue> {
|
|
|
63
63
|
style: string;
|
|
64
64
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
65
65
|
}>, "fillOpacity" | "paintOrder" | "href" | "target" | "title"> & {
|
|
66
|
-
data?: Datum[]
|
|
66
|
+
data?: Datum[];
|
|
67
67
|
automatic?: boolean;
|
|
68
68
|
title?: string | false | null;
|
|
69
69
|
anchor?: "left" | "right";
|
|
@@ -76,10 +76,10 @@ declare class __sveltets_Render<Datum extends RawValue> {
|
|
|
76
76
|
tickFontSize?: ConstantAccessor<number, Datum>;
|
|
77
77
|
titleFontSize?: number;
|
|
78
78
|
tickPadding?: number;
|
|
79
|
-
tickFormat?: "auto" | Intl.
|
|
79
|
+
tickFormat?: "auto" | Intl.DateTimeFormatOptions | Intl.NumberFormatOptions | ((d: RawValue) => string);
|
|
80
80
|
tickClass?: ConstantAccessor<string, Datum>;
|
|
81
81
|
/** ticks is a shorthand for defining data, tickCount or interval */
|
|
82
|
-
ticks?:
|
|
82
|
+
ticks?: number | string | Datum[];
|
|
83
83
|
/** set to false or null to disable tick labels */
|
|
84
84
|
text?: boolean | null;
|
|
85
85
|
/** approximate number of ticks to be generated */
|
|
@@ -87,8 +87,15 @@ declare class __sveltets_Render<Datum extends RawValue> {
|
|
|
87
87
|
/** approximate number of pixels between generated ticks */
|
|
88
88
|
tickSpacing?: number;
|
|
89
89
|
};
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
exports: {};
|
|
91
|
+
bindings: "";
|
|
92
|
+
slots: {};
|
|
93
|
+
events: {};
|
|
94
|
+
};
|
|
95
|
+
declare class __sveltets_Render<Datum extends RawValue> {
|
|
96
|
+
props(): ReturnType<typeof $$render<Datum>>['props'];
|
|
97
|
+
events(): ReturnType<typeof $$render<Datum>>['events'];
|
|
98
|
+
slots(): ReturnType<typeof $$render<Datum>>['slots'];
|
|
92
99
|
bindings(): "";
|
|
93
100
|
exports(): {};
|
|
94
101
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { StackOptions } from '../transforms/stack.js';
|
|
2
2
|
import type { DataRow } from '../types/index.js';
|
|
3
3
|
import type { BaseRectMarkProps, ChannelAccessor, LinkableMarkProps } from '../types/index.js';
|
|
4
|
-
declare
|
|
5
|
-
props
|
|
4
|
+
declare function $$render<Datum extends DataRow>(): {
|
|
5
|
+
props: Partial<{
|
|
6
6
|
filter: import("../types/index.js").ConstantAccessor<boolean, Datum>;
|
|
7
7
|
facet: "auto" | "include" | "exclude";
|
|
8
8
|
fx: ChannelAccessor<Datum>;
|
|
@@ -77,8 +77,15 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
77
77
|
*/
|
|
78
78
|
interval?: number | string;
|
|
79
79
|
};
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
exports: {};
|
|
81
|
+
bindings: "";
|
|
82
|
+
slots: {};
|
|
83
|
+
events: {};
|
|
84
|
+
};
|
|
85
|
+
declare class __sveltets_Render<Datum extends DataRow> {
|
|
86
|
+
props(): ReturnType<typeof $$render<Datum>>['props'];
|
|
87
|
+
events(): ReturnType<typeof $$render<Datum>>['events'];
|
|
88
|
+
slots(): ReturnType<typeof $$render<Datum>>['slots'];
|
|
82
89
|
bindings(): "";
|
|
83
90
|
exports(): {};
|
|
84
91
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { StackOptions } from '../transforms/stack.js';
|
|
2
2
|
import type { BaseRectMarkProps, ChannelAccessor, DataRow, LinkableMarkProps } from '../types/index.js';
|
|
3
|
-
declare
|
|
4
|
-
props
|
|
3
|
+
declare function $$render<Datum extends DataRow>(): {
|
|
4
|
+
props: Partial<{
|
|
5
5
|
filter: import("../types/index.js").ConstantAccessor<boolean, Datum>;
|
|
6
6
|
facet: "auto" | "include" | "exclude";
|
|
7
7
|
fx: ChannelAccessor<Datum>;
|
|
@@ -76,8 +76,15 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
76
76
|
*/
|
|
77
77
|
interval?: number | string;
|
|
78
78
|
};
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
exports: {};
|
|
80
|
+
bindings: "";
|
|
81
|
+
slots: {};
|
|
82
|
+
events: {};
|
|
83
|
+
};
|
|
84
|
+
declare class __sveltets_Render<Datum extends DataRow> {
|
|
85
|
+
props(): ReturnType<typeof $$render<Datum>>['props'];
|
|
86
|
+
events(): ReturnType<typeof $$render<Datum>>['events'];
|
|
87
|
+
slots(): ReturnType<typeof $$render<Datum>>['slots'];
|
|
81
88
|
bindings(): "";
|
|
82
89
|
exports(): {};
|
|
83
90
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ChannelAccessor, DataRecord } from '../types/index.js';
|
|
2
|
-
declare
|
|
3
|
-
props
|
|
2
|
+
declare function $$render<Datum extends DataRecord>(): {
|
|
3
|
+
props: Partial<{
|
|
4
4
|
filter: import("../types/index.js").ConstantAccessor<boolean, Datum>;
|
|
5
5
|
facet: "auto" | "include" | "exclude";
|
|
6
6
|
fx: ChannelAccessor<Datum>;
|
|
@@ -75,8 +75,15 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
75
75
|
*/
|
|
76
76
|
k?: number;
|
|
77
77
|
};
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
exports: {};
|
|
79
|
+
bindings: "";
|
|
80
|
+
slots: {};
|
|
81
|
+
events: {};
|
|
82
|
+
};
|
|
83
|
+
declare class __sveltets_Render<Datum extends DataRecord> {
|
|
84
|
+
props(): ReturnType<typeof $$render<Datum>>['props'];
|
|
85
|
+
events(): ReturnType<typeof $$render<Datum>>['events'];
|
|
86
|
+
slots(): ReturnType<typeof $$render<Datum>>['slots'];
|
|
80
87
|
bindings(): "";
|
|
81
88
|
exports(): {};
|
|
82
89
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ChannelAccessor, DataRecord } from '../types/index.js';
|
|
2
|
-
declare
|
|
3
|
-
props
|
|
2
|
+
declare function $$render<Datum extends DataRecord>(): {
|
|
3
|
+
props: Partial<{
|
|
4
4
|
filter: import("../types/index.js").ConstantAccessor<boolean, Datum>;
|
|
5
5
|
facet: "auto" | "include" | "exclude";
|
|
6
6
|
fx: ChannelAccessor<Datum>;
|
|
@@ -75,8 +75,15 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
75
75
|
*/
|
|
76
76
|
k?: number;
|
|
77
77
|
};
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
exports: {};
|
|
79
|
+
bindings: "";
|
|
80
|
+
slots: {};
|
|
81
|
+
events: {};
|
|
82
|
+
};
|
|
83
|
+
declare class __sveltets_Render<Datum extends DataRecord> {
|
|
84
|
+
props(): ReturnType<typeof $$render<Datum>>['props'];
|
|
85
|
+
events(): ReturnType<typeof $$render<Datum>>['events'];
|
|
86
|
+
slots(): ReturnType<typeof $$render<Datum>>['slots'];
|
|
80
87
|
bindings(): "";
|
|
81
88
|
exports(): {};
|
|
82
89
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ChannelAccessor, DataRecord } from '../types';
|
|
2
|
-
declare
|
|
3
|
-
props
|
|
2
|
+
declare function $$render<Datum extends DataRecord>(): {
|
|
3
|
+
props: Pick<Partial<{
|
|
4
4
|
filter: import("../types").ConstantAccessor<boolean, Datum>;
|
|
5
5
|
facet: "auto" | "include" | "exclude";
|
|
6
6
|
fx: ChannelAccessor<Datum>;
|
|
@@ -77,18 +77,25 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
77
77
|
/**
|
|
78
78
|
* Options for the tick marks that represent the median
|
|
79
79
|
*/
|
|
80
|
-
tickMedian:
|
|
80
|
+
tickMedian: Record<string, ChannelAccessor<Datum>> | boolean;
|
|
81
81
|
/**
|
|
82
82
|
* Options for the tick marks that represent the min/max range
|
|
83
83
|
*/
|
|
84
|
-
tickMinMax:
|
|
84
|
+
tickMinMax: Record<string, ChannelAccessor<Datum>> | boolean;
|
|
85
85
|
/**
|
|
86
86
|
* Options for the dot marks that represent the outliers
|
|
87
87
|
*/
|
|
88
88
|
dot: Record<string, ChannelAccessor<Datum>>;
|
|
89
89
|
};
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
exports: {};
|
|
91
|
+
bindings: "";
|
|
92
|
+
slots: {};
|
|
93
|
+
events: {};
|
|
94
|
+
};
|
|
95
|
+
declare class __sveltets_Render<Datum extends DataRecord> {
|
|
96
|
+
props(): ReturnType<typeof $$render<Datum>>['props'];
|
|
97
|
+
events(): ReturnType<typeof $$render<Datum>>['events'];
|
|
98
|
+
slots(): ReturnType<typeof $$render<Datum>>['slots'];
|
|
92
99
|
bindings(): "";
|
|
93
100
|
exports(): {};
|
|
94
101
|
}
|