svelteplot 0.10.1 → 0.10.3
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/LICENSE.md +1 -1
- package/dist/marks/AreaY.svelte +1 -0
- package/dist/marks/AreaY.svelte.d.ts +110 -0
- package/dist/marks/BollingerX.svelte.d.ts +2 -2
- package/dist/marks/BollingerY.svelte.d.ts +2 -2
- package/dist/marks/BoxY.svelte.d.ts +2 -2
- package/dist/marks/Brush.svelte.d.ts +2 -2
- package/dist/marks/CustomMark.svelte.d.ts +2 -2
- package/dist/marks/DifferenceY.svelte.d.ts +2 -2
- package/dist/transforms/interval.d.ts +18 -18
- package/dist/transforms/normalize.d.ts +34 -0
- package/dist/transforms/select.d.ts +182 -182
- package/dist/transforms/sort.d.ts +30 -30
- package/dist/transforms/window.d.ts +54 -54
- package/package.json +12 -4
- package/dist/ui/Checkbox.svelte +0 -14
- package/dist/ui/Checkbox.svelte.d.ts +0 -13
- package/dist/ui/ExamplesGrid.svelte +0 -81
- package/dist/ui/ExamplesGrid.svelte.d.ts +0 -11
- package/dist/ui/ExamplesPageList.svelte +0 -63
- package/dist/ui/ExamplesPageList.svelte.d.ts +0 -12
- package/dist/ui/ExamplesPagePreview.svelte +0 -145
- package/dist/ui/ExamplesPagePreview.svelte.d.ts +0 -12
- package/dist/ui/RadioInput.svelte +0 -27
- package/dist/ui/RadioInput.svelte.d.ts +0 -9
- package/dist/ui/Select.svelte +0 -27
- package/dist/ui/Select.svelte.d.ts +0 -9
- package/dist/ui/Slider.svelte +0 -47
- package/dist/ui/Slider.svelte.d.ts +0 -11
- package/dist/ui/Spiral.svelte +0 -35
- package/dist/ui/Spiral.svelte.d.ts +0 -15
- package/dist/ui/index.d.ts +0 -4
- package/dist/ui/index.js +0 -4
- package/dist/ui/isDark.svelte.d.ts +0 -6
- package/dist/ui/isDark.svelte.js +0 -10
package/LICENSE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright 2024-
|
|
1
|
+
Copyright 2024-2026, Gregor Aisch
|
|
2
2
|
|
|
3
3
|
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
|
|
4
4
|
|
package/dist/marks/AreaY.svelte
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { stackY } from '../transforms/stack.js';
|
|
13
13
|
import { recordizeY } from '../transforms/recordize.js';
|
|
14
14
|
import type { ChannelAccessor, DataRow } from '../types/index.js';
|
|
15
|
+
import type { ComponentProps } from 'svelte';
|
|
15
16
|
import { getPlotDefaults } from '../hooks/plotDefaults.js';
|
|
16
17
|
|
|
17
18
|
let markProps: AreaYMarkProps = $props();
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import type { ChannelAccessor, DataRow } from '../types/index.js';
|
|
2
|
+
declare function $$render<Datum extends DataRow>(): {
|
|
3
|
+
props: Omit<Partial<{
|
|
4
|
+
filter: import("../types/index.js").ConstantAccessor<boolean, Record<string | symbol, import("../types/data").RawValue>>;
|
|
5
|
+
facet: "auto" | "include" | "exclude";
|
|
6
|
+
fx: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
7
|
+
fy: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
8
|
+
dx: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
9
|
+
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;
|
|
12
|
+
fill: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
13
|
+
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
|
+
channel: string;
|
|
16
|
+
order?: "ascending" | "descending";
|
|
17
|
+
} | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Record<string | symbol, import("../types/data").RawValue>>;
|
|
18
|
+
stroke: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
19
|
+
strokeWidth: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
20
|
+
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
21
|
+
strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Record<string | symbol, import("../types/data").RawValue>>;
|
|
22
|
+
strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Record<string | symbol, import("../types/data").RawValue>>;
|
|
23
|
+
strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
24
|
+
opacity: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
25
|
+
strokeDasharray: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
26
|
+
strokeDashoffset: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
27
|
+
mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Record<string | symbol, import("../types/data").RawValue>>;
|
|
28
|
+
clipPath: string;
|
|
29
|
+
mask: string;
|
|
30
|
+
imageFilter: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
31
|
+
shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Record<string | symbol, import("../types/data").RawValue>>;
|
|
32
|
+
paintOrder: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
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: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types/data").RawValue>>;
|
|
66
|
+
}> & import("../types/mark").LinkableMarkProps<Record<string | symbol, import("../types/data").RawValue>> & {
|
|
67
|
+
data: Record<string | symbol, import("../types/data").RawValue>[];
|
|
68
|
+
x1?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
69
|
+
x2?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
70
|
+
y1?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
71
|
+
y2?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
72
|
+
z?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
73
|
+
curve?: import("../types/index.js").CurveName | import("d3-shape").CurveFactory;
|
|
74
|
+
tension?: number;
|
|
75
|
+
sort?: import("../types/index.js").ConstantAccessor<import("../types/data").RawValue> | {
|
|
76
|
+
channel: "stroke" | "fill";
|
|
77
|
+
};
|
|
78
|
+
stack?: Partial<import("../transforms/stack.js").StackOptions>;
|
|
79
|
+
canvas?: boolean;
|
|
80
|
+
areaClass?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
81
|
+
}, "x1" | "x2"> & {
|
|
82
|
+
x?: ChannelAccessor<Datum>;
|
|
83
|
+
y?: ChannelAccessor<Datum>;
|
|
84
|
+
};
|
|
85
|
+
exports: {};
|
|
86
|
+
bindings: "";
|
|
87
|
+
slots: {};
|
|
88
|
+
events: {};
|
|
89
|
+
};
|
|
90
|
+
declare class __sveltets_Render<Datum extends DataRow> {
|
|
91
|
+
props(): ReturnType<typeof $$render<Datum>>['props'];
|
|
92
|
+
events(): ReturnType<typeof $$render<Datum>>['events'];
|
|
93
|
+
slots(): ReturnType<typeof $$render<Datum>>['slots'];
|
|
94
|
+
bindings(): "";
|
|
95
|
+
exports(): {};
|
|
96
|
+
}
|
|
97
|
+
interface $$IsomorphicComponent {
|
|
98
|
+
new <Datum extends DataRow>(options: import('svelte').ComponentConstructorOptions<ReturnType<__sveltets_Render<Datum>['props']>>): import('svelte').SvelteComponent<ReturnType<__sveltets_Render<Datum>['props']>, ReturnType<__sveltets_Render<Datum>['events']>, ReturnType<__sveltets_Render<Datum>['slots']>> & {
|
|
99
|
+
$$bindings?: ReturnType<__sveltets_Render<Datum>['bindings']>;
|
|
100
|
+
} & ReturnType<__sveltets_Render<Datum>['exports']>;
|
|
101
|
+
<Datum extends DataRow>(internal: unknown, props: ReturnType<__sveltets_Render<Datum>['props']> & {}): ReturnType<__sveltets_Render<Datum>['exports']>;
|
|
102
|
+
z_$$bindings?: ReturnType<__sveltets_Render<any>['bindings']>;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Creates a vertical area chart with y value and baseline. Areas are implicitly
|
|
106
|
+
* stacked vertically if just the y channel is defined.
|
|
107
|
+
*/
|
|
108
|
+
declare const AreaY: $$IsomorphicComponent;
|
|
109
|
+
type AreaY<Datum extends DataRow> = InstanceType<typeof AreaY<Datum>>;
|
|
110
|
+
export default AreaY;
|
|
@@ -7,8 +7,8 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
7
7
|
fy: ChannelAccessor<Datum>;
|
|
8
8
|
dx: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
9
9
|
dy: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
10
|
-
dodgeX: import("../transforms/dodge").DodgeXOptions;
|
|
11
|
-
dodgeY: import("../transforms/dodge").DodgeYOptions;
|
|
10
|
+
dodgeX: import("../transforms/dodge.js").DodgeXOptions;
|
|
11
|
+
dodgeY: import("../transforms/dodge.js").DodgeYOptions;
|
|
12
12
|
fill: ChannelAccessor<Datum>;
|
|
13
13
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
14
14
|
sort: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
@@ -7,8 +7,8 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
7
7
|
fy: ChannelAccessor<Datum>;
|
|
8
8
|
dx: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
9
9
|
dy: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
10
|
-
dodgeX: import("../transforms/dodge").DodgeXOptions;
|
|
11
|
-
dodgeY: import("../transforms/dodge").DodgeYOptions;
|
|
10
|
+
dodgeX: import("../transforms/dodge.js").DodgeXOptions;
|
|
11
|
+
dodgeY: import("../transforms/dodge.js").DodgeYOptions;
|
|
12
12
|
fill: ChannelAccessor<Datum>;
|
|
13
13
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
14
14
|
sort: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
@@ -7,8 +7,8 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
7
7
|
fy: ChannelAccessor<Datum>;
|
|
8
8
|
dx: import("../types").ConstantAccessor<number, Datum>;
|
|
9
9
|
dy: import("../types").ConstantAccessor<number, Datum>;
|
|
10
|
-
dodgeX: import("../transforms/dodge").DodgeXOptions;
|
|
11
|
-
dodgeY: import("../transforms/dodge").DodgeYOptions;
|
|
10
|
+
dodgeX: import("../transforms/dodge.js").DodgeXOptions;
|
|
11
|
+
dodgeY: import("../transforms/dodge.js").DodgeYOptions;
|
|
12
12
|
fill: ChannelAccessor<Datum>;
|
|
13
13
|
fillOpacity: import("../types").ConstantAccessor<number, Datum>;
|
|
14
14
|
sort: ((a: RawValue, b: RawValue) => number) | {
|
|
@@ -7,8 +7,8 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
7
7
|
fy: import("../types/index.js").ChannelAccessor<Datum>;
|
|
8
8
|
dx: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
9
9
|
dy: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
10
|
-
dodgeX: import("../transforms/dodge
|
|
11
|
-
dodgeY: import("../transforms/dodge
|
|
10
|
+
dodgeX: import("../transforms/dodge").DodgeXOptions;
|
|
11
|
+
dodgeY: import("../transforms/dodge").DodgeYOptions;
|
|
12
12
|
fill: import("../types/index.js").ChannelAccessor<Datum>;
|
|
13
13
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
14
14
|
sort: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
@@ -8,8 +8,8 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
8
8
|
fy: ChannelAccessor<Datum>;
|
|
9
9
|
dx: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
10
10
|
dy: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
11
|
-
dodgeX: import("../transforms/dodge").DodgeXOptions;
|
|
12
|
-
dodgeY: import("../transforms/dodge").DodgeYOptions;
|
|
11
|
+
dodgeX: import("../transforms/dodge.js").DodgeXOptions;
|
|
12
|
+
dodgeY: import("../transforms/dodge.js").DodgeYOptions;
|
|
13
13
|
fill: ChannelAccessor<Datum>;
|
|
14
14
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
15
15
|
sort: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
@@ -8,8 +8,8 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
8
8
|
fy: ChannelAccessor<Datum>;
|
|
9
9
|
dx: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
10
10
|
dy: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
11
|
-
dodgeX: import("../transforms/dodge").DodgeXOptions;
|
|
12
|
-
dodgeY: import("../transforms/dodge").DodgeYOptions;
|
|
11
|
+
dodgeX: import("../transforms/dodge.js").DodgeXOptions;
|
|
12
|
+
dodgeY: import("../transforms/dodge.js").DodgeYOptions;
|
|
13
13
|
fill: ChannelAccessor<Datum>;
|
|
14
14
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
15
15
|
sort: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
@@ -5,25 +5,25 @@ import type { TransformArg } from '../types/index.js';
|
|
|
5
5
|
export declare function intervalX<T>(args: TransformArg<T>): {
|
|
6
6
|
filter?: import("../types/index.js").ConstantAccessor<boolean, T>;
|
|
7
7
|
facet?: "auto" | "include" | "exclude" | undefined;
|
|
8
|
-
fx?: import("../types/
|
|
9
|
-
fy?: import("../types/
|
|
8
|
+
fx?: import("../types/channel.js").ChannelAccessor<T>;
|
|
9
|
+
fy?: import("../types/channel.js").ChannelAccessor<T>;
|
|
10
10
|
dx?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
11
11
|
dy?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
12
|
-
dodgeX?: import("./dodge").DodgeXOptions | undefined;
|
|
13
|
-
dodgeY?: import("./dodge").DodgeYOptions | undefined;
|
|
14
|
-
fill?: import("../types/
|
|
12
|
+
dodgeX?: import("./dodge.js").DodgeXOptions | undefined;
|
|
13
|
+
dodgeY?: import("./dodge.js").DodgeYOptions | undefined;
|
|
14
|
+
fill?: import("../types/channel.js").ChannelAccessor<T>;
|
|
15
15
|
fillOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
16
|
-
sort?: ((a: import("../types/
|
|
16
|
+
sort?: ((a: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | {
|
|
17
17
|
channel: string;
|
|
18
18
|
order?: "ascending" | "descending";
|
|
19
|
-
} | import("../types/index.js").ConstantAccessor<import("../types/
|
|
20
|
-
stroke?: import("../types/
|
|
19
|
+
} | import("../types/index.js").ConstantAccessor<import("../types/data.js").RawValue, T>;
|
|
20
|
+
stroke?: import("../types/channel.js").ChannelAccessor<T>;
|
|
21
21
|
strokeWidth?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
22
22
|
strokeOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
23
23
|
strokeLinejoin?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, T>;
|
|
24
24
|
strokeLinecap?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, T>;
|
|
25
25
|
strokeMiterlimit?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
26
|
-
opacity?: import("../types/
|
|
26
|
+
opacity?: import("../types/channel.js").ChannelAccessor<T>;
|
|
27
27
|
strokeDasharray?: import("../types/index.js").ConstantAccessor<string, T>;
|
|
28
28
|
strokeDashoffset?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
29
29
|
mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, T>;
|
|
@@ -73,25 +73,25 @@ export declare function intervalX<T>(args: TransformArg<T>): {
|
|
|
73
73
|
export declare function intervalY<T>(args: TransformArg<T>): {
|
|
74
74
|
filter?: import("../types/index.js").ConstantAccessor<boolean, T>;
|
|
75
75
|
facet?: "auto" | "include" | "exclude" | undefined;
|
|
76
|
-
fx?: import("../types/
|
|
77
|
-
fy?: import("../types/
|
|
76
|
+
fx?: import("../types/channel.js").ChannelAccessor<T>;
|
|
77
|
+
fy?: import("../types/channel.js").ChannelAccessor<T>;
|
|
78
78
|
dx?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
79
79
|
dy?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
80
|
-
dodgeX?: import("./dodge").DodgeXOptions | undefined;
|
|
81
|
-
dodgeY?: import("./dodge").DodgeYOptions | undefined;
|
|
82
|
-
fill?: import("../types/
|
|
80
|
+
dodgeX?: import("./dodge.js").DodgeXOptions | undefined;
|
|
81
|
+
dodgeY?: import("./dodge.js").DodgeYOptions | undefined;
|
|
82
|
+
fill?: import("../types/channel.js").ChannelAccessor<T>;
|
|
83
83
|
fillOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
84
|
-
sort?: ((a: import("../types/
|
|
84
|
+
sort?: ((a: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | {
|
|
85
85
|
channel: string;
|
|
86
86
|
order?: "ascending" | "descending";
|
|
87
|
-
} | import("../types/index.js").ConstantAccessor<import("../types/
|
|
88
|
-
stroke?: import("../types/
|
|
87
|
+
} | import("../types/index.js").ConstantAccessor<import("../types/data.js").RawValue, T>;
|
|
88
|
+
stroke?: import("../types/channel.js").ChannelAccessor<T>;
|
|
89
89
|
strokeWidth?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
90
90
|
strokeOpacity?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
91
91
|
strokeLinejoin?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, T>;
|
|
92
92
|
strokeLinecap?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, T>;
|
|
93
93
|
strokeMiterlimit?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
94
|
-
opacity?: import("../types/
|
|
94
|
+
opacity?: import("../types/channel.js").ChannelAccessor<T>;
|
|
95
95
|
strokeDasharray?: import("../types/index.js").ConstantAccessor<string, T>;
|
|
96
96
|
strokeDashoffset?: import("../types/index.js").ConstantAccessor<number, T>;
|
|
97
97
|
mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, T>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { TransformArg, RawValue, MapIndexObject } from '../types/index.js';
|
|
2
|
+
import { sort } from './sort.js';
|
|
3
|
+
type BasisFunction = (I: number[], S: RawValue[]) => number;
|
|
4
|
+
type NormalizeBasis = 'deviation' | 'first' | 'last' | 'min' | 'max' | 'mean' | 'median' | 'sum' | 'extent' | BasisFunction | MapIndexObject;
|
|
5
|
+
type NormalizeOptions = NormalizeBasis | {
|
|
6
|
+
basis: NormalizeBasis;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Normalizes the x values based on the specified basis. Uses mapX.
|
|
10
|
+
*/
|
|
11
|
+
export declare function normalizeX<T>(args: TransformArg<T>, options: NormalizeOptions): any;
|
|
12
|
+
/**
|
|
13
|
+
* Normalizes the y values based on the specified basis. Uses mapY.
|
|
14
|
+
*/
|
|
15
|
+
export declare function normalizeY<T>(args: TransformArg<T>, options: NormalizeOptions): any;
|
|
16
|
+
/**
|
|
17
|
+
* Convenience wrapper for normalizeY for parallel coordinates.
|
|
18
|
+
*
|
|
19
|
+
* Channels:
|
|
20
|
+
* - x: the categorical axis (e.g., 'Measurement')
|
|
21
|
+
* - y: the value to normalize (e.g., 'Value')
|
|
22
|
+
* - z: the grouping variable (e.g., 'Id')
|
|
23
|
+
*/
|
|
24
|
+
export declare function normalizeParallelY<T>(args: TransformArg<T>, basis: NormalizeBasis): ReturnType<typeof sort<T>>;
|
|
25
|
+
/**
|
|
26
|
+
* Convenience wrapper for normalizeY for parallel coordinates.
|
|
27
|
+
*
|
|
28
|
+
* Channels:
|
|
29
|
+
* - x: the categorical axis (e.g., 'Measurement')
|
|
30
|
+
* - y: the value to normalize (e.g., 'Value')
|
|
31
|
+
* - z: the grouping variable (e.g., 'Id')
|
|
32
|
+
*/
|
|
33
|
+
export declare function normalizeParallelX<T>(args: TransformArg<T>, basis: NormalizeBasis): ReturnType<typeof sort<T>>;
|
|
34
|
+
export {};
|