svelteplot 0.10.1-pr-357.2 → 0.10.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 (85) hide show
  1. package/dist/Mark.svelte.d.ts +4 -4
  2. package/dist/constants.d.ts +1 -1
  3. package/dist/helpers/colors.d.ts +11 -8
  4. package/dist/helpers/curves.d.ts +2 -2
  5. package/dist/helpers/facets.d.ts +1 -1
  6. package/dist/helpers/getBaseStyles.d.ts +4 -2
  7. package/dist/helpers/index.d.ts +1 -1
  8. package/dist/helpers/reduce.d.ts +1 -1
  9. package/dist/helpers/scales.d.ts +7 -7
  10. package/dist/helpers/symbols.d.ts +1 -1
  11. package/dist/helpers/time.d.ts +3 -3
  12. package/dist/helpers/typeChecks.d.ts +4 -4
  13. package/dist/marks/Area.svelte.d.ts +4 -5
  14. package/dist/marks/AreaX.svelte.d.ts +4 -4
  15. package/dist/marks/AreaY.svelte +0 -1
  16. package/dist/marks/Arrow.svelte.d.ts +4 -5
  17. package/dist/marks/AxisX.svelte.d.ts +5 -6
  18. package/dist/marks/AxisY.svelte.d.ts +5 -6
  19. package/dist/marks/BarX.svelte.d.ts +4 -4
  20. package/dist/marks/BarY.svelte.d.ts +4 -5
  21. package/dist/marks/BollingerX.svelte.d.ts +77 -2
  22. package/dist/marks/BollingerY.svelte.d.ts +77 -2
  23. package/dist/marks/BoxY.svelte.d.ts +64 -1
  24. package/dist/marks/Brush.svelte.d.ts +64 -1
  25. package/dist/marks/Cell.svelte.d.ts +4 -5
  26. package/dist/marks/CellX.svelte.d.ts +30 -30
  27. package/dist/marks/CellY.svelte.d.ts +30 -30
  28. package/dist/marks/CustomMark.svelte.d.ts +85 -2
  29. package/dist/marks/DifferenceY.svelte.d.ts +64 -1
  30. package/dist/marks/Dot.svelte.d.ts +4 -5
  31. package/dist/marks/DotX.svelte.d.ts +5 -5
  32. package/dist/marks/DotY.svelte.d.ts +5 -5
  33. package/dist/marks/Frame.svelte.d.ts +5 -6
  34. package/dist/marks/Geo.svelte.d.ts +4 -5
  35. package/dist/marks/GridX.svelte.d.ts +4 -5
  36. package/dist/marks/GridY.svelte.d.ts +4 -5
  37. package/dist/marks/Image.svelte.d.ts +4 -5
  38. package/dist/marks/Line.svelte.d.ts +4 -4
  39. package/dist/marks/LineX.svelte.d.ts +6 -6
  40. package/dist/marks/LineY.svelte.d.ts +6 -6
  41. package/dist/marks/Link.svelte.d.ts +4 -5
  42. package/dist/marks/Rect.svelte.d.ts +4 -5
  43. package/dist/marks/RuleX.svelte.d.ts +4 -5
  44. package/dist/marks/RuleY.svelte.d.ts +4 -5
  45. package/dist/marks/Spike.svelte.d.ts +5 -5
  46. package/dist/marks/Text.svelte.d.ts +8 -9
  47. package/dist/marks/TickX.svelte.d.ts +4 -5
  48. package/dist/marks/TickY.svelte.d.ts +4 -5
  49. package/dist/marks/Trail.svelte.d.ts +64 -1
  50. package/dist/marks/Vector.svelte.d.ts +4 -5
  51. package/dist/marks/WaffleX.svelte.d.ts +86 -2
  52. package/dist/marks/WaffleY.svelte.d.ts +4 -5
  53. package/dist/marks/helpers/Box.svelte.d.ts +64 -1
  54. package/dist/marks/helpers/MarkerPath.svelte.d.ts +107 -2
  55. package/dist/transforms/centroid.d.ts +4 -1
  56. package/dist/transforms/interval.d.ts +18 -18
  57. package/dist/transforms/recordize.d.ts +7 -4
  58. package/dist/transforms/rename.d.ts +1 -1
  59. package/dist/transforms/select.d.ts +182 -182
  60. package/dist/transforms/sort.d.ts +39 -34
  61. package/dist/transforms/stack.d.ts +12 -12
  62. package/dist/transforms/window.d.ts +136 -2
  63. package/dist/ui/Checkbox.svelte +14 -0
  64. package/dist/ui/Checkbox.svelte.d.ts +13 -0
  65. package/dist/ui/ExamplesGrid.svelte +81 -0
  66. package/dist/ui/ExamplesGrid.svelte.d.ts +11 -0
  67. package/dist/ui/ExamplesPageList.svelte +63 -0
  68. package/dist/ui/ExamplesPageList.svelte.d.ts +12 -0
  69. package/dist/ui/ExamplesPagePreview.svelte +145 -0
  70. package/dist/ui/ExamplesPagePreview.svelte.d.ts +12 -0
  71. package/dist/ui/RadioInput.svelte +27 -0
  72. package/dist/ui/RadioInput.svelte.d.ts +9 -0
  73. package/dist/ui/Select.svelte +27 -0
  74. package/dist/ui/Select.svelte.d.ts +9 -0
  75. package/dist/ui/Slider.svelte +47 -0
  76. package/dist/ui/Slider.svelte.d.ts +11 -0
  77. package/dist/ui/Spiral.svelte +35 -0
  78. package/dist/ui/Spiral.svelte.d.ts +15 -0
  79. package/dist/ui/index.d.ts +4 -0
  80. package/dist/ui/index.js +4 -0
  81. package/dist/ui/isDark.svelte.d.ts +6 -0
  82. package/dist/ui/isDark.svelte.js +10 -0
  83. package/package.json +1 -1
  84. package/dist/marks/AreaY.svelte.d.ts +0 -110
  85. package/dist/transforms/normalize.d.ts +0 -34
@@ -1,27 +1,28 @@
1
1
  import type { DataRow, TransformArg } from '../types/index.js';
2
- export declare const SORT_KEY: any;
3
- export declare const IS_SORTED: any;
2
+ export declare const SORT_KEY: unique symbol;
3
+ export declare const IS_SORTED: unique symbol;
4
4
  export declare function sort<T>({ data, ...channels }: TransformArg<T>, options?: {
5
5
  reverse?: boolean;
6
6
  }): {
7
+ [IS_SORTED]: string | number | true | symbol | object;
7
8
  sort: null;
8
9
  filter?: import("../types/index.js").ConstantAccessor<boolean, T>;
9
10
  facet?: "auto" | "include" | "exclude" | undefined;
10
- fx?: import("../types/channel.js").ChannelAccessor<T>;
11
- fy?: import("../types/channel.js").ChannelAccessor<T>;
11
+ fx?: import("../types/index.js").ChannelAccessor<T>;
12
+ fy?: import("../types/index.js").ChannelAccessor<T>;
12
13
  dx?: import("../types/index.js").ConstantAccessor<number, T>;
13
14
  dy?: import("../types/index.js").ConstantAccessor<number, T>;
14
- dodgeX?: DodgeXOptions;
15
- dodgeY?: DodgeYOptions;
16
- fill?: import("../types/channel.js").ChannelAccessor<T>;
15
+ dodgeX?: import("./dodge").DodgeXOptions | undefined;
16
+ dodgeY?: import("./dodge").DodgeYOptions | undefined;
17
+ fill?: import("../types/index.js").ChannelAccessor<T>;
17
18
  fillOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
18
- stroke?: import("../types/channel.js").ChannelAccessor<T>;
19
+ stroke?: import("../types/index.js").ChannelAccessor<T>;
19
20
  strokeWidth?: import("../types/index.js").ConstantAccessor<number, T>;
20
21
  strokeOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
21
22
  strokeLinejoin?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, T>;
22
23
  strokeLinecap?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, T>;
23
24
  strokeMiterlimit?: import("../types/index.js").ConstantAccessor<number, T>;
24
- opacity?: import("../types/channel.js").ChannelAccessor<T>;
25
+ opacity?: import("../types/index.js").ChannelAccessor<T>;
25
26
  strokeDasharray?: import("../types/index.js").ConstantAccessor<string, T>;
26
27
  strokeDashoffset?: import("../types/index.js").ConstantAccessor<number, T>;
27
28
  mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, T>;
@@ -63,29 +64,31 @@ export declare function sort<T>({ data, ...channels }: TransformArg<T>, options?
63
64
  class?: string | undefined;
64
65
  style?: string | undefined;
65
66
  cursor?: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, T>;
66
- data: any;
67
+ data: T[] | Omit<T & {
68
+ [SORT_KEY]: string | number | Date;
69
+ }, typeof SORT_KEY>[];
67
70
  } | {
68
71
  filter?: import("../types/index.js").ConstantAccessor<boolean, T>;
69
72
  facet?: "auto" | "include" | "exclude" | undefined;
70
- fx?: import("../types/channel.js").ChannelAccessor<T>;
71
- fy?: import("../types/channel.js").ChannelAccessor<T>;
73
+ fx?: import("../types/index.js").ChannelAccessor<T>;
74
+ fy?: import("../types/index.js").ChannelAccessor<T>;
72
75
  dx?: import("../types/index.js").ConstantAccessor<number, T>;
73
76
  dy?: import("../types/index.js").ConstantAccessor<number, T>;
74
- dodgeX?: DodgeXOptions;
75
- dodgeY?: DodgeYOptions;
76
- fill?: import("../types/channel.js").ChannelAccessor<T>;
77
+ dodgeX?: import("./dodge").DodgeXOptions | undefined;
78
+ dodgeY?: import("./dodge").DodgeYOptions | undefined;
79
+ fill?: import("../types/index.js").ChannelAccessor<T>;
77
80
  fillOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
78
- sort?: {
81
+ sort?: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
79
82
  channel: string;
80
83
  order?: "ascending" | "descending";
81
- } | ((a: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data.js").RawValue, T>;
82
- stroke?: import("../types/channel.js").ChannelAccessor<T>;
84
+ } | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, T>;
85
+ stroke?: import("../types/index.js").ChannelAccessor<T>;
83
86
  strokeWidth?: import("../types/index.js").ConstantAccessor<number, T>;
84
87
  strokeOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
85
88
  strokeLinejoin?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, T>;
86
89
  strokeLinecap?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, T>;
87
90
  strokeMiterlimit?: import("../types/index.js").ConstantAccessor<number, T>;
88
- opacity?: import("../types/channel.js").ChannelAccessor<T>;
91
+ opacity?: import("../types/index.js").ChannelAccessor<T>;
89
92
  strokeDasharray?: import("../types/index.js").ConstantAccessor<string, T>;
90
93
  strokeDashoffset?: import("../types/index.js").ConstantAccessor<number, T>;
91
94
  mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, T>;
@@ -136,23 +139,24 @@ export declare function shuffle({ data, ...channels }: TransformArg<DataRow[]>,
136
139
  seed?: number;
137
140
  }): {
138
141
  sort: null;
142
+ [IS_SORTED]: boolean;
139
143
  filter?: import("../types/index.js").ConstantAccessor<boolean, DataRow[]>;
140
144
  facet?: "auto" | "include" | "exclude" | undefined;
141
- fx?: import("../types/channel.js").ChannelAccessor<DataRow[]>;
142
- fy?: import("../types/channel.js").ChannelAccessor<DataRow[]>;
145
+ fx?: import("../types/index.js").ChannelAccessor<DataRow[]>;
146
+ fy?: import("../types/index.js").ChannelAccessor<DataRow[]>;
143
147
  dx?: import("../types/index.js").ConstantAccessor<number, DataRow[]>;
144
148
  dy?: import("../types/index.js").ConstantAccessor<number, DataRow[]>;
145
- dodgeX?: DodgeXOptions;
146
- dodgeY?: DodgeYOptions;
147
- fill?: import("../types/channel.js").ChannelAccessor<DataRow[]>;
149
+ dodgeX?: import("./dodge").DodgeXOptions | undefined;
150
+ dodgeY?: import("./dodge").DodgeYOptions | undefined;
151
+ fill?: import("../types/index.js").ChannelAccessor<DataRow[]>;
148
152
  fillOpacity?: import("../types/index.js").ConstantAccessor<number, DataRow[]>;
149
- stroke?: import("../types/channel.js").ChannelAccessor<DataRow[]>;
153
+ stroke?: import("../types/index.js").ChannelAccessor<DataRow[]>;
150
154
  strokeWidth?: import("../types/index.js").ConstantAccessor<number, DataRow[]>;
151
155
  strokeOpacity?: import("../types/index.js").ConstantAccessor<number, DataRow[]>;
152
156
  strokeLinejoin?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, DataRow[]>;
153
157
  strokeLinecap?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, DataRow[]>;
154
158
  strokeMiterlimit?: import("../types/index.js").ConstantAccessor<number, DataRow[]>;
155
- opacity?: import("../types/channel.js").ChannelAccessor<DataRow[]>;
159
+ opacity?: import("../types/index.js").ChannelAccessor<DataRow[]>;
156
160
  strokeDasharray?: import("../types/index.js").ConstantAccessor<string, DataRow[]>;
157
161
  strokeDashoffset?: import("../types/index.js").ConstantAccessor<number, DataRow[]>;
158
162
  mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, DataRow[]>;
@@ -201,23 +205,24 @@ export declare function shuffle({ data, ...channels }: TransformArg<DataRow[]>,
201
205
  */
202
206
  export declare function reverse({ data, ...channels }: TransformArg<DataRow[]>): {
203
207
  sort: null;
208
+ [IS_SORTED]: boolean;
204
209
  filter?: import("../types/index.js").ConstantAccessor<boolean, DataRow[]>;
205
210
  facet?: "auto" | "include" | "exclude" | undefined;
206
- fx?: import("../types/channel.js").ChannelAccessor<DataRow[]>;
207
- fy?: import("../types/channel.js").ChannelAccessor<DataRow[]>;
211
+ fx?: import("../types/index.js").ChannelAccessor<DataRow[]>;
212
+ fy?: import("../types/index.js").ChannelAccessor<DataRow[]>;
208
213
  dx?: import("../types/index.js").ConstantAccessor<number, DataRow[]>;
209
214
  dy?: import("../types/index.js").ConstantAccessor<number, DataRow[]>;
210
- dodgeX?: DodgeXOptions;
211
- dodgeY?: DodgeYOptions;
212
- fill?: import("../types/channel.js").ChannelAccessor<DataRow[]>;
215
+ dodgeX?: import("./dodge").DodgeXOptions | undefined;
216
+ dodgeY?: import("./dodge").DodgeYOptions | undefined;
217
+ fill?: import("../types/index.js").ChannelAccessor<DataRow[]>;
213
218
  fillOpacity?: import("../types/index.js").ConstantAccessor<number, DataRow[]>;
214
- stroke?: import("../types/channel.js").ChannelAccessor<DataRow[]>;
219
+ stroke?: import("../types/index.js").ChannelAccessor<DataRow[]>;
215
220
  strokeWidth?: import("../types/index.js").ConstantAccessor<number, DataRow[]>;
216
221
  strokeOpacity?: import("../types/index.js").ConstantAccessor<number, DataRow[]>;
217
222
  strokeLinejoin?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, DataRow[]>;
218
223
  strokeLinecap?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, DataRow[]>;
219
224
  strokeMiterlimit?: import("../types/index.js").ConstantAccessor<number, DataRow[]>;
220
- opacity?: import("../types/channel.js").ChannelAccessor<DataRow[]>;
225
+ opacity?: import("../types/index.js").ChannelAccessor<DataRow[]>;
221
226
  strokeDasharray?: import("../types/index.js").ConstantAccessor<string, DataRow[]>;
222
227
  strokeDashoffset?: import("../types/index.js").ConstantAccessor<number, DataRow[]>;
223
228
  mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, DataRow[]>;
@@ -259,5 +264,5 @@ export declare function reverse({ data, ...channels }: TransformArg<DataRow[]>):
259
264
  class?: string | undefined;
260
265
  style?: string | undefined;
261
266
  cursor?: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, DataRow[]>;
262
- data: any;
267
+ data: DataRow[][];
263
268
  };
@@ -12,21 +12,21 @@ export declare function stackMosaicX<T>(args: any, opts: any): {
12
12
  fx: ChannelAccessor<unknown>;
13
13
  fy: ChannelAccessor<unknown>;
14
14
  data: unknown[];
15
- x: any;
16
- x1: any;
17
- x2: any;
18
- y: any;
19
- y1: any;
20
- y2: any;
15
+ x: symbol;
16
+ x1: symbol;
17
+ x2: symbol;
18
+ y: symbol;
19
+ y1: symbol;
20
+ y2: symbol;
21
21
  };
22
22
  export declare function stackMosaicY<T>(args: any, opts: any): {
23
23
  fx: ChannelAccessor<unknown>;
24
24
  fy: ChannelAccessor<unknown>;
25
25
  data: unknown[];
26
- x: any;
27
- x1: any;
28
- x2: any;
29
- y: any;
30
- y1: any;
31
- y2: any;
26
+ x: symbol;
27
+ x1: symbol;
28
+ x2: symbol;
29
+ y: symbol;
30
+ y1: symbol;
31
+ y2: symbol;
32
32
  };
@@ -7,6 +7,140 @@ type WindowOptions = {
7
7
  reduce: ReducerName;
8
8
  strict: boolean;
9
9
  };
10
- export declare function windowX(args: TransformArg<DataRecord>, options: WindowOptions): any;
11
- export declare function windowY(args: TransformArg<DataRecord>, options: WindowOptions): any;
10
+ export declare function windowX(args: TransformArg<DataRecord>, options: WindowOptions): {
11
+ filter?: import("../types/index.js").ConstantAccessor<boolean, Record<string | symbol, import("../types/index.js").RawValue>>;
12
+ facet?: "auto" | "include" | "exclude" | undefined;
13
+ fx?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
14
+ fy?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
15
+ dx?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
16
+ dy?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
17
+ dodgeX?: import("./dodge").DodgeXOptions | undefined;
18
+ dodgeY?: import("./dodge").DodgeYOptions | undefined;
19
+ fill?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
20
+ fillOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
21
+ sort?: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
22
+ channel: string;
23
+ order?: "ascending" | "descending";
24
+ } | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Record<string | symbol, import("../types/index.js").RawValue>>;
25
+ stroke?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
26
+ strokeWidth?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
27
+ strokeOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
28
+ strokeLinejoin?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Record<string | symbol, import("../types/index.js").RawValue>>;
29
+ strokeLinecap?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Record<string | symbol, import("../types/index.js").RawValue>>;
30
+ strokeMiterlimit?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
31
+ opacity?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
32
+ strokeDasharray?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
33
+ strokeDashoffset?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
34
+ mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Record<string | symbol, import("../types/index.js").RawValue>>;
35
+ clipPath?: string | undefined;
36
+ mask?: string | undefined;
37
+ imageFilter?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
38
+ shapeRendering?: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Record<string | symbol, import("../types/index.js").RawValue>>;
39
+ paintOrder?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
40
+ onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
41
+ ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
42
+ onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
43
+ onmousedown?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
44
+ onmouseenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
45
+ onmousemove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
46
+ onmouseleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
47
+ onmouseout?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
48
+ onmouseover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
49
+ onpointercancel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
50
+ onpointerdown?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
51
+ onpointerup?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
52
+ onpointerenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
53
+ onpointerleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
54
+ onpointermove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
55
+ onpointerover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
56
+ onpointerout?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
57
+ ondrag?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
58
+ ondrop?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
59
+ ondragstart?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
60
+ ondragenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
61
+ ondragleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
62
+ ondragover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
63
+ ondragend?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
64
+ ontouchstart?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
65
+ ontouchmove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
66
+ ontouchend?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
67
+ ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
68
+ oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
69
+ onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
70
+ class?: string | undefined;
71
+ style?: string | undefined;
72
+ cursor?: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types/index.js").RawValue>>;
73
+ data: {
74
+ [x: string]: import("../types/index.js").RawValue;
75
+ [x: symbol]: import("../types/index.js").RawValue;
76
+ }[];
77
+ };
78
+ export declare function windowY(args: TransformArg<DataRecord>, options: WindowOptions): {
79
+ filter?: import("../types/index.js").ConstantAccessor<boolean, Record<string | symbol, import("../types/index.js").RawValue>>;
80
+ facet?: "auto" | "include" | "exclude" | undefined;
81
+ fx?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
82
+ fy?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
83
+ dx?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
84
+ dy?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
85
+ dodgeX?: import("./dodge").DodgeXOptions | undefined;
86
+ dodgeY?: import("./dodge").DodgeYOptions | undefined;
87
+ fill?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
88
+ fillOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
89
+ sort?: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
90
+ channel: string;
91
+ order?: "ascending" | "descending";
92
+ } | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Record<string | symbol, import("../types/index.js").RawValue>>;
93
+ stroke?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
94
+ strokeWidth?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
95
+ strokeOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
96
+ strokeLinejoin?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Record<string | symbol, import("../types/index.js").RawValue>>;
97
+ strokeLinecap?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Record<string | symbol, import("../types/index.js").RawValue>>;
98
+ strokeMiterlimit?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
99
+ opacity?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
100
+ strokeDasharray?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
101
+ strokeDashoffset?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
102
+ mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Record<string | symbol, import("../types/index.js").RawValue>>;
103
+ clipPath?: string | undefined;
104
+ mask?: string | undefined;
105
+ imageFilter?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
106
+ shapeRendering?: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Record<string | symbol, import("../types/index.js").RawValue>>;
107
+ paintOrder?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
108
+ onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
109
+ ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
110
+ onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
111
+ onmousedown?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
112
+ onmouseenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
113
+ onmousemove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
114
+ onmouseleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
115
+ onmouseout?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
116
+ onmouseover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
117
+ onpointercancel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
118
+ onpointerdown?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
119
+ onpointerup?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
120
+ onpointerenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
121
+ onpointerleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
122
+ onpointermove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
123
+ onpointerover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
124
+ onpointerout?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
125
+ ondrag?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
126
+ ondrop?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
127
+ ondragstart?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
128
+ ondragenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
129
+ ondragleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
130
+ ondragover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
131
+ ondragend?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
132
+ ontouchstart?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
133
+ ontouchmove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
134
+ ontouchend?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
135
+ ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
136
+ oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
137
+ onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
138
+ class?: string | undefined;
139
+ style?: string | undefined;
140
+ cursor?: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types/index.js").RawValue>>;
141
+ data: {
142
+ [x: string]: import("../types/index.js").RawValue;
143
+ [x: symbol]: import("../types/index.js").RawValue;
144
+ }[];
145
+ };
12
146
  export {};
@@ -0,0 +1,14 @@
1
+ <script>
2
+ let { label, value = $bindable(), ...restProps } = $props();
3
+ </script>
4
+
5
+ <label class="checkbox">
6
+ <input type="checkbox" bind:checked={value} {...restProps} />
7
+ <!-- eslint-disable-next-line svelte/no-at-html-tags -->
8
+ {@html label}</label>
9
+
10
+ <style>
11
+ label.checkbox + :global(label.checkbox) {
12
+ margin-left: 0.7em;
13
+ }
14
+ </style>
@@ -0,0 +1,13 @@
1
+ export default Checkbox;
2
+ type Checkbox = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<$$ComponentProps>): void;
5
+ };
6
+ declare const Checkbox: import("svelte").Component<{
7
+ label: any;
8
+ value?: any;
9
+ } & Record<string, any>, {}, "value">;
10
+ type $$ComponentProps = {
11
+ label: any;
12
+ value?: any;
13
+ } & Record<string, any>;
@@ -0,0 +1,81 @@
1
+ <script>
2
+ import { resolve } from '$app/paths';
3
+ import { useDark } from './isDark.svelte';
4
+ let { examples } = $props();
5
+
6
+ const exampleImages = import.meta.glob('../../snapshots/*/*.png', {
7
+ eager: true,
8
+ query: {
9
+ enhanced: true,
10
+ w: 640
11
+ }
12
+ });
13
+
14
+ const ds = useDark();
15
+ </script>
16
+
17
+ <div class="list">
18
+ {#each examples as page, i (i)}
19
+ <a href={resolve(page.url)}>
20
+ <div>
21
+ {#if exampleImages[`../../snapshots/${page.key}.png`]}
22
+ <enhanced:img
23
+ src={ds.isDark
24
+ ? exampleImages[`../../snapshots/${page.key}.dark.png`].default.img.src
25
+ : exampleImages[`../../snapshots/${page.key}.png`].default.img.src}
26
+ alt={page.title} />
27
+ {/if}
28
+ </div>
29
+ <h4>
30
+ {page.title}
31
+ </h4>
32
+ </a>
33
+ {/each}
34
+ </div>
35
+
36
+ <style>
37
+ .list {
38
+ display: grid;
39
+ grid-template-columns: repeat(3, 1fr);
40
+ gap: 1rem;
41
+ width: 100%;
42
+ margin: 2rem 0;
43
+ }
44
+
45
+ .list > a {
46
+ display: flex;
47
+ flex-direction: column;
48
+ align-items: left;
49
+ row-gap: 0.3rem;
50
+ text-decoration: none;
51
+
52
+ > div {
53
+ border: 1px solid #88888822;
54
+ border-radius: 2px;
55
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
56
+ padding: 1.5ex 1.5ex 0.4ex 1.5ex;
57
+ }
58
+
59
+ &:hover {
60
+ text-decoration: underline;
61
+ color: var(--svp-text);
62
+ > div {
63
+ border: 1px solid var(--svp-text);
64
+ }
65
+ }
66
+ }
67
+
68
+ .list :global(img) {
69
+ width: 100%;
70
+ box-sizing: border-box;
71
+ border-radius: 3px;
72
+ transition: transform 0.2s ease-in-out;
73
+ }
74
+
75
+ .list h4 {
76
+ margin: 0rem;
77
+ font-weight: normal;
78
+ font-size: 13px;
79
+ line-height: 1;
80
+ }
81
+ </style>
@@ -0,0 +1,11 @@
1
+ export default ExamplesGrid;
2
+ type ExamplesGrid = {
3
+ $on?(type: string, callback: (e: any) => void): () => void;
4
+ $set?(props: Partial<$$ComponentProps>): void;
5
+ };
6
+ declare const ExamplesGrid: import("svelte").Component<{
7
+ examples: any;
8
+ }, {}, "">;
9
+ type $$ComponentProps = {
10
+ examples: any;
11
+ };
@@ -0,0 +1,63 @@
1
+ <script lang="ts">
2
+ import { resolve } from '$app/paths';
3
+ let {
4
+ paths,
5
+ pages
6
+ }: {
7
+ paths: Record<string, string[]>;
8
+ pages: Record<
9
+ string,
10
+ {
11
+ title: string;
12
+ description?: string;
13
+ sortKey?: number;
14
+ transforms?: string[];
15
+ }
16
+ >;
17
+ } = $props();
18
+
19
+ function sortPages(a: string, b: string) {
20
+ const sortA = pages[a].sortKey ?? 10;
21
+ const sortB = pages[b].sortKey ?? 10;
22
+ return sortA - sortB;
23
+ }
24
+ </script>
25
+
26
+ <div class="column-container">
27
+ {#each Object.entries(paths).sort( (a, b) => a[0].localeCompare(b[0]) ) as [group, groupPages] (group)}
28
+ <div>
29
+ <h3>
30
+ <a href={resolve(`/examples/${group}`)}
31
+ >{pages[groupPages.find((p) => p.endsWith('/_index.svelte'))]?.title ??
32
+ group}</a>
33
+ </h3>
34
+ <ul>
35
+ {#each groupPages
36
+ .sort(sortPages)
37
+ .filter((p) => !p.endsWith('/_index.svelte')) as page (page)}
38
+ <li>
39
+ <a href={resolve(page.replace('./', './examples/').replace('.svelte', ''))}
40
+ >{pages[page].title}</a>
41
+ </li>
42
+ {/each}
43
+ </ul>
44
+ </div>
45
+ {/each}
46
+ </div>
47
+
48
+ <style>
49
+ .column-container {
50
+ columns: 2;
51
+ column-gap: 1rem;
52
+ column-fill: balance;
53
+ > div {
54
+ padding-top: 1em;
55
+ break-before: column;
56
+ break-inside: avoid-column;
57
+ }
58
+ h3 {
59
+ break-before: avoid-column;
60
+ text-transform: capitalize;
61
+ }
62
+ }
63
+ </style>
@@ -0,0 +1,12 @@
1
+ type $$ComponentProps = {
2
+ paths: Record<string, string[]>;
3
+ pages: Record<string, {
4
+ title: string;
5
+ description?: string;
6
+ sortKey?: number;
7
+ transforms?: string[];
8
+ }>;
9
+ };
10
+ declare const ExamplesPageList: import("svelte").Component<$$ComponentProps, {}, "">;
11
+ type ExamplesPageList = ReturnType<typeof ExamplesPageList>;
12
+ export default ExamplesPageList;