svelteplot 0.4.4 → 0.4.5-pr-207.0
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/Mark.svelte.d.ts +2 -1
- package/dist/core/Plot.svelte +1 -0
- package/dist/helpers/colors.d.ts +1 -1
- package/dist/helpers/index.d.ts +2 -2
- package/dist/helpers/resolve.js +1 -1
- package/dist/helpers/scales.d.ts +1 -1
- package/dist/helpers/typeChecks.d.ts +4 -4
- package/dist/marks/Area.svelte.d.ts +2 -1
- package/dist/marks/AreaX.svelte.d.ts +4 -2
- package/dist/marks/AreaY.svelte +2 -1
- package/dist/marks/AreaY.svelte.d.ts +4 -2
- package/dist/marks/Arrow.svelte.d.ts +2 -1
- package/dist/marks/AxisX.svelte +5 -1
- package/dist/marks/AxisX.svelte.d.ts +11 -7
- package/dist/marks/AxisY.svelte +3 -2
- package/dist/marks/AxisY.svelte.d.ts +9 -7
- package/dist/marks/BarX.svelte.d.ts +3 -2
- package/dist/marks/BarY.svelte.d.ts +2 -1
- package/dist/marks/BollingerX.svelte.d.ts +2 -73
- package/dist/marks/BollingerY.svelte.d.ts +2 -73
- package/dist/marks/Cell.svelte.d.ts +2 -1
- package/dist/marks/ColorLegend.svelte +1 -1
- package/dist/marks/CustomMark.svelte.d.ts +2 -80
- package/dist/marks/DifferenceY.svelte.d.ts +7 -66
- package/dist/marks/Dot.svelte.d.ts +2 -1
- package/dist/marks/DotX.svelte.d.ts +2 -1
- package/dist/marks/DotY.svelte.d.ts +2 -1
- package/dist/marks/Geo.svelte.d.ts +2 -1
- package/dist/marks/GridX.svelte.d.ts +2 -1
- package/dist/marks/GridY.svelte.d.ts +2 -1
- package/dist/marks/Line.svelte.d.ts +4 -3
- package/dist/marks/LineX.svelte.d.ts +4 -2
- package/dist/marks/LineY.svelte.d.ts +4 -2
- package/dist/marks/Link.svelte.d.ts +2 -1
- package/dist/marks/Rect.svelte.d.ts +2 -1
- package/dist/marks/RuleX.svelte.d.ts +2 -1
- package/dist/marks/RuleY.svelte.d.ts +2 -1
- package/dist/marks/Spike.svelte.d.ts +2 -1
- package/dist/marks/Text.svelte.d.ts +2 -1
- package/dist/marks/TickX.svelte.d.ts +2 -1
- package/dist/marks/TickY.svelte.d.ts +2 -1
- package/dist/marks/Vector.svelte.d.ts +2 -1
- package/dist/marks/helpers/RectPath.svelte.d.ts +3 -62
- package/dist/marks/helpers/Regression.svelte +1 -1
- package/dist/transforms/bollinger.d.ts +1 -66
- package/dist/transforms/group.d.ts +4 -12
- package/dist/transforms/interval.d.ts +2 -122
- package/dist/transforms/recordize.d.ts +1 -4
- package/dist/transforms/recordize.js +8 -2
- package/dist/transforms/select.d.ts +7 -427
- package/dist/transforms/sort.d.ts +3 -242
- package/dist/transforms/sort.js +13 -1
- package/dist/transforms/stack.d.ts +5 -25
- package/dist/transforms/stack.js +96 -41
- package/dist/transforms/window.d.ts +2 -128
- package/dist/types/mark.d.ts +5 -1
- package/package.json +129 -128
|
@@ -1,82 +1,23 @@
|
|
|
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<
|
|
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"> & {
|
|
4
|
+
props(): Omit<BaseMarkProps<Datum_1>, "fill" | "fillOpacity"> & {
|
|
64
5
|
data: Datum[];
|
|
65
|
-
x1: ChannelAccessor<
|
|
6
|
+
x1: ChannelAccessor<Datum_1>;
|
|
66
7
|
/**
|
|
67
8
|
* the horizontal position of the metric; bound to the x scale
|
|
68
9
|
*/
|
|
69
|
-
x2: ChannelAccessor<
|
|
70
|
-
x: ChannelAccessor<
|
|
10
|
+
x2: ChannelAccessor<Datum_1>;
|
|
11
|
+
x: ChannelAccessor<Datum_1>;
|
|
71
12
|
/**
|
|
72
13
|
* the vertical position of the comparison; bound to the y scale
|
|
73
14
|
*/
|
|
74
|
-
y1: ChannelAccessor<
|
|
15
|
+
y1: ChannelAccessor<Datum_1>;
|
|
75
16
|
/**
|
|
76
17
|
* the vertical position of the metric; bound to the y scale
|
|
77
18
|
*/
|
|
78
|
-
y2: ChannelAccessor<
|
|
79
|
-
y: ChannelAccessor<
|
|
19
|
+
y2: ChannelAccessor<Datum_1>;
|
|
20
|
+
y: ChannelAccessor<Datum_1>;
|
|
80
21
|
fillOpacity?: number;
|
|
81
22
|
/**
|
|
82
23
|
* the stroke color of the "positive" area; defaults to 'blue'
|
|
@@ -58,7 +58,8 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
58
58
|
ontouchcancel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
59
59
|
oncontextmenu?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
60
60
|
onwheel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
61
|
-
class
|
|
61
|
+
class?: string;
|
|
62
|
+
style?: string;
|
|
62
63
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
63
64
|
}> & LinkableMarkProps<Datum> & {
|
|
64
65
|
data: Datum[];
|
|
@@ -57,7 +57,8 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
57
57
|
ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
58
58
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
59
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
|
-
class
|
|
60
|
+
class?: string;
|
|
61
|
+
style?: string;
|
|
61
62
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types/data").RawValue>>;
|
|
62
63
|
}> & import("../types/mark").LinkableMarkProps<Record<string | symbol, import("../types/data").RawValue>> & {
|
|
63
64
|
data: Record<string | symbol, import("../types/data").RawValue>[];
|
|
@@ -57,7 +57,8 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
57
57
|
ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
58
58
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
59
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
|
-
class
|
|
60
|
+
class?: string;
|
|
61
|
+
style?: string;
|
|
61
62
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types/data").RawValue>>;
|
|
62
63
|
}> & import("../types/mark").LinkableMarkProps<Record<string | symbol, import("../types/data").RawValue>> & {
|
|
63
64
|
data: Record<string | symbol, import("../types/data").RawValue>[];
|
|
@@ -57,7 +57,8 @@ declare class __sveltets_Render<Datum = DataRecord | GeoJSON.GeoJsonObject> {
|
|
|
57
57
|
ontouchcancel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
58
58
|
oncontextmenu?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
59
59
|
onwheel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
60
|
-
class
|
|
60
|
+
class?: string;
|
|
61
|
+
style?: string;
|
|
61
62
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
62
63
|
}> & LinkableMarkProps<Datum> & {
|
|
63
64
|
data?: Datum[] | {
|
|
@@ -57,7 +57,8 @@ declare class __sveltets_Render<Datum = RawValue> {
|
|
|
57
57
|
ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
58
58
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
59
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
|
-
class
|
|
60
|
+
class?: string;
|
|
61
|
+
style?: string;
|
|
61
62
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
62
63
|
}>, "fill" | "fillOpacity"> & {
|
|
63
64
|
data?: Datum[] | undefined;
|
|
@@ -57,7 +57,8 @@ declare class __sveltets_Render<Datum = RawValue> {
|
|
|
57
57
|
ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
58
58
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
59
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
|
-
class
|
|
60
|
+
class?: string;
|
|
61
|
+
style?: string;
|
|
61
62
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
62
63
|
}>, "fill" | "fillOpacity"> & {
|
|
63
64
|
data?: Datum[] | undefined;
|
|
@@ -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: RawValue, b: RawValue) => number) | ConstantAccessor<RawValue, Datum>;
|
|
17
|
+
} | ((a: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | ConstantAccessor<import("../types/data.js").RawValue, Datum>;
|
|
18
18
|
stroke: ChannelAccessor<Datum>;
|
|
19
19
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
20
20
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
@@ -59,7 +59,8 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
59
59
|
ontouchcancel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
60
60
|
oncontextmenu?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
61
61
|
onwheel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
62
|
-
class
|
|
62
|
+
class?: string;
|
|
63
|
+
style?: string;
|
|
63
64
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
64
65
|
}> & {
|
|
65
66
|
data?: Datum[] | undefined;
|
|
@@ -71,7 +72,7 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
71
72
|
outlineStrokeOpacity?: number;
|
|
72
73
|
curve?: CurveName | CurveFactory | "auto";
|
|
73
74
|
tension?: number;
|
|
74
|
-
sort?: ConstantAccessor<RawValue,
|
|
75
|
+
sort?: ConstantAccessor<RawValue, Datum_1> | {
|
|
75
76
|
channel: "stroke" | "fill";
|
|
76
77
|
};
|
|
77
78
|
text?: ConstantAccessor<string, Datum>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { recordizeX } from '../index.js';
|
|
1
2
|
import type { DataRow } from '../index.js';
|
|
2
3
|
declare class __sveltets_Render<Datum extends DataRow> {
|
|
3
4
|
props(): Omit<import("../types").MarkerOptions & Partial<{
|
|
@@ -57,7 +58,8 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
57
58
|
ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
58
59
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
60
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
|
-
class
|
|
61
|
+
class?: string;
|
|
62
|
+
style?: string;
|
|
61
63
|
cursor: import("../types").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types").RawValue>>;
|
|
62
64
|
}> & {
|
|
63
65
|
data?: Record<string | symbol, import("../types").RawValue>[] | undefined;
|
|
@@ -69,7 +71,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
69
71
|
outlineStrokeOpacity?: number;
|
|
70
72
|
curve?: import("../types").CurveName | import("d3-shape").CurveFactory | "auto";
|
|
71
73
|
tension?: number;
|
|
72
|
-
sort?: import("../types").ConstantAccessor<
|
|
74
|
+
sort?: import("../types").ConstantAccessor<recordizeX, Datum_1> | {
|
|
73
75
|
channel: "stroke" | "fill";
|
|
74
76
|
};
|
|
75
77
|
text?: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { recordizeY } from '../index.js';
|
|
1
2
|
import type { DataRow } from '../index.js';
|
|
2
3
|
declare class __sveltets_Render<Datum extends DataRow> {
|
|
3
4
|
props(): Omit<import("../types").MarkerOptions & Partial<{
|
|
@@ -57,7 +58,8 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
57
58
|
ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
58
59
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
60
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
|
-
class
|
|
61
|
+
class?: string;
|
|
62
|
+
style?: string;
|
|
61
63
|
cursor: import("../types").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types").RawValue>>;
|
|
62
64
|
}> & {
|
|
63
65
|
data?: Record<string | symbol, import("../types").RawValue>[] | undefined;
|
|
@@ -69,7 +71,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
69
71
|
outlineStrokeOpacity?: number;
|
|
70
72
|
curve?: import("../types").CurveName | import("d3-shape").CurveFactory | "auto";
|
|
71
73
|
tension?: number;
|
|
72
|
-
sort?: import("../types").ConstantAccessor<
|
|
74
|
+
sort?: import("../types").ConstantAccessor<recordizeY, Datum_1> | {
|
|
73
75
|
channel: "stroke" | "fill";
|
|
74
76
|
};
|
|
75
77
|
text?: import("../types").ConstantAccessor<string, Record<string | symbol, import("../types").RawValue>>;
|
|
@@ -58,7 +58,8 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
58
58
|
ontouchcancel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
59
59
|
oncontextmenu?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
60
60
|
onwheel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
61
|
-
class
|
|
61
|
+
class?: string;
|
|
62
|
+
style?: string;
|
|
62
63
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
63
64
|
}> & MarkerOptions & {
|
|
64
65
|
data: Datum[];
|
|
@@ -57,7 +57,8 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
57
57
|
ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
58
58
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
59
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
|
-
class
|
|
60
|
+
class?: string;
|
|
61
|
+
style?: string;
|
|
61
62
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
62
63
|
}> & LinkableMarkProps<Datum> & BaseRectMarkProps<Datum> & {
|
|
63
64
|
data: Datum[];
|
|
@@ -57,7 +57,8 @@ declare class __sveltets_Render<Datum = DataRecord | RawValue> {
|
|
|
57
57
|
ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
58
58
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
59
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
|
-
class
|
|
60
|
+
class?: string;
|
|
61
|
+
style?: string;
|
|
61
62
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
62
63
|
}>, "fill" | "fillOpacity"> & {
|
|
63
64
|
data?: Datum[] | undefined;
|
|
@@ -57,7 +57,8 @@ declare class __sveltets_Render<Datum = DataRecord> {
|
|
|
57
57
|
ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
58
58
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
59
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
|
-
class
|
|
60
|
+
class?: string;
|
|
61
|
+
style?: string;
|
|
61
62
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
62
63
|
}>, "fill" | "fillOpacity"> & {
|
|
63
64
|
data?: Datum[] | undefined;
|
|
@@ -57,7 +57,8 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
57
57
|
ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
58
58
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
59
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
|
-
class
|
|
60
|
+
class?: string;
|
|
61
|
+
style?: string;
|
|
61
62
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types/data").RawValue>>;
|
|
62
63
|
}> & {
|
|
63
64
|
data: Record<string | symbol, import("../types/data").RawValue>[];
|
|
@@ -59,7 +59,8 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
59
59
|
ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
60
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
61
61
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
62
|
-
class
|
|
62
|
+
class?: string;
|
|
63
|
+
style?: string;
|
|
63
64
|
cursor: ConstantAccessor<CSS.Property.Cursor, Datum>;
|
|
64
65
|
}> & LinkableMarkProps<Datum> & {
|
|
65
66
|
data?: Datum[] | undefined;
|
|
@@ -57,7 +57,8 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
57
57
|
ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
58
58
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
59
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
|
-
class
|
|
60
|
+
class?: string;
|
|
61
|
+
style?: string;
|
|
61
62
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
62
63
|
}>, "fill" | "fillOpacity"> & {
|
|
63
64
|
data: Datum[];
|
|
@@ -57,7 +57,8 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
57
57
|
ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
58
58
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
59
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
|
-
class
|
|
60
|
+
class?: string;
|
|
61
|
+
style?: string;
|
|
61
62
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
62
63
|
}>, "fill" | "fillOpacity"> & {
|
|
63
64
|
data: Datum[];
|
|
@@ -62,7 +62,8 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
62
62
|
ontouchcancel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
63
63
|
oncontextmenu?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
64
64
|
onwheel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
65
|
-
class
|
|
65
|
+
class?: string;
|
|
66
|
+
style?: string;
|
|
66
67
|
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
67
68
|
}> & {
|
|
68
69
|
data: Datum[];
|
|
@@ -1,74 +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<
|
|
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<
|
|
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
|
-
fill: import("../../types/index.js").ChannelAccessor<Datum>;
|
|
20
|
-
fillOpacity: import("../../types/index.js").ConstantAccessor<number, Datum>;
|
|
21
|
-
sort: {
|
|
22
|
-
channel: string;
|
|
23
|
-
order?: "ascending" | "descending";
|
|
24
|
-
} | ((a: import("../../types/data.js").RawValue, b: import("../../types/data.js").RawValue) => number) | import("../../types/index.js").ConstantAccessor<import("../../types/data.js").RawValue, Datum>;
|
|
25
|
-
stroke: import("../../types/index.js").ChannelAccessor<Datum>;
|
|
26
|
-
strokeWidth: import("../../types/index.js").ConstantAccessor<number, Datum>;
|
|
27
|
-
strokeOpacity: import("../../types/index.js").ConstantAccessor<number, Datum>;
|
|
28
|
-
strokeLinejoin: import("../../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
|
|
29
|
-
strokeLinecap: import("../../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
|
|
30
|
-
strokeMiterlimit: import("../../types/index.js").ConstantAccessor<number, Datum>;
|
|
31
|
-
opacity: import("../../types/index.js").ChannelAccessor<Datum>;
|
|
32
|
-
strokeDasharray: import("../../types/index.js").ConstantAccessor<string, Datum>;
|
|
33
|
-
strokeDashoffset: import("../../types/index.js").ConstantAccessor<number, Datum>;
|
|
34
|
-
mixBlendMode: import("../../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
|
|
35
|
-
clipPath: string;
|
|
36
|
-
imageFilter: import("../../types/index.js").ConstantAccessor<string, Datum>;
|
|
37
|
-
shapeRendering: import("../../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
38
|
-
paintOrder: import("../../types/index.js").ConstantAccessor<string, Datum>;
|
|
39
|
-
onclick?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
40
|
-
ondblclick?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
41
|
-
onmouseup?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
42
|
-
onmousedown?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
43
|
-
onmouseenter?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
44
|
-
onmousemove?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
45
|
-
onmouseleave?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
46
|
-
onmouseout?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
47
|
-
onmouseover?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
48
|
-
onpointercancel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
49
|
-
onpointerdown?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
50
|
-
onpointerup?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
51
|
-
onpointerenter?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
52
|
-
onpointerleave?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
53
|
-
onpointermove?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
54
|
-
onpointerover?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
55
|
-
onpointerout?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
56
|
-
ondrag?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
57
|
-
ondrop?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
58
|
-
ondragstart?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
59
|
-
ondragenter?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
60
|
-
ondragleave?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
61
|
-
ondragover?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
62
|
-
ondragend?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
63
|
-
ontouchstart?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
64
|
-
ontouchmove?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
65
|
-
ontouchend?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
66
|
-
ontouchcancel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
67
|
-
oncontextmenu?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
68
|
-
onwheel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
69
|
-
class: string | null;
|
|
70
|
-
cursor: import("../../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
71
|
-
}>;
|
|
12
|
+
options: BaseRectMarkProps<Datum_1> & BaseMarkProps<Datum_1>;
|
|
72
13
|
/**
|
|
73
14
|
* By default, the `inset` property is applied to all four insets. Mark components
|
|
74
15
|
* can tweak this behavior for insetTop and insetBottom by setting the
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
regressionLog,
|
|
44
44
|
regressionPow,
|
|
45
45
|
regressionLoess
|
|
46
|
-
} from '
|
|
46
|
+
} from '@gka/d3-regression';
|
|
47
47
|
import { resolveChannel } from '../../helpers/resolve.js';
|
|
48
48
|
import { confidenceInterval } from '../../helpers/math.js';
|
|
49
49
|
import callWithProps from '../../helpers/callWithProps.js';
|
|
@@ -11,69 +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
|
-
fill?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
22
|
-
fillOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
23
|
-
sort?: {
|
|
24
|
-
channel: string;
|
|
25
|
-
order?: "ascending" | "descending";
|
|
26
|
-
} | ((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>>;
|
|
27
|
-
stroke?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
28
|
-
strokeWidth?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
29
|
-
strokeOpacity?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
30
|
-
strokeLinejoin?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
31
|
-
strokeLinecap?: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
32
|
-
strokeMiterlimit?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
33
|
-
opacity?: import("../types/index.js").ChannelAccessor<Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
34
|
-
strokeDasharray?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
35
|
-
strokeDashoffset?: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
36
|
-
mixBlendMode?: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
37
|
-
clipPath?: string | undefined;
|
|
38
|
-
imageFilter?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
39
|
-
shapeRendering?: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
40
|
-
paintOrder?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
41
|
-
onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
42
|
-
ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
43
|
-
onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
44
|
-
onmousedown?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
45
|
-
onmouseenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
46
|
-
onmousemove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
47
|
-
onmouseleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
48
|
-
onmouseout?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
49
|
-
onmouseover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
50
|
-
onpointercancel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
51
|
-
onpointerdown?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
52
|
-
onpointerup?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
53
|
-
onpointerenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
54
|
-
onpointerleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
55
|
-
onpointermove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
56
|
-
onpointerover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
57
|
-
onpointerout?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
58
|
-
ondrag?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
59
|
-
ondrop?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
60
|
-
ondragstart?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
61
|
-
ondragenter?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
62
|
-
ondragleave?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
63
|
-
ondragover?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
64
|
-
ondragend?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
65
|
-
ontouchstart?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
66
|
-
ontouchmove?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
67
|
-
ontouchend?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
68
|
-
ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
69
|
-
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
70
|
-
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement> | undefined;
|
|
71
|
-
class?: string | null | undefined;
|
|
72
|
-
cursor?: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types/index.js").RawValue>>;
|
|
73
|
-
data: {
|
|
74
|
-
__x: import("../types/index.js").RawValue;
|
|
75
|
-
__lo: number;
|
|
76
|
-
__avg: number;
|
|
77
|
-
__hi: number;
|
|
78
|
-
}[];
|
|
79
|
-
};
|
|
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 {};
|