svelteplot 0.4.0 → 0.4.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.
@@ -8,32 +8,32 @@ type WindowOptions = {
8
8
  strict: boolean;
9
9
  };
10
10
  export declare function windowX(args: TransformArg<DataRecord>, options: WindowOptions): {
11
- filter?: import("../types/index.js").ConstantAccessor<boolean, DataRecord>;
11
+ filter?: import("../types/index.js").ConstantAccessor<boolean, Record<string | symbol, import("../types/index.js").RawValue>>;
12
12
  facet?: "auto" | "include" | "exclude" | undefined;
13
- fx?: import("../types/index.js").ChannelAccessor<DataRecord>;
14
- fy?: import("../types/index.js").ChannelAccessor<DataRecord>;
15
- dx?: import("../types/index.js").ConstantAccessor<number, DataRecord>;
16
- dy?: import("../types/index.js").ConstantAccessor<number, DataRecord>;
17
- fill?: import("../types/index.js").ChannelAccessor<DataRecord>;
18
- fillOpacity?: import("../types/index.js").ConstantAccessor<number, DataRecord>;
13
+ fx?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
14
+ fy?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
15
+ dx?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
16
+ dy?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
17
+ fill?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
18
+ fillOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
19
19
  sort?: {
20
20
  channel: string;
21
21
  order?: "ascending" | "descending";
22
- } | ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, DataRecord>;
23
- stroke?: import("../types/index.js").ChannelAccessor<DataRecord>;
24
- strokeWidth?: import("../types/index.js").ConstantAccessor<number, DataRecord>;
25
- strokeOpacity?: import("../types/index.js").ConstantAccessor<number, DataRecord>;
26
- strokeLinejoin?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, DataRecord>;
27
- strokeLinecap?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, DataRecord>;
28
- strokeMiterlimit?: import("../types/index.js").ConstantAccessor<number, DataRecord>;
29
- opacity?: import("../types/index.js").ChannelAccessor<DataRecord>;
30
- strokeDasharray?: import("../types/index.js").ConstantAccessor<string, DataRecord>;
31
- strokeDashoffset?: import("../types/index.js").ConstantAccessor<number, DataRecord>;
32
- mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, DataRecord>;
22
+ } | ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Record<string | symbol, import("../types/index.js").RawValue>>;
23
+ stroke?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
24
+ strokeWidth?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
25
+ strokeOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
26
+ strokeLinejoin?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Record<string | symbol, import("../types/index.js").RawValue>>;
27
+ strokeLinecap?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Record<string | symbol, import("../types/index.js").RawValue>>;
28
+ strokeMiterlimit?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
29
+ opacity?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
30
+ strokeDasharray?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
31
+ strokeDashoffset?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
32
+ mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Record<string | symbol, import("../types/index.js").RawValue>>;
33
33
  clipPath?: string | undefined;
34
- imageFilter?: import("../types/index.js").ConstantAccessor<string, DataRecord>;
35
- shapeRendering?: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, DataRecord>;
36
- paintOrder?: import("../types/index.js").ConstantAccessor<string, DataRecord>;
34
+ imageFilter?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
35
+ shapeRendering?: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Record<string | symbol, import("../types/index.js").RawValue>>;
36
+ paintOrder?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
37
37
  onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
38
38
  ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
39
39
  onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
@@ -65,40 +65,39 @@ export declare function windowX(args: TransformArg<DataRecord>, options: WindowO
65
65
  oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
66
66
  onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
67
67
  class?: string | null | undefined;
68
- cursor?: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, DataRecord>;
68
+ cursor?: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types/index.js").RawValue>>;
69
69
  data: {
70
70
  [x: string]: import("../types/index.js").RawValue;
71
71
  [x: symbol]: import("../types/index.js").RawValue;
72
- ___orig___?: import("../types/index.js").RawValue | [import("../types/index.js").RawValue, import("../types/index.js").RawValue];
73
72
  }[];
74
73
  };
75
74
  export declare function windowY(args: TransformArg<DataRecord>, options: WindowOptions): {
76
- filter?: import("../types/index.js").ConstantAccessor<boolean, DataRecord>;
75
+ filter?: import("../types/index.js").ConstantAccessor<boolean, Record<string | symbol, import("../types/index.js").RawValue>>;
77
76
  facet?: "auto" | "include" | "exclude" | undefined;
78
- fx?: import("../types/index.js").ChannelAccessor<DataRecord>;
79
- fy?: import("../types/index.js").ChannelAccessor<DataRecord>;
80
- dx?: import("../types/index.js").ConstantAccessor<number, DataRecord>;
81
- dy?: import("../types/index.js").ConstantAccessor<number, DataRecord>;
82
- fill?: import("../types/index.js").ChannelAccessor<DataRecord>;
83
- fillOpacity?: import("../types/index.js").ConstantAccessor<number, DataRecord>;
77
+ fx?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
78
+ fy?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
79
+ dx?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
80
+ dy?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
81
+ fill?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
82
+ fillOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
84
83
  sort?: {
85
84
  channel: string;
86
85
  order?: "ascending" | "descending";
87
- } | ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, DataRecord>;
88
- stroke?: import("../types/index.js").ChannelAccessor<DataRecord>;
89
- strokeWidth?: import("../types/index.js").ConstantAccessor<number, DataRecord>;
90
- strokeOpacity?: import("../types/index.js").ConstantAccessor<number, DataRecord>;
91
- strokeLinejoin?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, DataRecord>;
92
- strokeLinecap?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, DataRecord>;
93
- strokeMiterlimit?: import("../types/index.js").ConstantAccessor<number, DataRecord>;
94
- opacity?: import("../types/index.js").ChannelAccessor<DataRecord>;
95
- strokeDasharray?: import("../types/index.js").ConstantAccessor<string, DataRecord>;
96
- strokeDashoffset?: import("../types/index.js").ConstantAccessor<number, DataRecord>;
97
- mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, DataRecord>;
86
+ } | ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Record<string | symbol, import("../types/index.js").RawValue>>;
87
+ stroke?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
88
+ strokeWidth?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
89
+ strokeOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
90
+ strokeLinejoin?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Record<string | symbol, import("../types/index.js").RawValue>>;
91
+ strokeLinecap?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Record<string | symbol, import("../types/index.js").RawValue>>;
92
+ strokeMiterlimit?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
93
+ opacity?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
94
+ strokeDasharray?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
95
+ strokeDashoffset?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
96
+ mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Record<string | symbol, import("../types/index.js").RawValue>>;
98
97
  clipPath?: string | undefined;
99
- imageFilter?: import("../types/index.js").ConstantAccessor<string, DataRecord>;
100
- shapeRendering?: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, DataRecord>;
101
- paintOrder?: import("../types/index.js").ConstantAccessor<string, DataRecord>;
98
+ imageFilter?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
99
+ shapeRendering?: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Record<string | symbol, import("../types/index.js").RawValue>>;
100
+ paintOrder?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
102
101
  onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
103
102
  ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
104
103
  onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
@@ -130,11 +129,10 @@ export declare function windowY(args: TransformArg<DataRecord>, options: WindowO
130
129
  oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
131
130
  onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
132
131
  class?: string | null | undefined;
133
- cursor?: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, DataRecord>;
132
+ cursor?: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types/index.js").RawValue>>;
134
133
  data: {
135
134
  [x: string]: import("../types/index.js").RawValue;
136
135
  [x: symbol]: import("../types/index.js").RawValue;
137
- ___orig___?: import("../types/index.js").RawValue | [import("../types/index.js").RawValue, import("../types/index.js").RawValue];
138
136
  }[];
139
137
  };
140
138
  export {};
@@ -1,8 +1,6 @@
1
1
  import type { ScaledChannelName, ScaledChannelType } from './channel.js';
2
2
  export type RawValue = number | Date | boolean | string | symbol;
3
- export type DataRecord<T = Record<string | symbol, RawValue>> = T & {
4
- ___orig___?: RawValue | [RawValue, RawValue];
5
- };
3
+ export type DataRecord<T = Record<string | symbol, RawValue>> = T;
6
4
  export type ResolvedDataRecord<T = Record<string | symbol, RawValue>> = Partial<Record<ScaledChannelName, any>> & {
7
5
  datum: DataRecord<T>;
8
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelteplot",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "license": "ISC",
5
5
  "author": {
6
6
  "name": "Gregor Aisch",