svelteplot 0.4.1 → 0.4.2-pr-185.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 (40) hide show
  1. package/dist/Mark.svelte +3 -3
  2. package/dist/helpers/colors.d.ts +1 -1
  3. package/dist/helpers/index.d.ts +2 -2
  4. package/dist/helpers/resolve.d.ts +1 -1
  5. package/dist/helpers/resolve.js +6 -1
  6. package/dist/helpers/scales.d.ts +1 -1
  7. package/dist/helpers/typeChecks.d.ts +4 -4
  8. package/dist/marks/AreaX.svelte.d.ts +2 -1
  9. package/dist/marks/AreaY.svelte.d.ts +2 -1
  10. package/dist/marks/Arrow.svelte +10 -10
  11. package/dist/marks/Arrow.svelte.d.ts +1 -1
  12. package/dist/marks/AxisX.svelte.d.ts +1 -1
  13. package/dist/marks/AxisY.svelte.d.ts +1 -1
  14. package/dist/marks/BarX.svelte.d.ts +1 -1
  15. package/dist/marks/BollingerX.svelte.d.ts +2 -73
  16. package/dist/marks/BollingerY.svelte.d.ts +2 -73
  17. package/dist/marks/BoxY.svelte.d.ts +6 -65
  18. package/dist/marks/CustomMark.svelte.d.ts +2 -80
  19. package/dist/marks/DifferenceY.svelte.d.ts +7 -66
  20. package/dist/marks/Frame.svelte +13 -7
  21. package/dist/marks/Frame.svelte.d.ts +1 -0
  22. package/dist/marks/Line.svelte.d.ts +2 -2
  23. package/dist/marks/LineX.svelte.d.ts +2 -1
  24. package/dist/marks/LineY.svelte.d.ts +2 -1
  25. package/dist/marks/Link.svelte +1 -4
  26. package/dist/marks/Rect.svelte +7 -4
  27. package/dist/marks/RuleX.svelte +3 -5
  28. package/dist/marks/RuleY.svelte +4 -5
  29. package/dist/marks/Vector.svelte +1 -3
  30. package/dist/marks/helpers/RectPath.svelte +2 -4
  31. package/dist/transforms/bollinger.d.ts +1 -66
  32. package/dist/transforms/group.d.ts +4 -12
  33. package/dist/transforms/interval.d.ts +2 -122
  34. package/dist/transforms/select.d.ts +7 -427
  35. package/dist/transforms/sort.d.ts +3 -242
  36. package/dist/transforms/stack.d.ts +3 -23
  37. package/dist/transforms/window.d.ts +2 -128
  38. package/dist/types/data.d.ts +2 -0
  39. package/dist/types/index.d.ts +1 -1
  40. package/package.json +126 -125
@@ -1,82 +1,23 @@
1
1
  import type { ChannelAccessor, CurveName, DataRecord } from '../types/index.js';
2
2
  import type { CurveFactory } from 'd3-shape';
3
3
  declare class __sveltets_Render<Datum extends DataRecord> {
4
- props(): Omit<Partial<{
5
- filter?: import("../types/index.js").ConstantAccessor<boolean, Datum>;
6
- facet?: "auto" | "include" | "exclude";
7
- fx: ChannelAccessor<Datum>;
8
- fy: ChannelAccessor<Datum>;
9
- dx: import("../types/index.js").ConstantAccessor<number, Datum>;
10
- dy: import("../types/index.js").ConstantAccessor<number, Datum>;
11
- fill: ChannelAccessor<Datum>;
12
- fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
13
- sort: {
14
- channel: string;
15
- order?: "ascending" | "descending";
16
- } | ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Datum>;
17
- stroke: ChannelAccessor<Datum>;
18
- strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
19
- strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
20
- strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
21
- strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
22
- strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, Datum>;
23
- opacity: ChannelAccessor<Datum>;
24
- strokeDasharray: import("../types/index.js").ConstantAccessor<string, Datum>;
25
- strokeDashoffset: import("../types/index.js").ConstantAccessor<number, Datum>;
26
- mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
27
- clipPath: string;
28
- imageFilter: import("../types/index.js").ConstantAccessor<string, Datum>;
29
- shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
30
- paintOrder: import("../types/index.js").ConstantAccessor<string, Datum>;
31
- onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
32
- ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
33
- onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
34
- onmousedown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
35
- onmouseenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
36
- onmousemove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
37
- onmouseleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
38
- onmouseout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
39
- onmouseover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
40
- onpointercancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
41
- onpointerdown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
42
- onpointerup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
43
- onpointerenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
44
- onpointerleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
45
- onpointermove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
46
- onpointerover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
47
- onpointerout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
48
- ondrag?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
49
- ondrop?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
50
- ondragstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
51
- ondragenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
52
- ondragleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
53
- ondragover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
54
- ondragend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
55
- ontouchstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
56
- ontouchmove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
57
- ontouchend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
58
- ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
59
- oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
60
- onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
61
- class: string | null;
62
- cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
63
- }>, "fill" | "fillOpacity"> & {
4
+ props(): Omit<BaseMarkProps<Datum_1>, "fill" | "fillOpacity"> & {
64
5
  data: Datum[];
65
- x1: ChannelAccessor<Datum>;
6
+ x1: ChannelAccessor<Datum_1>;
66
7
  /**
67
8
  * the horizontal position of the metric; bound to the x scale
68
9
  */
69
- x2: ChannelAccessor<Datum>;
70
- x: ChannelAccessor<Datum>;
10
+ x2: ChannelAccessor<Datum_1>;
11
+ x: ChannelAccessor<Datum_1>;
71
12
  /**
72
13
  * the vertical position of the comparison; bound to the y scale
73
14
  */
74
- y1: ChannelAccessor<Datum>;
15
+ y1: ChannelAccessor<Datum_1>;
75
16
  /**
76
17
  * the vertical position of the metric; bound to the y scale
77
18
  */
78
- y2: ChannelAccessor<Datum>;
79
- y: ChannelAccessor<Datum>;
19
+ y2: ChannelAccessor<Datum_1>;
20
+ y: ChannelAccessor<Datum_1>;
80
21
  fillOpacity?: number;
81
22
  /**
82
23
  * the stroke color of the "positive" area; defaults to 'blue'
@@ -11,6 +11,7 @@
11
11
  stroke?: string;
12
12
  fillOpacity?: number;
13
13
  strokeOpacity?: number;
14
+ opacity?: number;
14
15
  automatic?: boolean;
15
16
  inset?: number;
16
17
  insetLeft?: number;
@@ -29,13 +30,14 @@
29
30
  } from '../types/index.js';
30
31
  import type { BaseMarkProps } from '../types/index.js';
31
32
  import RectPath from './helpers/RectPath.svelte';
33
+ import { resolveProp } from '../helpers/resolve';
32
34
 
33
35
  let markProps: FrameMarkProps = $props();
34
36
 
35
37
  const DEFAULTS: FrameMarkProps = {
36
- fill: 'none',
38
+ fill: undefined,
37
39
  class: 'frame',
38
- stroke: 'currentColor',
40
+ stroke: undefined,
39
41
  fillOpacity: 1,
40
42
  strokeOpacity: 1,
41
43
  ...getContext<PlotDefaults>('svelteplot/_defaults').frame
@@ -46,6 +48,7 @@
46
48
  class: className,
47
49
  fill,
48
50
  stroke,
51
+ opacity,
49
52
  fillOpacity,
50
53
  strokeOpacity,
51
54
  ...options
@@ -54,6 +57,9 @@
54
57
  ...markProps
55
58
  });
56
59
 
60
+ const dx = $derived(resolveProp(options.dx, null, 0) || 0);
61
+ const dy = $derived(resolveProp(options.dy, null, 0) || 0);
62
+
57
63
  const { getPlotState } = getContext<PlotContext>('svelteplot');
58
64
  const plot = $derived(getPlotState());
59
65
  </script>
@@ -62,13 +68,13 @@
62
68
  {#snippet children({ usedScales })}
63
69
  <RectPath
64
70
  class={className}
65
- datum={{ fill, stroke, fillOpacity, strokeOpacity, datum: {}, valid: true }}
66
- x={plot.options.marginLeft}
67
- y={plot.options.marginTop}
71
+ datum={{ fill, stroke, fillOpacity, strokeOpacity, opacity, datum: {}, valid: true }}
72
+ x={plot.options.marginLeft + dx}
73
+ y={plot.options.marginTop + dy}
68
74
  width={plot.facetWidth}
69
75
  height={plot.facetHeight}
70
76
  {usedScales}
71
- fallbackStyle="stroke"
72
- options={{ ...options, fill, stroke, fillOpacity, strokeOpacity }} />
77
+ fallbackStyle={fill == null || fill === 'none' ? 'stroke' : 'fill'}
78
+ options={{ ...options, fill, stroke, fillOpacity, opacity, strokeOpacity }} />
73
79
  {/snippet}
74
80
  </Mark>
@@ -5,6 +5,7 @@ interface FrameMarkProps extends Omit<BaseMarkProps<Datum>, 'fill' | 'stroke' |
5
5
  stroke?: string;
6
6
  fillOpacity?: number;
7
7
  strokeOpacity?: number;
8
+ opacity?: number;
8
9
  automatic?: boolean;
9
10
  inset?: number;
10
11
  insetLeft?: number;
@@ -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>;
@@ -71,7 +71,7 @@ declare class __sveltets_Render<Datum extends DataRecord> {
71
71
  outlineStrokeOpacity?: number;
72
72
  curve?: CurveName | CurveFactory | "auto";
73
73
  tension?: number;
74
- sort?: ConstantAccessor<RawValue, Datum> | {
74
+ sort?: ConstantAccessor<RawValue, Datum_1> | {
75
75
  channel: "stroke" | "fill";
76
76
  };
77
77
  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<{
@@ -69,7 +70,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
69
70
  outlineStrokeOpacity?: number;
70
71
  curve?: import("../types").CurveName | import("d3-shape").CurveFactory | "auto";
71
72
  tension?: number;
72
- sort?: import("../types").ConstantAccessor<import("../types").RawValue, Record<string | symbol, import("../types").RawValue>> | {
73
+ sort?: import("../types").ConstantAccessor<recordizeX, Datum_1> | {
73
74
  channel: "stroke" | "fill";
74
75
  };
75
76
  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<{
@@ -69,7 +70,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
69
70
  outlineStrokeOpacity?: number;
70
71
  curve?: import("../types").CurveName | import("d3-shape").CurveFactory | "auto";
71
72
  tension?: number;
72
- sort?: import("../types").ConstantAccessor<import("../types").RawValue, Record<string | symbol, import("../types").RawValue>> | {
73
+ sort?: import("../types").ConstantAccessor<recordizeY, Datum_1> | {
73
74
  channel: "stroke" | "fill";
74
75
  };
75
76
  text?: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
@@ -157,8 +157,6 @@
157
157
  <g class={['link', className]} data-use-x={usedScales.x ? 1 : 0}>
158
158
  {#each scaledData as d, i (i)}
159
159
  {#if d.valid || true}
160
- {@const dx = resolveProp(args.dx, d.datum, 0)}
161
- {@const dy = resolveProp(args.dx, d.datum, 0)}
162
160
  {@const [style, styleClass] = resolveStyles(
163
161
  plot,
164
162
  d,
@@ -196,8 +194,7 @@
196
194
  text={text ? resolveProp(text, d.datum) : null}
197
195
  startOffset={resolveProp(args.textStartOffset, d.datum, '50%')}
198
196
  {textStyle}
199
- {textStyleClass}
200
- transform={dx || dy ? `translate(${dx}, ${dy})` : null} />
197
+ {textStyleClass} />
201
198
  {/if}
202
199
  {/each}
203
200
  </g>
@@ -31,6 +31,7 @@
31
31
  } from '../types/index.js';
32
32
  import GroupMultiple from './helpers/GroupMultiple.svelte';
33
33
  import RectPath from './helpers/RectPath.svelte';
34
+ import { resolveProp } from '../helpers/resolve';
34
35
 
35
36
  let markProps: RectMarkProps = $props();
36
37
 
@@ -64,10 +65,12 @@
64
65
  <GroupMultiple class={scaledData.length > 1 ? className : null} length={scaledData.length}>
65
66
  {#each scaledData as d, i (i)}
66
67
  {#if d.valid}
67
- {@const x1 = d.x1 == null ? plot.options.marginLeft : d.x1}
68
- {@const x2 = d.x2 == null ? plot.options.marginLeft + plot.facetWidth : d.x2}
69
- {@const y1 = d.y1 == null ? plot.options.marginTop : d.y1}
70
- {@const y2 = d.y2 == null ? plot.options.marginTop + plot.facetHeight : d.y2}
68
+ {@const x1 = d.x1 == null ? plot.options.marginLeft + d.dx : d.x1}
69
+ {@const x2 =
70
+ d.x2 == null ? plot.options.marginLeft + plot.facetWidth + d.dx : d.x2}
71
+ {@const y1 = d.y1 == null ? plot.options.marginTop + d.dy : d.y1}
72
+ {@const y2 =
73
+ d.y2 == null ? plot.options.marginTop + plot.facetHeight + d.dy : d.y2}
71
74
 
72
75
  {@const miny = Math.min(y1, y2)}
73
76
  {@const maxy = Math.max(y1, y2)}
@@ -52,15 +52,13 @@
52
52
  {@const inset = resolveProp(args.inset, d.datum, 0)}
53
53
  {@const insetTop = resolveProp(args.insetTop, d.datum, 0)}
54
54
  {@const insetBottom = resolveProp(args.insetBottom, d.datum, 0)}
55
- {@const dx = resolveProp(args.dx, d.datum, 0)}
56
- {@const dy = resolveProp(args.dy, d.datum, 0)}
57
55
  {@const [style, styleClass] = resolveStyles(plot, d, args, 'stroke', usedScales)}
58
56
  <line
59
- transform="translate({d.x + dx}, {dy})"
57
+ transform="translate({d.x}, 0)"
60
58
  {style}
61
59
  class={[styleClass]}
62
- y1={(inset || insetTop) + (d.y1 != null ? d.y1 : plot.options.marginTop)}
63
- y2={(d.y2 != null ? d.y2 : plot.facetHeight + plot.options.marginTop) -
60
+ y1={(inset || insetTop) + (d.y1 != null ? d.y1 : plot.options.marginTop + d.dy)}
61
+ y2={(d.y2 != null ? d.y2 : plot.facetHeight + plot.options.marginTop + d.dy) -
64
62
  (inset || insetBottom)} />
65
63
  {/each}
66
64
  </GroupMultiple>
@@ -51,15 +51,14 @@
51
51
  {@const inset = resolveProp(args.inset, d.datum, 0)}
52
52
  {@const insetLeft = resolveProp(args.insetLeft, d.datum, 0)}
53
53
  {@const insetRight = resolveProp(args.insetRight, d.datum, 0)}
54
- {@const dx = resolveProp(args.dx, d.datum, 0)}
55
- {@const dy = resolveProp(args.dy, d.datum, 0)}
56
54
  {@const [style, styleClass] = resolveStyles(plot, d, args, 'stroke', usedScales)}
57
55
  <line
58
- transform="translate({dx}, {d.y + dy})"
56
+ transform="translate(0, {d.y})"
59
57
  {style}
60
58
  class={[styleClass]}
61
- x1={(inset || insetLeft) + (d.x1 != null ? d.x1 : plot.options.marginLeft)}
62
- x2={(d.x2 != null ? d.x2 : plot.facetWidth + plot.options.marginLeft) -
59
+ x1={(inset || insetLeft) +
60
+ (d.x1 != null ? d.x1 : plot.options.marginLeft + d.dx)}
61
+ x2={(d.x2 != null ? d.x2 : plot.facetWidth + plot.options.marginLeft + d.dx) -
63
62
  (inset || insetRight)} />
64
63
  {/each}
65
64
  </GroupMultiple>
@@ -177,8 +177,6 @@
177
177
  {#each scaledData as d, i (i)}
178
178
  {@const r = resolveChannel('r', d.datum, { r: 3, ...args })}
179
179
  {#if d.valid && isValid(r)}
180
- {@const dx = +resolveProp(args.dx, d.datum, 0)}
181
- {@const dy = +resolveProp(args.dx, d.datum, 0)}
182
180
  {@const [style, styleClass] = resolveStyles(
183
181
  plot,
184
182
  d,
@@ -193,7 +191,7 @@
193
191
  )}
194
192
  <path
195
193
  d={shapePath(shape, d.length, r)}
196
- transform="translate({d.x + dx}, {d.y + dy}) rotate({resolveProp(
194
+ transform="translate({d.x}, {d.y}) rotate({resolveProp(
197
195
  args.rotate,
198
196
  d.datum,
199
197
  0
@@ -58,8 +58,6 @@ Helper component for rendering rectangular marks in SVG
58
58
  const { getPlotState } = getContext<PlotContext>('svelteplot');
59
59
  const plot = $derived(getPlotState());
60
60
 
61
- const dx = $derived(+(resolveProp(options.dx, datum?.datum, 0) as number));
62
- const dy = $derived(+(resolveProp(options.dy, datum?.datum, 0) as number));
63
61
  const inset = $derived(+(resolveProp(options.inset, datum?.datum, 0) as number));
64
62
  const insetLeft = $derived(
65
63
  +(resolveProp(
@@ -108,7 +106,7 @@ Helper component for rendering rectangular marks in SVG
108
106
  <Anchor {options} datum={datum?.datum}>
109
107
  {#if hasBorderRadius}
110
108
  <path
111
- transform="translate({x + dx + insetLeft},{y + insetBottom + dy})"
109
+ transform="translate({x + insetLeft},{y + insetBottom})"
112
110
  d={roundedRect(
113
111
  0,
114
112
  0,
@@ -125,7 +123,7 @@ Helper component for rendering rectangular marks in SVG
125
123
  }} />
126
124
  {:else}
127
125
  <rect
128
- transform="translate({x + dx + insetLeft},{y + insetBottom + dy})"
126
+ transform="translate({x + insetLeft},{y + insetBottom})"
129
127
  width={width - insetLeft - insetRight}
130
128
  height={height - insetTop - insetBottom}
131
129
  class={[styleClass, className]}
@@ -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 {};
@@ -1,127 +1,7 @@
1
1
  import type { PlotState, TransformArg } from '../types/index.js';
2
2
  export declare function intervalX<T>(args: TransformArg<T>, { plot }: {
3
3
  plot: PlotState;
4
- }): {
5
- filter?: import("../types/index.js").ConstantAccessor<boolean, T>;
6
- facet?: "auto" | "include" | "exclude" | undefined;
7
- fx?: import("../types/index.js").ChannelAccessor<T>;
8
- fy?: import("../types/index.js").ChannelAccessor<T>;
9
- dx?: import("../types/index.js").ConstantAccessor<number, T>;
10
- dy?: import("../types/index.js").ConstantAccessor<number, T>;
11
- fill?: import("../types/index.js").ChannelAccessor<T>;
12
- fillOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
13
- sort?: {
14
- channel: string;
15
- order?: "ascending" | "descending";
16
- } | ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, T>;
17
- stroke?: import("../types/index.js").ChannelAccessor<T>;
18
- strokeWidth?: import("../types/index.js").ConstantAccessor<number, T>;
19
- strokeOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
20
- strokeLinejoin?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, T>;
21
- strokeLinecap?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, T>;
22
- strokeMiterlimit?: import("../types/index.js").ConstantAccessor<number, T>;
23
- opacity?: import("../types/index.js").ChannelAccessor<T>;
24
- strokeDasharray?: import("../types/index.js").ConstantAccessor<string, T>;
25
- strokeDashoffset?: import("../types/index.js").ConstantAccessor<number, T>;
26
- mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, T>;
27
- clipPath?: string | undefined;
28
- imageFilter?: import("../types/index.js").ConstantAccessor<string, T>;
29
- shapeRendering?: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, T>;
30
- paintOrder?: import("../types/index.js").ConstantAccessor<string, T>;
31
- onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
32
- ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
33
- onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
34
- onmousedown?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
35
- onmouseenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
36
- onmousemove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
37
- onmouseleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
38
- onmouseout?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
39
- onmouseover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
40
- onpointercancel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
41
- onpointerdown?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
42
- onpointerup?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
43
- onpointerenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
44
- onpointerleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
45
- onpointermove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
46
- onpointerover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
47
- onpointerout?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
48
- ondrag?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
49
- ondrop?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
50
- ondragstart?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
51
- ondragenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
52
- ondragleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
53
- ondragover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
54
- ondragend?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
55
- ontouchstart?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
56
- ontouchmove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
57
- ontouchend?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
58
- ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
59
- oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
60
- onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
61
- class?: string | null | undefined;
62
- cursor?: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, T>;
63
- data: T[];
64
- };
4
+ }): any;
65
5
  export declare function intervalY<T>(args: TransformArg<T>, { plot }: {
66
6
  plot: PlotState;
67
- }): {
68
- filter?: import("../types/index.js").ConstantAccessor<boolean, T>;
69
- facet?: "auto" | "include" | "exclude" | undefined;
70
- fx?: import("../types/index.js").ChannelAccessor<T>;
71
- fy?: import("../types/index.js").ChannelAccessor<T>;
72
- dx?: import("../types/index.js").ConstantAccessor<number, T>;
73
- dy?: import("../types/index.js").ConstantAccessor<number, T>;
74
- fill?: import("../types/index.js").ChannelAccessor<T>;
75
- fillOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
76
- sort?: {
77
- channel: string;
78
- order?: "ascending" | "descending";
79
- } | ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, T>;
80
- stroke?: import("../types/index.js").ChannelAccessor<T>;
81
- strokeWidth?: import("../types/index.js").ConstantAccessor<number, T>;
82
- strokeOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
83
- strokeLinejoin?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, T>;
84
- strokeLinecap?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, T>;
85
- strokeMiterlimit?: import("../types/index.js").ConstantAccessor<number, T>;
86
- opacity?: import("../types/index.js").ChannelAccessor<T>;
87
- strokeDasharray?: import("../types/index.js").ConstantAccessor<string, T>;
88
- strokeDashoffset?: import("../types/index.js").ConstantAccessor<number, T>;
89
- mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, T>;
90
- clipPath?: string | undefined;
91
- imageFilter?: import("../types/index.js").ConstantAccessor<string, T>;
92
- shapeRendering?: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, T>;
93
- paintOrder?: import("../types/index.js").ConstantAccessor<string, T>;
94
- onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
95
- ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
96
- onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
97
- onmousedown?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
98
- onmouseenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
99
- onmousemove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
100
- onmouseleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
101
- onmouseout?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
102
- onmouseover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
103
- onpointercancel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
104
- onpointerdown?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
105
- onpointerup?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
106
- onpointerenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
107
- onpointerleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
108
- onpointermove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
109
- onpointerover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
110
- onpointerout?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
111
- ondrag?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
112
- ondrop?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
113
- ondragstart?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
114
- ondragenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
115
- ondragleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
116
- ondragover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
117
- ondragend?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
118
- ontouchstart?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
119
- ontouchmove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
120
- ontouchend?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
121
- ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
122
- oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
123
- onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
124
- class?: string | null | undefined;
125
- cursor?: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, T>;
126
- data: T[];
127
- };
7
+ }): any;