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
@@ -1,11 +1,11 @@
1
1
  import { type Snippet } from 'svelte';
2
2
  import type { ChannelAccessor, DataRow } from '../types/index.js';
3
- declare class __sveltets_Render<Datum extends DataRow> {
4
- props(): {
3
+ declare function $$render<Datum extends DataRow>(): {
4
+ props: {
5
5
  data: Datum[];
6
6
  children?: Snippet<[{
7
7
  data: Datum[];
8
- }]> | undefined;
8
+ }]>;
9
9
  x?: ChannelAccessor<Datum>;
10
10
  y?: ChannelAccessor<Datum>;
11
11
  z?: ChannelAccessor<Datum>;
@@ -24,10 +24,17 @@ declare class __sveltets_Render<Datum extends DataRow> {
24
24
  * called whenever the selection changes
25
25
  * @param data
26
26
  */
27
- onupdate?: ((data: Datum[]) => void) | undefined;
27
+ onupdate?: (data: Datum[]) => void;
28
28
  };
29
- events(): {};
30
- slots(): {};
29
+ exports: {};
30
+ bindings: "";
31
+ slots: {};
32
+ events: {};
33
+ };
34
+ declare class __sveltets_Render<Datum extends DataRow> {
35
+ props(): ReturnType<typeof $$render<Datum>>['props'];
36
+ events(): ReturnType<typeof $$render<Datum>>['events'];
37
+ slots(): ReturnType<typeof $$render<Datum>>['slots'];
31
38
  bindings(): "";
32
39
  exports(): {};
33
40
  }
@@ -1,6 +1,6 @@
1
1
  import type { DataRecord, BaseRectMarkProps, ChannelAccessor, LinkableMarkProps } 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>;
@@ -73,8 +73,15 @@ declare class __sveltets_Render<Datum extends DataRecord> {
73
73
  interval?: number | string;
74
74
  className?: string;
75
75
  };
76
- events(): {};
77
- slots(): {};
76
+ exports: {};
77
+ bindings: "";
78
+ slots: {};
79
+ events: {};
80
+ };
81
+ declare class __sveltets_Render<Datum extends DataRecord> {
82
+ props(): ReturnType<typeof $$render<Datum>>['props'];
83
+ events(): ReturnType<typeof $$render<Datum>>['events'];
84
+ slots(): ReturnType<typeof $$render<Datum>>['slots'];
78
85
  bindings(): "";
79
86
  exports(): {};
80
87
  }
@@ -5,10 +5,17 @@ import type { StackOptions } from '../transforms/stack.js';
5
5
  interface RectXMarkProps extends Omit<ComponentProps<typeof Rect>, 'y'> {
6
6
  stack?: Partial<StackOptions>;
7
7
  }
8
+ declare function $$render<Datum extends DataRecord>(): {
9
+ props: RectXMarkProps;
10
+ exports: {};
11
+ bindings: "";
12
+ slots: {};
13
+ events: {};
14
+ };
8
15
  declare class __sveltets_Render<Datum extends DataRecord> {
9
- props(): RectXMarkProps;
10
- events(): {};
11
- slots(): {};
16
+ props(): ReturnType<typeof $$render<Datum>>['props'];
17
+ events(): ReturnType<typeof $$render<Datum>>['events'];
18
+ slots(): ReturnType<typeof $$render<Datum>>['slots'];
12
19
  bindings(): "";
13
20
  exports(): {};
14
21
  }
@@ -5,10 +5,17 @@ import type { StackOptions } from '../transforms/stack.js';
5
5
  interface RectYMarkProps extends Omit<ComponentProps<typeof Rect>, 'y'> {
6
6
  stack?: Partial<StackOptions>;
7
7
  }
8
+ declare function $$render<Datum extends DataRecord>(): {
9
+ props: RectYMarkProps;
10
+ exports: {};
11
+ bindings: "";
12
+ slots: {};
13
+ events: {};
14
+ };
8
15
  declare class __sveltets_Render<Datum extends DataRecord> {
9
- props(): RectYMarkProps;
10
- events(): {};
11
- slots(): {};
16
+ props(): ReturnType<typeof $$render<Datum>>['props'];
17
+ events(): ReturnType<typeof $$render<Datum>>['events'];
18
+ slots(): ReturnType<typeof $$render<Datum>>['slots'];
12
19
  bindings(): "";
13
20
  exports(): {};
14
21
  }
@@ -1,6 +1,6 @@
1
1
  import type { DataRecord, ConstantAccessor, ChannelAccessor, RawValue } from '../types/index.js';
2
- declare class __sveltets_Render<Datum = DataRecord | RawValue> {
3
- props(): Omit<Partial<{
2
+ declare function $$render<Datum = DataRecord | RawValue>(): {
3
+ props: Omit<Partial<{
4
4
  filter: ConstantAccessor<boolean, Datum>;
5
5
  facet: "auto" | "include" | "exclude";
6
6
  fx: ChannelAccessor<Datum>;
@@ -63,7 +63,7 @@ declare class __sveltets_Render<Datum = DataRecord | RawValue> {
63
63
  style: string;
64
64
  cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
65
65
  }>, "fill" | "fillOpacity"> & {
66
- data?: Datum[] | undefined;
66
+ data?: Datum[];
67
67
  x?: ChannelAccessor<Datum>;
68
68
  y1?: ChannelAccessor<Datum>;
69
69
  y2?: ChannelAccessor<Datum>;
@@ -71,8 +71,15 @@ declare class __sveltets_Render<Datum = DataRecord | RawValue> {
71
71
  insetTop?: ConstantAccessor<number, Datum>;
72
72
  insetBottom?: ConstantAccessor<number, Datum>;
73
73
  };
74
- events(): {};
75
- slots(): {};
74
+ exports: {};
75
+ bindings: "";
76
+ slots: {};
77
+ events: {};
78
+ };
79
+ declare class __sveltets_Render<Datum = DataRecord | RawValue> {
80
+ props(): ReturnType<typeof $$render<Datum>>['props'];
81
+ events(): ReturnType<typeof $$render<Datum>>['events'];
82
+ slots(): ReturnType<typeof $$render<Datum>>['slots'];
76
83
  bindings(): "";
77
84
  exports(): {};
78
85
  }
@@ -1,6 +1,6 @@
1
1
  import type { DataRecord, ConstantAccessor, ChannelAccessor } from '../types/index.js';
2
- declare class __sveltets_Render<Datum = DataRecord> {
3
- props(): Omit<Partial<{
2
+ declare function $$render<Datum = DataRecord>(): {
3
+ props: Omit<Partial<{
4
4
  filter: ConstantAccessor<boolean, Datum>;
5
5
  facet: "auto" | "include" | "exclude";
6
6
  fx: ChannelAccessor<Datum>;
@@ -63,7 +63,7 @@ declare class __sveltets_Render<Datum = DataRecord> {
63
63
  style: string;
64
64
  cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
65
65
  }>, "fill" | "fillOpacity"> & {
66
- data?: Datum[] | undefined;
66
+ data?: Datum[];
67
67
  y?: ChannelAccessor<Datum>;
68
68
  x1?: ChannelAccessor<Datum>;
69
69
  x2?: ChannelAccessor<Datum>;
@@ -71,8 +71,15 @@ declare class __sveltets_Render<Datum = DataRecord> {
71
71
  insetLeft?: ConstantAccessor<number, Datum>;
72
72
  insetRight?: ConstantAccessor<number, Datum>;
73
73
  };
74
- events(): {};
75
- slots(): {};
74
+ exports: {};
75
+ bindings: "";
76
+ slots: {};
77
+ events: {};
78
+ };
79
+ declare class __sveltets_Render<Datum = DataRecord> {
80
+ props(): ReturnType<typeof $$render<Datum>>['props'];
81
+ events(): ReturnType<typeof $$render<Datum>>['events'];
82
+ slots(): ReturnType<typeof $$render<Datum>>['slots'];
76
83
  bindings(): "";
77
84
  exports(): {};
78
85
  }
@@ -1,6 +1,6 @@
1
1
  import type { ChannelAccessor, DataRecord } from '../types/index.js';
2
- declare class __sveltets_Render<Datum extends DataRecord> {
3
- props(): Omit<Partial<{
2
+ declare function $$render<Datum extends DataRecord>(): {
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 DataRecord> {
81
81
  length?: ChannelAccessor<Datum>;
82
82
  rotate?: ChannelAccessor<Datum>;
83
83
  };
84
- events(): {};
85
- slots(): {};
84
+ exports: {};
85
+ bindings: "";
86
+ slots: {};
87
+ events: {};
88
+ };
89
+ declare class __sveltets_Render<Datum extends DataRecord> {
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,8 +1,8 @@
1
1
  import type * as CSS from 'csstype';
2
2
  import { type Snippet } from 'svelte';
3
3
  import type { DataRecord, ConstantAccessor, ChannelAccessor, LinkableMarkProps } from '../types/index.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>;
@@ -65,24 +65,24 @@ declare class __sveltets_Render<Datum extends DataRecord> {
65
65
  style: string;
66
66
  cursor: ConstantAccessor<CSS.Property.Cursor, Datum>;
67
67
  }> & LinkableMarkProps<Datum> & {
68
- data?: Datum[] | undefined;
68
+ data?: Datum[];
69
69
  x?: ChannelAccessor<Datum>;
70
70
  y?: ChannelAccessor<Datum>;
71
71
  children?: Snippet;
72
- text: ConstantAccessor<string | false | null | undefined, Datum>;
72
+ text: ConstantAccessor<string | null | false | undefined, Datum>;
73
73
  title?: ConstantAccessor<string, Datum>;
74
74
  /**
75
75
  * the font size of the text
76
76
  */
77
77
  fontFamily?: ConstantAccessor<CSS.Property.FontFamily, Datum>;
78
- fontSize?: ConstantAccessor<number | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | (string & {}) | "small" | "math" | "large" | "medium" | "x-large" | "x-small" | "xx-large" | "xx-small" | "xxx-large" | "larger" | "smaller", Datum>;
78
+ fontSize?: ConstantAccessor<CSS.Property.FontSize | number, Datum>;
79
79
  fontWeight?: ConstantAccessor<CSS.Property.FontWeight, Datum>;
80
80
  fontStyle?: ConstantAccessor<CSS.Property.FontStyle, Datum>;
81
81
  fontVariant?: ConstantAccessor<CSS.Property.FontVariant, Datum>;
82
- letterSpacing?: ConstantAccessor<CSS.Property.LetterSpacing<0 | (string & {})>, Datum>;
83
- wordSpacing?: ConstantAccessor<CSS.Property.WordSpacing<0 | (string & {})>, Datum>;
82
+ letterSpacing?: ConstantAccessor<CSS.Property.LetterSpacing, Datum>;
83
+ wordSpacing?: ConstantAccessor<CSS.Property.WordSpacing, Datum>;
84
84
  textTransform?: ConstantAccessor<CSS.Property.TextTransform, Datum>;
85
- textDecoration?: ConstantAccessor<CSS.Property.TextDecoration<0 | (string & {})>, Datum>;
85
+ textDecoration?: ConstantAccessor<CSS.Property.TextDecoration, Datum>;
86
86
  /**
87
87
  * the horizontal text anchor; start, end, or middle
88
88
  */
@@ -100,14 +100,21 @@ declare class __sveltets_Render<Datum extends DataRecord> {
100
100
  * @default 1.2
101
101
  */
102
102
  lineHeight?: ConstantAccessor<number, Datum>;
103
- frameAnchor?: ConstantAccessor<"left" | "right" | "middle" | "top" | "bottom" | "top-left" | "bottom-left" | "top-right" | "bottom-right", Datum>;
103
+ frameAnchor?: ConstantAccessor<"bottom" | "top" | "left" | "right" | "top-left" | "bottom-left" | "top-right" | "bottom-right" | "middle", Datum>;
104
104
  /**
105
105
  * rotate text by angle in degrees
106
106
  */
107
107
  rotate?: ConstantAccessor<number, Datum>;
108
108
  };
109
- events(): {};
110
- slots(): {};
109
+ exports: {};
110
+ bindings: "";
111
+ slots: {};
112
+ events: {};
113
+ };
114
+ declare class __sveltets_Render<Datum extends DataRecord> {
115
+ props(): ReturnType<typeof $$render<Datum>>['props'];
116
+ events(): ReturnType<typeof $$render<Datum>>['events'];
117
+ slots(): ReturnType<typeof $$render<Datum>>['slots'];
111
118
  bindings(): "";
112
119
  exports(): {};
113
120
  }
@@ -1,6 +1,6 @@
1
1
  import type { ChannelAccessor, DataRow, ConstantAccessor } 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: ConstantAccessor<boolean, Datum>;
5
5
  facet: "auto" | "include" | "exclude";
6
6
  fx: ChannelAccessor<Datum>;
@@ -79,8 +79,15 @@ declare class __sveltets_Render<Datum extends DataRow> {
79
79
  */
80
80
  tickLength?: ConstantAccessor<number, Datum>;
81
81
  };
82
- events(): {};
83
- slots(): {};
82
+ exports: {};
83
+ bindings: "";
84
+ slots: {};
85
+ events: {};
86
+ };
87
+ declare class __sveltets_Render<Datum extends DataRow> {
88
+ props(): ReturnType<typeof $$render<Datum>>['props'];
89
+ events(): ReturnType<typeof $$render<Datum>>['events'];
90
+ slots(): ReturnType<typeof $$render<Datum>>['slots'];
84
91
  bindings(): "";
85
92
  exports(): {};
86
93
  }
@@ -1,6 +1,6 @@
1
1
  import type { ChannelAccessor, DataRow, ConstantAccessor } 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: ConstantAccessor<boolean, Datum>;
5
5
  facet: "auto" | "include" | "exclude";
6
6
  fx: ChannelAccessor<Datum>;
@@ -79,8 +79,15 @@ declare class __sveltets_Render<Datum extends DataRow> {
79
79
  */
80
80
  tickLength?: ConstantAccessor<number, Datum>;
81
81
  };
82
- events(): {};
83
- slots(): {};
82
+ exports: {};
83
+ bindings: "";
84
+ slots: {};
85
+ events: {};
86
+ };
87
+ declare class __sveltets_Render<Datum extends DataRow> {
88
+ props(): ReturnType<typeof $$render<Datum>>['props'];
89
+ events(): ReturnType<typeof $$render<Datum>>['events'];
90
+ slots(): ReturnType<typeof $$render<Datum>>['slots'];
84
91
  bindings(): "";
85
92
  exports(): {};
86
93
  }
@@ -4,8 +4,8 @@ export type ShapeRenderer = {
4
4
  };
5
5
  import type { DataRecord, ChannelAccessor } from '../types/index.js';
6
6
  import { type Snippet } from 'svelte';
7
- declare class __sveltets_Render<Datum extends DataRecord> {
8
- props(): Partial<{
7
+ declare function $$render<Datum extends DataRecord>(): {
8
+ props: Partial<{
9
9
  filter: import("../types/index.js").ConstantAccessor<boolean, Datum>;
10
10
  facet: "auto" | "include" | "exclude";
11
11
  fx: ChannelAccessor<Datum>;
@@ -34,36 +34,36 @@ declare class __sveltets_Render<Datum extends DataRecord> {
34
34
  imageFilter: import("../types/index.js").ConstantAccessor<string, Datum>;
35
35
  shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
36
36
  paintOrder: import("../types/index.js").ConstantAccessor<string, Datum>;
37
- onclick: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
38
- ondblclick: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
39
- onmouseup: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
40
- onmousedown: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
41
- onmouseenter: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
42
- onmousemove: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
43
- onmouseleave: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
44
- onmouseout: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
45
- onmouseover: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
46
- onpointercancel: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
47
- onpointerdown: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
48
- onpointerup: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
49
- onpointerenter: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
50
- onpointerleave: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
51
- onpointermove: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
52
- onpointerover: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
53
- onpointerout: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
54
- ondrag: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
55
- ondrop: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
56
- ondragstart: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
57
- ondragenter: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
58
- ondragleave: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
59
- ondragover: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
60
- ondragend: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
61
- ontouchstart: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
62
- ontouchmove: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
63
- ontouchend: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
64
- ontouchcancel: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
65
- oncontextmenu: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
66
- onwheel: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
37
+ onclick: import("svelte/elements").MouseEventHandler<SVGPathElement>;
38
+ ondblclick: import("svelte/elements").MouseEventHandler<SVGPathElement>;
39
+ onmouseup: import("svelte/elements").MouseEventHandler<SVGPathElement>;
40
+ onmousedown: import("svelte/elements").MouseEventHandler<SVGPathElement>;
41
+ onmouseenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
42
+ onmousemove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
43
+ onmouseleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
44
+ onmouseout: import("svelte/elements").MouseEventHandler<SVGPathElement>;
45
+ onmouseover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
46
+ onpointercancel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
47
+ onpointerdown: import("svelte/elements").MouseEventHandler<SVGPathElement>;
48
+ onpointerup: import("svelte/elements").MouseEventHandler<SVGPathElement>;
49
+ onpointerenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
50
+ onpointerleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
51
+ onpointermove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
52
+ onpointerover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
53
+ onpointerout: import("svelte/elements").MouseEventHandler<SVGPathElement>;
54
+ ondrag: import("svelte/elements").MouseEventHandler<SVGPathElement>;
55
+ ondrop: import("svelte/elements").MouseEventHandler<SVGPathElement>;
56
+ ondragstart: import("svelte/elements").MouseEventHandler<SVGPathElement>;
57
+ ondragenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
58
+ ondragleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
59
+ ondragover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
60
+ ondragend: import("svelte/elements").MouseEventHandler<SVGPathElement>;
61
+ ontouchstart: import("svelte/elements").MouseEventHandler<SVGPathElement>;
62
+ ontouchmove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
63
+ ontouchend: import("svelte/elements").MouseEventHandler<SVGPathElement>;
64
+ ontouchcancel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
65
+ oncontextmenu: import("svelte/elements").MouseEventHandler<SVGPathElement>;
66
+ onwheel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
67
67
  class: string;
68
68
  style: string;
69
69
  cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
@@ -85,8 +85,15 @@ declare class __sveltets_Render<Datum extends DataRecord> {
85
85
  children?: Snippet;
86
86
  canvas?: boolean;
87
87
  };
88
- events(): {};
89
- slots(): {};
88
+ exports: {};
89
+ bindings: "";
90
+ slots: {};
91
+ events: {};
92
+ };
93
+ declare class __sveltets_Render<Datum extends DataRecord> {
94
+ props(): ReturnType<typeof $$render<Datum>>['props'];
95
+ events(): ReturnType<typeof $$render<Datum>>['events'];
96
+ slots(): ReturnType<typeof $$render<Datum>>['slots'];
90
97
  bindings(): "";
91
98
  exports(): {};
92
99
  }
@@ -1,8 +1,8 @@
1
1
  import type { DataRecord, ChannelAccessor, LinkableMarkProps } from '../types';
2
2
  import { type WaffleOptions } from './helpers/waffle';
3
3
  import type { StackOptions } from '../transforms/stack';
4
- declare class __sveltets_Render<Datum extends DataRecord> {
5
- props(): Partial<{
4
+ declare function $$render<Datum extends DataRecord>(): {
5
+ props: Partial<{
6
6
  filter: import("../types").ConstantAccessor<boolean, Datum>;
7
7
  facet: "auto" | "include" | "exclude";
8
8
  fx: ChannelAccessor<Datum>;
@@ -65,7 +65,7 @@ declare class __sveltets_Render<Datum extends DataRecord> {
65
65
  style: string;
66
66
  cursor: import("../types").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
67
67
  }> & LinkableMarkProps<Datum> & WaffleOptions<Datum> & {
68
- data?: Datum[] | undefined;
68
+ data?: Datum[];
69
69
  /**
70
70
  * bound to a quantitative scale
71
71
  */
@@ -84,8 +84,15 @@ declare class __sveltets_Render<Datum extends DataRecord> {
84
84
  y?: ChannelAccessor<Datum>;
85
85
  stack?: StackOptions;
86
86
  };
87
- events(): {};
88
- slots(): {};
87
+ exports: {};
88
+ bindings: "";
89
+ slots: {};
90
+ events: {};
91
+ };
92
+ declare class __sveltets_Render<Datum extends DataRecord> {
93
+ props(): ReturnType<typeof $$render<Datum>>['props'];
94
+ events(): ReturnType<typeof $$render<Datum>>['events'];
95
+ slots(): ReturnType<typeof $$render<Datum>>['slots'];
89
96
  bindings(): "";
90
97
  exports(): {};
91
98
  }
@@ -1,7 +1,7 @@
1
1
  import type { DataRecord, ChannelAccessor, LinkableMarkProps } from '../types';
2
2
  import { type WaffleOptions } from './helpers/waffle';
3
- declare class __sveltets_Render<Datum extends DataRecord> {
4
- props(): Partial<{
3
+ declare function $$render<Datum extends DataRecord>(): {
4
+ props: Partial<{
5
5
  filter: import("../types").ConstantAccessor<boolean, Datum>;
6
6
  facet: "auto" | "include" | "exclude";
7
7
  fx: ChannelAccessor<Datum>;
@@ -64,7 +64,7 @@ declare class __sveltets_Render<Datum extends DataRecord> {
64
64
  style: string;
65
65
  cursor: import("../types").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
66
66
  }> & LinkableMarkProps<Datum> & WaffleOptions<Datum> & {
67
- data?: Datum[] | undefined;
67
+ data?: Datum[];
68
68
  /**
69
69
  * bound to a babd scale
70
70
  */
@@ -82,8 +82,15 @@ declare class __sveltets_Render<Datum extends DataRecord> {
82
82
  */
83
83
  y2?: ChannelAccessor<Datum>;
84
84
  };
85
- events(): {};
86
- slots(): {};
85
+ exports: {};
86
+ bindings: "";
87
+ slots: {};
88
+ events: {};
89
+ };
90
+ declare class __sveltets_Render<Datum extends DataRecord> {
91
+ props(): ReturnType<typeof $$render<Datum>>['props'];
92
+ events(): ReturnType<typeof $$render<Datum>>['events'];
93
+ slots(): ReturnType<typeof $$render<Datum>>['slots'];
87
94
  bindings(): "";
88
95
  exports(): {};
89
96
  }
@@ -1,19 +1,26 @@
1
1
  import type { ConstantAccessor } from '../../types';
2
- declare class __sveltets_Render<Datum extends Record<string, any>> {
3
- props(): {
4
- datum?: Datum | undefined;
2
+ declare function $$render<Datum extends Record<string, any>>(): {
3
+ props: {
4
+ datum?: Datum;
5
5
  options?: {
6
- [key: string]: any;
7
6
  href?: ConstantAccessor<string, Datum>;
8
7
  target?: ConstantAccessor<string, Datum>;
9
8
  rel?: ConstantAccessor<string, Datum>;
10
9
  type?: ConstantAccessor<string, Datum>;
11
10
  download?: ConstantAccessor<string, Datum>;
12
- } | undefined;
13
- children?: (() => any) | undefined;
11
+ [key: string]: any;
12
+ };
13
+ children?: () => any;
14
14
  };
15
- events(): {};
16
- slots(): {};
15
+ exports: {};
16
+ bindings: "";
17
+ slots: {};
18
+ events: {};
19
+ };
20
+ declare class __sveltets_Render<Datum extends Record<string, any>> {
21
+ props(): ReturnType<typeof $$render<Datum>>['props'];
22
+ events(): ReturnType<typeof $$render<Datum>>['events'];
23
+ slots(): ReturnType<typeof $$render<Datum>>['slots'];
17
24
  bindings(): "";
18
25
  exports(): {};
19
26
  }
@@ -1,7 +1,7 @@
1
1
  import { type MarkerShape } from './Marker.svelte';
2
- import type { ConstantAccessor, DataRecord, Mark, PlotScales } from '../../types/index.js';
3
- declare class __sveltets_Render<Datum extends DataRecord> {
4
- props(): Partial<{
2
+ import type { BaseMarkProps, ConstantAccessor, DataRecord, Mark, PlotScales } from '../../types/index.js';
3
+ declare function $$render<Datum extends DataRecord>(): {
4
+ props: Partial<{
5
5
  filter: ConstantAccessor<boolean, Datum>;
6
6
  facet: "auto" | "include" | "exclude";
7
7
  fx: import("../../types/index.js").ChannelAccessor<Datum>;
@@ -98,73 +98,18 @@ declare class __sveltets_Render<Datum extends DataRecord> {
98
98
  transform: string;
99
99
  color: string;
100
100
  strokeWidth: ConstantAccessor<number>;
101
- mark: Mark<Partial<{
102
- filter: ConstantAccessor<boolean, Datum>;
103
- facet: "auto" | "include" | "exclude";
104
- fx: import("../../types/index.js").ChannelAccessor<Datum>;
105
- fy: import("../../types/index.js").ChannelAccessor<Datum>;
106
- dx: ConstantAccessor<number, Datum>;
107
- dy: ConstantAccessor<number, Datum>;
108
- dodgeX: import("../../transforms/dodge").DodgeXOptions;
109
- dodgeY: import("../../transforms/dodge").DodgeYOptions;
110
- fill: import("../../types/index.js").ChannelAccessor<Datum>;
111
- fillOpacity: ConstantAccessor<number, Datum>;
112
- sort: ((a: import("../../types/index.js").RawValue, b: import("../../types/index.js").RawValue) => number) | {
113
- channel: string;
114
- order?: "ascending" | "descending";
115
- } | ConstantAccessor<import("../../types/index.js").RawValue, Datum>;
116
- stroke: import("../../types/index.js").ChannelAccessor<Datum>;
117
- strokeWidth: ConstantAccessor<number, Datum>;
118
- strokeOpacity: ConstantAccessor<number, Datum>;
119
- strokeLinejoin: ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
120
- strokeLinecap: ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
121
- strokeMiterlimit: ConstantAccessor<number, Datum>;
122
- opacity: import("../../types/index.js").ChannelAccessor<Datum>;
123
- strokeDasharray: ConstantAccessor<string, Datum>;
124
- strokeDashoffset: ConstantAccessor<number, Datum>;
125
- mixBlendMode: ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
126
- clipPath: string;
127
- imageFilter: ConstantAccessor<string, Datum>;
128
- shapeRendering: ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
129
- paintOrder: ConstantAccessor<string, Datum>;
130
- onclick: import("svelte/elements").MouseEventHandler<SVGPathElement>;
131
- ondblclick: import("svelte/elements").MouseEventHandler<SVGPathElement>;
132
- onmouseup: import("svelte/elements").MouseEventHandler<SVGPathElement>;
133
- onmousedown: import("svelte/elements").MouseEventHandler<SVGPathElement>;
134
- onmouseenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
135
- onmousemove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
136
- onmouseleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
137
- onmouseout: import("svelte/elements").MouseEventHandler<SVGPathElement>;
138
- onmouseover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
139
- onpointercancel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
140
- onpointerdown: import("svelte/elements").MouseEventHandler<SVGPathElement>;
141
- onpointerup: import("svelte/elements").MouseEventHandler<SVGPathElement>;
142
- onpointerenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
143
- onpointerleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
144
- onpointermove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
145
- onpointerover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
146
- onpointerout: import("svelte/elements").MouseEventHandler<SVGPathElement>;
147
- ondrag: import("svelte/elements").MouseEventHandler<SVGPathElement>;
148
- ondrop: import("svelte/elements").MouseEventHandler<SVGPathElement>;
149
- ondragstart: import("svelte/elements").MouseEventHandler<SVGPathElement>;
150
- ondragenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
151
- ondragleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
152
- ondragover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
153
- ondragend: import("svelte/elements").MouseEventHandler<SVGPathElement>;
154
- ontouchstart: import("svelte/elements").MouseEventHandler<SVGPathElement>;
155
- ontouchmove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
156
- ontouchend: import("svelte/elements").MouseEventHandler<SVGPathElement>;
157
- ontouchcancel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
158
- oncontextmenu: import("svelte/elements").MouseEventHandler<SVGPathElement>;
159
- onwheel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
160
- class: string;
161
- style: string;
162
- cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
163
- }>>;
101
+ mark: Mark<BaseMarkProps<Datum>>;
164
102
  scales: PlotScales;
165
103
  };
166
- events(): {};
167
- slots(): {};
104
+ exports: {};
105
+ bindings: "";
106
+ slots: {};
107
+ events: {};
108
+ };
109
+ declare class __sveltets_Render<Datum extends DataRecord> {
110
+ props(): ReturnType<typeof $$render<Datum>>['props'];
111
+ events(): ReturnType<typeof $$render<Datum>>['events'];
112
+ slots(): ReturnType<typeof $$render<Datum>>['slots'];
168
113
  bindings(): "";
169
114
  exports(): {};
170
115
  }