svelteplot 0.3.11-pr-153.0 → 0.3.11

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.
@@ -6,7 +6,7 @@ type SchemeGetter = (n: number) => readonly string[];
6
6
  export declare function isOrdinalScheme(scheme: ColorScheme): boolean;
7
7
  export declare function ordinalScheme(scheme: string): SchemeGetter | undefined;
8
8
  export declare function ordinalRange(scheme: string, length: number): readonly string[] | undefined;
9
- export declare function maybeBooleanRange(domain: boolean[], scheme?: string): any[] | undefined;
9
+ export declare function maybeBooleanRange(domain: boolean[], scheme?: string): unknown[] | undefined;
10
10
  export declare function isQuantitativeScheme(scheme: string): boolean;
11
11
  export declare function quantitativeScheme(scheme: string): typeof interpolateBrBG | undefined;
12
12
  export declare function isDivergingScheme(scheme: string): boolean;
@@ -3,8 +3,11 @@ import type { Snippet } from 'svelte';
3
3
  /**
4
4
  * Returns first argument that is not null or undefined
5
5
  */
6
- export declare function coalesce(...args: (RawValue | undefined | null)[]): any;
7
- export declare function testFilter(datum: DataRecord, options: Record<ChannelName, ChannelAccessor>): any;
6
+ export declare function coalesce(...args: (RawValue | undefined | null)[]): RawValue | null;
7
+ export declare function testFilter(datum: DataRecord, options: Record<ChannelName, ChannelAccessor>): string | number | boolean | symbol | Date | {
8
+ value: import("../types/index.js").ChannelValue<Record<string | symbol, RawValue>>;
9
+ scale: boolean | null;
10
+ } | null;
8
11
  export declare function randomId(): string;
9
12
  export declare function isSnippet(value: unknown): value is Snippet;
10
13
  export declare function isValid(value: RawValue | undefined): value is number | Date | string;
@@ -15,7 +15,7 @@ export declare function createScale<T extends ScaleOptions>(name: ScaleName, sca
15
15
  autoTitle?: undefined;
16
16
  } | {
17
17
  type: ScaleType;
18
- domain: any;
18
+ domain: RawValue[] | [undefined, undefined];
19
19
  range: any;
20
20
  fn: any;
21
21
  skip: Map<ScaledChannelName, Set<symbol>>;
@@ -1,10 +1,10 @@
1
1
  import type { RawValue } from '../types/index.js';
2
- export declare function isBooleanOrNull(v: RawValue): boolean;
2
+ export declare function isBooleanOrNull(v: RawValue): v is boolean;
3
3
  export declare function isDate(v: RawValue): v is Date;
4
- export declare function isDateOrNull(v: RawValue | null | undefined): boolean;
4
+ export declare function isDateOrNull(v: RawValue | null | undefined): v is Date | null | undefined;
5
5
  export declare function isNumberOrNull(v: RawValue | null | undefined): boolean;
6
6
  export declare function isNumberOrNullOrNaN(v: RawValue | null | undefined): boolean;
7
- export declare function isStringOrNull(v: RawValue | null | undefined): boolean;
7
+ export declare function isStringOrNull(v: RawValue | null | undefined): v is string | null | undefined;
8
8
  export declare function isSymbolOrNull(v: RawValue | null | undefined): boolean;
9
- export declare function isColorOrNull(v: RawValue | null | undefined): any;
9
+ export declare function isColorOrNull(v: RawValue | null | undefined): boolean;
10
10
  export declare function isOpacityOrNull(v: RawValue): boolean;
@@ -1,4 +1,3 @@
1
- import { renameChannels } from '../transforms/rename.js';
2
1
  import type { ChannelAccessor, DataRow } from '../types/index.js';
3
2
  declare class __sveltets_Render<Datum extends DataRow> {
4
3
  props(): Omit<Partial<{
@@ -72,7 +71,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
72
71
  sort?: import("../types/index.js").ConstantAccessor<import("../types/data").RawValue> | {
73
72
  channel: "stroke" | "fill";
74
73
  };
75
- stack?: Partial<renameChannels>;
74
+ stack?: Partial<import("../transforms/stack.js").StackOptions>;
76
75
  canvas?: boolean;
77
76
  }, "y1" | "y2"> & {
78
77
  x?: ChannelAccessor<Datum>;
@@ -1,4 +1,3 @@
1
- import { renameChannels } from '../transforms/rename.js';
2
1
  import type { ChannelAccessor, DataRow } from '../types/index.js';
3
2
  declare class __sveltets_Render<Datum extends DataRow> {
4
3
  props(): Omit<Partial<{
@@ -72,7 +71,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
72
71
  sort?: import("../types/index.js").ConstantAccessor<import("../types/data").RawValue> | {
73
72
  channel: "stroke" | "fill";
74
73
  };
75
- stack?: Partial<renameChannels>;
74
+ stack?: Partial<import("../transforms/stack.js").StackOptions>;
76
75
  canvas?: boolean;
77
76
  }, "x1" | "x2"> & {
78
77
  x?: ChannelAccessor<Datum>;
@@ -59,7 +59,7 @@ declare class __sveltets_Render<Datum extends RawValue> {
59
59
  onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
60
60
  class: string | null;
61
61
  cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
62
- }>, "fill" | "fillOpacity" | "href" | "target" | "title" | "paintOrder"> & {
62
+ }>, "fill" | "fillOpacity" | "href" | "target" | "paintOrder" | "title"> & {
63
63
  data?: Datum[] | undefined;
64
64
  automatic?: boolean;
65
65
  title?: string | false | null;
@@ -59,7 +59,7 @@ declare class __sveltets_Render<Datum extends RawValue> {
59
59
  onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
60
60
  class: string | null;
61
61
  cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
62
- }>, "fill" | "fillOpacity" | "href" | "target" | "title" | "paintOrder"> & {
62
+ }>, "fill" | "fillOpacity" | "href" | "target" | "paintOrder" | "title"> & {
63
63
  data?: Datum[] | undefined;
64
64
  automatic?: boolean;
65
65
  title?: string | false | null;
@@ -14,7 +14,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
14
14
  sort: {
15
15
  channel: string;
16
16
  order?: "ascending" | "descending";
17
- } | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Datum>;
17
+ } | ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Datum>;
18
18
  stroke: ChannelAccessor<Datum>;
19
19
  strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
20
20
  strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
@@ -1,6 +1,77 @@
1
- import type { DataRecord } from '../types/index.js';
1
+ import type { ChannelAccessor, DataRecord } from '../types/index.js';
2
2
  declare class __sveltets_Render<Datum extends DataRecord> {
3
- props(): any;
3
+ props(): Partial<{
4
+ filter?: import("../types/index.js").ConstantAccessor<boolean, Datum>;
5
+ facet?: "auto" | "include" | "exclude";
6
+ fx: ChannelAccessor<Datum>;
7
+ fy: ChannelAccessor<Datum>;
8
+ dx: import("../types/index.js").ConstantAccessor<number, Datum>;
9
+ dy: import("../types/index.js").ConstantAccessor<number, Datum>;
10
+ fill: ChannelAccessor<Datum>;
11
+ fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
12
+ sort: {
13
+ channel: string;
14
+ order?: "ascending" | "descending";
15
+ } | ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Datum>;
16
+ stroke: ChannelAccessor<Datum>;
17
+ strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
18
+ strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
19
+ strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
20
+ strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
21
+ strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, Datum>;
22
+ opacity: ChannelAccessor<Datum>;
23
+ strokeDasharray: import("../types/index.js").ConstantAccessor<string, Datum>;
24
+ strokeDashoffset: import("../types/index.js").ConstantAccessor<number, Datum>;
25
+ mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
26
+ clipPath: string;
27
+ imageFilter: import("../types/index.js").ConstantAccessor<string, Datum>;
28
+ shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
29
+ paintOrder: import("../types/index.js").ConstantAccessor<string, Datum>;
30
+ onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
31
+ ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
32
+ onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
33
+ onmousedown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
34
+ onmouseenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
35
+ onmousemove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
36
+ onmouseleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
37
+ onmouseout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
38
+ onmouseover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
39
+ onpointercancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
40
+ onpointerdown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
41
+ onpointerup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
42
+ onpointerenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
43
+ onpointerleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
44
+ onpointermove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
45
+ onpointerover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
46
+ onpointerout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
47
+ ondrag?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
48
+ ondrop?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
49
+ ondragstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
50
+ ondragenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
51
+ ondragleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
52
+ ondragover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
53
+ ondragend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
54
+ ontouchstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
55
+ ontouchmove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
56
+ ontouchend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
57
+ ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
58
+ oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
59
+ onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
60
+ class: string | null;
61
+ cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
62
+ }> & {
63
+ data: Datum[];
64
+ x?: ChannelAccessor<Datum>;
65
+ y?: ChannelAccessor<Datum>;
66
+ /**
67
+ * the window size (the window transform's k option), an integer; defaults to 20
68
+ */
69
+ n?: number;
70
+ /**
71
+ * the band radius, a number representing a multiple of standard deviations; defaults to 2
72
+ */
73
+ k?: number;
74
+ };
4
75
  events(): {};
5
76
  slots(): {};
6
77
  bindings(): "";
@@ -1,6 +1,77 @@
1
- import type { DataRecord } from '../types/index.js';
1
+ import type { ChannelAccessor, DataRecord } from '../types/index.js';
2
2
  declare class __sveltets_Render<Datum extends DataRecord> {
3
- props(): any;
3
+ props(): Partial<{
4
+ filter?: import("../types/index.js").ConstantAccessor<boolean, Datum>;
5
+ facet?: "auto" | "include" | "exclude";
6
+ fx: ChannelAccessor<Datum>;
7
+ fy: ChannelAccessor<Datum>;
8
+ dx: import("../types/index.js").ConstantAccessor<number, Datum>;
9
+ dy: import("../types/index.js").ConstantAccessor<number, Datum>;
10
+ fill: ChannelAccessor<Datum>;
11
+ fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
12
+ sort: {
13
+ channel: string;
14
+ order?: "ascending" | "descending";
15
+ } | ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Datum>;
16
+ stroke: ChannelAccessor<Datum>;
17
+ strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
18
+ strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
19
+ strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
20
+ strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
21
+ strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, Datum>;
22
+ opacity: ChannelAccessor<Datum>;
23
+ strokeDasharray: import("../types/index.js").ConstantAccessor<string, Datum>;
24
+ strokeDashoffset: import("../types/index.js").ConstantAccessor<number, Datum>;
25
+ mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
26
+ clipPath: string;
27
+ imageFilter: import("../types/index.js").ConstantAccessor<string, Datum>;
28
+ shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
29
+ paintOrder: import("../types/index.js").ConstantAccessor<string, Datum>;
30
+ onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
31
+ ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
32
+ onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
33
+ onmousedown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
34
+ onmouseenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
35
+ onmousemove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
36
+ onmouseleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
37
+ onmouseout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
38
+ onmouseover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
39
+ onpointercancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
40
+ onpointerdown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
41
+ onpointerup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
42
+ onpointerenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
43
+ onpointerleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
44
+ onpointermove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
45
+ onpointerover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
46
+ onpointerout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
47
+ ondrag?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
48
+ ondrop?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
49
+ ondragstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
50
+ ondragenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
51
+ ondragleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
52
+ ondragover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
53
+ ondragend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
54
+ ontouchstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
55
+ ontouchmove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
56
+ ontouchend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
57
+ ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
58
+ oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
59
+ onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
60
+ class: string | null;
61
+ cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
62
+ }> & {
63
+ data: Datum[];
64
+ x?: ChannelAccessor<Datum>;
65
+ y?: ChannelAccessor<Datum>;
66
+ /**
67
+ * the window size (the window transform's k option), an integer; defaults to 20
68
+ */
69
+ n?: number;
70
+ /**
71
+ * the band radius, a number representing a multiple of standard deviations; defaults to 2
72
+ */
73
+ k?: number;
74
+ };
4
75
  events(): {};
5
76
  slots(): {};
6
77
  bindings(): "";
@@ -1,29 +1,88 @@
1
1
  import type { ChannelAccessor, DataRecord } from '../types/index.js';
2
2
  declare class __sveltets_Render<Datum extends DataRecord> {
3
- props(): Pick<BaseMarkProps<Datum_1>, "class"> & {
3
+ props(): Pick<Partial<{
4
+ filter?: import("../types/index.js").ConstantAccessor<boolean, Datum>;
5
+ facet?: "auto" | "include" | "exclude";
6
+ fx: ChannelAccessor<Datum>;
7
+ fy: ChannelAccessor<Datum>;
8
+ dx: import("../types/index.js").ConstantAccessor<number, Datum>;
9
+ dy: import("../types/index.js").ConstantAccessor<number, Datum>;
10
+ fill: ChannelAccessor<Datum>;
11
+ fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
12
+ sort: {
13
+ channel: string;
14
+ order?: "ascending" | "descending";
15
+ } | ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Datum>;
16
+ stroke: ChannelAccessor<Datum>;
17
+ strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
18
+ strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
19
+ strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
20
+ strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
21
+ strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, Datum>;
22
+ opacity: ChannelAccessor<Datum>;
23
+ strokeDasharray: import("../types/index.js").ConstantAccessor<string, Datum>;
24
+ strokeDashoffset: import("../types/index.js").ConstantAccessor<number, Datum>;
25
+ mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
26
+ clipPath: string;
27
+ imageFilter: import("../types/index.js").ConstantAccessor<string, Datum>;
28
+ shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
29
+ paintOrder: import("../types/index.js").ConstantAccessor<string, Datum>;
30
+ onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
31
+ ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
32
+ onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
33
+ onmousedown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
34
+ onmouseenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
35
+ onmousemove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
36
+ onmouseleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
37
+ onmouseout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
38
+ onmouseover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
39
+ onpointercancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
40
+ onpointerdown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
41
+ onpointerup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
42
+ onpointerenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
43
+ onpointerleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
44
+ onpointermove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
45
+ onpointerover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
46
+ onpointerout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
47
+ ondrag?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
48
+ ondrop?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
49
+ ondragstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
50
+ ondragenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
51
+ ondragleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
52
+ ondragover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
53
+ ondragend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
54
+ ontouchstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
55
+ ontouchmove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
56
+ ontouchend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
57
+ ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
58
+ oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
59
+ onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
60
+ class: string | null;
61
+ cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
62
+ }>, "class"> & {
4
63
  data: Datum[];
5
64
  x: ChannelAccessor;
6
65
  y: ChannelAccessor;
7
66
  /**
8
67
  * Options for the rule marks that represent the min/max range
9
68
  */
10
- rule: Record<string, ChannelAccessor<Datum_1>>;
69
+ rule: Record<string, ChannelAccessor<Datum>>;
11
70
  /**
12
71
  * Options for the bar marks that represent the IQR range
13
72
  */
14
- bar: Record<string, ChannelAccessor<Datum_1>>;
73
+ bar: Record<string, ChannelAccessor<Datum>>;
15
74
  /**
16
75
  * Options for the tick marks that represent the median
17
76
  */
18
- tickMedian: Record<string, ChannelAccessor<Datum_1>> | boolean;
77
+ tickMedian: boolean | Record<string, ChannelAccessor<Datum>>;
19
78
  /**
20
79
  * Options for the tick marks that represent the min/max range
21
80
  */
22
- tickMinMax: Record<string, ChannelAccessor<Datum_1>> | boolean;
81
+ tickMinMax: boolean | Record<string, ChannelAccessor<Datum>>;
23
82
  /**
24
83
  * Options for the dot marks that represent the outliers
25
84
  */
26
- dot: Record<string, ChannelAccessor<Datum_1>>;
85
+ dot: Record<string, ChannelAccessor<Datum>>;
27
86
  };
28
87
  events(): {};
29
88
  slots(): {};
@@ -1,6 +1,84 @@
1
- import type { DataRecord } from '../types/index.js';
1
+ import type { DataRecord, ChannelAccessor, ScaledDataRecord, UsedScales } from '../types/index.js';
2
+ import type { Snippet } from 'svelte';
2
3
  declare class __sveltets_Render<Datum extends DataRecord> {
3
- props(): any;
4
+ props(): 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
+ }> & {
64
+ data?: Datum[] | undefined;
65
+ x?: ChannelAccessor<Datum>;
66
+ x1?: ChannelAccessor<Datum>;
67
+ x2?: ChannelAccessor<Datum>;
68
+ y?: ChannelAccessor<Datum>;
69
+ y1?: ChannelAccessor<Datum>;
70
+ y2?: ChannelAccessor<Datum>;
71
+ r?: ChannelAccessor<Datum>;
72
+ mark?: Snippet<[{
73
+ record: ScaledDataRecord<Datum>;
74
+ index: number;
75
+ usedScales: UsedScales;
76
+ }]> | undefined;
77
+ marks?: Snippet<[{
78
+ records: ScaledDataRecord<Datum>[];
79
+ usedScales: UsedScales;
80
+ }]> | undefined;
81
+ };
4
82
  events(): {};
5
83
  slots(): {};
6
84
  bindings(): "";
@@ -1,23 +1,82 @@
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<BaseMarkProps<Datum_1>, "fill" | "fillOpacity"> & {
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"> & {
5
64
  data: Datum[];
6
- x1: ChannelAccessor<Datum_1>;
65
+ x1: ChannelAccessor<Datum>;
7
66
  /**
8
67
  * the horizontal position of the metric; bound to the x scale
9
68
  */
10
- x2: ChannelAccessor<Datum_1>;
11
- x: ChannelAccessor<Datum_1>;
69
+ x2: ChannelAccessor<Datum>;
70
+ x: ChannelAccessor<Datum>;
12
71
  /**
13
72
  * the vertical position of the comparison; bound to the y scale
14
73
  */
15
- y1: ChannelAccessor<Datum_1>;
74
+ y1: ChannelAccessor<Datum>;
16
75
  /**
17
76
  * the vertical position of the metric; bound to the y scale
18
77
  */
19
- y2: ChannelAccessor<Datum_1>;
20
- y: ChannelAccessor<Datum_1>;
78
+ y2: ChannelAccessor<Datum>;
79
+ y: ChannelAccessor<Datum>;
21
80
  fillOpacity?: number;
22
81
  /**
23
82
  * the stroke color of the "positive" area; defaults to 'blue'
@@ -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: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | ConstantAccessor<import("../types/data.js").RawValue, Datum>;
17
+ } | ((a: RawValue, b: RawValue) => number) | ConstantAccessor<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_1> | {
74
+ sort?: ConstantAccessor<RawValue, Datum> | {
75
75
  channel: "stroke" | "fill";
76
76
  };
77
77
  text?: ConstantAccessor<string, Datum>;
@@ -1,4 +1,3 @@
1
- import { recordizeX } from '../index.js';
2
1
  import type { DataRow } from '../index.js';
3
2
  declare class __sveltets_Render<Datum extends DataRow> {
4
3
  props(): Omit<import("../types").MarkerOptions & Partial<{
@@ -70,7 +69,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
70
69
  outlineStrokeOpacity?: number;
71
70
  curve?: import("../types").CurveName | import("d3-shape").CurveFactory | "auto";
72
71
  tension?: number;
73
- sort?: import("../types").ConstantAccessor<recordizeX, Datum_1> | {
72
+ sort?: import("../types").ConstantAccessor<import("../types").RawValue, import("../types").DataRecord> | {
74
73
  channel: "stroke" | "fill";
75
74
  };
76
75
  text?: import("../types").ConstantAccessor<string, import("../types").DataRecord>;
@@ -1,4 +1,3 @@
1
- import { recordizeY } from '../index.js';
2
1
  import type { DataRow } from '../index.js';
3
2
  declare class __sveltets_Render<Datum extends DataRow> {
4
3
  props(): Omit<import("../types").MarkerOptions & Partial<{
@@ -70,7 +69,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
70
69
  outlineStrokeOpacity?: number;
71
70
  curve?: import("../types").CurveName | import("d3-shape").CurveFactory | "auto";
72
71
  tension?: number;
73
- sort?: import("../types").ConstantAccessor<recordizeY, Datum_1> | {
72
+ sort?: import("../types").ConstantAccessor<import("../types").RawValue, import("../types").DataRecord> | {
74
73
  channel: "stroke" | "fill";
75
74
  };
76
75
  text?: import("../types").ConstantAccessor<string, import("../types").DataRecord>;