svelteplot 0.3.8 → 0.3.9-pr-150.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 (43) hide show
  1. package/dist/Mark.svelte +4 -4
  2. package/dist/helpers/colors.d.ts +1 -1
  3. package/dist/helpers/getBaseStyles.js +6 -1
  4. package/dist/helpers/index.d.ts +2 -5
  5. package/dist/helpers/index.js +4 -1
  6. package/dist/helpers/resolve.js +1 -1
  7. package/dist/helpers/scales.d.ts +1 -1
  8. package/dist/helpers/typeChecks.d.ts +4 -4
  9. package/dist/marks/AreaX.svelte.d.ts +2 -1
  10. package/dist/marks/AreaY.svelte.d.ts +2 -1
  11. package/dist/marks/AxisX.svelte +3 -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/Cell.svelte +1 -1
  19. package/dist/marks/CustomMark.svelte.d.ts +2 -80
  20. package/dist/marks/DifferenceY.svelte.d.ts +7 -66
  21. package/dist/marks/Dot.svelte +0 -1
  22. package/dist/marks/HTMLTooltip.svelte +13 -8
  23. package/dist/marks/Line.svelte.d.ts +2 -2
  24. package/dist/marks/LineX.svelte.d.ts +2 -1
  25. package/dist/marks/LineY.svelte.d.ts +2 -1
  26. package/dist/marks/Text.svelte +15 -5
  27. package/dist/marks/Text.svelte.d.ts +18 -9
  28. package/dist/marks/TickX.svelte +1 -1
  29. package/dist/marks/TickY.svelte +1 -1
  30. package/dist/transforms/bollinger.d.ts +1 -66
  31. package/dist/transforms/group.d.ts +4 -12
  32. package/dist/transforms/interval.d.ts +2 -122
  33. package/dist/transforms/map.d.ts +4 -184
  34. package/dist/transforms/normalize.d.ts +3 -123
  35. package/dist/transforms/select.d.ts +7 -427
  36. package/dist/transforms/sort.d.ts +3 -242
  37. package/dist/transforms/window.d.ts +2 -130
  38. package/dist/types/mark.d.ts +1 -1
  39. package/dist/ui/Checkbox.svelte +11 -3
  40. package/dist/ui/Checkbox.svelte.d.ts +2 -2
  41. package/package.json +1 -1
  42. package/dist/helpers/isValid.d.ts +0 -6
  43. package/dist/helpers/isValid.js +0 -6
@@ -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'
@@ -32,7 +32,6 @@
32
32
  import { recordizeXY } from '../transforms/recordize.js';
33
33
  import { addEventHandlers } from './helpers/events.js';
34
34
  import Anchor from './helpers/Anchor.svelte';
35
- import type { D } from 'vitest/dist/chunks/reporters.d.DL9pg5DB.js';
36
35
 
37
36
  const DEFAULTS = {
38
37
  ...getContext<PlotDefaults>('svelteplot/_defaults').dot
@@ -26,8 +26,11 @@
26
26
  let tooltipX = $state();
27
27
  let tooltipY = $state();
28
28
 
29
- function onMouseMove(evt: MouseEvent) {
30
- const pt = tree.find(evt.layerX, evt.layerY, 25);
29
+ function onPointerMove(evt: MouseEvent) {
30
+ const plotRect = plot.body.getBoundingClientRect();
31
+ let relativeX = evt.clientX - plotRect.left;
32
+ let relativeY = evt.clientY - plotRect.top;
33
+ const pt = tree.find(relativeX, relativeY, 25);
31
34
  if (pt) {
32
35
  tooltipX = resolveChannel('x', pt, { x, y, r });
33
36
  tooltipY = resolveChannel('y', pt, { x, y, r });
@@ -37,15 +40,17 @@
37
40
  }
38
41
  }
39
42
 
43
+ function onPointerLeave() {
44
+ datum = false;
45
+ }
46
+
40
47
  $effect(() => {
41
- // plot.body?.addEventListener('mouseenter', onMouseEnter);
42
- // plot.body?.addEventListener('mouseleave', onMouseLeave);
43
- plot.body?.addEventListener('mousemove', onMouseMove);
48
+ plot.body?.addEventListener('pointerleave', onPointerLeave);
49
+ plot.body?.addEventListener('pointermove', onPointerMove);
44
50
 
45
51
  return () => {
46
- // plot.body?.removeEventListener('mouseenter', onMouseEnter);
47
- // plot.body?.removeEventListener('mouseleave', onMouseLeave);
48
- plot.body?.removeEventListener('mousemove', onMouseMove);
52
+ plot.body?.removeEventListener('mouseleave', onPointerLeave);
53
+ plot.body?.removeEventListener('pointermove', onPointerMove);
49
54
  };
50
55
  });
51
56
 
@@ -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, import("../types").DataRecord> | {
73
+ sort?: import("../types").ConstantAccessor<recordizeX, Datum_1> | {
73
74
  channel: "stroke" | "fill";
74
75
  };
75
76
  text?: import("../types").ConstantAccessor<string, import("../types").DataRecord>;
@@ -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, import("../types").DataRecord> | {
73
+ sort?: import("../types").ConstantAccessor<recordizeY, Datum_1> | {
73
74
  channel: "stroke" | "fill";
74
75
  };
75
76
  text?: import("../types").ConstantAccessor<string, import("../types").DataRecord>;
@@ -4,17 +4,27 @@
4
4
  -->
5
5
 
6
6
  <script lang="ts" generics="Datum extends DataRecord">
7
+ import type * as CSS from 'csstype';
8
+
7
9
  interface TextMarkProps extends BaseMarkProps<Datum>, LinkableMarkProps<Datum> {
8
- data: Datum[];
9
- x: ChannelAccessor<Datum>;
10
- y: ChannelAccessor<Datum>;
10
+ data?: Datum[];
11
+ x?: ChannelAccessor<Datum>;
12
+ y?: ChannelAccessor<Datum>;
11
13
  children?: Snippet;
12
14
  text: ConstantAccessor<string | null | false | undefined, Datum>;
13
15
  title?: ConstantAccessor<string, Datum>;
14
16
  /**
15
17
  * the font size of the text
16
18
  */
17
- fontSize?: ConstantAccessor<number, Datum>;
19
+ fontFamily?: ConstantAccessor<CSS.Property.FontFamily, Datum>;
20
+ fontSize?: ConstantAccessor<CSS.Property.FontSize, Datum>;
21
+ fontWeight?: ConstantAccessor<CSS.Property.FontWeight, Datum>;
22
+ fontStyle?: ConstantAccessor<CSS.Property.FontStyle, Datum>;
23
+ fontVariant?: ConstantAccessor<CSS.Property.FontVariant, Datum>;
24
+ letterSpacing?: ConstantAccessor<CSS.Property.LetterSpacing, Datum>;
25
+ wordSpacing?: ConstantAccessor<CSS.Property.WordSpacing, Datum>;
26
+ textTransform?: ConstantAccessor<CSS.Property.TextTransform, Datum>;
27
+ textDecoration?: ConstantAccessor<CSS.Property.TextDecoration, Datum>;
18
28
  /**
19
29
  * if you want to apply class names to individual text elements
20
30
  */
@@ -62,7 +72,7 @@
62
72
 
63
73
  const DEFAULTS = {
64
74
  fontSize: 12,
65
- fontWeight: 500,
75
+ c: 500,
66
76
  strokeWidth: 1.6,
67
77
  frameAnchor: 'center',
68
78
  lineHeight: 1.1,
@@ -1,3 +1,4 @@
1
+ import type * as CSS from 'csstype';
1
2
  import { type Snippet } from 'svelte';
2
3
  import type { DataRecord, ConstantAccessor, ChannelAccessor, RawValue, LinkableMarkProps } from '../types/index.js';
3
4
  declare class __sveltets_Render<Datum extends DataRecord> {
@@ -17,16 +18,16 @@ declare class __sveltets_Render<Datum extends DataRecord> {
17
18
  stroke: ChannelAccessor<Datum>;
18
19
  strokeWidth: ConstantAccessor<number, Datum>;
19
20
  strokeOpacity: ConstantAccessor<number, Datum>;
20
- strokeLinejoin: ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
21
- strokeLinecap: ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
21
+ strokeLinejoin: ConstantAccessor<CSS.Property.StrokeLinejoin, Datum>;
22
+ strokeLinecap: ConstantAccessor<CSS.Property.StrokeLinecap, Datum>;
22
23
  strokeMiterlimit: ConstantAccessor<number, Datum>;
23
24
  opacity: ChannelAccessor<Datum>;
24
25
  strokeDasharray: ConstantAccessor<string, Datum>;
25
26
  strokeDashoffset: ConstantAccessor<number, Datum>;
26
- mixBlendMode: ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
27
+ mixBlendMode: ConstantAccessor<CSS.Property.MixBlendMode, Datum>;
27
28
  clipPath: string;
28
29
  imageFilter: ConstantAccessor<string, Datum>;
29
- shapeRendering: ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
30
+ shapeRendering: ConstantAccessor<CSS.Property.ShapeRendering, Datum>;
30
31
  paintOrder: ConstantAccessor<string, Datum>;
31
32
  onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
32
33
  ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
@@ -59,18 +60,26 @@ declare class __sveltets_Render<Datum extends DataRecord> {
59
60
  oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
60
61
  onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
61
62
  class: string | null;
62
- cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
63
+ cursor: ConstantAccessor<CSS.Property.Cursor, Datum>;
63
64
  }> & LinkableMarkProps<Datum> & {
64
- data: Datum[];
65
- x: ChannelAccessor<Datum>;
66
- y: ChannelAccessor<Datum>;
65
+ data?: Datum[] | undefined;
66
+ x?: ChannelAccessor<Datum>;
67
+ y?: ChannelAccessor<Datum>;
67
68
  children?: Snippet;
68
69
  text: ConstantAccessor<string | false | null | undefined, Datum>;
69
70
  title?: ConstantAccessor<string, Datum>;
70
71
  /**
71
72
  * the font size of the text
72
73
  */
73
- fontSize?: ConstantAccessor<number, Datum>;
74
+ fontFamily?: ConstantAccessor<CSS.Property.FontFamily, Datum>;
75
+ fontSize?: ConstantAccessor<CSS.Property.FontSize<0 | (string & {})>, Datum>;
76
+ fontWeight?: ConstantAccessor<CSS.Property.FontWeight, Datum>;
77
+ fontStyle?: ConstantAccessor<CSS.Property.FontStyle, Datum>;
78
+ fontVariant?: ConstantAccessor<CSS.Property.FontVariant, Datum>;
79
+ letterSpacing?: ConstantAccessor<CSS.Property.LetterSpacing<0 | (string & {})>, Datum>;
80
+ wordSpacing?: ConstantAccessor<CSS.Property.WordSpacing<0 | (string & {})>, Datum>;
81
+ textTransform?: ConstantAccessor<CSS.Property.TextTransform, Datum>;
82
+ textDecoration?: ConstantAccessor<CSS.Property.TextDecoration<0 | (string & {})>, Datum>;
74
83
  /**
75
84
  * if you want to apply class names to individual text elements
76
85
  */
@@ -35,7 +35,7 @@
35
35
  } from '../types/index.js';
36
36
  import { recordizeX } from '../index.js';
37
37
  import { projectX, projectY } from '../helpers/scales.js';
38
- import { isValid } from '../helpers/isValid.js';
38
+ import { isValid } from '../helpers/index.js';
39
39
  import { testFilter, parseInset } from '../helpers/index.js';
40
40
 
41
41
  const { getPlotState } = getContext<PlotContext>('svelteplot');
@@ -34,7 +34,7 @@
34
34
  } from '../types/index.js';
35
35
  import { recordizeY } from '../index.js';
36
36
  import { projectX, projectY } from '../helpers/scales.js';
37
- import { isValid } from '../helpers/isValid.js';
37
+ import { isValid } from '../helpers/index.js';
38
38
  import { testFilter, parseInset } from '../helpers/index.js';
39
39
 
40
40
  const { getPlotState } = getContext<PlotContext>('svelteplot');
@@ -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, DataRecord>;
16
- facet?: "auto" | "include" | "exclude" | undefined;
17
- fx?: import("../types/index.js").ChannelAccessor<DataRecord>;
18
- fy?: import("../types/index.js").ChannelAccessor<DataRecord>;
19
- dx?: import("../types/index.js").ConstantAccessor<number, DataRecord>;
20
- dy?: import("../types/index.js").ConstantAccessor<number, DataRecord>;
21
- fill?: import("../types/index.js").ChannelAccessor<DataRecord>;
22
- fillOpacity?: import("../types/index.js").ConstantAccessor<number, DataRecord>;
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, DataRecord>;
27
- stroke?: import("../types/index.js").ChannelAccessor<DataRecord>;
28
- strokeWidth?: import("../types/index.js").ConstantAccessor<number, DataRecord>;
29
- strokeOpacity?: import("../types/index.js").ConstantAccessor<number, DataRecord>;
30
- strokeLinejoin?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, DataRecord>;
31
- strokeLinecap?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, DataRecord>;
32
- strokeMiterlimit?: import("../types/index.js").ConstantAccessor<number, DataRecord>;
33
- opacity?: import("../types/index.js").ChannelAccessor<DataRecord>;
34
- strokeDasharray?: import("../types/index.js").ConstantAccessor<string, DataRecord>;
35
- strokeDashoffset?: import("../types/index.js").ConstantAccessor<number, DataRecord>;
36
- mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, DataRecord>;
37
- clipPath?: string | undefined;
38
- imageFilter?: import("../types/index.js").ConstantAccessor<string, DataRecord>;
39
- shapeRendering?: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, DataRecord>;
40
- paintOrder?: import("../types/index.js").ConstantAccessor<string, DataRecord>;
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, DataRecord>;
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: DataRecord[];
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: DataRecord[];
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: DataRecord[];
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: DataRecord[];
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;