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,6 +1,5 @@
1
1
  import type { DataRecord, ChannelAccessor, LinkableMarkProps } from '../types';
2
2
  import { type WaffleOptions } from './helpers/waffle';
3
- import { resolveProp } from '../helpers/resolve';
4
3
  declare function $$render<Datum extends DataRecord>(): {
5
4
  props: Partial<{
6
5
  filter: import("../types").ConstantAccessor<boolean, Datum>;
@@ -9,14 +8,14 @@ declare function $$render<Datum extends DataRecord>(): {
9
8
  fy: ChannelAccessor<Datum>;
10
9
  dx: import("../types").ConstantAccessor<number, Datum>;
11
10
  dy: import("../types").ConstantAccessor<number, Datum>;
12
- dodgeX: resolveProp;
13
- dodgeY: resolveProp;
11
+ dodgeX: import("../transforms/dodge").DodgeXOptions;
12
+ dodgeY: import("../transforms/dodge").DodgeYOptions;
14
13
  fill: ChannelAccessor<Datum>;
15
14
  fillOpacity: import("../types").ConstantAccessor<number, Datum>;
16
- sort: {
15
+ sort: ((a: import("../types").RawValue, b: import("../types").RawValue) => number) | {
17
16
  channel: string;
18
17
  order?: "ascending" | "descending";
19
- } | ((a: import("../types").RawValue, b: import("../types").RawValue) => number) | import("../types").ConstantAccessor<import("../types").RawValue, Datum>;
18
+ } | import("../types").ConstantAccessor<import("../types").RawValue, Datum>;
20
19
  stroke: ChannelAccessor<Datum>;
21
20
  strokeWidth: import("../types").ConstantAccessor<number, Datum>;
22
21
  strokeOpacity: import("../types").ConstantAccessor<number, Datum>;
@@ -1,6 +1,69 @@
1
1
  import type { ChannelAccessor, DataRecord, RawValue } from '../../types';
2
2
  declare function $$render<Datum extends DataRecord>(): {
3
- props: Pick<BaseMarkProps<Datum>, "fill" | "stroke" | "fx" | "fy" | "class"> & {
3
+ props: Pick<Partial<{
4
+ filter: import("../../types").ConstantAccessor<boolean, Datum>;
5
+ facet: "auto" | "include" | "exclude";
6
+ fx: ChannelAccessor<Datum>;
7
+ fy: ChannelAccessor<Datum>;
8
+ dx: import("../../types").ConstantAccessor<number, Datum>;
9
+ dy: import("../../types").ConstantAccessor<number, Datum>;
10
+ dodgeX: import("../../transforms/dodge").DodgeXOptions;
11
+ dodgeY: import("../../transforms/dodge").DodgeYOptions;
12
+ fill: ChannelAccessor<Datum>;
13
+ fillOpacity: import("../../types").ConstantAccessor<number, Datum>;
14
+ sort: ((a: RawValue, b: RawValue) => number) | {
15
+ channel: string;
16
+ order?: "ascending" | "descending";
17
+ } | import("../../types").ConstantAccessor<RawValue, Datum>;
18
+ stroke: ChannelAccessor<Datum>;
19
+ strokeWidth: import("../../types").ConstantAccessor<number, Datum>;
20
+ strokeOpacity: import("../../types").ConstantAccessor<number, Datum>;
21
+ strokeLinejoin: import("../../types").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
22
+ strokeLinecap: import("../../types").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
23
+ strokeMiterlimit: import("../../types").ConstantAccessor<number, Datum>;
24
+ opacity: ChannelAccessor<Datum>;
25
+ strokeDasharray: import("../../types").ConstantAccessor<string, Datum>;
26
+ strokeDashoffset: import("../../types").ConstantAccessor<number, Datum>;
27
+ mixBlendMode: import("../../types").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
28
+ clipPath: string;
29
+ mask: string;
30
+ imageFilter: import("../../types").ConstantAccessor<string, Datum>;
31
+ shapeRendering: import("../../types").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
32
+ paintOrder: import("../../types").ConstantAccessor<string, Datum>;
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
+ class: string;
64
+ style: string;
65
+ cursor: import("../../types").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
66
+ }>, "fx" | "fy" | "fill" | "stroke" | "class"> & {
4
67
  data: Datum[];
5
68
  x: ChannelAccessor;
6
69
  y: ChannelAccessor;
@@ -1,6 +1,111 @@
1
- import type { DataRecord } from '../../types/index.js';
1
+ import { type MarkerShape } from './Marker.svelte';
2
+ import type { BaseMarkProps, ConstantAccessor, DataRecord, Mark, PlotScales } from '../../types/index.js';
2
3
  declare function $$render<Datum extends DataRecord>(): {
3
- props: any;
4
+ props: Partial<{
5
+ filter: ConstantAccessor<boolean, Datum>;
6
+ facet: "auto" | "include" | "exclude";
7
+ fx: import("../../types/index.js").ChannelAccessor<Datum>;
8
+ fy: import("../../types/index.js").ChannelAccessor<Datum>;
9
+ dx: ConstantAccessor<number, Datum>;
10
+ dy: ConstantAccessor<number, Datum>;
11
+ dodgeX: import("../../transforms/dodge").DodgeXOptions;
12
+ dodgeY: import("../../transforms/dodge").DodgeYOptions;
13
+ fill: import("../../types/index.js").ChannelAccessor<Datum>;
14
+ fillOpacity: ConstantAccessor<number, Datum>;
15
+ sort: ((a: import("../../types/index.js").RawValue, b: import("../../types/index.js").RawValue) => number) | {
16
+ channel: string;
17
+ order?: "ascending" | "descending";
18
+ } | ConstantAccessor<import("../../types/index.js").RawValue, Datum>;
19
+ stroke: import("../../types/index.js").ChannelAccessor<Datum>;
20
+ strokeWidth: ConstantAccessor<number, Datum>;
21
+ strokeOpacity: ConstantAccessor<number, Datum>;
22
+ strokeLinejoin: ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
23
+ strokeLinecap: ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
24
+ strokeMiterlimit: ConstantAccessor<number, Datum>;
25
+ opacity: import("../../types/index.js").ChannelAccessor<Datum>;
26
+ strokeDasharray: ConstantAccessor<string, Datum>;
27
+ strokeDashoffset: ConstantAccessor<number, Datum>;
28
+ mixBlendMode: ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
29
+ clipPath: string;
30
+ mask: string;
31
+ imageFilter: ConstantAccessor<string, Datum>;
32
+ shapeRendering: ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
33
+ paintOrder: ConstantAccessor<string, Datum>;
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
+ class: string;
65
+ style: string;
66
+ cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
67
+ }> & {
68
+ /**
69
+ * the datum associated with this path, usually the first
70
+ * element of the data array group
71
+ */
72
+ datum: Datum;
73
+ /**
74
+ * the marker shape to use at the start of the path, defaults to
75
+ * circle
76
+ */
77
+ markerStart?: boolean | MarkerShape;
78
+ /**
79
+ * the marker shape to use at the middle of the path, defaults to circle
80
+ */
81
+ markerMid?: boolean | MarkerShape;
82
+ /**
83
+ * the marker shape to use at the end of the path, defaults to circle
84
+ */
85
+ markerEnd?: boolean | MarkerShape;
86
+ /**
87
+ * shorthand for setting all markers
88
+ */
89
+ marker?: boolean | MarkerShape;
90
+ /**
91
+ * scale factor for marker size, relative to the line stroke width
92
+ */
93
+ markerScale?: ConstantAccessor<number>;
94
+ /**
95
+ * path string
96
+ */
97
+ d: string;
98
+ style: string;
99
+ startOffset: string;
100
+ textStyle: string;
101
+ textStyleClass?: string | null;
102
+ text: string;
103
+ transform: string;
104
+ color: string;
105
+ strokeWidth: ConstantAccessor<number>;
106
+ mark: Mark<BaseMarkProps<Datum>>;
107
+ scales: PlotScales;
108
+ };
4
109
  exports: {};
5
110
  bindings: "";
6
111
  slots: {};
@@ -1,5 +1,8 @@
1
1
  import type { DataRecord, TransformArg } from '../types/index.js';
2
- type WithCentroid<T> = T & {};
2
+ declare const CENTROID: unique symbol;
3
+ type WithCentroid<T> = T & {
4
+ [CENTROID]: [number, number];
5
+ };
3
6
  export declare function geoCentroid<Datum extends DataRecord>({ data, ...options }: {
4
7
  data: Datum[];
5
8
  } & TransformArg<Datum>): TransformArg<WithCentroid<Datum>>;
@@ -5,25 +5,25 @@ import type { TransformArg } from '../types/index.js';
5
5
  export declare function intervalX<T>(args: TransformArg<T>): {
6
6
  filter?: import("../types/index.js").ConstantAccessor<boolean, T>;
7
7
  facet?: "auto" | "include" | "exclude" | undefined;
8
- fx?: import("../types/channel.js").ChannelAccessor<T>;
9
- fy?: import("../types/channel.js").ChannelAccessor<T>;
8
+ fx?: import("../types/index.js").ChannelAccessor<T>;
9
+ fy?: import("../types/index.js").ChannelAccessor<T>;
10
10
  dx?: import("../types/index.js").ConstantAccessor<number, T>;
11
11
  dy?: import("../types/index.js").ConstantAccessor<number, T>;
12
- dodgeX?: DodgeXOptions;
13
- dodgeY?: DodgeYOptions;
14
- fill?: import("../types/channel.js").ChannelAccessor<T>;
12
+ dodgeX?: import("./dodge").DodgeXOptions | undefined;
13
+ dodgeY?: import("./dodge").DodgeYOptions | undefined;
14
+ fill?: import("../types/index.js").ChannelAccessor<T>;
15
15
  fillOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
16
- sort?: {
16
+ sort?: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
17
17
  channel: string;
18
18
  order?: "ascending" | "descending";
19
- } | ((a: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data.js").RawValue, T>;
20
- stroke?: import("../types/channel.js").ChannelAccessor<T>;
19
+ } | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, T>;
20
+ stroke?: import("../types/index.js").ChannelAccessor<T>;
21
21
  strokeWidth?: import("../types/index.js").ConstantAccessor<number, T>;
22
22
  strokeOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
23
23
  strokeLinejoin?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, T>;
24
24
  strokeLinecap?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, T>;
25
25
  strokeMiterlimit?: import("../types/index.js").ConstantAccessor<number, T>;
26
- opacity?: import("../types/channel.js").ChannelAccessor<T>;
26
+ opacity?: import("../types/index.js").ChannelAccessor<T>;
27
27
  strokeDasharray?: import("../types/index.js").ConstantAccessor<string, T>;
28
28
  strokeDashoffset?: import("../types/index.js").ConstantAccessor<number, T>;
29
29
  mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, T>;
@@ -73,25 +73,25 @@ export declare function intervalX<T>(args: TransformArg<T>): {
73
73
  export declare function intervalY<T>(args: TransformArg<T>): {
74
74
  filter?: import("../types/index.js").ConstantAccessor<boolean, T>;
75
75
  facet?: "auto" | "include" | "exclude" | undefined;
76
- fx?: import("../types/channel.js").ChannelAccessor<T>;
77
- fy?: import("../types/channel.js").ChannelAccessor<T>;
76
+ fx?: import("../types/index.js").ChannelAccessor<T>;
77
+ fy?: import("../types/index.js").ChannelAccessor<T>;
78
78
  dx?: import("../types/index.js").ConstantAccessor<number, T>;
79
79
  dy?: import("../types/index.js").ConstantAccessor<number, T>;
80
- dodgeX?: DodgeXOptions;
81
- dodgeY?: DodgeYOptions;
82
- fill?: import("../types/channel.js").ChannelAccessor<T>;
80
+ dodgeX?: import("./dodge").DodgeXOptions | undefined;
81
+ dodgeY?: import("./dodge").DodgeYOptions | undefined;
82
+ fill?: import("../types/index.js").ChannelAccessor<T>;
83
83
  fillOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
84
- sort?: {
84
+ sort?: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
85
85
  channel: string;
86
86
  order?: "ascending" | "descending";
87
- } | ((a: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data.js").RawValue, T>;
88
- stroke?: import("../types/channel.js").ChannelAccessor<T>;
87
+ } | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, T>;
88
+ stroke?: import("../types/index.js").ChannelAccessor<T>;
89
89
  strokeWidth?: import("../types/index.js").ConstantAccessor<number, T>;
90
90
  strokeOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
91
91
  strokeLinejoin?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, T>;
92
92
  strokeLinecap?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, T>;
93
93
  strokeMiterlimit?: import("../types/index.js").ConstantAccessor<number, T>;
94
- opacity?: import("../types/channel.js").ChannelAccessor<T>;
94
+ opacity?: import("../types/index.js").ChannelAccessor<T>;
95
95
  strokeDasharray?: import("../types/index.js").ConstantAccessor<string, T>;
96
96
  strokeDashoffset?: import("../types/index.js").ConstantAccessor<number, T>;
97
97
  mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, T>;
@@ -1,8 +1,11 @@
1
1
  import type { TransformArgsRow, TransformArgsRecord, DataRecord, DataRow } from '../types/index.js';
2
- export declare const X: any;
3
- export declare const Y: any;
4
- export declare const RAW_VALUE: any;
5
- export declare function indexData<T extends object>(data: T[]): (T & {})[];
2
+ import { INDEX } from '../constants';
3
+ export declare const X: unique symbol;
4
+ export declare const Y: unique symbol;
5
+ export declare const RAW_VALUE: unique symbol;
6
+ export declare function indexData<T extends object>(data: T[]): (T & {
7
+ [INDEX]: number;
8
+ })[];
6
9
  export declare function recordizeX<T>({ data, ...channels }: TransformArgsRow<DataRow>, { withIndex }?: {
7
10
  withIndex: boolean;
8
11
  }): TransformArgsRecord<DataRecord>;
@@ -2,7 +2,7 @@ import type { DataRecord } from '../types/index.js';
2
2
  import type { ScaledChannelName, TransformArg } from '../types/index.js';
3
3
  type RenameChannelsOptions = Partial<Record<ScaledChannelName, ScaledChannelName>>;
4
4
  type ReplaceChannelsOptions = Partial<Record<ScaledChannelName, ScaledChannelName[]>>;
5
- export declare const RENAME: any;
5
+ export declare const RENAME: unique symbol;
6
6
  /**
7
7
  * renames a channel without modifying the data
8
8
  */