svelteplot 0.4.8 → 0.4.9-pr-230.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/Mark.svelte.d.ts +2 -2
- package/dist/core/Plot.svelte +3 -2
- package/dist/helpers/colors.d.ts +1 -1
- package/dist/helpers/index.d.ts +3 -3
- package/dist/helpers/index.js +10 -1
- package/dist/helpers/scales.d.ts +1 -1
- package/dist/helpers/scales.js +5 -1
- package/dist/helpers/typeChecks.d.ts +4 -4
- package/dist/marks/Area.svelte.d.ts +2 -2
- package/dist/marks/AreaX.svelte.d.ts +4 -3
- package/dist/marks/Arrow.svelte.d.ts +2 -2
- package/dist/marks/AxisX.svelte.d.ts +3 -3
- package/dist/marks/AxisY.svelte.d.ts +3 -3
- package/dist/marks/BarX.svelte.d.ts +2 -2
- package/dist/marks/BarY.svelte.d.ts +2 -2
- package/dist/marks/BollingerX.svelte.d.ts +2 -74
- package/dist/marks/BollingerY.svelte.d.ts +2 -74
- package/dist/marks/BoxY.svelte.d.ts +6 -66
- package/dist/marks/Cell.svelte.d.ts +2 -2
- package/dist/marks/CustomMark.svelte.d.ts +2 -81
- package/dist/marks/CustomMarkHTML.svelte.d.ts +1 -1
- package/dist/marks/DifferenceY.svelte.d.ts +7 -67
- package/dist/marks/Dot.svelte.d.ts +2 -2
- package/dist/marks/DotX.svelte.d.ts +3 -3
- package/dist/marks/DotY.svelte.d.ts +3 -3
- package/dist/marks/Geo.svelte.d.ts +2 -2
- package/dist/marks/GridX.svelte.d.ts +2 -2
- package/dist/marks/GridY.svelte.d.ts +2 -2
- package/dist/marks/HTMLTooltip.svelte +7 -19
- package/dist/marks/Line.svelte.d.ts +3 -3
- package/dist/marks/LineX.svelte.d.ts +5 -4
- package/dist/marks/LineY.svelte.d.ts +5 -4
- package/dist/marks/Link.svelte.d.ts +2 -2
- package/dist/marks/Rect.svelte.d.ts +2 -2
- package/dist/marks/RuleX.svelte.d.ts +2 -2
- package/dist/marks/RuleY.svelte.d.ts +2 -2
- package/dist/marks/Spike.svelte.d.ts +3 -3
- package/dist/marks/Text.svelte +4 -0
- package/dist/marks/Text.svelte.d.ts +8 -4
- package/dist/marks/TickX.svelte.d.ts +2 -2
- package/dist/marks/TickY.svelte.d.ts +2 -2
- package/dist/marks/Vector.svelte.d.ts +2 -2
- package/dist/marks/helpers/MarkerPath.svelte.d.ts +2 -160
- package/dist/marks/helpers/RectPath.svelte.d.ts +3 -63
- package/dist/transforms/bollinger.d.ts +1 -67
- package/dist/transforms/group.d.ts +4 -12
- package/dist/transforms/interval.d.ts +2 -124
- package/dist/transforms/recordize.d.ts +1 -4
- package/dist/transforms/select.d.ts +7 -434
- package/dist/transforms/sort.d.ts +3 -246
- package/dist/transforms/stack.d.ts +3 -23
- package/dist/transforms/window.d.ts +2 -130
- package/package.json +128 -127
package/dist/Mark.svelte.d.ts
CHANGED
|
@@ -11,10 +11,10 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
11
11
|
dy: import("./types/index.js").ConstantAccessor<number, Datum>;
|
|
12
12
|
fill: ChannelAccessor<Datum>;
|
|
13
13
|
fillOpacity: import("./types/index.js").ConstantAccessor<number, Datum>;
|
|
14
|
-
sort:
|
|
14
|
+
sort: {
|
|
15
15
|
channel: string;
|
|
16
16
|
order?: "ascending" | "descending";
|
|
17
|
-
} | import("./types/index.js").ConstantAccessor<RawValue, Datum>;
|
|
17
|
+
} | ((a: RawValue, b: RawValue) => number) | import("./types/index.js").ConstantAccessor<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>;
|
package/dist/core/Plot.svelte
CHANGED
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
import { computeScales, projectXY } from '../helpers/scales.js';
|
|
31
31
|
import { CHANNEL_SCALE, SCALES } from '../constants.js';
|
|
32
32
|
import { getPlotDefaults, setPlotDefaults } from '../hooks/plotDefaults.js';
|
|
33
|
+
import { maybeNumber } from '../helpers/index.js';
|
|
33
34
|
|
|
34
35
|
// automatic margins can be applied by the marks, registered
|
|
35
36
|
// with their respective unique identifier as keys
|
|
@@ -214,7 +215,7 @@
|
|
|
214
215
|
// - for one-dimensional scales using the x scale we set a fixed height
|
|
215
216
|
// - for y band-scales we use the number of items in the y domain
|
|
216
217
|
const height = $derived(
|
|
217
|
-
plotOptions.height === 'auto'
|
|
218
|
+
maybeNumber(plotOptions.height) === null || plotOptions.height === 'auto'
|
|
218
219
|
? Math.round(
|
|
219
220
|
preScales.projection && preScales.projection.aspectRatio
|
|
220
221
|
? ((plotWidth * preScales.projection.aspectRatio) / xFacetCount) *
|
|
@@ -242,7 +243,7 @@
|
|
|
242
243
|
)
|
|
243
244
|
: typeof plotOptions.height === 'function'
|
|
244
245
|
? plotOptions.height(plotWidth)
|
|
245
|
-
: plotOptions.height
|
|
246
|
+
: maybeNumber(plotOptions.height)
|
|
246
247
|
);
|
|
247
248
|
|
|
248
249
|
const plotHeight = $derived(height - plotOptions.marginTop - plotOptions.marginBottom);
|
package/dist/helpers/colors.d.ts
CHANGED
|
@@ -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):
|
|
9
|
+
export declare function maybeBooleanRange(domain: boolean[], scheme?: string): any[] | 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;
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -3,13 +3,13 @@ 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)[]):
|
|
7
|
-
export declare function testFilter<T>(datum: T, options: Channels<T>):
|
|
6
|
+
export declare function coalesce(...args: (RawValue | undefined | null)[]): any;
|
|
7
|
+
export declare function testFilter<T>(datum: T, options: Channels<T>): any;
|
|
8
8
|
export declare function randomId(): string;
|
|
9
9
|
export declare function isSnippet(value: unknown): value is Snippet;
|
|
10
10
|
export declare function isValid(value: RawValue | undefined): value is number | Date | string;
|
|
11
11
|
export declare function isObject<T>(option: object | T): option is object;
|
|
12
|
-
export declare function maybeNumber(value:
|
|
12
|
+
export declare function maybeNumber(value: any): number | null;
|
|
13
13
|
export declare const constant: <T>(x: T) => () => T;
|
|
14
14
|
export declare const POSITION_CHANNELS: Set<ChannelName>;
|
|
15
15
|
export declare function parseInset(inset: number | string, width: number): number;
|
package/dist/helpers/index.js
CHANGED
|
@@ -31,8 +31,17 @@ export function isObject(option) {
|
|
|
31
31
|
// doesn't work with Proxies
|
|
32
32
|
return (typeof option === 'object' && !isDate(option) && !Array.isArray(option) && option !== null);
|
|
33
33
|
}
|
|
34
|
+
const NUMERIC = /^[+-]?(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?$/;
|
|
34
35
|
export function maybeNumber(value) {
|
|
35
|
-
|
|
36
|
+
if (typeof value === 'number' && Number.isFinite(value))
|
|
37
|
+
return value;
|
|
38
|
+
if (typeof value === 'string') {
|
|
39
|
+
// only accept numeric strings
|
|
40
|
+
if (NUMERIC.test(value.trim())) {
|
|
41
|
+
return parseFloat(value);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return null;
|
|
36
45
|
}
|
|
37
46
|
export const constant = (x) => () => x;
|
|
38
47
|
export const POSITION_CHANNELS = new Set(['x', 'x1', 'x2', 'y', 'y1', 'y2']);
|
package/dist/helpers/scales.d.ts
CHANGED
|
@@ -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:
|
|
18
|
+
domain: any;
|
|
19
19
|
range: any;
|
|
20
20
|
fn: any;
|
|
21
21
|
skip: Map<ScaledChannelName, Set<symbol>>;
|
package/dist/helpers/scales.js
CHANGED
|
@@ -152,7 +152,11 @@ export function createScale(name, scaleOptions, marks, plotOptions, plotWidth, p
|
|
|
152
152
|
throw new Error(`Invalid scale type ${type} for scale
|
|
153
153
|
${name}. Valid types are ${[...VALID_SCALE_TYPES[name]].join(', ')}`);
|
|
154
154
|
}
|
|
155
|
-
const isOrdinal = type === 'band' ||
|
|
155
|
+
const isOrdinal = type === 'band' ||
|
|
156
|
+
type === 'point' ||
|
|
157
|
+
type === 'ordinal' ||
|
|
158
|
+
type === 'categorical' ||
|
|
159
|
+
type === 'threshold';
|
|
156
160
|
if (isOrdinal && sortOrdinalDomain) {
|
|
157
161
|
valueArr.sort(ascending);
|
|
158
162
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { RawValue } from '../types/index.js';
|
|
2
|
-
export declare function isBooleanOrNull(v: RawValue):
|
|
2
|
+
export declare function isBooleanOrNull(v: RawValue): boolean;
|
|
3
3
|
export declare function isDate(v: RawValue): v is Date;
|
|
4
|
-
export declare function isDateOrNull(v: RawValue | null | undefined):
|
|
4
|
+
export declare function isDateOrNull(v: RawValue | null | undefined): boolean;
|
|
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):
|
|
7
|
+
export declare function isStringOrNull(v: RawValue | null | undefined): boolean;
|
|
8
8
|
export declare function isSymbolOrNull(v: RawValue | null | undefined): boolean;
|
|
9
|
-
export declare function isColorOrNull(v: RawValue | null | undefined):
|
|
9
|
+
export declare function isColorOrNull(v: RawValue | null | undefined): any;
|
|
10
10
|
export declare function isOpacityOrNull(v: RawValue): boolean;
|
|
@@ -11,10 +11,10 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
11
11
|
dy: ConstantAccessor<number, Datum>;
|
|
12
12
|
fill: ChannelAccessor<Datum>;
|
|
13
13
|
fillOpacity: ConstantAccessor<number, Datum>;
|
|
14
|
-
sort:
|
|
14
|
+
sort: {
|
|
15
15
|
channel: string;
|
|
16
16
|
order?: "ascending" | "descending";
|
|
17
|
-
} | ConstantAccessor<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>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { renameChannels } from '../transforms/rename.js';
|
|
1
2
|
import type { ChannelAccessor, DataRow } from '../types/index.js';
|
|
2
3
|
declare class __sveltets_Render<Datum extends DataRow> {
|
|
3
4
|
props(): Omit<Partial<{
|
|
@@ -9,10 +10,10 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
9
10
|
dy: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
10
11
|
fill: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
11
12
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
12
|
-
sort:
|
|
13
|
+
sort: {
|
|
13
14
|
channel: string;
|
|
14
15
|
order?: "ascending" | "descending";
|
|
15
|
-
} | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Record<string | symbol, import("../types/data").RawValue>>;
|
|
16
|
+
} | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Record<string | symbol, import("../types/data").RawValue>>;
|
|
16
17
|
stroke: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
17
18
|
strokeWidth: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
18
19
|
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
@@ -72,7 +73,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
72
73
|
sort?: import("../types/index.js").ConstantAccessor<import("../types/data").RawValue> | {
|
|
73
74
|
channel: "stroke" | "fill";
|
|
74
75
|
};
|
|
75
|
-
stack?: Partial<
|
|
76
|
+
stack?: Partial<renameChannels>;
|
|
76
77
|
canvas?: boolean;
|
|
77
78
|
}, "y1" | "y2"> & {
|
|
78
79
|
x?: ChannelAccessor<Datum>;
|
|
@@ -10,10 +10,10 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
10
10
|
dy: ConstantAccessor<number, Datum>;
|
|
11
11
|
fill: ChannelAccessor<Datum>;
|
|
12
12
|
fillOpacity: ConstantAccessor<number, Datum>;
|
|
13
|
-
sort:
|
|
13
|
+
sort: {
|
|
14
14
|
channel: string;
|
|
15
15
|
order?: "ascending" | "descending";
|
|
16
|
-
} | ConstantAccessor<RawValue, Datum>;
|
|
16
|
+
} | ((a: RawValue, b: RawValue) => number) | ConstantAccessor<RawValue, Datum>;
|
|
17
17
|
stroke: ChannelAccessor<Datum>;
|
|
18
18
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
19
19
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
@@ -10,10 +10,10 @@ declare class __sveltets_Render<Datum extends RawValue> {
|
|
|
10
10
|
dy: ConstantAccessor<number, Datum>;
|
|
11
11
|
fill: import("../types/channel").ChannelAccessor<Datum>;
|
|
12
12
|
fillOpacity: ConstantAccessor<number, Datum>;
|
|
13
|
-
sort:
|
|
13
|
+
sort: {
|
|
14
14
|
channel: string;
|
|
15
15
|
order?: "ascending" | "descending";
|
|
16
|
-
} | ConstantAccessor<RawValue, Datum>;
|
|
16
|
+
} | ((a: RawValue, b: RawValue) => number) | ConstantAccessor<RawValue, Datum>;
|
|
17
17
|
stroke: import("../types/channel").ChannelAccessor<Datum>;
|
|
18
18
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
19
19
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
@@ -61,7 +61,7 @@ declare class __sveltets_Render<Datum extends RawValue> {
|
|
|
61
61
|
class?: string;
|
|
62
62
|
style?: string;
|
|
63
63
|
cursor: ConstantAccessor<CSS.Property.Cursor, Datum>;
|
|
64
|
-
}>, "fillOpacity" | "
|
|
64
|
+
}>, "fillOpacity" | "href" | "target" | "title" | "paintOrder"> & {
|
|
65
65
|
data?: Datum[] | undefined;
|
|
66
66
|
automatic?: boolean;
|
|
67
67
|
title?: string | false | null;
|
|
@@ -9,10 +9,10 @@ declare class __sveltets_Render<Datum extends RawValue> {
|
|
|
9
9
|
dy: ConstantAccessor<number, Datum>;
|
|
10
10
|
fill: import("../types/channel").ChannelAccessor<Datum>;
|
|
11
11
|
fillOpacity: ConstantAccessor<number, Datum>;
|
|
12
|
-
sort:
|
|
12
|
+
sort: {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} | ConstantAccessor<RawValue, Datum>;
|
|
15
|
+
} | ((a: RawValue, b: RawValue) => number) | ConstantAccessor<RawValue, Datum>;
|
|
16
16
|
stroke: import("../types/channel").ChannelAccessor<Datum>;
|
|
17
17
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
18
18
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
@@ -60,7 +60,7 @@ declare class __sveltets_Render<Datum extends RawValue> {
|
|
|
60
60
|
class?: string;
|
|
61
61
|
style?: string;
|
|
62
62
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
63
|
-
}>, "fillOpacity" | "
|
|
63
|
+
}>, "fillOpacity" | "href" | "target" | "title" | "paintOrder"> & {
|
|
64
64
|
data?: Datum[] | undefined;
|
|
65
65
|
automatic?: boolean;
|
|
66
66
|
title?: string | false | null;
|
|
@@ -11,10 +11,10 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
11
11
|
dy: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
12
12
|
fill: ChannelAccessor<Datum>;
|
|
13
13
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
14
|
-
sort:
|
|
14
|
+
sort: {
|
|
15
15
|
channel: string;
|
|
16
16
|
order?: "ascending" | "descending";
|
|
17
|
-
} | import("../types/index.js").ConstantAccessor<import("../types/
|
|
17
|
+
} | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data").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>;
|
|
@@ -10,10 +10,10 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
10
10
|
dy: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
11
11
|
fill: ChannelAccessor<Datum>;
|
|
12
12
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
13
|
-
sort:
|
|
13
|
+
sort: {
|
|
14
14
|
channel: string;
|
|
15
15
|
order?: "ascending" | "descending";
|
|
16
|
-
} | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Datum>;
|
|
16
|
+
} | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Datum>;
|
|
17
17
|
stroke: ChannelAccessor<Datum>;
|
|
18
18
|
strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
19
19
|
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
@@ -1,78 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DataRecord } from '../types/index.js';
|
|
2
2
|
declare class __sveltets_Render<Datum extends DataRecord> {
|
|
3
|
-
props():
|
|
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: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
13
|
-
channel: string;
|
|
14
|
-
order?: "ascending" | "descending";
|
|
15
|
-
} | 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;
|
|
61
|
-
style?: string;
|
|
62
|
-
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
63
|
-
}> & {
|
|
64
|
-
data: Datum[];
|
|
65
|
-
x?: ChannelAccessor<Datum>;
|
|
66
|
-
y?: ChannelAccessor<Datum>;
|
|
67
|
-
/**
|
|
68
|
-
* the window size (the window transform's k option), an integer; defaults to 20
|
|
69
|
-
*/
|
|
70
|
-
n?: number;
|
|
71
|
-
/**
|
|
72
|
-
* the band radius, a number representing a multiple of standard deviations; defaults to 2
|
|
73
|
-
*/
|
|
74
|
-
k?: number;
|
|
75
|
-
};
|
|
3
|
+
props(): any;
|
|
76
4
|
events(): {};
|
|
77
5
|
slots(): {};
|
|
78
6
|
bindings(): "";
|
|
@@ -1,78 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DataRecord } from '../types/index.js';
|
|
2
2
|
declare class __sveltets_Render<Datum extends DataRecord> {
|
|
3
|
-
props():
|
|
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: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
13
|
-
channel: string;
|
|
14
|
-
order?: "ascending" | "descending";
|
|
15
|
-
} | 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;
|
|
61
|
-
style?: string;
|
|
62
|
-
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
63
|
-
}> & {
|
|
64
|
-
data: Datum[];
|
|
65
|
-
x?: ChannelAccessor<Datum>;
|
|
66
|
-
y?: ChannelAccessor<Datum>;
|
|
67
|
-
/**
|
|
68
|
-
* the window size (the window transform's k option), an integer; defaults to 20
|
|
69
|
-
*/
|
|
70
|
-
n?: number;
|
|
71
|
-
/**
|
|
72
|
-
* the band radius, a number representing a multiple of standard deviations; defaults to 2
|
|
73
|
-
*/
|
|
74
|
-
k?: number;
|
|
75
|
-
};
|
|
3
|
+
props(): any;
|
|
76
4
|
events(): {};
|
|
77
5
|
slots(): {};
|
|
78
6
|
bindings(): "";
|
|
@@ -1,89 +1,29 @@
|
|
|
1
1
|
import type { ChannelAccessor, DataRecord } from '../types';
|
|
2
2
|
declare class __sveltets_Render<Datum extends DataRecord> {
|
|
3
|
-
props(): Pick<
|
|
4
|
-
filter?: import("../types").ConstantAccessor<boolean, Datum>;
|
|
5
|
-
facet?: "auto" | "include" | "exclude";
|
|
6
|
-
fx: ChannelAccessor<Datum>;
|
|
7
|
-
fy: ChannelAccessor<Datum>;
|
|
8
|
-
dx: import("../types").ConstantAccessor<number, Datum>;
|
|
9
|
-
dy: import("../types").ConstantAccessor<number, Datum>;
|
|
10
|
-
fill: ChannelAccessor<Datum>;
|
|
11
|
-
fillOpacity: import("../types").ConstantAccessor<number, Datum>;
|
|
12
|
-
sort: ((a: import("../types").RawValue, b: import("../types").RawValue) => number) | {
|
|
13
|
-
channel: string;
|
|
14
|
-
order?: "ascending" | "descending";
|
|
15
|
-
} | import("../types").ConstantAccessor<import("../types").RawValue, Datum>;
|
|
16
|
-
stroke: ChannelAccessor<Datum>;
|
|
17
|
-
strokeWidth: import("../types").ConstantAccessor<number, Datum>;
|
|
18
|
-
strokeOpacity: import("../types").ConstantAccessor<number, Datum>;
|
|
19
|
-
strokeLinejoin: import("../types").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
|
|
20
|
-
strokeLinecap: import("../types").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
|
|
21
|
-
strokeMiterlimit: import("../types").ConstantAccessor<number, Datum>;
|
|
22
|
-
opacity: ChannelAccessor<Datum>;
|
|
23
|
-
strokeDasharray: import("../types").ConstantAccessor<string, Datum>;
|
|
24
|
-
strokeDashoffset: import("../types").ConstantAccessor<number, Datum>;
|
|
25
|
-
mixBlendMode: import("../types").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
|
|
26
|
-
clipPath: string;
|
|
27
|
-
imageFilter: import("../types").ConstantAccessor<string, Datum>;
|
|
28
|
-
shapeRendering: import("../types").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
29
|
-
paintOrder: import("../types").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;
|
|
61
|
-
style?: string;
|
|
62
|
-
cursor: import("../types").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
63
|
-
}>, "fx" | "fy" | "fill" | "stroke" | "class"> & {
|
|
3
|
+
props(): Pick<BaseMarkProps<Datum_1>, "fill" | "stroke" | "fx" | "fy" | "class"> & {
|
|
64
4
|
data: Datum[];
|
|
65
5
|
x: ChannelAccessor;
|
|
66
6
|
y: ChannelAccessor;
|
|
67
7
|
/**
|
|
68
8
|
* Options for the rule marks that represent the min/max range
|
|
69
9
|
*/
|
|
70
|
-
rule: Record<string, ChannelAccessor<
|
|
10
|
+
rule: Record<string, ChannelAccessor<Datum_1>>;
|
|
71
11
|
/**
|
|
72
12
|
* Options for the bar marks that represent the IQR range
|
|
73
13
|
*/
|
|
74
|
-
bar: Record<string, ChannelAccessor<
|
|
14
|
+
bar: Record<string, ChannelAccessor<Datum_1>>;
|
|
75
15
|
/**
|
|
76
16
|
* Options for the tick marks that represent the median
|
|
77
17
|
*/
|
|
78
|
-
tickMedian:
|
|
18
|
+
tickMedian: Record<string, ChannelAccessor<Datum_1>> | boolean;
|
|
79
19
|
/**
|
|
80
20
|
* Options for the tick marks that represent the min/max range
|
|
81
21
|
*/
|
|
82
|
-
tickMinMax:
|
|
22
|
+
tickMinMax: Record<string, ChannelAccessor<Datum_1>> | boolean;
|
|
83
23
|
/**
|
|
84
24
|
* Options for the dot marks that represent the outliers
|
|
85
25
|
*/
|
|
86
|
-
dot: Record<string, ChannelAccessor<
|
|
26
|
+
dot: Record<string, ChannelAccessor<Datum_1>>;
|
|
87
27
|
};
|
|
88
28
|
events(): {};
|
|
89
29
|
slots(): {};
|
|
@@ -9,10 +9,10 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
9
9
|
dy: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
10
10
|
fill: ChannelAccessor<Datum>;
|
|
11
11
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
12
|
-
sort:
|
|
12
|
+
sort: {
|
|
13
13
|
channel: string;
|
|
14
14
|
order?: "ascending" | "descending";
|
|
15
|
-
} | import("../types/index.js").ConstantAccessor<import("../types/data.js").RawValue, Datum>;
|
|
15
|
+
} | ((a: import("../types/data.js").RawValue, b: import("../types/data.js").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data.js").RawValue, Datum>;
|
|
16
16
|
stroke: ChannelAccessor<Datum>;
|
|
17
17
|
strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
18
18
|
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|