svelteplot 0.5.2 → 0.5.3-pr-253.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 (53) hide show
  1. package/dist/Mark.svelte.d.ts +5 -4
  2. package/dist/helpers/colors.d.ts +1 -1
  3. package/dist/helpers/index.d.ts +2 -2
  4. package/dist/helpers/scales.d.ts +2 -2
  5. package/dist/helpers/typeChecks.d.ts +4 -4
  6. package/dist/marks/Area.svelte.d.ts +5 -4
  7. package/dist/marks/AreaX.svelte.d.ts +6 -5
  8. package/dist/marks/Arrow.svelte.d.ts +5 -4
  9. package/dist/marks/AxisX.svelte.d.ts +6 -5
  10. package/dist/marks/AxisY.svelte.d.ts +6 -5
  11. package/dist/marks/BarX.svelte.d.ts +5 -4
  12. package/dist/marks/BarY.svelte.d.ts +5 -4
  13. package/dist/marks/BollingerX.svelte.d.ts +2 -76
  14. package/dist/marks/BollingerY.svelte.d.ts +2 -76
  15. package/dist/marks/BoxY.svelte.d.ts +6 -68
  16. package/dist/marks/Cell.svelte.d.ts +5 -4
  17. package/dist/marks/CustomMark.svelte.d.ts +2 -83
  18. package/dist/marks/CustomMarkHTML.svelte.d.ts +1 -1
  19. package/dist/marks/DifferenceY.svelte.d.ts +7 -69
  20. package/dist/marks/Dot.svelte.d.ts +5 -4
  21. package/dist/marks/DotX.svelte.d.ts +6 -5
  22. package/dist/marks/DotY.svelte.d.ts +6 -5
  23. package/dist/marks/Geo.svelte.d.ts +5 -4
  24. package/dist/marks/GridX.svelte.d.ts +5 -4
  25. package/dist/marks/GridY.svelte.d.ts +5 -4
  26. package/dist/marks/Line.svelte +1 -1
  27. package/dist/marks/Line.svelte.d.ts +6 -5
  28. package/dist/marks/LineX.svelte.d.ts +7 -6
  29. package/dist/marks/LineY.svelte.d.ts +7 -6
  30. package/dist/marks/Link.svelte.d.ts +5 -4
  31. package/dist/marks/Rect.svelte.d.ts +5 -4
  32. package/dist/marks/RuleX.svelte.d.ts +5 -4
  33. package/dist/marks/RuleY.svelte.d.ts +5 -4
  34. package/dist/marks/Spike.svelte.d.ts +6 -5
  35. package/dist/marks/Text.svelte.d.ts +7 -6
  36. package/dist/marks/TickX.svelte.d.ts +5 -4
  37. package/dist/marks/TickY.svelte.d.ts +5 -4
  38. package/dist/marks/Vector.svelte.d.ts +5 -4
  39. package/dist/marks/helpers/BaseAxisX.svelte +2 -2
  40. package/dist/marks/helpers/BaseAxisX.svelte.d.ts +1 -1
  41. package/dist/marks/helpers/BaseAxisY.svelte +2 -2
  42. package/dist/marks/helpers/BaseAxisY.svelte.d.ts +1 -1
  43. package/dist/marks/helpers/MarkerPath.svelte.d.ts +2 -164
  44. package/dist/marks/helpers/RectPath.svelte.d.ts +3 -65
  45. package/dist/transforms/bollinger.d.ts +1 -69
  46. package/dist/transforms/group.d.ts +4 -12
  47. package/dist/transforms/interval.d.ts +2 -128
  48. package/dist/transforms/recordize.d.ts +1 -4
  49. package/dist/transforms/select.d.ts +7 -448
  50. package/dist/transforms/sort.d.ts +3 -251
  51. package/dist/transforms/stack.d.ts +3 -23
  52. package/dist/transforms/window.d.ts +2 -134
  53. package/package.json +129 -128
@@ -1,4 +1,5 @@
1
1
  import type { ChannelAccessor, DataRecord } from '../types/index.js';
2
+ import { getPlotDefaults } from '../hooks/plotDefaults.js';
2
3
  declare class __sveltets_Render<Datum extends DataRecord> {
3
4
  props(): Omit<Partial<{
4
5
  filter: import("../types/index.js").ConstantAccessor<boolean, Record<string | symbol, import("../types/data").RawValue>>;
@@ -7,14 +8,14 @@ declare class __sveltets_Render<Datum extends DataRecord> {
7
8
  fy: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
8
9
  dx: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
9
10
  dy: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
10
- dodgeX: import("../transforms/dodge").DodgeXOptions;
11
- dodgeY: import("../transforms/dodge").DodgeYOptions;
11
+ dodgeX: getPlotDefaults;
12
+ dodgeY: getPlotDefaults;
12
13
  fill: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
13
14
  fillOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
14
- sort: ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | {
15
+ sort: {
15
16
  channel: string;
16
17
  order?: "ascending" | "descending";
17
- } | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Record<string | symbol, import("../types/data").RawValue>>;
18
+ } | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Record<string | symbol, import("../types/data").RawValue>>;
18
19
  stroke: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
19
20
  strokeWidth: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
20
21
  strokeOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
@@ -73,7 +74,7 @@ declare class __sveltets_Render<Datum extends DataRecord> {
73
74
  shape?: "arrow" | "spike" | "arrow-filled" | import("./Vector.svelte").ShapeRenderer;
74
75
  children?: import("svelte").Snippet;
75
76
  canvas?: boolean;
76
- }, "data" | "r" | "length" | "x" | "y" | "rotate"> & {
77
+ }, "r" | "length" | "x" | "y" | "data" | "rotate"> & {
77
78
  data: Datum[];
78
79
  x: ChannelAccessor<Datum>;
79
80
  y: ChannelAccessor<Datum>;
@@ -1,6 +1,7 @@
1
1
  import type * as CSS from 'csstype';
2
2
  import { type Snippet } from 'svelte';
3
3
  import type { DataRecord, ConstantAccessor, ChannelAccessor, LinkableMarkProps } from '../types/index.js';
4
+ import { sort } from '../index.js';
4
5
  declare class __sveltets_Render<Datum extends DataRecord> {
5
6
  props(): Partial<{
6
7
  filter: ConstantAccessor<boolean, Datum>;
@@ -9,14 +10,14 @@ declare class __sveltets_Render<Datum extends DataRecord> {
9
10
  fy: ChannelAccessor<Datum>;
10
11
  dx: ConstantAccessor<number, Datum>;
11
12
  dy: ConstantAccessor<number, Datum>;
12
- dodgeX: import("../transforms/dodge").DodgeXOptions;
13
- dodgeY: import("../transforms/dodge").DodgeYOptions;
13
+ dodgeX: sort;
14
+ dodgeY: sort;
14
15
  fill: ChannelAccessor<Datum>;
15
16
  fillOpacity: ConstantAccessor<number, Datum>;
16
- sort: ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | {
17
+ sort: {
17
18
  channel: string;
18
19
  order?: "ascending" | "descending";
19
- } | ConstantAccessor<import("../types/data").RawValue, Datum>;
20
+ } | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | ConstantAccessor<import("../types/data").RawValue, Datum>;
20
21
  stroke: ChannelAccessor<Datum>;
21
22
  strokeWidth: ConstantAccessor<number, Datum>;
22
23
  strokeOpacity: ConstantAccessor<number, Datum>;
@@ -75,7 +76,7 @@ declare class __sveltets_Render<Datum extends DataRecord> {
75
76
  * the font size of the text
76
77
  */
77
78
  fontFamily?: ConstantAccessor<CSS.Property.FontFamily, Datum>;
78
- fontSize?: ConstantAccessor<number | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | (string & {}) | "small" | "large" | "medium" | "x-large" | "x-small" | "xx-large" | "xx-small" | "xxx-large" | "larger" | "smaller", Datum>;
79
+ fontSize?: ConstantAccessor<number | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | (string & {}) | "small" | "medium" | "large" | "x-large" | "x-small" | "xx-large" | "xx-small" | "xxx-large" | "larger" | "smaller", Datum>;
79
80
  fontWeight?: ConstantAccessor<CSS.Property.FontWeight, Datum>;
80
81
  fontStyle?: ConstantAccessor<CSS.Property.FontStyle, Datum>;
81
82
  fontVariant?: ConstantAccessor<CSS.Property.FontVariant, Datum>;
@@ -100,7 +101,7 @@ declare class __sveltets_Render<Datum extends DataRecord> {
100
101
  * @default 1.2
101
102
  */
102
103
  lineHeight?: ConstantAccessor<number, Datum>;
103
- frameAnchor?: ConstantAccessor<"left" | "right" | "middle" | "top" | "bottom" | "top-left" | "bottom-left" | "top-right" | "bottom-right", Datum>;
104
+ frameAnchor?: ConstantAccessor<"bottom" | "top" | "left" | "right" | "middle" | "top-left" | "bottom-left" | "top-right" | "bottom-right", Datum>;
104
105
  /**
105
106
  * rotate text by angle in degrees
106
107
  */
@@ -1,4 +1,5 @@
1
1
  import type { ChannelAccessor, DataRow, ConstantAccessor } from '../types/index.js';
2
+ import { recordizeX } from '../index.js';
2
3
  declare class __sveltets_Render<Datum extends DataRow> {
3
4
  props(): Omit<Partial<{
4
5
  filter: ConstantAccessor<boolean, Datum>;
@@ -7,14 +8,14 @@ declare class __sveltets_Render<Datum extends DataRow> {
7
8
  fy: ChannelAccessor<Datum>;
8
9
  dx: ConstantAccessor<number, Datum>;
9
10
  dy: ConstantAccessor<number, Datum>;
10
- dodgeX: import("../transforms/dodge").DodgeXOptions;
11
- dodgeY: import("../transforms/dodge").DodgeYOptions;
11
+ dodgeX: recordizeX;
12
+ dodgeY: recordizeX;
12
13
  fill: ChannelAccessor<Datum>;
13
14
  fillOpacity: ConstantAccessor<number, Datum>;
14
- sort: ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | {
15
+ sort: {
15
16
  channel: string;
16
17
  order?: "ascending" | "descending";
17
- } | ConstantAccessor<import("../types/data").RawValue, Datum>;
18
+ } | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | ConstantAccessor<import("../types/data").RawValue, Datum>;
18
19
  stroke: ChannelAccessor<Datum>;
19
20
  strokeWidth: ConstantAccessor<number, Datum>;
20
21
  strokeOpacity: ConstantAccessor<number, Datum>;
@@ -1,4 +1,5 @@
1
1
  import type { ChannelAccessor, DataRow, ConstantAccessor } from '../types/index.js';
2
+ import { recordizeY } from '../index.js';
2
3
  declare class __sveltets_Render<Datum extends DataRow> {
3
4
  props(): Omit<Partial<{
4
5
  filter: ConstantAccessor<boolean, Datum>;
@@ -7,14 +8,14 @@ declare class __sveltets_Render<Datum extends DataRow> {
7
8
  fy: ChannelAccessor<Datum>;
8
9
  dx: ConstantAccessor<number, Datum>;
9
10
  dy: ConstantAccessor<number, Datum>;
10
- dodgeX: import("../transforms/dodge").DodgeXOptions;
11
- dodgeY: import("../transforms/dodge").DodgeYOptions;
11
+ dodgeX: recordizeY;
12
+ dodgeY: recordizeY;
12
13
  fill: ChannelAccessor<Datum>;
13
14
  fillOpacity: ConstantAccessor<number, Datum>;
14
- sort: ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | {
15
+ sort: {
15
16
  channel: string;
16
17
  order?: "ascending" | "descending";
17
- } | ConstantAccessor<import("../types/data").RawValue, Datum>;
18
+ } | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | ConstantAccessor<import("../types/data").RawValue, Datum>;
18
19
  stroke: ChannelAccessor<Datum>;
19
20
  strokeWidth: ConstantAccessor<number, Datum>;
20
21
  strokeOpacity: ConstantAccessor<number, Datum>;
@@ -4,6 +4,7 @@ export type ShapeRenderer = {
4
4
  };
5
5
  import type { DataRecord, ChannelAccessor } from '../types/index.js';
6
6
  import { type Snippet } from 'svelte';
7
+ import { sort } from '../index.js';
7
8
  declare class __sveltets_Render<Datum extends DataRecord> {
8
9
  props(): Partial<{
9
10
  filter: import("../types/index.js").ConstantAccessor<boolean, Datum>;
@@ -12,14 +13,14 @@ declare class __sveltets_Render<Datum extends DataRecord> {
12
13
  fy: ChannelAccessor<Datum>;
13
14
  dx: import("../types/index.js").ConstantAccessor<number, Datum>;
14
15
  dy: import("../types/index.js").ConstantAccessor<number, Datum>;
15
- dodgeX: import("../transforms/dodge.js").DodgeXOptions;
16
- dodgeY: import("../transforms/dodge.js").DodgeYOptions;
16
+ dodgeX: sort;
17
+ dodgeY: sort;
17
18
  fill: ChannelAccessor<Datum>;
18
19
  fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
19
- sort: ((a: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | {
20
+ sort: {
20
21
  channel: string;
21
22
  order?: "ascending" | "descending";
22
- } | import("../types/index.js").ConstantAccessor<import("../types/data.js").RawValue, Datum>;
23
+ } | ((a: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data.js").RawValue, Datum>;
23
24
  stroke: ChannelAccessor<Datum>;
24
25
  strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
25
26
  strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
@@ -22,7 +22,7 @@
22
22
  scaleFn: (d: RawValue) => number;
23
23
  scaleType: ScaleType;
24
24
  ticks: RawValue[];
25
- tickFormat: (d: RawValue, i: number) => string | string[];
25
+ tickFormat: (d: RawValue, i: number, ticks: RawValue[]) => string | string[];
26
26
  anchor: 'top' | 'bottom';
27
27
  tickSize: number;
28
28
  tickPadding: number;
@@ -87,7 +87,7 @@
87
87
  dx: +resolveProp(options.dx, datum, 0),
88
88
  dy: +resolveProp(options.dy, datum, 0),
89
89
  x: scaleFn(tick) + (scaleType === 'band' ? scaleFn.bandwidth() * 0.5 : 0),
90
- text: splitTick(tickFormat(tick, i)),
90
+ text: splitTick(tickFormat(tick, i, ticks)),
91
91
  element: null as SVGTextElement | null
92
92
  };
93
93
  })
@@ -3,7 +3,7 @@ type BaseAxisXProps = {
3
3
  scaleFn: (d: RawValue) => number;
4
4
  scaleType: ScaleType;
5
5
  ticks: RawValue[];
6
- tickFormat: (d: RawValue, i: number) => string | string[];
6
+ tickFormat: (d: RawValue, i: number, ticks: RawValue[]) => string | string[];
7
7
  anchor: 'top' | 'bottom';
8
8
  tickSize: number;
9
9
  tickPadding: number;
@@ -19,7 +19,7 @@
19
19
  scaleFn: (d: RawValue) => number;
20
20
  scaleType: ScaleType;
21
21
  ticks: RawValue[];
22
- tickFormat: (d: RawValue) => string | string[];
22
+ tickFormat: (d: RawValue, i: number, ticks: RawValue[]) => string | string[];
23
23
  anchor: 'left' | 'right';
24
24
  lineAnchor: 'top' | 'center' | 'bottom';
25
25
  tickSize: number;
@@ -72,7 +72,7 @@
72
72
  dx: +resolveProp(options.dx, datum, 0),
73
73
  dy: +resolveProp(options.dy, datum, 0),
74
74
  y: scaleFn(tick) + (scaleType === 'band' ? scaleFn.bandwidth() * 0.5 : 0),
75
- text: tickFormat(tick, i),
75
+ text: tickFormat(tick, i, ticks),
76
76
  element: null as SVGTextElement | null
77
77
  };
78
78
  });
@@ -3,7 +3,7 @@ type BaseAxisYProps = {
3
3
  scaleFn: (d: RawValue) => number;
4
4
  scaleType: ScaleType;
5
5
  ticks: RawValue[];
6
- tickFormat: (d: RawValue) => string | string[];
6
+ tickFormat: (d: RawValue, i: number, ticks: RawValue[]) => string | string[];
7
7
  anchor: 'left' | 'right';
8
8
  lineAnchor: 'top' | 'center' | 'bottom';
9
9
  tickSize: number;
@@ -1,168 +1,6 @@
1
- import { type MarkerShape } from './Marker.svelte';
2
- import type { ConstantAccessor, DataRecord, Mark, PlotScales } from '../../types/index.js';
1
+ import type { DataRecord } from '../../types/index.js';
3
2
  declare class __sveltets_Render<Datum extends DataRecord> {
4
- props(): Partial<{
5
- filter: ConstantAccessor<boolean, Datum>;
6
- facet: "auto" | "include" | "exclude";
7
- fx: import("../../types/index.js").ChannelAccessor<Datum>;
8
- fy: import("../../types/index.js").ChannelAccessor<Datum>;
9
- dx: ConstantAccessor<number, Datum>;
10
- dy: ConstantAccessor<number, Datum>;
11
- dodgeX: import("../../transforms/dodge").DodgeXOptions;
12
- dodgeY: import("../../transforms/dodge").DodgeYOptions;
13
- fill: import("../../types/index.js").ChannelAccessor<Datum>;
14
- fillOpacity: ConstantAccessor<number, Datum>;
15
- sort: ((a: import("../../types/index.js").RawValue, b: import("../../types/index.js").RawValue) => number) | {
16
- channel: string;
17
- order?: "ascending" | "descending";
18
- } | ConstantAccessor<import("../../types/index.js").RawValue, Datum>;
19
- stroke: import("../../types/index.js").ChannelAccessor<Datum>;
20
- strokeWidth: ConstantAccessor<number, Datum>;
21
- strokeOpacity: ConstantAccessor<number, Datum>;
22
- strokeLinejoin: ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
23
- strokeLinecap: ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
24
- strokeMiterlimit: ConstantAccessor<number, Datum>;
25
- opacity: import("../../types/index.js").ChannelAccessor<Datum>;
26
- strokeDasharray: ConstantAccessor<string, Datum>;
27
- strokeDashoffset: ConstantAccessor<number, Datum>;
28
- mixBlendMode: ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
29
- clipPath: string;
30
- imageFilter: ConstantAccessor<string, Datum>;
31
- shapeRendering: ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
32
- paintOrder: ConstantAccessor<string, Datum>;
33
- onclick: import("svelte/elements").MouseEventHandler<SVGPathElement>;
34
- ondblclick: import("svelte/elements").MouseEventHandler<SVGPathElement>;
35
- onmouseup: import("svelte/elements").MouseEventHandler<SVGPathElement>;
36
- onmousedown: import("svelte/elements").MouseEventHandler<SVGPathElement>;
37
- onmouseenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
38
- onmousemove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
39
- onmouseleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
40
- onmouseout: import("svelte/elements").MouseEventHandler<SVGPathElement>;
41
- onmouseover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
42
- onpointercancel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
43
- onpointerdown: import("svelte/elements").MouseEventHandler<SVGPathElement>;
44
- onpointerup: import("svelte/elements").MouseEventHandler<SVGPathElement>;
45
- onpointerenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
46
- onpointerleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
47
- onpointermove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
48
- onpointerover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
49
- onpointerout: import("svelte/elements").MouseEventHandler<SVGPathElement>;
50
- ondrag: import("svelte/elements").MouseEventHandler<SVGPathElement>;
51
- ondrop: import("svelte/elements").MouseEventHandler<SVGPathElement>;
52
- ondragstart: import("svelte/elements").MouseEventHandler<SVGPathElement>;
53
- ondragenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
54
- ondragleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
55
- ondragover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
56
- ondragend: import("svelte/elements").MouseEventHandler<SVGPathElement>;
57
- ontouchstart: import("svelte/elements").MouseEventHandler<SVGPathElement>;
58
- ontouchmove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
59
- ontouchend: import("svelte/elements").MouseEventHandler<SVGPathElement>;
60
- ontouchcancel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
61
- oncontextmenu: import("svelte/elements").MouseEventHandler<SVGPathElement>;
62
- onwheel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
63
- class: string;
64
- style: string;
65
- cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
66
- }> & {
67
- /**
68
- * the datum associated with this path, usually the first
69
- * element of the data array group
70
- */
71
- datum: Datum;
72
- /**
73
- * the marker shape to use at the start of the path, defaults to
74
- * circle
75
- */
76
- markerStart?: boolean | MarkerShape;
77
- /**
78
- * the marker shape to use at the middle of the path, defaults to circle
79
- */
80
- markerMid?: boolean | MarkerShape;
81
- /**
82
- * the marker shape to use at the end of the path, defaults to circle
83
- */
84
- markerEnd?: boolean | MarkerShape;
85
- /**
86
- * shorthand for setting all markers
87
- */
88
- marker?: boolean | MarkerShape;
89
- /**
90
- * path string
91
- */
92
- d: string;
93
- style: string;
94
- startOffset: string;
95
- textStyle: string;
96
- textStyleClass?: string | null;
97
- text: string;
98
- transform: string;
99
- color: string;
100
- strokeWidth: ConstantAccessor<number>;
101
- mark: Mark<Partial<{
102
- filter: ConstantAccessor<boolean, Datum>;
103
- facet: "auto" | "include" | "exclude";
104
- fx: import("../../types/index.js").ChannelAccessor<Datum>;
105
- fy: import("../../types/index.js").ChannelAccessor<Datum>;
106
- dx: ConstantAccessor<number, Datum>;
107
- dy: ConstantAccessor<number, Datum>;
108
- dodgeX: import("../../transforms/dodge").DodgeXOptions;
109
- dodgeY: import("../../transforms/dodge").DodgeYOptions;
110
- fill: import("../../types/index.js").ChannelAccessor<Datum>;
111
- fillOpacity: ConstantAccessor<number, Datum>;
112
- sort: ((a: import("../../types/index.js").RawValue, b: import("../../types/index.js").RawValue) => number) | {
113
- channel: string;
114
- order?: "ascending" | "descending";
115
- } | ConstantAccessor<import("../../types/index.js").RawValue, Datum>;
116
- stroke: import("../../types/index.js").ChannelAccessor<Datum>;
117
- strokeWidth: ConstantAccessor<number, Datum>;
118
- strokeOpacity: ConstantAccessor<number, Datum>;
119
- strokeLinejoin: ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
120
- strokeLinecap: ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
121
- strokeMiterlimit: ConstantAccessor<number, Datum>;
122
- opacity: import("../../types/index.js").ChannelAccessor<Datum>;
123
- strokeDasharray: ConstantAccessor<string, Datum>;
124
- strokeDashoffset: ConstantAccessor<number, Datum>;
125
- mixBlendMode: ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
126
- clipPath: string;
127
- imageFilter: ConstantAccessor<string, Datum>;
128
- shapeRendering: ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
129
- paintOrder: ConstantAccessor<string, Datum>;
130
- onclick: import("svelte/elements").MouseEventHandler<SVGPathElement>;
131
- ondblclick: import("svelte/elements").MouseEventHandler<SVGPathElement>;
132
- onmouseup: import("svelte/elements").MouseEventHandler<SVGPathElement>;
133
- onmousedown: import("svelte/elements").MouseEventHandler<SVGPathElement>;
134
- onmouseenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
135
- onmousemove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
136
- onmouseleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
137
- onmouseout: import("svelte/elements").MouseEventHandler<SVGPathElement>;
138
- onmouseover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
139
- onpointercancel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
140
- onpointerdown: import("svelte/elements").MouseEventHandler<SVGPathElement>;
141
- onpointerup: import("svelte/elements").MouseEventHandler<SVGPathElement>;
142
- onpointerenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
143
- onpointerleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
144
- onpointermove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
145
- onpointerover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
146
- onpointerout: import("svelte/elements").MouseEventHandler<SVGPathElement>;
147
- ondrag: import("svelte/elements").MouseEventHandler<SVGPathElement>;
148
- ondrop: import("svelte/elements").MouseEventHandler<SVGPathElement>;
149
- ondragstart: import("svelte/elements").MouseEventHandler<SVGPathElement>;
150
- ondragenter: import("svelte/elements").MouseEventHandler<SVGPathElement>;
151
- ondragleave: import("svelte/elements").MouseEventHandler<SVGPathElement>;
152
- ondragover: import("svelte/elements").MouseEventHandler<SVGPathElement>;
153
- ondragend: import("svelte/elements").MouseEventHandler<SVGPathElement>;
154
- ontouchstart: import("svelte/elements").MouseEventHandler<SVGPathElement>;
155
- ontouchmove: import("svelte/elements").MouseEventHandler<SVGPathElement>;
156
- ontouchend: import("svelte/elements").MouseEventHandler<SVGPathElement>;
157
- ontouchcancel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
158
- oncontextmenu: import("svelte/elements").MouseEventHandler<SVGPathElement>;
159
- onwheel: import("svelte/elements").MouseEventHandler<SVGPathElement>;
160
- class: string;
161
- style: string;
162
- cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
163
- }>>;
164
- scales: PlotScales;
165
- };
3
+ props(): any;
166
4
  events(): {};
167
5
  slots(): {};
168
6
  bindings(): "";
@@ -1,77 +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
- dodgeX: import("../../transforms/dodge.js").DodgeXOptions;
20
- dodgeY: import("../../transforms/dodge.js").DodgeYOptions;
21
- fill: import("../../types/index.js").ChannelAccessor<Datum>;
22
- fillOpacity: import("../../types/index.js").ConstantAccessor<number, Datum>;
23
- sort: ((a: import("../../types/data.js").RawValue, b: import("../../types/data.js").RawValue) => number) | {
24
- channel: string;
25
- order?: "ascending" | "descending";
26
- } | import("../../types/index.js").ConstantAccessor<import("../../types/data.js").RawValue, Datum>;
27
- stroke: import("../../types/index.js").ChannelAccessor<Datum>;
28
- strokeWidth: import("../../types/index.js").ConstantAccessor<number, Datum>;
29
- strokeOpacity: import("../../types/index.js").ConstantAccessor<number, Datum>;
30
- strokeLinejoin: import("../../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
31
- strokeLinecap: import("../../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
32
- strokeMiterlimit: import("../../types/index.js").ConstantAccessor<number, Datum>;
33
- opacity: import("../../types/index.js").ChannelAccessor<Datum>;
34
- strokeDasharray: import("../../types/index.js").ConstantAccessor<string, Datum>;
35
- strokeDashoffset: import("../../types/index.js").ConstantAccessor<number, Datum>;
36
- mixBlendMode: import("../../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
37
- clipPath: string;
38
- imageFilter: import("../../types/index.js").ConstantAccessor<string, Datum>;
39
- shapeRendering: import("../../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
40
- paintOrder: import("../../types/index.js").ConstantAccessor<string, Datum>;
41
- onclick: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
42
- ondblclick: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
43
- onmouseup: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
44
- onmousedown: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
45
- onmouseenter: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
46
- onmousemove: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
47
- onmouseleave: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
48
- onmouseout: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
49
- onmouseover: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
50
- onpointercancel: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
51
- onpointerdown: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
52
- onpointerup: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
53
- onpointerenter: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
54
- onpointerleave: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
55
- onpointermove: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
56
- onpointerover: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
57
- onpointerout: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
58
- ondrag: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
59
- ondrop: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
60
- ondragstart: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
61
- ondragenter: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
62
- ondragleave: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
63
- ondragover: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
64
- ondragend: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
65
- ontouchstart: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
66
- ontouchmove: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
67
- ontouchend: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
68
- ontouchcancel: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
69
- oncontextmenu: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
70
- onwheel: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
71
- class: string;
72
- style: string;
73
- cursor: import("../../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
74
- }>;
12
+ options: BaseRectMarkProps<Datum_1> & BaseMarkProps<Datum_1>;
75
13
  /**
76
14
  * By default, the `inset` property is applied to all four insets. Mark components
77
15
  * can tweak this behavior for insetTop and insetBottom by setting the
@@ -11,72 +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
- dodgeX?: import("./dodge").DodgeXOptions | undefined;
22
- dodgeY?: import("./dodge").DodgeYOptions | undefined;
23
- fill?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
24
- fillOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
25
- sort?: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
26
- channel: string;
27
- order?: "ascending" | "descending";
28
- } | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Record<string | symbol, import("../types/index.js").RawValue>>;
29
- stroke?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
30
- strokeWidth?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
31
- strokeOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
32
- strokeLinejoin?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Record<string | symbol, import("../types/index.js").RawValue>>;
33
- strokeLinecap?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Record<string | symbol, import("../types/index.js").RawValue>>;
34
- strokeMiterlimit?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
35
- opacity?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
36
- strokeDasharray?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
37
- strokeDashoffset?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
38
- mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Record<string | symbol, import("../types/index.js").RawValue>>;
39
- clipPath?: string | undefined;
40
- imageFilter?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
41
- shapeRendering?: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Record<string | symbol, import("../types/index.js").RawValue>>;
42
- paintOrder?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
43
- onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
44
- ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
45
- onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
46
- onmousedown?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
47
- onmouseenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
48
- onmousemove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
49
- onmouseleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
50
- onmouseout?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
51
- onmouseover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
52
- onpointercancel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
53
- onpointerdown?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
54
- onpointerup?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
55
- onpointerenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
56
- onpointerleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
57
- onpointermove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
58
- onpointerover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
59
- onpointerout?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
60
- ondrag?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
61
- ondrop?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
62
- ondragstart?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
63
- ondragenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
64
- ondragleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
65
- ondragover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
66
- ondragend?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
67
- ontouchstart?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
68
- ontouchmove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
69
- ontouchend?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
70
- ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
71
- oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
72
- onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
73
- class?: string | undefined;
74
- style?: string | undefined;
75
- cursor?: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types/index.js").RawValue>>;
76
- data: {
77
- __x: import("../types/index.js").RawValue;
78
- __lo: number;
79
- __avg: number;
80
- __hi: number;
81
- }[];
82
- };
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 {};