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.
Files changed (65) hide show
  1. package/LICENSE.md +19 -1
  2. package/README.md +1 -1
  3. package/dist/Mark.svelte.d.ts +43 -36
  4. package/dist/helpers/data.d.ts +1 -0
  5. package/dist/helpers/data.js +1 -1
  6. package/dist/helpers/index.js +1 -2
  7. package/dist/helpers/time.js +1 -1
  8. package/dist/marks/Area.svelte.d.ts +11 -4
  9. package/dist/marks/AreaX.svelte.d.ts +11 -4
  10. package/dist/marks/Arrow.svelte.d.ts +42 -35
  11. package/dist/marks/AxisX.svelte.d.ts +15 -8
  12. package/dist/marks/AxisY.svelte.d.ts +14 -7
  13. package/dist/marks/BarX.svelte.d.ts +11 -4
  14. package/dist/marks/BarY.svelte.d.ts +11 -4
  15. package/dist/marks/BollingerX.svelte.d.ts +11 -4
  16. package/dist/marks/BollingerY.svelte.d.ts +11 -4
  17. package/dist/marks/BoxY.svelte.d.ts +13 -6
  18. package/dist/marks/Brush.svelte.d.ts +120 -31
  19. package/dist/marks/Cell.svelte.d.ts +41 -34
  20. package/dist/marks/CustomMark.svelte.d.ts +14 -7
  21. package/dist/marks/CustomMarkHTML.svelte.d.ts +15 -8
  22. package/dist/marks/DifferenceY.svelte.d.ts +11 -4
  23. package/dist/marks/Dot.svelte.d.ts +42 -35
  24. package/dist/marks/DotX.svelte.d.ts +11 -4
  25. package/dist/marks/DotY.svelte.d.ts +11 -4
  26. package/dist/marks/Frame.svelte.d.ts +84 -17
  27. package/dist/marks/Geo.svelte.d.ts +42 -35
  28. package/dist/marks/GridX.svelte.d.ts +12 -5
  29. package/dist/marks/GridY.svelte.d.ts +12 -5
  30. package/dist/marks/HTMLTooltip.svelte.d.ts +14 -7
  31. package/dist/marks/Image.svelte.d.ts +11 -4
  32. package/dist/marks/Line.svelte +1 -1
  33. package/dist/marks/Line.svelte.d.ts +42 -35
  34. package/dist/marks/LineX.svelte.d.ts +11 -4
  35. package/dist/marks/LineY.svelte.d.ts +11 -4
  36. package/dist/marks/Link.svelte.d.ts +41 -34
  37. package/dist/marks/Pointer.svelte.d.ts +13 -6
  38. package/dist/marks/Rect.svelte.d.ts +11 -4
  39. package/dist/marks/RectX.svelte.d.ts +10 -3
  40. package/dist/marks/RectY.svelte.d.ts +10 -3
  41. package/dist/marks/RuleX.svelte.d.ts +12 -5
  42. package/dist/marks/RuleY.svelte.d.ts +12 -5
  43. package/dist/marks/Spike.svelte.d.ts +11 -4
  44. package/dist/marks/Text.svelte.d.ts +18 -11
  45. package/dist/marks/TickX.svelte.d.ts +11 -4
  46. package/dist/marks/TickY.svelte.d.ts +11 -4
  47. package/dist/marks/Vector.svelte.d.ts +41 -34
  48. package/dist/marks/WaffleX.svelte.d.ts +12 -5
  49. package/dist/marks/WaffleY.svelte.d.ts +12 -5
  50. package/dist/marks/helpers/Anchor.svelte.d.ts +15 -8
  51. package/dist/marks/helpers/MarkerPath.svelte.d.ts +13 -68
  52. package/dist/marks/helpers/RectPath.svelte.d.ts +13 -68
  53. package/dist/marks/helpers/canvas.js +1 -1
  54. package/dist/marks/helpers/waffle.d.ts +6 -0
  55. package/dist/marks/helpers/waffle.js +6 -38
  56. package/dist/transforms/index.d.ts +1 -1
  57. package/dist/transforms/index.js +1 -1
  58. package/dist/transforms/normalize.js +45 -0
  59. package/dist/ui/ExamplesGrid.svelte +19 -3
  60. package/dist/ui/ExamplesPagePreview.svelte +149 -0
  61. package/dist/ui/ExamplesPagePreview.svelte.d.ts +12 -0
  62. package/dist/ui/isDark.svelte.d.ts +6 -0
  63. package/dist/ui/isDark.svelte.js +10 -0
  64. package/package.json +140 -128
  65. 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.png" alt="SveltePlot logo" width="401" />
7
+ <img src="static/logo.svg" alt="SveltePlot logo" width="401" />
8
8
 
9
9
  ## Development
10
10
 
@@ -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 class __sveltets_Render<Datum extends DataRecord> {
5
- props(): Partial<Partial<{
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.js").MouseEventHandler<SVGPathElement>;
35
- ondblclick: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
36
- onmouseup: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
37
- onmousedown: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
38
- onmouseenter: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
39
- onmousemove: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
40
- onmouseleave: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
41
- onmouseout: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
42
- onmouseover: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
43
- onpointercancel: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
44
- onpointerdown: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
45
- onpointerup: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
46
- onpointerenter: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
47
- onpointerleave: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
48
- onpointermove: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
49
- onpointerover: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
50
- onpointerout: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
51
- ondrag: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
52
- ondrop: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
53
- ondragstart: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
54
- ondragenter: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
55
- ondragleave: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
56
- ondragover: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
57
- ondragend: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
58
- ontouchstart: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
59
- ontouchmove: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
60
- ontouchend: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
61
- ontouchcancel: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
62
- oncontextmenu: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
63
- onwheel: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
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[] | undefined;
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
- }]> | undefined;
78
+ }]>;
79
79
  defaults?: Partial<Record<ScaledChannelName, RawValue>>;
80
80
  };
81
- events(): {};
82
- slots(): {};
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
  }
@@ -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
@@ -1,5 +1,5 @@
1
1
  import { csvParse, autoType } from 'd3-dsv';
2
- async function loadCSV(fetch, dataset) {
2
+ export async function loadCSV(fetch, dataset) {
3
3
  const res = await fetch(`/data/${dataset}.csv`);
4
4
  const text = await res.text();
5
5
  return csvParse(text, autoType);
@@ -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 = /^[+-]?(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?$/;
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;
@@ -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 = /^(?:(\d+)\s+)/.exec(name);
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 class __sveltets_Render<Datum extends DataRecord> {
5
- props(): Partial<{
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
- events(): {};
84
- slots(): {};
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 class __sveltets_Render<Datum extends DataRow> {
3
- props(): Omit<Partial<{
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
- events(): {};
85
- slots(): {};
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 class __sveltets_Render<Datum extends DataRecord> {
4
- props(): Omit<Partial<{
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.js").MouseEventHandler<SVGPathElement>;
34
- ondblclick: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
35
- onmouseup: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
36
- onmousedown: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
37
- onmouseenter: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
38
- onmousemove: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
39
- onmouseleave: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
40
- onmouseout: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
41
- onmouseover: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
42
- onpointercancel: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
43
- onpointerdown: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
44
- onpointerup: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
45
- onpointerenter: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
46
- onpointerleave: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
47
- onpointermove: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
48
- onpointerover: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
49
- onpointerout: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
50
- ondrag: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
51
- ondrop: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
52
- ondragstart: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
53
- ondragenter: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
54
- ondragleave: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
55
- ondragover: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
56
- ondragend: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
57
- ontouchstart: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
58
- ontouchmove: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
59
- ontouchend: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
60
- ontouchcancel: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
61
- oncontextmenu: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
62
- onwheel: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
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?: true | ConstantAccessor<number, Datum>;
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
- events(): {};
102
- slots(): {};
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 class __sveltets_Render<Datum extends RawValue> {
4
- props(): Omit<Partial<{
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[] | undefined;
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.NumberFormatOptions | Intl.DateTimeFormatOptions | ((d: RawValue, i: number) => string) | undefined;
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?: string | number | Datum[] | undefined;
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<"auto" | CSS.Property.TextAnchor, Datum>;
89
+ textAnchor?: ConstantAccessor<CSS.Property.TextAnchor | "auto", Datum>;
90
90
  removeDuplicateTicks: boolean;
91
91
  };
92
- events(): {};
93
- slots(): {};
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 class __sveltets_Render<Datum extends RawValue> {
3
- props(): Omit<Partial<{
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[] | undefined;
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.NumberFormatOptions | Intl.DateTimeFormatOptions | ((d: RawValue) => string) | undefined;
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?: string | number | Datum[] | undefined;
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
- events(): {};
91
- slots(): {};
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 class __sveltets_Render<Datum extends DataRow> {
5
- props(): Partial<{
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
- events(): {};
81
- slots(): {};
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 class __sveltets_Render<Datum extends DataRow> {
4
- props(): Partial<{
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
- events(): {};
80
- slots(): {};
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 class __sveltets_Render<Datum extends DataRecord> {
3
- props(): Partial<{
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
- events(): {};
79
- slots(): {};
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 class __sveltets_Render<Datum extends DataRecord> {
3
- props(): Partial<{
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
- events(): {};
79
- slots(): {};
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 class __sveltets_Render<Datum extends DataRecord> {
3
- props(): Pick<Partial<{
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: boolean | Record<string, ChannelAccessor<Datum>>;
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: boolean | Record<string, ChannelAccessor<Datum>>;
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
- events(): {};
91
- slots(): {};
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
  }