svelteplot 0.4.3 → 0.4.4-pr-105.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 (66) hide show
  1. package/README.md +41 -0
  2. package/dist/Mark.svelte +5 -2
  3. package/dist/Mark.svelte.d.ts +2 -1
  4. package/dist/core/Plot.svelte +1 -0
  5. package/dist/helpers/colors.d.ts +1 -1
  6. package/dist/helpers/index.d.ts +2 -2
  7. package/dist/helpers/scales.d.ts +1 -1
  8. package/dist/helpers/scales.js +2 -2
  9. package/dist/helpers/typeChecks.d.ts +4 -4
  10. package/dist/marks/Area.svelte.d.ts +2 -1
  11. package/dist/marks/AreaX.svelte.d.ts +4 -2
  12. package/dist/marks/AreaY.svelte.d.ts +4 -2
  13. package/dist/marks/Arrow.svelte.d.ts +2 -1
  14. package/dist/marks/AxisX.svelte +5 -1
  15. package/dist/marks/AxisX.svelte.d.ts +11 -7
  16. package/dist/marks/AxisY.svelte +3 -2
  17. package/dist/marks/AxisY.svelte.d.ts +9 -7
  18. package/dist/marks/BarX.svelte.d.ts +3 -2
  19. package/dist/marks/BarY.svelte +0 -1
  20. package/dist/marks/BarY.svelte.d.ts +2 -1
  21. package/dist/marks/BollingerX.svelte.d.ts +2 -73
  22. package/dist/marks/BollingerY.svelte.d.ts +2 -73
  23. package/dist/marks/BoxX.svelte +72 -28
  24. package/dist/marks/BoxY.svelte +88 -38
  25. package/dist/marks/BoxY.svelte.d.ts +6 -66
  26. package/dist/marks/Cell.svelte.d.ts +2 -1
  27. package/dist/marks/ColorLegend.svelte +1 -1
  28. package/dist/marks/CustomMark.svelte.d.ts +2 -80
  29. package/dist/marks/DifferenceY.svelte.d.ts +7 -66
  30. package/dist/marks/Dot.svelte.d.ts +2 -1
  31. package/dist/marks/DotX.svelte.d.ts +2 -1
  32. package/dist/marks/DotY.svelte.d.ts +2 -1
  33. package/dist/marks/Geo.svelte.d.ts +2 -1
  34. package/dist/marks/GridX.svelte.d.ts +2 -1
  35. package/dist/marks/GridY.svelte.d.ts +2 -1
  36. package/dist/marks/Line.svelte.d.ts +4 -3
  37. package/dist/marks/LineX.svelte.d.ts +4 -2
  38. package/dist/marks/LineY.svelte.d.ts +4 -2
  39. package/dist/marks/Link.svelte.d.ts +2 -1
  40. package/dist/marks/Rect.svelte +0 -7
  41. package/dist/marks/Rect.svelte.d.ts +2 -1
  42. package/dist/marks/RuleX.svelte.d.ts +2 -1
  43. package/dist/marks/RuleY.svelte.d.ts +2 -1
  44. package/dist/marks/Spike.svelte.d.ts +2 -1
  45. package/dist/marks/Text.svelte.d.ts +2 -1
  46. package/dist/marks/TickX.svelte.d.ts +2 -1
  47. package/dist/marks/TickY.svelte.d.ts +2 -1
  48. package/dist/marks/Vector.svelte.d.ts +2 -1
  49. package/dist/marks/helpers/MultilineText.svelte +10 -10
  50. package/dist/marks/helpers/RectPath.svelte +8 -3
  51. package/dist/marks/helpers/RectPath.svelte.d.ts +3 -62
  52. package/dist/transforms/bollinger.d.ts +1 -66
  53. package/dist/transforms/group.d.ts +4 -12
  54. package/dist/transforms/interval.d.ts +2 -122
  55. package/dist/transforms/recordize.d.ts +1 -4
  56. package/dist/transforms/rename.d.ts +1 -0
  57. package/dist/transforms/rename.js +5 -0
  58. package/dist/transforms/select.d.ts +7 -427
  59. package/dist/transforms/sort.d.ts +3 -242
  60. package/dist/transforms/sort.js +13 -1
  61. package/dist/transforms/stack.d.ts +5 -25
  62. package/dist/transforms/stack.js +96 -41
  63. package/dist/transforms/window.d.ts +2 -128
  64. package/dist/types/mark.d.ts +5 -1
  65. package/dist/ui/Spiral.svelte +0 -15
  66. package/package.json +129 -125
@@ -58,7 +58,8 @@ declare class __sveltets_Render<Datum extends DataRecord> {
58
58
  ontouchcancel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
59
59
  oncontextmenu?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
60
60
  onwheel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
61
- class: string | null;
61
+ class?: string;
62
+ style?: string;
62
63
  cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
63
64
  }> & LinkableMarkProps<Datum> & {
64
65
  data: Datum[];
@@ -57,7 +57,8 @@ declare class __sveltets_Render<Datum extends DataRow> {
57
57
  ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
58
58
  oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
59
59
  onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
60
- class: string | null;
60
+ class?: string;
61
+ style?: string;
61
62
  cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types/data").RawValue>>;
62
63
  }> & import("../types/mark").LinkableMarkProps<Record<string | symbol, import("../types/data").RawValue>> & {
63
64
  data: Record<string | symbol, import("../types/data").RawValue>[];
@@ -57,7 +57,8 @@ declare class __sveltets_Render<Datum extends DataRow> {
57
57
  ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
58
58
  oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
59
59
  onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
60
- class: string | null;
60
+ class?: string;
61
+ style?: string;
61
62
  cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types/data").RawValue>>;
62
63
  }> & import("../types/mark").LinkableMarkProps<Record<string | symbol, import("../types/data").RawValue>> & {
63
64
  data: Record<string | symbol, import("../types/data").RawValue>[];
@@ -57,7 +57,8 @@ declare class __sveltets_Render<Datum = DataRecord | GeoJSON.GeoJsonObject> {
57
57
  ontouchcancel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
58
58
  oncontextmenu?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
59
59
  onwheel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
60
- class: string | null;
60
+ class?: string;
61
+ style?: string;
61
62
  cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
62
63
  }> & LinkableMarkProps<Datum> & {
63
64
  data?: Datum[] | {
@@ -57,7 +57,8 @@ declare class __sveltets_Render<Datum = RawValue> {
57
57
  ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
58
58
  oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
59
59
  onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
60
- class: string | null;
60
+ class?: string;
61
+ style?: string;
61
62
  cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
62
63
  }>, "fill" | "fillOpacity"> & {
63
64
  data?: Datum[] | undefined;
@@ -57,7 +57,8 @@ declare class __sveltets_Render<Datum = RawValue> {
57
57
  ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
58
58
  oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
59
59
  onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
60
- class: string | null;
60
+ class?: string;
61
+ style?: string;
61
62
  cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
62
63
  }>, "fill" | "fillOpacity"> & {
63
64
  data?: Datum[] | undefined;
@@ -14,7 +14,7 @@ declare class __sveltets_Render<Datum extends DataRecord> {
14
14
  sort: {
15
15
  channel: string;
16
16
  order?: "ascending" | "descending";
17
- } | ((a: RawValue, b: RawValue) => number) | ConstantAccessor<RawValue, Datum>;
17
+ } | ((a: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | ConstantAccessor<import("../types/data.js").RawValue, Datum>;
18
18
  stroke: ChannelAccessor<Datum>;
19
19
  strokeWidth: ConstantAccessor<number, Datum>;
20
20
  strokeOpacity: ConstantAccessor<number, Datum>;
@@ -59,7 +59,8 @@ declare class __sveltets_Render<Datum extends DataRecord> {
59
59
  ontouchcancel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
60
60
  oncontextmenu?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
61
61
  onwheel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
62
- class: string | null;
62
+ class?: string;
63
+ style?: string;
63
64
  cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
64
65
  }> & {
65
66
  data?: Datum[] | undefined;
@@ -71,7 +72,7 @@ declare class __sveltets_Render<Datum extends DataRecord> {
71
72
  outlineStrokeOpacity?: number;
72
73
  curve?: CurveName | CurveFactory | "auto";
73
74
  tension?: number;
74
- sort?: ConstantAccessor<RawValue, Datum> | {
75
+ sort?: ConstantAccessor<RawValue, Datum_1> | {
75
76
  channel: "stroke" | "fill";
76
77
  };
77
78
  text?: ConstantAccessor<string, Datum>;
@@ -1,3 +1,4 @@
1
+ import { recordizeX } from '../index.js';
1
2
  import type { DataRow } from '../index.js';
2
3
  declare class __sveltets_Render<Datum extends DataRow> {
3
4
  props(): Omit<import("../types").MarkerOptions & Partial<{
@@ -57,7 +58,8 @@ declare class __sveltets_Render<Datum extends DataRow> {
57
58
  ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
58
59
  oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
59
60
  onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
60
- class: string | null;
61
+ class?: string;
62
+ style?: string;
61
63
  cursor: import("../types").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types").RawValue>>;
62
64
  }> & {
63
65
  data?: Record<string | symbol, import("../types").RawValue>[] | undefined;
@@ -69,7 +71,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
69
71
  outlineStrokeOpacity?: number;
70
72
  curve?: import("../types").CurveName | import("d3-shape").CurveFactory | "auto";
71
73
  tension?: number;
72
- sort?: import("../types").ConstantAccessor<import("../types").RawValue, Record<string | symbol, import("../types").RawValue>> | {
74
+ sort?: import("../types").ConstantAccessor<recordizeX, Datum_1> | {
73
75
  channel: "stroke" | "fill";
74
76
  };
75
77
  text?: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
@@ -1,3 +1,4 @@
1
+ import { recordizeY } from '../index.js';
1
2
  import type { DataRow } from '../index.js';
2
3
  declare class __sveltets_Render<Datum extends DataRow> {
3
4
  props(): Omit<import("../types").MarkerOptions & Partial<{
@@ -57,7 +58,8 @@ declare class __sveltets_Render<Datum extends DataRow> {
57
58
  ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
58
59
  oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
59
60
  onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
60
- class: string | null;
61
+ class?: string;
62
+ style?: string;
61
63
  cursor: import("../types").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types").RawValue>>;
62
64
  }> & {
63
65
  data?: Record<string | symbol, import("../types").RawValue>[] | undefined;
@@ -69,7 +71,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
69
71
  outlineStrokeOpacity?: number;
70
72
  curve?: import("../types").CurveName | import("d3-shape").CurveFactory | "auto";
71
73
  tension?: number;
72
- sort?: import("../types").ConstantAccessor<import("../types").RawValue, Record<string | symbol, import("../types").RawValue>> | {
74
+ sort?: import("../types").ConstantAccessor<recordizeY, Datum_1> | {
73
75
  channel: "stroke" | "fill";
74
76
  };
75
77
  text?: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
@@ -58,7 +58,8 @@ declare class __sveltets_Render<Datum extends DataRecord> {
58
58
  ontouchcancel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
59
59
  oncontextmenu?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
60
60
  onwheel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
61
- class: string | null;
61
+ class?: string;
62
+ style?: string;
62
63
  cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
63
64
  }> & MarkerOptions & {
64
65
  data: Datum[];
@@ -91,10 +91,3 @@
91
91
  </GroupMultiple>
92
92
  {/snippet}
93
93
  </Mark>
94
-
95
- <style>
96
- rect {
97
- stroke: none;
98
- /* fill: none; */
99
- }
100
- </style>
@@ -57,7 +57,8 @@ declare class __sveltets_Render<Datum extends DataRecord> {
57
57
  ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
58
58
  oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
59
59
  onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
60
- class: string | null;
60
+ class?: string;
61
+ style?: string;
61
62
  cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
62
63
  }> & LinkableMarkProps<Datum> & BaseRectMarkProps<Datum> & {
63
64
  data: Datum[];
@@ -57,7 +57,8 @@ declare class __sveltets_Render<Datum = DataRecord | RawValue> {
57
57
  ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
58
58
  oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
59
59
  onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
60
- class: string | null;
60
+ class?: string;
61
+ style?: string;
61
62
  cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
62
63
  }>, "fill" | "fillOpacity"> & {
63
64
  data?: Datum[] | undefined;
@@ -57,7 +57,8 @@ declare class __sveltets_Render<Datum = DataRecord> {
57
57
  ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
58
58
  oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
59
59
  onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
60
- class: string | null;
60
+ class?: string;
61
+ style?: string;
61
62
  cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
62
63
  }>, "fill" | "fillOpacity"> & {
63
64
  data?: Datum[] | undefined;
@@ -57,7 +57,8 @@ declare class __sveltets_Render<Datum extends DataRecord> {
57
57
  ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
58
58
  oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
59
59
  onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
60
- class: string | null;
60
+ class?: string;
61
+ style?: string;
61
62
  cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types/data").RawValue>>;
62
63
  }> & {
63
64
  data: Record<string | symbol, import("../types/data").RawValue>[];
@@ -59,7 +59,8 @@ declare class __sveltets_Render<Datum extends DataRecord> {
59
59
  ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
60
60
  oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
61
61
  onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
62
- class: string | null;
62
+ class?: string;
63
+ style?: string;
63
64
  cursor: ConstantAccessor<CSS.Property.Cursor, Datum>;
64
65
  }> & LinkableMarkProps<Datum> & {
65
66
  data?: Datum[] | undefined;
@@ -57,7 +57,8 @@ declare class __sveltets_Render<Datum extends DataRow> {
57
57
  ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
58
58
  oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
59
59
  onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
60
- class: string | null;
60
+ class?: string;
61
+ style?: string;
61
62
  cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
62
63
  }>, "fill" | "fillOpacity"> & {
63
64
  data: Datum[];
@@ -57,7 +57,8 @@ declare class __sveltets_Render<Datum extends DataRow> {
57
57
  ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
58
58
  oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
59
59
  onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
60
- class: string | null;
60
+ class?: string;
61
+ style?: string;
61
62
  cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
62
63
  }>, "fill" | "fillOpacity"> & {
63
64
  data: Datum[];
@@ -62,7 +62,8 @@ declare class __sveltets_Render<Datum extends DataRecord> {
62
62
  ontouchcancel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
63
63
  oncontextmenu?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
64
64
  onwheel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
65
- class: string | null;
65
+ class?: string;
66
+ style?: string;
66
67
  cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
67
68
  }> & {
68
69
  data: Datum[];
@@ -55,18 +55,18 @@
55
55
  : [
56
56
  args.x != null
57
57
  ? d.x
58
- : isLeft
59
- ? plot.options.marginLeft
60
- : isRight
61
- ? plot.options.marginLeft + plot.facetWidth
62
- : plot.options.marginLeft + plot.facetWidth * 0.5,
58
+ : (isLeft
59
+ ? plot.options.marginLeft
60
+ : isRight
61
+ ? plot.options.marginLeft + plot.facetWidth
62
+ : plot.options.marginLeft + plot.facetWidth * 0.5) + (d.dx ?? 0),
63
63
  args.y != null
64
64
  ? d.y
65
- : isTop
66
- ? plot.options.marginTop
67
- : isBottom
68
- ? plot.options.marginTop + plot.facetHeight
69
- : plot.options.marginTop + plot.facetHeight * 0.5
65
+ : (isTop
66
+ ? plot.options.marginTop
67
+ : isBottom
68
+ ? plot.options.marginTop + plot.facetHeight
69
+ : plot.options.marginTop + plot.facetHeight * 0.5) + (d.dy ?? 0)
70
70
  ]
71
71
  );
72
72
 
@@ -34,7 +34,6 @@ Helper component for rendering rectangular marks in SVG
34
34
  import type { BaseMarkProps, BaseRectMarkProps, BorderRadius } from '../../types/mark.js';
35
35
  import type { DataRecord, ScaledDataRecord } from '../../types/data.js';
36
36
  import type { PlotContext, UsedScales } from '../../types/index.js';
37
- import { RAW_VALUE } from '../../transforms/recordize.js';
38
37
 
39
38
  let {
40
39
  datum,
@@ -47,7 +46,7 @@ Helper component for rendering rectangular marks in SVG
47
46
  useInsetAsFallbackVertically = true,
48
47
  useInsetAsFallbackHorizontally = true,
49
48
  usedScales,
50
- fallbackStyle = 'fill'
49
+ fallbackStyle
51
50
  }: RectPathProps = $props();
52
51
 
53
52
  const { getPlotState } = getContext<PlotContext>('svelteplot');
@@ -94,7 +93,13 @@ Helper component for rendering rectangular marks in SVG
94
93
  ) > 0)
95
94
  );
96
95
  const [style, styleClass] = $derived(
97
- resolveStyles(plot, datum, options, fallbackStyle, usedScales)
96
+ resolveStyles(
97
+ plot,
98
+ datum,
99
+ options,
100
+ !fallbackStyle ? (options.stroke && !options.fill ? 'stroke' : 'fill') : fallbackStyle,
101
+ usedScales
102
+ )
98
103
  );
99
104
  </script>
100
105
 
@@ -1,74 +1,15 @@
1
- import type { BaseRectMarkProps } from '../../types/mark.js';
1
+ import type { BaseMarkProps, BaseRectMarkProps } from '../../types/mark.js';
2
2
  import type { DataRecord, ScaledDataRecord } from '../../types/data.js';
3
3
  import type { UsedScales } from '../../types/index.js';
4
4
  declare class __sveltets_Render<Datum extends DataRecord> {
5
5
  props(): {
6
- datum: ScaledDataRecord<Datum>;
6
+ datum: ScaledDataRecord<Datum_1>;
7
7
  class: string | null;
8
8
  x: number;
9
9
  y: number;
10
10
  width: number;
11
11
  height: number;
12
- options: BaseRectMarkProps<Datum> & Partial<{
13
- filter?: import("../../types/index.js").ConstantAccessor<boolean, Datum>;
14
- facet?: "auto" | "include" | "exclude";
15
- fx: import("../../types/index.js").ChannelAccessor<Datum>;
16
- fy: import("../../types/index.js").ChannelAccessor<Datum>;
17
- dx: import("../../types/index.js").ConstantAccessor<number, Datum>;
18
- dy: import("../../types/index.js").ConstantAccessor<number, Datum>;
19
- fill: import("../../types/index.js").ChannelAccessor<Datum>;
20
- fillOpacity: import("../../types/index.js").ConstantAccessor<number, Datum>;
21
- sort: {
22
- channel: string;
23
- order?: "ascending" | "descending";
24
- } | ((a: import("../../types/data.js").RawValue, b: import("../../types/data.js").RawValue) => number) | import("../../types/index.js").ConstantAccessor<import("../../types/data.js").RawValue, Datum>;
25
- stroke: import("../../types/index.js").ChannelAccessor<Datum>;
26
- strokeWidth: import("../../types/index.js").ConstantAccessor<number, Datum>;
27
- strokeOpacity: import("../../types/index.js").ConstantAccessor<number, Datum>;
28
- strokeLinejoin: import("../../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
29
- strokeLinecap: import("../../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
30
- strokeMiterlimit: import("../../types/index.js").ConstantAccessor<number, Datum>;
31
- opacity: import("../../types/index.js").ChannelAccessor<Datum>;
32
- strokeDasharray: import("../../types/index.js").ConstantAccessor<string, Datum>;
33
- strokeDashoffset: import("../../types/index.js").ConstantAccessor<number, Datum>;
34
- mixBlendMode: import("../../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
35
- clipPath: string;
36
- imageFilter: import("../../types/index.js").ConstantAccessor<string, Datum>;
37
- shapeRendering: import("../../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
38
- paintOrder: import("../../types/index.js").ConstantAccessor<string, Datum>;
39
- onclick?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
40
- ondblclick?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
41
- onmouseup?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
42
- onmousedown?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
43
- onmouseenter?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
44
- onmousemove?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
45
- onmouseleave?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
46
- onmouseout?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
47
- onmouseover?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
48
- onpointercancel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
49
- onpointerdown?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
50
- onpointerup?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
51
- onpointerenter?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
52
- onpointerleave?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
53
- onpointermove?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
54
- onpointerover?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
55
- onpointerout?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
56
- ondrag?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
57
- ondrop?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
58
- ondragstart?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
59
- ondragenter?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
60
- ondragleave?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
61
- ondragover?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
62
- ondragend?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
63
- ontouchstart?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
64
- ontouchmove?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
65
- ontouchend?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
66
- ontouchcancel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
67
- oncontextmenu?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
68
- onwheel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
69
- class: string | null;
70
- cursor: import("../../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
71
- }>;
12
+ options: BaseRectMarkProps<Datum_1> & BaseMarkProps<Datum_1>;
72
13
  /**
73
14
  * By default, the `inset` property is applied to all four insets. Mark components
74
15
  * can tweak this behavior for insetTop and insetBottom by setting the
@@ -11,69 +11,4 @@ export type BollingerOptions = {
11
11
  };
12
12
  export declare function bollingerX(args: TransformArg<DataRecord>, options?: BollingerOptions): TransformArg<DataRecord>;
13
13
  export declare function bollingerY(args: TransformArg<DataRecord>, options?: BollingerOptions): TransformArg<DataRecord>;
14
- export declare function bollingerDim(dim: 'x' | 'y', { data, ...channels }: TransformArg<DataRecord>, options?: BollingerOptions): {
15
- filter?: import("../types/index.js").ConstantAccessor<boolean, Record<string | symbol, import("../types/index.js").RawValue>>;
16
- facet?: "auto" | "include" | "exclude" | undefined;
17
- fx?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
18
- fy?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
19
- dx?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
20
- dy?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
21
- fill?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
22
- fillOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
23
- sort?: {
24
- channel: string;
25
- order?: "ascending" | "descending";
26
- } | ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Record<string | symbol, import("../types/index.js").RawValue>>;
27
- stroke?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
28
- strokeWidth?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
29
- strokeOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
30
- strokeLinejoin?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Record<string | symbol, import("../types/index.js").RawValue>>;
31
- strokeLinecap?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Record<string | symbol, import("../types/index.js").RawValue>>;
32
- strokeMiterlimit?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
33
- opacity?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
34
- strokeDasharray?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
35
- strokeDashoffset?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
36
- mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Record<string | symbol, import("../types/index.js").RawValue>>;
37
- clipPath?: string | undefined;
38
- imageFilter?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
39
- shapeRendering?: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Record<string | symbol, import("../types/index.js").RawValue>>;
40
- paintOrder?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
41
- onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
42
- ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
43
- onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
44
- onmousedown?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
45
- onmouseenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
46
- onmousemove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
47
- onmouseleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
48
- onmouseout?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
49
- onmouseover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
50
- onpointercancel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
51
- onpointerdown?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
52
- onpointerup?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
53
- onpointerenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
54
- onpointerleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
55
- onpointermove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
56
- onpointerover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
57
- onpointerout?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
58
- ondrag?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
59
- ondrop?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
60
- ondragstart?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
61
- ondragenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
62
- ondragleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
63
- ondragover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
64
- ondragend?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
65
- ontouchstart?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
66
- ontouchmove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
67
- ontouchend?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
68
- ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
69
- oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
70
- onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
71
- class?: string | null | undefined;
72
- cursor?: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types/index.js").RawValue>>;
73
- data: {
74
- __x: import("../types/index.js").RawValue;
75
- __lo: number;
76
- __avg: number;
77
- __hi: number;
78
- }[];
79
- };
14
+ export declare function bollingerDim(dim: 'x' | 'y', { data, ...channels }: TransformArg<DataRecord>, options?: BollingerOptions): any;
@@ -38,29 +38,21 @@ type GroupZOptions = GroupXOptions | GroupYOptions;
38
38
  * groups the dataset by x and y channel and optionally reduces the group items
39
39
  * to output channels fill, stroke, r, opacity, fillOpacity, or strokeOpacity
40
40
  */
41
- export declare function group({ data, ...channels }: TransformArg<T, DataRecord>, options?: GroupXOptions): {
42
- data: Record<string | symbol, RawValue>[];
43
- };
41
+ export declare function group({ data, ...channels }: TransformArg<T, DataRecord>, options?: GroupXOptions): any;
44
42
  /**
45
43
  * groups the dataset by the x channel and optionally reduces the group items
46
44
  * to output channels y, y1, y2, fill, stroke, r, opacity, fillOpacity, or strokeOpacity
47
45
  */
48
- export declare function groupX(input: TransformArg<T, DataRecord>, options?: GroupXOptions): {
49
- data: Record<string | symbol, RawValue>[];
50
- };
46
+ export declare function groupX(input: TransformArg<T, DataRecord>, options?: GroupXOptions): any;
51
47
  /**
52
48
  * groups the dataset by the y channel and optionally reduces the group items
53
49
  * to output channels x, x1, x2, fill, stroke, r, opacity, fillOpacity, or strokeOpacity
54
50
  */
55
- export declare function groupY(input: TransformArg<T, DataRecord>, options?: GroupYOptions): {
56
- data: Record<string | symbol, RawValue>[];
57
- };
51
+ export declare function groupY(input: TransformArg<T, DataRecord>, options?: GroupYOptions): any;
58
52
  /**
59
53
  * groups the dataset by the z channel and optionally reduces the group items
60
54
  * to output channels x, x1, x2, y, y1, y2, fill, stroke, r, opacity, fillOpacity,
61
55
  * or strokeOpacity
62
56
  */
63
- export declare function groupZ(input: TransformArg<T, DataRecord>, options?: GroupZOptions): {
64
- data: Record<string | symbol, RawValue>[];
65
- };
57
+ export declare function groupZ(input: TransformArg<T, DataRecord>, options?: GroupZOptions): any;
66
58
  export {};