svelteplot 0.14.2-pr-550.0 → 0.14.2-pr-551.0

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 (180) hide show
  1. package/dist/Mark.svelte.d.ts +4 -4
  2. package/dist/core/FacetGrid.svelte +1 -1
  3. package/dist/core/Plot.svelte +3 -3
  4. package/dist/helpers/reduce.js +1 -1
  5. package/dist/helpers/scales.d.ts +1 -1
  6. package/dist/helpers/scales.js +1 -1
  7. package/dist/helpers/typeChecks.d.ts +1 -1
  8. package/dist/hooks/plotDefaults.d.ts +1 -1
  9. package/dist/hooks/usePlot.svelte.d.ts +2 -2
  10. package/dist/marks/Area.svelte +1 -1
  11. package/dist/marks/Area.svelte.d.ts +5 -4
  12. package/dist/marks/AreaX.svelte.d.ts +4 -4
  13. package/dist/marks/AreaY.svelte.d.ts +4 -4
  14. package/dist/marks/Arrow.svelte +2 -2
  15. package/dist/marks/Arrow.svelte.d.ts +5 -4
  16. package/dist/marks/AxisX.svelte +1 -1
  17. package/dist/marks/AxisX.svelte.d.ts +6 -5
  18. package/dist/marks/AxisY.svelte +1 -1
  19. package/dist/marks/AxisY.svelte.d.ts +6 -5
  20. package/dist/marks/BarX.svelte +2 -2
  21. package/dist/marks/BarX.svelte.d.ts +5 -5
  22. package/dist/marks/BarY.svelte +1 -1
  23. package/dist/marks/BarY.svelte.d.ts +5 -4
  24. package/dist/marks/BollingerX.svelte +1 -1
  25. package/dist/marks/BollingerX.svelte.d.ts +2 -152
  26. package/dist/marks/BollingerY.svelte +1 -1
  27. package/dist/marks/BollingerY.svelte.d.ts +2 -152
  28. package/dist/marks/BoxY.svelte +1 -1
  29. package/dist/marks/BoxY.svelte.d.ts +2 -137
  30. package/dist/marks/Brush.svelte +2 -2
  31. package/dist/marks/Brush.svelte.d.ts +2 -137
  32. package/dist/marks/Cell.svelte +1 -1
  33. package/dist/marks/Cell.svelte.d.ts +5 -4
  34. package/dist/marks/CellX.svelte +1 -1
  35. package/dist/marks/CellX.svelte.d.ts +6 -6
  36. package/dist/marks/CellY.svelte +1 -1
  37. package/dist/marks/CellY.svelte.d.ts +6 -6
  38. package/dist/marks/ColorLegend.svelte +2 -2
  39. package/dist/marks/CustomMark.svelte +2 -2
  40. package/dist/marks/CustomMark.svelte.d.ts +2 -166
  41. package/dist/marks/CustomMarkHTML.svelte +1 -1
  42. package/dist/marks/DelaunayLink.svelte +1 -1
  43. package/dist/marks/DelaunayLink.svelte.d.ts +5 -4
  44. package/dist/marks/DelaunayMesh.svelte +1 -1
  45. package/dist/marks/DelaunayMesh.svelte.d.ts +5 -4
  46. package/dist/marks/DifferenceY.svelte +2 -2
  47. package/dist/marks/DifferenceY.svelte.d.ts +2 -137
  48. package/dist/marks/Dot.svelte +2 -2
  49. package/dist/marks/Dot.svelte.d.ts +5 -4
  50. package/dist/marks/DotX.svelte.d.ts +5 -5
  51. package/dist/marks/DotY.svelte.d.ts +5 -5
  52. package/dist/marks/Frame.svelte +2 -2
  53. package/dist/marks/Frame.svelte.d.ts +6 -5
  54. package/dist/marks/Geo.svelte +1 -1
  55. package/dist/marks/Geo.svelte.d.ts +5 -4
  56. package/dist/marks/GridX.svelte +1 -1
  57. package/dist/marks/GridX.svelte.d.ts +5 -4
  58. package/dist/marks/GridY.svelte +1 -1
  59. package/dist/marks/GridY.svelte.d.ts +5 -4
  60. package/dist/marks/HTMLTooltip.svelte +2 -2
  61. package/dist/marks/Hull.svelte +1 -1
  62. package/dist/marks/Hull.svelte.d.ts +5 -4
  63. package/dist/marks/Image.svelte +4 -4
  64. package/dist/marks/Image.svelte.d.ts +5 -4
  65. package/dist/marks/Line.svelte +2 -2
  66. package/dist/marks/Line.svelte.d.ts +5 -5
  67. package/dist/marks/LineX.svelte +1 -1
  68. package/dist/marks/LineX.svelte.d.ts +7 -7
  69. package/dist/marks/LineY.svelte +1 -1
  70. package/dist/marks/LineY.svelte.d.ts +7 -7
  71. package/dist/marks/Link.svelte +3 -3
  72. package/dist/marks/Link.svelte.d.ts +5 -4
  73. package/dist/marks/Pointer.svelte +3 -3
  74. package/dist/marks/Rect.svelte +2 -2
  75. package/dist/marks/Rect.svelte.d.ts +5 -4
  76. package/dist/marks/RectX.svelte +1 -1
  77. package/dist/marks/RectX.svelte.d.ts +6 -5
  78. package/dist/marks/RectY.svelte +1 -1
  79. package/dist/marks/RectY.svelte.d.ts +6 -5
  80. package/dist/marks/RegressionX.svelte +1 -1
  81. package/dist/marks/RegressionY.svelte +1 -1
  82. package/dist/marks/RuleX.svelte +1 -1
  83. package/dist/marks/RuleX.svelte.d.ts +5 -4
  84. package/dist/marks/RuleY.svelte +2 -2
  85. package/dist/marks/RuleY.svelte.d.ts +5 -4
  86. package/dist/marks/Spike.svelte.d.ts +5 -5
  87. package/dist/marks/SymbolLegend.svelte +1 -1
  88. package/dist/marks/Text.svelte +1 -1
  89. package/dist/marks/Text.svelte.d.ts +9 -8
  90. package/dist/marks/TickX.svelte +1 -1
  91. package/dist/marks/TickX.svelte.d.ts +5 -4
  92. package/dist/marks/TickY.svelte +1 -1
  93. package/dist/marks/TickY.svelte.d.ts +5 -4
  94. package/dist/marks/Trail.svelte +4 -4
  95. package/dist/marks/Trail.svelte.d.ts +2 -137
  96. package/dist/marks/Vector.svelte +2 -2
  97. package/dist/marks/Vector.svelte.d.ts +5 -4
  98. package/dist/marks/Voronoi.svelte +1 -1
  99. package/dist/marks/Voronoi.svelte.d.ts +5 -4
  100. package/dist/marks/VoronoiMesh.svelte +1 -1
  101. package/dist/marks/VoronoiMesh.svelte.d.ts +5 -4
  102. package/dist/marks/WaffleX.svelte +7 -7
  103. package/dist/marks/WaffleX.svelte.d.ts +2 -160
  104. package/dist/marks/WaffleY.svelte +4 -4
  105. package/dist/marks/WaffleY.svelte.d.ts +5 -4
  106. package/dist/marks/helpers/Anchor.svelte +1 -1
  107. package/dist/marks/helpers/Anchor.svelte.d.ts +1 -1
  108. package/dist/marks/helpers/AreaCanvas.svelte +2 -2
  109. package/dist/marks/helpers/AreaCanvas.svelte.d.ts +1 -1
  110. package/dist/marks/helpers/ArrowCanvas.svelte +2 -2
  111. package/dist/marks/helpers/ArrowCanvas.svelte.d.ts +1 -1
  112. package/dist/marks/helpers/BaseAxisX.svelte +5 -5
  113. package/dist/marks/helpers/BaseAxisX.svelte.d.ts +2 -2
  114. package/dist/marks/helpers/Box.svelte +2 -2
  115. package/dist/marks/helpers/Box.svelte.d.ts +2 -137
  116. package/dist/marks/helpers/CanvasLayer.svelte +1 -1
  117. package/dist/marks/helpers/DensityCanvas.svelte +2 -2
  118. package/dist/marks/helpers/DensityCanvas.svelte.d.ts +1 -1
  119. package/dist/marks/helpers/DotCanvas.svelte +2 -2
  120. package/dist/marks/helpers/DotCanvas.svelte.d.ts +1 -1
  121. package/dist/marks/helpers/GeoCanvas.svelte +2 -2
  122. package/dist/marks/helpers/GeoCanvas.svelte.d.ts +1 -1
  123. package/dist/marks/helpers/GeoPathCanvas.svelte +2 -2
  124. package/dist/marks/helpers/GeoPathCanvas.svelte.d.ts +1 -1
  125. package/dist/marks/helpers/GeoPathGroup.svelte +1 -1
  126. package/dist/marks/helpers/GeoPathGroup.svelte.d.ts +1 -1
  127. package/dist/marks/helpers/ImageCanvas.svelte +2 -2
  128. package/dist/marks/helpers/ImageCanvas.svelte.d.ts +1 -1
  129. package/dist/marks/helpers/LineCanvas.svelte +2 -2
  130. package/dist/marks/helpers/LineCanvas.svelte.d.ts +1 -1
  131. package/dist/marks/helpers/LinearGradientX.svelte +1 -1
  132. package/dist/marks/helpers/LinearGradientY.svelte +1 -1
  133. package/dist/marks/helpers/LinkCanvas.svelte +2 -2
  134. package/dist/marks/helpers/LinkCanvas.svelte.d.ts +1 -1
  135. package/dist/marks/helpers/Marker.svelte +1 -1
  136. package/dist/marks/helpers/MarkerPath.svelte +2 -2
  137. package/dist/marks/helpers/MarkerPath.svelte.d.ts +2 -180
  138. package/dist/marks/helpers/MultilineText.svelte +5 -5
  139. package/dist/marks/helpers/MultilineText.svelte.d.ts +1 -1
  140. package/dist/marks/helpers/PathGroup.svelte +1 -1
  141. package/dist/marks/helpers/PathGroup.svelte.d.ts +1 -1
  142. package/dist/marks/helpers/PathItems.svelte +1 -1
  143. package/dist/marks/helpers/PathItems.svelte.d.ts +1 -1
  144. package/dist/marks/helpers/RectCanvas.svelte +4 -4
  145. package/dist/marks/helpers/RectCanvas.svelte.d.ts +1 -1
  146. package/dist/marks/helpers/RectPath.svelte +6 -6
  147. package/dist/marks/helpers/RectPath.svelte.d.ts +3 -3
  148. package/dist/marks/helpers/Regression.svelte +2 -2
  149. package/dist/marks/helpers/Regression.svelte.d.ts +1 -1
  150. package/dist/marks/helpers/RuleCanvas.svelte +2 -2
  151. package/dist/marks/helpers/RuleCanvas.svelte.d.ts +1 -1
  152. package/dist/marks/helpers/TextCanvas.svelte +4 -4
  153. package/dist/marks/helpers/TextCanvas.svelte.d.ts +1 -1
  154. package/dist/marks/helpers/TickCanvas.svelte +2 -2
  155. package/dist/marks/helpers/TickCanvas.svelte.d.ts +1 -1
  156. package/dist/marks/helpers/TrailCanvas.svelte +3 -3
  157. package/dist/marks/helpers/TrailCanvas.svelte.d.ts +1 -1
  158. package/dist/marks/helpers/VectorCanvas.svelte +2 -2
  159. package/dist/marks/helpers/VectorCanvas.svelte.d.ts +1 -1
  160. package/dist/marks/helpers/canvas.js +1 -1
  161. package/dist/marks/helpers/waffle.d.ts +2 -2
  162. package/dist/marks/helpers/waffle.js +1 -1
  163. package/dist/transforms/bin.js +1 -1
  164. package/dist/transforms/dodge.d.ts +1 -1
  165. package/dist/transforms/dodge.js +1 -1
  166. package/dist/transforms/group.d.ts +29 -29
  167. package/dist/transforms/interval.d.ts +8 -8
  168. package/dist/transforms/jitter.d.ts +12 -12
  169. package/dist/transforms/map.d.ts +12 -12
  170. package/dist/transforms/normalize.d.ts +8 -8
  171. package/dist/transforms/select.d.ts +28 -28
  172. package/dist/transforms/stack.js +2 -2
  173. package/dist/transforms/window.d.ts +8 -8
  174. package/dist/types/mark.d.ts +1 -1
  175. package/dist/types/plot.d.ts +4 -4
  176. package/package.json +8 -86
  177. package/LICENSE.md +0 -23
  178. package/README.md +0 -55
  179. package/dist/helpers/data.d.ts +0 -10
  180. package/dist/helpers/data.js +0 -16
@@ -9,8 +9,8 @@ declare function $$render<Datum extends DataRecord>(): {
9
9
  fy: ChannelAccessor<Datum>;
10
10
  dx: import("./types/index.js").ConstantAccessor<number, Datum>;
11
11
  dy: import("./types/index.js").ConstantAccessor<number, Datum>;
12
- dodgeX: import("./transforms/dodge.js").DodgeXOptions;
13
- dodgeY: import("./transforms/dodge.js").DodgeYOptions;
12
+ dodgeX: DodgeXOptions;
13
+ dodgeY: DodgeYOptions;
14
14
  fill: ChannelAccessor<Datum>;
15
15
  fillOpacity: import("./types/index.js").ConstantAccessor<number, Datum>;
16
16
  fontFamily: import("./types/index.js").ConstantAccessor<import("csstype").Property.FontFamily, Datum>;
@@ -23,10 +23,10 @@ declare function $$render<Datum extends DataRecord>(): {
23
23
  textAnchor: import("./types/index.js").ConstantAccessor<import("csstype").Property.TextAnchor, Datum>;
24
24
  textTransform: import("./types/index.js").ConstantAccessor<import("csstype").Property.TextTransform, Datum>;
25
25
  textDecoration: import("./types/index.js").ConstantAccessor<import("csstype").Property.TextDecoration<0 | (string & {})>, Datum>;
26
- sort: ((a: RawValue, b: RawValue) => number) | {
26
+ sort: {
27
27
  channel: string;
28
28
  order?: "ascending" | "descending";
29
- } | import("./types/index.js").ConstantAccessor<RawValue, Datum>;
29
+ } | ((a: RawValue, b: RawValue) => number) | import("./types/index.js").ConstantAccessor<RawValue, Datum>;
30
30
  stroke: ChannelAccessor<Datum>;
31
31
  strokeWidth: import("./types/index.js").ConstantAccessor<number, Datum>;
32
32
  strokeOpacity: import("./types/index.js").ConstantAccessor<number, Datum>;
@@ -9,7 +9,7 @@
9
9
  import { scaleBand } from 'd3-scale';
10
10
  import Facet from './Facet.svelte';
11
11
  import { getEmptyFacets } from '../helpers/facets.js';
12
- import { usePlot } from '../hooks/usePlot.svelte.js';
12
+ import { usePlot } from 'svelteplot/hooks/usePlot.svelte.js';
13
13
 
14
14
  const { updateDimensions } = getContext<PlotContext>('svelteplot');
15
15
  // we need the plot context for the overall width & height
@@ -31,9 +31,9 @@
31
31
  import mergeDeep from '../helpers/mergeDeep.js';
32
32
  import { computeScales, normalizeScaleFn, projectXY } from '../helpers/scales.js';
33
33
  import { CHANNEL_SCALE, SCALES } from '../constants.js';
34
- import { getPlotDefaults, setPlotDefaults } from '../hooks/plotDefaults.js';
35
- import { maybeNumber } from '../helpers/index.js';
36
- import { setPlot, usePlot } from '../hooks/usePlot.svelte.js';
34
+ import { getPlotDefaults, setPlotDefaults } from 'svelteplot/hooks/plotDefaults.js';
35
+ import { maybeNumber } from 'svelteplot/helpers/index.js';
36
+ import { setPlot, usePlot } from 'svelteplot/hooks/usePlot.svelte.js';
37
37
 
38
38
  // automatic margins can be applied by the marks, registered
39
39
  // with their respective unique identifier as keys
@@ -1,7 +1,7 @@
1
1
  import { min, max, mode, sum, mean, median, variance, deviation, quantile } from 'd3-array';
2
2
  import { resolveChannel } from './resolve.js';
3
3
  import { POSITION_CHANNELS } from './index.js';
4
- import { ORIGINAL_NAME_KEYS } from '../constants.js';
4
+ import { ORIGINAL_NAME_KEYS } from 'svelteplot/constants.js';
5
5
  const niceReduceNames = {
6
6
  count: 'Frequency',
7
7
  deviation: 'Standard Deviation',
@@ -41,4 +41,4 @@ export declare function looksLikeANumber(input: string | number): boolean;
41
41
  export declare function projectXY(scales: PlotScales, x: RawValue, y: RawValue, useXScale?: boolean, useYScale?: boolean): [number, number];
42
42
  export declare function projectX(channel: 'x' | 'x1' | 'x2', scales: PlotScales, value: RawValue): number;
43
43
  export declare function projectY(channel: 'y' | 'y1' | 'y2', scales: PlotScales, value: RawValue): number;
44
- export declare function isOrdinalScale(scaleType: ScaleType): scaleType is "ordinal" | "point" | "band" | "categorical" | "threshold";
44
+ export declare function isOrdinalScale(scaleType: ScaleType): scaleType is "point" | "ordinal" | "band" | "categorical" | "threshold";
@@ -6,7 +6,7 @@ import { resolveProp, toChannelOption } from './resolve.js';
6
6
  import isDataRecord from './isDataRecord.js';
7
7
  import { createProjection } from './projection.js';
8
8
  import { maybeInterval } from './autoTicks.js';
9
- import { IS_SORTED } from '../transforms/sort.js';
9
+ import { IS_SORTED } from 'svelteplot/transforms/sort.js';
10
10
  export function normalizeScaleFn(fn) {
11
11
  const out = fn;
12
12
  out.range ||= () => [];
@@ -5,7 +5,7 @@ export declare function isDateOrNull(v: RawValue | null | undefined): v is Date
5
5
  export declare function isNumberOrNull(v: RawValue | null | undefined): boolean;
6
6
  export declare function isNumberOrNullOrNaN(v: RawValue | null | undefined): boolean;
7
7
  export declare function isStringOrNull(v: RawValue | null | undefined): v is string | null | undefined;
8
- export declare function isSymbolOrNull(v: RawValue | null | undefined): v is ("square" | "circle" | "asterisk" | "cross" | "diamond" | "diamond2" | "hexagon" | "plus" | "square2" | "star" | "times" | "triangle" | "triangle2" | "wye") | import("d3-shape").SymbolType | null | undefined;
8
+ export declare function isSymbolOrNull(v: RawValue | null | undefined): v is ("circle" | "square" | "asterisk" | "cross" | "diamond" | "diamond2" | "hexagon" | "plus" | "square2" | "star" | "times" | "triangle" | "triangle2" | "wye") | import("d3-shape").SymbolType | null | undefined;
9
9
  export declare function isColorOrNull(v: RawValue | null | undefined): boolean;
10
10
  export declare function isOpacityOrNull(v: RawValue): boolean;
11
11
  export declare function isTemporalScale(type: string): boolean;
@@ -1,4 +1,4 @@
1
- import type { PlotDefaults } from '../types/index.js';
1
+ import type { PlotDefaults } from 'svelteplot/types';
2
2
  /** sets default options for all Plot components in this component tree, merging with any existing defaults from parent contexts */
3
3
  export declare function setPlotDefaults(plotDefaults: Partial<PlotDefaults>): void;
4
4
  /** retrieves the current plot defaults from the Svelte context, or an empty object if none have been set */
@@ -1,5 +1,5 @@
1
- import type { ResolvedPlotOptions } from '../types/plot.js';
2
- import type { PlotScales, PlotState as TPlotState } from '../types/index.js';
1
+ import type { ResolvedPlotOptions } from 'svelteplot/types/plot';
2
+ import type { PlotScales, PlotState as TPlotState } from 'svelteplot/types';
3
3
  /**
4
4
  * internal state representation of a Plot, using Svelte 5 runes for reactivity
5
5
  */
@@ -53,7 +53,7 @@
53
53
  import type { StackOptions } from '../transforms/stack.js';
54
54
  import { addEventHandlers } from './helpers/events.js';
55
55
  import { getPlotDefaults } from '../hooks/plotDefaults.js';
56
- import { usePlot } from '../hooks/usePlot.svelte.js';
56
+ import { usePlot } from 'svelteplot/hooks/usePlot.svelte.js';
57
57
 
58
58
  let markProps: AreaMarkProps = $props();
59
59
 
@@ -1,6 +1,7 @@
1
1
  import { type Area, 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
+ import { usePlot } from 'svelteplot/hooks/usePlot.svelte.js';
4
5
  declare function $$render<Datum extends DataRecord>(): {
5
6
  props: Partial<{
6
7
  filter: ConstantAccessor<boolean, Datum>;
@@ -9,8 +10,8 @@ declare function $$render<Datum extends DataRecord>(): {
9
10
  fy: ChannelAccessor<Datum>;
10
11
  dx: ConstantAccessor<number, Datum>;
11
12
  dy: ConstantAccessor<number, Datum>;
12
- dodgeX: import("../transforms/dodge.js").DodgeXOptions;
13
- dodgeY: import("../transforms/dodge.js").DodgeYOptions;
13
+ dodgeX: usePlot;
14
+ dodgeY: usePlot;
14
15
  fill: ChannelAccessor<Datum>;
15
16
  fillOpacity: ConstantAccessor<number, Datum>;
16
17
  fontFamily: ConstantAccessor<import("csstype").Property.FontFamily, Datum>;
@@ -23,10 +24,10 @@ declare function $$render<Datum extends DataRecord>(): {
23
24
  textAnchor: ConstantAccessor<import("csstype").Property.TextAnchor, Datum>;
24
25
  textTransform: ConstantAccessor<import("csstype").Property.TextTransform, Datum>;
25
26
  textDecoration: ConstantAccessor<import("csstype").Property.TextDecoration<0 | (string & {})>, Datum>;
26
- sort: ((a: RawValue, b: RawValue) => number) | {
27
+ sort: {
27
28
  channel: string;
28
29
  order?: "ascending" | "descending";
29
- } | ConstantAccessor<RawValue, Datum>;
30
+ } | ((a: RawValue, b: RawValue) => number) | ConstantAccessor<RawValue, Datum>;
30
31
  stroke: ChannelAccessor<Datum>;
31
32
  strokeWidth: ConstantAccessor<number, Datum>;
32
33
  strokeOpacity: ConstantAccessor<number, Datum>;
@@ -9,8 +9,8 @@ declare function $$render<Datum extends DataRow>(): {
9
9
  fy: ChannelAccessor<Datum>;
10
10
  dx: ConstantAccessor<number, Datum>;
11
11
  dy: ConstantAccessor<number, Datum>;
12
- dodgeX: import("../transforms/dodge.js").DodgeXOptions;
13
- dodgeY: import("../transforms/dodge.js").DodgeYOptions;
12
+ dodgeX: DodgeXOptions;
13
+ dodgeY: DodgeYOptions;
14
14
  fill: ChannelAccessor<Datum>;
15
15
  fillOpacity: ConstantAccessor<number, Datum>;
16
16
  fontFamily: ConstantAccessor<import("csstype").Property.FontFamily, Datum>;
@@ -23,10 +23,10 @@ declare function $$render<Datum extends DataRow>(): {
23
23
  textAnchor: ConstantAccessor<import("csstype").Property.TextAnchor, Datum>;
24
24
  textTransform: ConstantAccessor<import("csstype").Property.TextTransform, Datum>;
25
25
  textDecoration: ConstantAccessor<import("csstype").Property.TextDecoration<0 | (string & {})>, Datum>;
26
- sort: ((a: RawValue, b: RawValue) => number) | {
26
+ sort: {
27
27
  channel: string;
28
28
  order?: "ascending" | "descending";
29
- } | ConstantAccessor<RawValue, Datum>;
29
+ } | ((a: RawValue, b: RawValue) => number) | ConstantAccessor<RawValue, Datum>;
30
30
  stroke: ChannelAccessor<Datum>;
31
31
  strokeWidth: ConstantAccessor<number, Datum>;
32
32
  strokeOpacity: ConstantAccessor<number, Datum>;
@@ -9,8 +9,8 @@ declare function $$render<Datum extends DataRow>(): {
9
9
  fy: ChannelAccessor<Datum>;
10
10
  dx: ConstantAccessor<number, Datum>;
11
11
  dy: ConstantAccessor<number, Datum>;
12
- dodgeX: import("../transforms/dodge.js").DodgeXOptions;
13
- dodgeY: import("../transforms/dodge.js").DodgeYOptions;
12
+ dodgeX: DodgeXOptions;
13
+ dodgeY: DodgeYOptions;
14
14
  fill: ChannelAccessor<Datum>;
15
15
  fillOpacity: ConstantAccessor<number, Datum>;
16
16
  fontFamily: ConstantAccessor<import("csstype").Property.FontFamily, Datum>;
@@ -23,10 +23,10 @@ declare function $$render<Datum extends DataRow>(): {
23
23
  textAnchor: ConstantAccessor<import("csstype").Property.TextAnchor, Datum>;
24
24
  textTransform: ConstantAccessor<import("csstype").Property.TextTransform, Datum>;
25
25
  textDecoration: ConstantAccessor<import("csstype").Property.TextDecoration<0 | (string & {})>, Datum>;
26
- sort: ((a: RawValue, b: RawValue) => number) | {
26
+ sort: {
27
27
  channel: string;
28
28
  order?: "ascending" | "descending";
29
- } | ConstantAccessor<RawValue, Datum>;
29
+ } | ((a: RawValue, b: RawValue) => number) | ConstantAccessor<RawValue, Datum>;
30
30
  stroke: ChannelAccessor<Datum>;
31
31
  strokeWidth: ConstantAccessor<number, Datum>;
32
32
  strokeOpacity: ConstantAccessor<number, Datum>;
@@ -67,9 +67,9 @@
67
67
  import ArrowCanvas from './helpers/ArrowCanvas.svelte';
68
68
  import GroupMultiple from './helpers/GroupMultiple.svelte';
69
69
  import { sort } from '../transforms/sort.js';
70
- import { indexData } from '../transforms/recordize.js';
70
+ import { indexData } from 'svelteplot/transforms/recordize.js';
71
71
  import { getPlotDefaults } from '../hooks/plotDefaults.js';
72
- import { usePlot } from '../hooks/usePlot.svelte.js';
72
+ import { usePlot } from 'svelteplot/hooks/usePlot.svelte.js';
73
73
 
74
74
  let markProps: ArrowMarkProps = $props();
75
75
 
@@ -1,5 +1,6 @@
1
1
  import type { DataRecord, ConstantAccessor, ChannelAccessor, RawValue } from '../types/index.js';
2
2
  import { type SweepOption } from '../helpers/arrowPath.js';
3
+ import { indexData } from 'svelteplot/transforms/recordize.js';
3
4
  declare function $$render<Datum = DataRecord | GeoJSON.GeoJsonObject>(): {
4
5
  props: Omit<Partial<{
5
6
  filter: ConstantAccessor<boolean, Datum>;
@@ -8,8 +9,8 @@ declare function $$render<Datum = DataRecord | GeoJSON.GeoJsonObject>(): {
8
9
  fy: ChannelAccessor<Datum>;
9
10
  dx: ConstantAccessor<number, Datum>;
10
11
  dy: ConstantAccessor<number, Datum>;
11
- dodgeX: import("../transforms/dodge.js").DodgeXOptions;
12
- dodgeY: import("../transforms/dodge.js").DodgeYOptions;
12
+ dodgeX: indexData;
13
+ dodgeY: indexData;
13
14
  fill: ChannelAccessor<Datum>;
14
15
  fillOpacity: ConstantAccessor<number, Datum>;
15
16
  fontFamily: ConstantAccessor<import("csstype").Property.FontFamily, Datum>;
@@ -22,10 +23,10 @@ declare function $$render<Datum = DataRecord | GeoJSON.GeoJsonObject>(): {
22
23
  textAnchor: ConstantAccessor<import("csstype").Property.TextAnchor, Datum>;
23
24
  textTransform: ConstantAccessor<import("csstype").Property.TextTransform, Datum>;
24
25
  textDecoration: ConstantAccessor<import("csstype").Property.TextDecoration<0 | (string & {})>, Datum>;
25
- sort: ((a: RawValue, b: RawValue) => number) | {
26
+ sort: {
26
27
  channel: string;
27
28
  order?: "ascending" | "descending";
28
- } | ConstantAccessor<RawValue, Datum>;
29
+ } | ((a: RawValue, b: RawValue) => number) | ConstantAccessor<RawValue, Datum>;
29
30
  stroke: ChannelAccessor<Datum>;
30
31
  strokeWidth: ConstantAccessor<number, Datum>;
31
32
  strokeOpacity: ConstantAccessor<number, Datum>;
@@ -22,7 +22,7 @@
22
22
  import { resolveScaledStyles } from '../helpers/resolve.js';
23
23
  import { getPlotDefaults } from '../hooks/plotDefaults.js';
24
24
  import { extent } from 'd3-array';
25
- import { usePlot } from '../hooks/usePlot.svelte.js';
25
+ import { usePlot } from 'svelteplot/hooks/usePlot.svelte.js';
26
26
 
27
27
  interface AxisXMarkProps extends Omit<
28
28
  BaseMarkProps<Datum>,
@@ -1,5 +1,6 @@
1
1
  import type { RawValue, ConstantAccessor, TickFormatFunction } from '../types/index.js';
2
2
  import type * as CSS from 'csstype';
3
+ import { usePlot } from 'svelteplot/hooks/usePlot.svelte.js';
3
4
  declare function $$render<Datum extends RawValue>(): {
4
5
  props: Omit<Partial<{
5
6
  filter: ConstantAccessor<boolean, Datum>;
@@ -8,8 +9,8 @@ declare function $$render<Datum extends RawValue>(): {
8
9
  fy: import("../types/channel.js").ChannelAccessor<Datum>;
9
10
  dx: ConstantAccessor<number, Datum>;
10
11
  dy: ConstantAccessor<number, Datum>;
11
- dodgeX: import("../transforms/dodge.js").DodgeXOptions;
12
- dodgeY: import("../transforms/dodge.js").DodgeYOptions;
12
+ dodgeX: usePlot;
13
+ dodgeY: usePlot;
13
14
  fill: import("../types/channel.js").ChannelAccessor<Datum>;
14
15
  fillOpacity: ConstantAccessor<number, Datum>;
15
16
  fontFamily: ConstantAccessor<CSS.Property.FontFamily, Datum>;
@@ -22,10 +23,10 @@ declare function $$render<Datum extends RawValue>(): {
22
23
  textAnchor: ConstantAccessor<CSS.Property.TextAnchor, Datum>;
23
24
  textTransform: ConstantAccessor<CSS.Property.TextTransform, Datum>;
24
25
  textDecoration: ConstantAccessor<CSS.Property.TextDecoration<0 | (string & {})>, Datum>;
25
- sort: ((a: RawValue, b: RawValue) => number) | {
26
+ sort: {
26
27
  channel: string;
27
28
  order?: "ascending" | "descending";
28
- } | ConstantAccessor<RawValue, Datum>;
29
+ } | ((a: RawValue, b: RawValue) => number) | ConstantAccessor<RawValue, Datum>;
29
30
  stroke: import("../types/channel.js").ChannelAccessor<Datum>;
30
31
  strokeWidth: ConstantAccessor<number, Datum>;
31
32
  strokeOpacity: ConstantAccessor<number, Datum>;
@@ -136,7 +137,7 @@ declare function $$render<Datum extends RawValue>(): {
136
137
  style: string;
137
138
  cursor: ConstantAccessor<CSS.Property.Cursor, Datum>;
138
139
  title: ConstantAccessor<string, Datum>;
139
- }>, "fillOpacity" | "textAnchor" | "paintOrder" | "title" | "href" | "target"> & {
140
+ }>, "fillOpacity" | "textAnchor" | "href" | "target" | "title" | "paintOrder"> & {
140
141
  /** custom tick values to display on the axis */
141
142
  data?: Datum[];
142
143
  /** whether this axis was automatically added by the Plot component */
@@ -21,7 +21,7 @@
21
21
  import { resolveScaledStyles } from '../helpers/resolve.js';
22
22
  import { getPlotDefaults } from '../hooks/plotDefaults.js';
23
23
  import { extent } from 'd3-array';
24
- import { usePlot } from '../hooks/usePlot.svelte.js';
24
+ import { usePlot } from 'svelteplot/hooks/usePlot.svelte.js';
25
25
 
26
26
  interface AxisYMarkProps extends Omit<
27
27
  BaseMarkProps<Datum>,
@@ -1,4 +1,5 @@
1
1
  import type { RawValue, ConstantAccessor, TickFormatFunction } from '../types/index.js';
2
+ import { usePlot } from 'svelteplot/hooks/usePlot.svelte.js';
2
3
  declare function $$render<Datum extends RawValue>(): {
3
4
  props: Omit<Partial<{
4
5
  filter: ConstantAccessor<boolean, Datum>;
@@ -7,8 +8,8 @@ declare function $$render<Datum extends RawValue>(): {
7
8
  fy: import("../types/channel.js").ChannelAccessor<Datum>;
8
9
  dx: ConstantAccessor<number, Datum>;
9
10
  dy: ConstantAccessor<number, Datum>;
10
- dodgeX: import("../transforms/dodge.js").DodgeXOptions;
11
- dodgeY: import("../transforms/dodge.js").DodgeYOptions;
11
+ dodgeX: usePlot;
12
+ dodgeY: usePlot;
12
13
  fill: import("../types/channel.js").ChannelAccessor<Datum>;
13
14
  fillOpacity: ConstantAccessor<number, Datum>;
14
15
  fontFamily: ConstantAccessor<import("csstype").Property.FontFamily, Datum>;
@@ -21,10 +22,10 @@ declare function $$render<Datum extends RawValue>(): {
21
22
  textAnchor: ConstantAccessor<import("csstype").Property.TextAnchor, Datum>;
22
23
  textTransform: ConstantAccessor<import("csstype").Property.TextTransform, Datum>;
23
24
  textDecoration: ConstantAccessor<import("csstype").Property.TextDecoration<0 | (string & {})>, Datum>;
24
- sort: ((a: RawValue, b: RawValue) => number) | {
25
+ sort: {
25
26
  channel: string;
26
27
  order?: "ascending" | "descending";
27
- } | ConstantAccessor<RawValue, Datum>;
28
+ } | ((a: RawValue, b: RawValue) => number) | ConstantAccessor<RawValue, Datum>;
28
29
  stroke: import("../types/channel.js").ChannelAccessor<Datum>;
29
30
  strokeWidth: ConstantAccessor<number, Datum>;
30
31
  strokeOpacity: ConstantAccessor<number, Datum>;
@@ -135,7 +136,7 @@ declare function $$render<Datum extends RawValue>(): {
135
136
  style: string;
136
137
  cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
137
138
  title: ConstantAccessor<string, Datum>;
138
- }>, "fillOpacity" | "textAnchor" | "paintOrder" | "title" | "href" | "target"> & {
139
+ }>, "fillOpacity" | "textAnchor" | "href" | "target" | "title" | "paintOrder"> & {
139
140
  /** custom tick values to display on the axis */
140
141
  data?: Datum[];
141
142
  /** whether this axis was automatically added by the Plot component */
@@ -27,7 +27,7 @@
27
27
  import { stackX, recordizeX, intervalX, sort } from '../index.js';
28
28
 
29
29
  import type { StackOptions } from '../transforms/stack.js';
30
- import type { DataRow } from '../types/index.js';
30
+ import type { DataRow } from 'svelteplot/types/index.js';
31
31
  import GroupMultiple from './helpers/GroupMultiple.svelte';
32
32
  import RectPath from './helpers/RectPath.svelte';
33
33
  import RectCanvas from './helpers/RectCanvas.svelte';
@@ -39,7 +39,7 @@
39
39
  LinkableMarkProps
40
40
  } from '../types/index.js';
41
41
  import { getPlotDefaults } from '../hooks/plotDefaults.js';
42
- import { usePlot } from '../hooks/usePlot.svelte.js';
42
+ import { usePlot } from 'svelteplot/hooks/usePlot.svelte.js';
43
43
 
44
44
  const DEFAULTS = {
45
45
  fill: 'currentColor',
@@ -1,5 +1,5 @@
1
1
  import type { StackOptions } from '../transforms/stack.js';
2
- import type { DataRow } from '../types/index.js';
2
+ import type { DataRow } from 'svelteplot/types/index.js';
3
3
  import type { BaseRectMarkProps, ChannelAccessor, LinkableMarkProps } from '../types/index.js';
4
4
  declare function $$render<Datum extends DataRow>(): {
5
5
  props: Partial<{
@@ -9,8 +9,8 @@ declare function $$render<Datum extends DataRow>(): {
9
9
  fy: ChannelAccessor<Datum>;
10
10
  dx: import("../types/index.js").ConstantAccessor<number, Datum>;
11
11
  dy: import("../types/index.js").ConstantAccessor<number, Datum>;
12
- dodgeX: import("../transforms/dodge.js").DodgeXOptions;
13
- dodgeY: import("../transforms/dodge.js").DodgeYOptions;
12
+ dodgeX: DataRow;
13
+ dodgeY: DataRow;
14
14
  fill: ChannelAccessor<Datum>;
15
15
  fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
16
16
  fontFamily: import("../types/index.js").ConstantAccessor<import("csstype").Property.FontFamily, Datum>;
@@ -23,10 +23,10 @@ declare function $$render<Datum extends DataRow>(): {
23
23
  textAnchor: import("../types/index.js").ConstantAccessor<import("csstype").Property.TextAnchor, Datum>;
24
24
  textTransform: import("../types/index.js").ConstantAccessor<import("csstype").Property.TextTransform, Datum>;
25
25
  textDecoration: import("../types/index.js").ConstantAccessor<import("csstype").Property.TextDecoration<0 | (string & {})>, Datum>;
26
- sort: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
26
+ sort: {
27
27
  channel: string;
28
28
  order?: "ascending" | "descending";
29
- } | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Datum>;
29
+ } | ((a: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data.js").RawValue, Datum>;
30
30
  stroke: ChannelAccessor<Datum>;
31
31
  strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
32
32
  strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
@@ -39,7 +39,7 @@
39
39
  LinkableMarkProps
40
40
  } from '../types/index.js';
41
41
  import { getPlotDefaults } from '../hooks/plotDefaults.js';
42
- import { usePlot } from '../hooks/usePlot.svelte.js';
42
+ import { usePlot } from 'svelteplot/hooks/usePlot.svelte.js';
43
43
 
44
44
  const plot = usePlot();
45
45
 
@@ -1,5 +1,6 @@
1
1
  import type { StackOptions } from '../transforms/stack.js';
2
2
  import type { BaseRectMarkProps, ChannelAccessor, DataRow, LinkableMarkProps } from '../types/index.js';
3
+ import { usePlot } from 'svelteplot/hooks/usePlot.svelte.js';
3
4
  declare function $$render<Datum extends DataRow>(): {
4
5
  props: Partial<{
5
6
  filter: import("../types/index.js").ConstantAccessor<boolean, Datum>;
@@ -8,8 +9,8 @@ declare function $$render<Datum extends DataRow>(): {
8
9
  fy: ChannelAccessor<Datum>;
9
10
  dx: import("../types/index.js").ConstantAccessor<number, Datum>;
10
11
  dy: import("../types/index.js").ConstantAccessor<number, Datum>;
11
- dodgeX: import("../transforms/dodge.js").DodgeXOptions;
12
- dodgeY: import("../transforms/dodge.js").DodgeYOptions;
12
+ dodgeX: usePlot;
13
+ dodgeY: usePlot;
13
14
  fill: ChannelAccessor<Datum>;
14
15
  fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
15
16
  fontFamily: import("../types/index.js").ConstantAccessor<import("csstype").Property.FontFamily, Datum>;
@@ -22,10 +23,10 @@ declare function $$render<Datum extends DataRow>(): {
22
23
  textAnchor: import("../types/index.js").ConstantAccessor<import("csstype").Property.TextAnchor, Datum>;
23
24
  textTransform: import("../types/index.js").ConstantAccessor<import("csstype").Property.TextTransform, Datum>;
24
25
  textDecoration: import("../types/index.js").ConstantAccessor<import("csstype").Property.TextDecoration<0 | (string & {})>, Datum>;
25
- sort: ((a: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | {
26
+ sort: {
26
27
  channel: string;
27
28
  order?: "ascending" | "descending";
28
- } | import("../types/index.js").ConstantAccessor<import("../types/data.js").RawValue, Datum>;
29
+ } | ((a: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data.js").RawValue, Datum>;
29
30
  stroke: ChannelAccessor<Datum>;
30
31
  strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
31
32
  strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
@@ -9,7 +9,7 @@
9
9
  ChannelAccessor,
10
10
  DataRecord,
11
11
  TransformArg
12
- } from '../types/index.js';
12
+ } from 'svelteplot/types/index.js';
13
13
  import { pick } from 'es-toolkit';
14
14
 
15
15
  interface BollingerXMarkProps extends BaseMarkProps<Datum> {
@@ -1,156 +1,6 @@
1
- import type { ChannelAccessor, DataRecord } from '../types/index.js';
1
+ import type { DataRecord } from 'svelteplot/types/index.js';
2
2
  declare function $$render<Datum extends DataRecord>(): {
3
- props: Partial<{
4
- filter: import("../types/index.js").ConstantAccessor<boolean, Datum>;
5
- facet: "auto" | "include" | "exclude";
6
- fx: ChannelAccessor<Datum>;
7
- fy: ChannelAccessor<Datum>;
8
- dx: import("../types/index.js").ConstantAccessor<number, Datum>;
9
- dy: import("../types/index.js").ConstantAccessor<number, Datum>;
10
- dodgeX: import("../transforms/dodge.js").DodgeXOptions;
11
- dodgeY: import("../transforms/dodge.js").DodgeYOptions;
12
- fill: ChannelAccessor<Datum>;
13
- fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
14
- fontFamily: import("../types/index.js").ConstantAccessor<import("csstype").Property.FontFamily, Datum>;
15
- fontSize: import("../types/index.js").ConstantAccessor<import("csstype").Property.FontSize<number>, Datum>;
16
- fontStyle: import("../types/index.js").ConstantAccessor<import("csstype").Property.FontStyle, Datum>;
17
- fontVariant: import("../types/index.js").ConstantAccessor<import("csstype").Property.FontVariant, Datum>;
18
- fontWeight: import("../types/index.js").ConstantAccessor<import("csstype").Property.FontWeight, Datum>;
19
- letterSpacing: import("../types/index.js").ConstantAccessor<import("csstype").Property.LetterSpacing<0 | (string & {})>, Datum>;
20
- wordSpacing: import("../types/index.js").ConstantAccessor<import("csstype").Property.WordSpacing<0 | (string & {})>, Datum>;
21
- textAnchor: import("../types/index.js").ConstantAccessor<import("csstype").Property.TextAnchor, Datum>;
22
- textTransform: import("../types/index.js").ConstantAccessor<import("csstype").Property.TextTransform, Datum>;
23
- textDecoration: import("../types/index.js").ConstantAccessor<import("csstype").Property.TextDecoration<0 | (string & {})>, Datum>;
24
- sort: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
25
- channel: string;
26
- order?: "ascending" | "descending";
27
- } | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Datum>;
28
- stroke: ChannelAccessor<Datum>;
29
- strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
30
- strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
31
- strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
32
- strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
33
- strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, Datum>;
34
- opacity: ChannelAccessor<Datum>;
35
- strokeDasharray: import("../types/index.js").ConstantAccessor<string, Datum>;
36
- strokeDashoffset: import("../types/index.js").ConstantAccessor<number, Datum>;
37
- blend: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
38
- mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
39
- clipPath: string;
40
- mask: string;
41
- imageFilter: import("../types/index.js").ConstantAccessor<string, Datum>;
42
- shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
43
- paintOrder: import("../types/index.js").ConstantAccessor<string, Datum>;
44
- onclick: (event: Event & {
45
- currentTarget: SVGPathElement;
46
- }, datum: Datum, index: number) => void;
47
- ondblclick: (event: Event & {
48
- currentTarget: SVGPathElement;
49
- }, datum: Datum, index: number) => void;
50
- onmouseup: (event: Event & {
51
- currentTarget: SVGPathElement;
52
- }, datum: Datum, index: number) => void;
53
- onmousedown: (event: Event & {
54
- currentTarget: SVGPathElement;
55
- }, datum: Datum, index: number) => void;
56
- onmouseenter: (event: Event & {
57
- currentTarget: SVGPathElement;
58
- }, datum: Datum, index: number) => void;
59
- onmousemove: (event: Event & {
60
- currentTarget: SVGPathElement;
61
- }, datum: Datum, index: number) => void;
62
- onmouseleave: (event: Event & {
63
- currentTarget: SVGPathElement;
64
- }, datum: Datum, index: number) => void;
65
- onmouseout: (event: Event & {
66
- currentTarget: SVGPathElement;
67
- }, datum: Datum, index: number) => void;
68
- onmouseover: (event: Event & {
69
- currentTarget: SVGPathElement;
70
- }, datum: Datum, index: number) => void;
71
- onpointercancel: (event: Event & {
72
- currentTarget: SVGPathElement;
73
- }, datum: Datum, index: number) => void;
74
- onpointerdown: (event: Event & {
75
- currentTarget: SVGPathElement;
76
- }, datum: Datum, index: number) => void;
77
- onpointerup: (event: Event & {
78
- currentTarget: SVGPathElement;
79
- }, datum: Datum, index: number) => void;
80
- onpointerenter: (event: Event & {
81
- currentTarget: SVGPathElement;
82
- }, datum: Datum, index: number) => void;
83
- onpointerleave: (event: Event & {
84
- currentTarget: SVGPathElement;
85
- }, datum: Datum, index: number) => void;
86
- onpointermove: (event: Event & {
87
- currentTarget: SVGPathElement;
88
- }, datum: Datum, index: number) => void;
89
- onpointerover: (event: Event & {
90
- currentTarget: SVGPathElement;
91
- }, datum: Datum, index: number) => void;
92
- onpointerout: (event: Event & {
93
- currentTarget: SVGPathElement;
94
- }, datum: Datum, index: number) => void;
95
- ondrag: (event: Event & {
96
- currentTarget: SVGPathElement;
97
- }, datum: Datum, index: number) => void;
98
- ondrop: (event: Event & {
99
- currentTarget: SVGPathElement;
100
- }, datum: Datum, index: number) => void;
101
- ondragstart: (event: Event & {
102
- currentTarget: SVGPathElement;
103
- }, datum: Datum, index: number) => void;
104
- ondragenter: (event: Event & {
105
- currentTarget: SVGPathElement;
106
- }, datum: Datum, index: number) => void;
107
- ondragleave: (event: Event & {
108
- currentTarget: SVGPathElement;
109
- }, datum: Datum, index: number) => void;
110
- ondragover: (event: Event & {
111
- currentTarget: SVGPathElement;
112
- }, datum: Datum, index: number) => void;
113
- ondragend: (event: Event & {
114
- currentTarget: SVGPathElement;
115
- }, datum: Datum, index: number) => void;
116
- ontouchstart: (event: Event & {
117
- currentTarget: SVGPathElement;
118
- }, datum: Datum, index: number) => void;
119
- ontouchmove: (event: Event & {
120
- currentTarget: SVGPathElement;
121
- }, datum: Datum, index: number) => void;
122
- ontouchend: (event: Event & {
123
- currentTarget: SVGPathElement;
124
- }, datum: Datum, index: number) => void;
125
- ontouchcancel: (event: Event & {
126
- currentTarget: SVGPathElement;
127
- }, datum: Datum, index: number) => void;
128
- oncontextmenu: (event: Event & {
129
- currentTarget: SVGPathElement;
130
- }, datum: Datum, index: number) => void;
131
- onwheel: (event: Event & {
132
- currentTarget: SVGPathElement;
133
- }, datum: Datum, index: number) => void;
134
- class: string;
135
- style: string;
136
- cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
137
- title: import("../types/index.js").ConstantAccessor<string, Datum>;
138
- }> & {
139
- /** the input data array */
140
- data: Datum[];
141
- /** the horizontal position channel; the dependent variable for the moving average */
142
- x?: ChannelAccessor<Datum>;
143
- /** the vertical position channel; used for grouping */
144
- y?: ChannelAccessor<Datum>;
145
- /**
146
- * the window size (the window transform's k option), an integer; defaults to 20
147
- */
148
- n?: number;
149
- /**
150
- * the band radius, a number representing a multiple of standard deviations; defaults to 2
151
- */
152
- k?: number;
153
- };
3
+ props: any;
154
4
  exports: {};
155
5
  bindings: "";
156
6
  slots: {};
@@ -9,7 +9,7 @@
9
9
  ChannelAccessor,
10
10
  DataRecord,
11
11
  TransformArg
12
- } from '../types/index.js';
12
+ } from 'svelteplot/types/index.js';
13
13
  import { pick } from 'es-toolkit';
14
14
 
15
15
  interface BollingerYMarkProps extends BaseMarkProps<Datum> {