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.
- package/dist/helpers/autoScales.js +1 -1
- package/dist/helpers/mergeDeep.js +0 -1
- package/dist/helpers/reduce.js +0 -1
- package/dist/helpers/scales.js +1 -1
- package/dist/marks/AreaX.svelte.d.ts +29 -29
- package/dist/marks/AreaY.svelte.d.ts +29 -29
- package/dist/marks/DotX.svelte.d.ts +29 -29
- package/dist/marks/DotY.svelte.d.ts +29 -29
- package/dist/marks/LineX.svelte.d.ts +33 -33
- package/dist/marks/LineY.svelte.d.ts +33 -33
- package/dist/marks/Spike.svelte.d.ts +27 -27
- package/dist/marks/Text.svelte +4 -3
- package/dist/marks/Text.svelte.d.ts +2 -2
- package/dist/marks/helpers/MultilineText.svelte +3 -7
- package/dist/transforms/bollinger.d.ts +22 -22
- package/dist/transforms/group.d.ts +4 -4
- package/dist/transforms/select.d.ts +161 -161
- package/dist/transforms/window.d.ts +44 -46
- package/dist/types/data.d.ts +1 -3
- package/package.json +1 -1
|
@@ -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,
|
|
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<
|
|
14
|
-
fy?: import("../types/index.js").ChannelAccessor<
|
|
15
|
-
dx?: import("../types/index.js").ConstantAccessor<number,
|
|
16
|
-
dy?: import("../types/index.js").ConstantAccessor<number,
|
|
17
|
-
fill?: import("../types/index.js").ChannelAccessor<
|
|
18
|
-
fillOpacity?: import("../types/index.js").ConstantAccessor<number,
|
|
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,
|
|
23
|
-
stroke?: import("../types/index.js").ChannelAccessor<
|
|
24
|
-
strokeWidth?: import("../types/index.js").ConstantAccessor<number,
|
|
25
|
-
strokeOpacity?: import("../types/index.js").ConstantAccessor<number,
|
|
26
|
-
strokeLinejoin?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin,
|
|
27
|
-
strokeLinecap?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap,
|
|
28
|
-
strokeMiterlimit?: import("../types/index.js").ConstantAccessor<number,
|
|
29
|
-
opacity?: import("../types/index.js").ChannelAccessor<
|
|
30
|
-
strokeDasharray?: import("../types/index.js").ConstantAccessor<string,
|
|
31
|
-
strokeDashoffset?: import("../types/index.js").ConstantAccessor<number,
|
|
32
|
-
mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode,
|
|
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,
|
|
35
|
-
shapeRendering?: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering,
|
|
36
|
-
paintOrder?: import("../types/index.js").ConstantAccessor<string,
|
|
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,
|
|
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,
|
|
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<
|
|
79
|
-
fy?: import("../types/index.js").ChannelAccessor<
|
|
80
|
-
dx?: import("../types/index.js").ConstantAccessor<number,
|
|
81
|
-
dy?: import("../types/index.js").ConstantAccessor<number,
|
|
82
|
-
fill?: import("../types/index.js").ChannelAccessor<
|
|
83
|
-
fillOpacity?: import("../types/index.js").ConstantAccessor<number,
|
|
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,
|
|
88
|
-
stroke?: import("../types/index.js").ChannelAccessor<
|
|
89
|
-
strokeWidth?: import("../types/index.js").ConstantAccessor<number,
|
|
90
|
-
strokeOpacity?: import("../types/index.js").ConstantAccessor<number,
|
|
91
|
-
strokeLinejoin?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin,
|
|
92
|
-
strokeLinecap?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap,
|
|
93
|
-
strokeMiterlimit?: import("../types/index.js").ConstantAccessor<number,
|
|
94
|
-
opacity?: import("../types/index.js").ChannelAccessor<
|
|
95
|
-
strokeDasharray?: import("../types/index.js").ConstantAccessor<string,
|
|
96
|
-
strokeDashoffset?: import("../types/index.js").ConstantAccessor<number,
|
|
97
|
-
mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode,
|
|
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,
|
|
100
|
-
shapeRendering?: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering,
|
|
101
|
-
paintOrder?: import("../types/index.js").ConstantAccessor<string,
|
|
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,
|
|
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 {};
|
package/dist/types/data.d.ts
CHANGED
|
@@ -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
|
};
|