svelteplot 0.8.1-pr-302.0 → 0.9.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 +4 -5
- package/dist/constants.d.ts +1 -1
- package/dist/helpers/colors.d.ts +12 -9
- package/dist/helpers/facets.d.ts +1 -1
- package/dist/helpers/getBaseStyles.d.ts +4 -2
- package/dist/helpers/index.d.ts +3 -3
- package/dist/helpers/reduce.d.ts +1 -1
- package/dist/helpers/scales.d.ts +7 -7
- package/dist/helpers/symbols.d.ts +2 -2
- package/dist/helpers/time.d.ts +3 -3
- package/dist/helpers/typeChecks.d.ts +8 -8
- package/dist/marks/Area.svelte.d.ts +4 -5
- package/dist/marks/AreaX.svelte.d.ts +5 -6
- package/dist/marks/Arrow.svelte.d.ts +4 -5
- package/dist/marks/AxisX.svelte.d.ts +5 -6
- package/dist/marks/AxisY.svelte.d.ts +5 -6
- package/dist/marks/BarX.svelte.d.ts +4 -5
- package/dist/marks/BarY.svelte.d.ts +4 -5
- package/dist/marks/BollingerX.svelte.d.ts +77 -2
- package/dist/marks/BollingerY.svelte.d.ts +77 -2
- package/dist/marks/BoxY.svelte.d.ts +64 -1
- package/dist/marks/Brush.svelte.d.ts +64 -1
- package/dist/marks/Cell.svelte.d.ts +4 -5
- package/dist/marks/CustomMark.svelte.d.ts +85 -2
- package/dist/marks/DifferenceY.svelte.d.ts +64 -1
- package/dist/marks/Dot.svelte.d.ts +4 -5
- package/dist/marks/DotX.svelte.d.ts +5 -6
- package/dist/marks/DotY.svelte.d.ts +5 -6
- package/dist/marks/Frame.svelte.d.ts +5 -6
- package/dist/marks/Geo.svelte.d.ts +4 -5
- package/dist/marks/GridX.svelte.d.ts +4 -5
- package/dist/marks/GridY.svelte.d.ts +4 -5
- package/dist/marks/Image.svelte.d.ts +76 -2
- package/dist/marks/Line.svelte.d.ts +4 -5
- package/dist/marks/LineX.svelte.d.ts +6 -7
- package/dist/marks/LineY.svelte.d.ts +6 -7
- package/dist/marks/Link.svelte.d.ts +4 -5
- package/dist/marks/Rect.svelte.d.ts +4 -5
- package/dist/marks/RuleX.svelte.d.ts +4 -5
- package/dist/marks/RuleY.svelte.d.ts +4 -5
- package/dist/marks/Spike.svelte.d.ts +5 -6
- package/dist/marks/Text.svelte.d.ts +4 -5
- package/dist/marks/TickX.svelte.d.ts +4 -5
- package/dist/marks/TickY.svelte.d.ts +4 -5
- package/dist/marks/Trail.svelte.d.ts +64 -1
- package/dist/marks/Vector.svelte.d.ts +4 -5
- package/dist/marks/WaffleX.svelte.d.ts +86 -2
- package/dist/marks/WaffleY.svelte.d.ts +84 -2
- package/dist/marks/helpers/Box.svelte.d.ts +64 -1
- package/dist/marks/helpers/MarkerPath.svelte.d.ts +103 -2
- package/dist/transforms/bollinger.d.ts +70 -1
- package/dist/transforms/centroid.d.ts +4 -1
- package/dist/transforms/group.d.ts +12 -4
- package/dist/transforms/interval.d.ts +130 -2
- package/dist/transforms/recordize.d.ts +7 -4
- package/dist/transforms/select.d.ts +455 -7
- package/dist/transforms/sort.d.ts +257 -5
- package/dist/transforms/stack.d.ts +23 -3
- package/dist/transforms/window.d.ts +136 -2
- package/package.json +1 -1
- package/dist/transforms/normalize.d.ts +0 -23
package/dist/Mark.svelte.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type Snippet } from 'svelte';
|
|
2
|
-
import { CHANNEL_SCALE } from './constants.js';
|
|
3
2
|
import type { ScaledChannelName, MarkType, DataRecord, ChannelAccessor, ScaleName, RawValue, ScaledDataRecord, ScaleType } from './types/index.js';
|
|
4
3
|
import { getUsedScales } from './helpers/scales.js';
|
|
5
4
|
declare function $$render<Datum extends DataRecord>(): {
|
|
@@ -10,14 +9,14 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
10
9
|
fy: ChannelAccessor<Datum>;
|
|
11
10
|
dx: import("./types/index.js").ConstantAccessor<number, Datum>;
|
|
12
11
|
dy: import("./types/index.js").ConstantAccessor<number, Datum>;
|
|
13
|
-
dodgeX:
|
|
14
|
-
dodgeY:
|
|
12
|
+
dodgeX: import("./transforms/dodge.js").DodgeXOptions;
|
|
13
|
+
dodgeY: import("./transforms/dodge.js").DodgeYOptions;
|
|
15
14
|
fill: ChannelAccessor<Datum>;
|
|
16
15
|
fillOpacity: import("./types/index.js").ConstantAccessor<number, Datum>;
|
|
17
|
-
sort: {
|
|
16
|
+
sort: ((a: RawValue, b: RawValue) => number) | {
|
|
18
17
|
channel: string;
|
|
19
18
|
order?: "ascending" | "descending";
|
|
20
|
-
} |
|
|
19
|
+
} | import("./types/index.js").ConstantAccessor<RawValue, Datum>;
|
|
21
20
|
stroke: ChannelAccessor<Datum>;
|
|
22
21
|
strokeWidth: import("./types/index.js").ConstantAccessor<number, Datum>;
|
|
23
22
|
strokeOpacity: import("./types/index.js").ConstantAccessor<number, Datum>;
|
package/dist/constants.d.ts
CHANGED
|
@@ -13,6 +13,6 @@ export declare const CSS_COLOR_MIX: RegExp;
|
|
|
13
13
|
export declare const CSS_COLOR_CONTRAST: RegExp;
|
|
14
14
|
export declare const CSS_RGBA: RegExp;
|
|
15
15
|
export declare const CSS_URL: RegExp;
|
|
16
|
-
export declare const INDEX:
|
|
16
|
+
export declare const INDEX: unique symbol;
|
|
17
17
|
export declare const PI: number;
|
|
18
18
|
export declare const TAU: number;
|
package/dist/helpers/colors.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import { interpolateBrBG } from 'd3-scale-chromatic';
|
|
1
2
|
import type { ColorScheme } from '../types/index.js';
|
|
2
|
-
export declare const categoricalSchemes:
|
|
3
|
-
export declare function isCategoricalScheme(scheme: string):
|
|
4
|
-
|
|
5
|
-
export declare function
|
|
6
|
-
export declare function
|
|
7
|
-
export declare function
|
|
8
|
-
export declare function
|
|
9
|
-
export declare function
|
|
10
|
-
export declare function
|
|
3
|
+
export declare const categoricalSchemes: Map<string, readonly string[]>;
|
|
4
|
+
export declare function isCategoricalScheme(scheme: string): boolean;
|
|
5
|
+
type SchemeGetter = (n: number) => readonly string[];
|
|
6
|
+
export declare function isOrdinalScheme(scheme: ColorScheme): boolean;
|
|
7
|
+
export declare function ordinalScheme(scheme: string): SchemeGetter | undefined;
|
|
8
|
+
export declare function ordinalRange(scheme: string, length: number): readonly string[] | undefined;
|
|
9
|
+
export declare function maybeBooleanRange(domain: boolean[], scheme?: string): unknown[] | undefined;
|
|
10
|
+
export declare function isQuantitativeScheme(scheme: string): boolean;
|
|
11
|
+
export declare function quantitativeScheme(scheme: string): typeof interpolateBrBG | undefined;
|
|
12
|
+
export declare function isDivergingScheme(scheme: string): boolean;
|
|
13
|
+
export {};
|
package/dist/helpers/facets.d.ts
CHANGED
|
@@ -9,4 +9,4 @@ import type { GenericMarkOptions, Mark, RawValue } from '../types/index.js';
|
|
|
9
9
|
* @param fyValues y facet domain
|
|
10
10
|
* @returns
|
|
11
11
|
*/
|
|
12
|
-
export declare function getEmptyFacets(marks: Mark<GenericMarkOptions>[], fxValues: RawValue[], fyValues: RawValue[]):
|
|
12
|
+
export declare function getEmptyFacets(marks: Mark<GenericMarkOptions>[], fxValues: RawValue[], fyValues: RawValue[]): Map<RawValue, Map<RawValue, boolean>>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { Channels } from '../types/index.js';
|
|
2
2
|
import type { DataRow } from '../types/index.js';
|
|
3
|
-
export declare function getBaseStylesObject(datum: DataRow, props: Partial<Channels>):
|
|
4
|
-
|
|
3
|
+
export declare function getBaseStylesObject(datum: DataRow, props: Partial<Channels>): {
|
|
4
|
+
[k: string]: string | number;
|
|
5
|
+
};
|
|
6
|
+
export default function (datum: DataRow, props: Partial<Channels>): string;
|
|
5
7
|
export declare function maybeToPixel(cssKey: string, value: string | number): string | number;
|
|
6
8
|
export declare function maybeFromPixel(value: string | number): string | number;
|
|
7
9
|
export declare function maybeFromRem(value: string | number, rootFontSize?: number): string | number;
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ 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)[]): string | number | boolean | symbol | object | null;
|
|
7
|
+
export declare function testFilter<T>(datum: T, options: Channels<T>): true | T | null;
|
|
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;
|
|
@@ -15,4 +15,4 @@ export declare const POSITION_CHANNELS: Set<ChannelName>;
|
|
|
15
15
|
export declare function parseInset(inset: number | string, width: number): number;
|
|
16
16
|
export declare function omit<T extends {}, K extends keyof T>(obj: T, ...keys: K[]): Omit<T, K>;
|
|
17
17
|
export declare function identity<T>(x: T): T;
|
|
18
|
-
export declare const GEOJSON_PREFER_STROKE:
|
|
18
|
+
export declare const GEOJSON_PREFER_STROKE: Set<string>;
|
package/dist/helpers/reduce.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ type ReducerOption = ReducerName | ReducerFunc;
|
|
|
4
4
|
type Digit = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
|
|
5
5
|
export type ReducerPercentile = (`p${Digit}${Digit}` & Record<never, never>) | 'p25' | 'p50' | 'p75';
|
|
6
6
|
export type ReducerName = 'count' | 'deviation' | 'difference' | 'first' | 'last' | 'max' | 'mean' | 'median' | 'min' | 'mode' | 'ratio' | 'sum' | 'variance' | ReducerPercentile;
|
|
7
|
-
export declare const Reducer:
|
|
7
|
+
export declare const Reducer: Record<ReducerName, ReducerFunc>;
|
|
8
8
|
export declare function mayberReducer(r: ReducerOption): ReducerFunc;
|
|
9
9
|
export declare function reduceOutputs(newDatum: DataRecord, data: DataRecord[], options: Record<ChannelName, ReducerOption>, outputs: Iterable<ChannelName>, channels: Channels, newChannels: Channels): void;
|
|
10
10
|
export {};
|
package/dist/helpers/scales.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GenericMarkOptions, Mark, MarkType, PlotDefaults, PlotOptions, PlotScales, PlotState, RawValue, ScaleName, ScaleOptions, ScaleType, UsedScales } from '../types/index.js';
|
|
1
|
+
import type { ChannelAccessor, GenericMarkOptions, Mark, MarkType, PlotDefaults, PlotOptions, PlotScales, PlotState, RawValue, ScaleName, ScaleOptions, ScaleType, ScaledChannelName, UsedScales } from '../types/index.js';
|
|
2
2
|
/**
|
|
3
3
|
* compute the plot scales
|
|
4
4
|
*/
|
|
@@ -8,19 +8,19 @@ export declare function createScale<T extends ScaleOptions>(name: ScaleName, sca
|
|
|
8
8
|
domain: number[];
|
|
9
9
|
range: number[];
|
|
10
10
|
fn: (() => string) | (() => number);
|
|
11
|
-
skip: any
|
|
11
|
+
skip: Map<any, any>;
|
|
12
12
|
isDummy: boolean;
|
|
13
13
|
manualActiveMarks?: undefined;
|
|
14
14
|
uniqueScaleProps?: undefined;
|
|
15
15
|
autoTitle?: undefined;
|
|
16
16
|
} | {
|
|
17
17
|
type: ScaleType;
|
|
18
|
-
domain:
|
|
18
|
+
domain: RawValue[] | [undefined, undefined];
|
|
19
19
|
range: any;
|
|
20
20
|
fn: any;
|
|
21
|
-
skip:
|
|
21
|
+
skip: Map<ScaledChannelName, Set<symbol>>;
|
|
22
22
|
manualActiveMarks: number;
|
|
23
|
-
uniqueScaleProps:
|
|
23
|
+
uniqueScaleProps: Set<ChannelAccessor>;
|
|
24
24
|
autoTitle: string | null;
|
|
25
25
|
isDummy?: undefined;
|
|
26
26
|
};
|
|
@@ -36,8 +36,8 @@ export declare function inferScaleType(name: ScaleName, dataValues: RawValue[],
|
|
|
36
36
|
* not. That's what this function is used for.
|
|
37
37
|
*/
|
|
38
38
|
export declare function getUsedScales(plot: PlotState, options: GenericMarkOptions, mark: Mark<GenericMarkOptions>): UsedScales;
|
|
39
|
-
export declare function looksLikeANumber(input: string | number):
|
|
39
|
+
export declare function looksLikeANumber(input: string | number): boolean;
|
|
40
40
|
export declare function projectXY(scales: PlotScales, x: RawValue, y: RawValue, useXScale?: boolean, useYScale?: boolean): [number, number];
|
|
41
41
|
export declare function projectX(channel: 'x' | 'x1' | 'x2', scales: PlotScales, value: RawValue): number;
|
|
42
42
|
export declare function projectY(channel: 'y' | 'y1' | 'y2', scales: PlotScales, value: RawValue): number;
|
|
43
|
-
export declare function isOrdinalScale(scaleType: ScaleType): scaleType is "
|
|
43
|
+
export declare function isOrdinalScale(scaleType: ScaleType): scaleType is "ordinal" | "point" | "band" | "categorical" | "threshold";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type SymbolType } from 'd3-shape';
|
|
2
2
|
export declare const sqrt3: number;
|
|
3
3
|
export declare const sqrt4_3: number;
|
|
4
|
-
export declare function isSymbol(value: string | SymbolType):
|
|
5
|
-
export declare function maybeSymbol(symbol: SymbolType | string):
|
|
4
|
+
export declare function isSymbol(value: string | SymbolType): boolean;
|
|
5
|
+
export declare function maybeSymbol(symbol: SymbolType | string): SymbolType;
|
package/dist/helpers/time.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const durations:
|
|
2
|
-
export declare const intervalDuration:
|
|
3
|
-
export declare const intervalType:
|
|
1
|
+
export declare const durations: Map<string, number>;
|
|
2
|
+
export declare const intervalDuration: unique symbol;
|
|
3
|
+
export declare const intervalType: unique symbol;
|
|
4
4
|
export declare function parseTimeInterval(input: string): [string, number];
|
|
5
5
|
export declare function maybeTimeInterval(input: string): any;
|
|
6
6
|
export declare function maybeUtcInterval(input: string): any;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { RawValue } from '../types/index.js';
|
|
2
|
-
export declare function isBooleanOrNull(v: RawValue): boolean;
|
|
2
|
+
export declare function isBooleanOrNull(v: RawValue): v is boolean;
|
|
3
3
|
export declare function isDate(v: RawValue): v is Date;
|
|
4
|
-
export declare function isDateOrNull(v: RawValue | null | undefined):
|
|
5
|
-
export declare function isNumberOrNull(v: RawValue | null | undefined):
|
|
6
|
-
export declare function isNumberOrNullOrNaN(v: RawValue | null | undefined):
|
|
7
|
-
export declare function isStringOrNull(v: RawValue | null | undefined):
|
|
8
|
-
export declare function isSymbolOrNull(v: RawValue | null | undefined):
|
|
9
|
-
export declare function isColorOrNull(v: RawValue | null | undefined):
|
|
10
|
-
export declare function isOpacityOrNull(v: RawValue):
|
|
4
|
+
export declare function isDateOrNull(v: RawValue | null | undefined): v is Date | null | undefined;
|
|
5
|
+
export declare function isNumberOrNull(v: RawValue | null | undefined): boolean;
|
|
6
|
+
export declare function isNumberOrNullOrNaN(v: RawValue | null | undefined): boolean;
|
|
7
|
+
export declare function isStringOrNull(v: RawValue | null | undefined): v is string | null | undefined;
|
|
8
|
+
export declare function isSymbolOrNull(v: RawValue | null | undefined): boolean;
|
|
9
|
+
export declare function isColorOrNull(v: RawValue | null | undefined): boolean;
|
|
10
|
+
export declare function isOpacityOrNull(v: RawValue): boolean;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type CurveFactory } from 'd3-shape';
|
|
2
|
-
import callWithProps from '../helpers/callWithProps.js';
|
|
3
2
|
import type { CurveName, DataRecord, ConstantAccessor, ChannelAccessor, LinkableMarkProps, RawValue } from '../types/index.js';
|
|
4
3
|
import type { StackOptions } from '../transforms/stack.js';
|
|
5
4
|
declare function $$render<Datum extends DataRecord>(): {
|
|
@@ -10,14 +9,14 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
10
9
|
fy: ChannelAccessor<Datum>;
|
|
11
10
|
dx: ConstantAccessor<number, Datum>;
|
|
12
11
|
dy: ConstantAccessor<number, Datum>;
|
|
13
|
-
dodgeX:
|
|
14
|
-
dodgeY:
|
|
12
|
+
dodgeX: import("../transforms/dodge").DodgeXOptions;
|
|
13
|
+
dodgeY: import("../transforms/dodge").DodgeYOptions;
|
|
15
14
|
fill: ChannelAccessor<Datum>;
|
|
16
15
|
fillOpacity: ConstantAccessor<number, Datum>;
|
|
17
|
-
sort: {
|
|
16
|
+
sort: ((a: RawValue, b: RawValue) => number) | {
|
|
18
17
|
channel: string;
|
|
19
18
|
order?: "ascending" | "descending";
|
|
20
|
-
} |
|
|
19
|
+
} | ConstantAccessor<RawValue, Datum>;
|
|
21
20
|
stroke: ChannelAccessor<Datum>;
|
|
22
21
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
23
22
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { renameChannels } from '../transforms/rename.js';
|
|
2
1
|
import type { ChannelAccessor, DataRow } from '../types/index.js';
|
|
3
2
|
declare function $$render<Datum extends DataRow>(): {
|
|
4
3
|
props: Omit<Partial<{
|
|
@@ -8,14 +7,14 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
8
7
|
fy: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
9
8
|
dx: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
10
9
|
dy: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
11
|
-
dodgeX:
|
|
12
|
-
dodgeY:
|
|
10
|
+
dodgeX: import("../transforms/dodge").DodgeXOptions;
|
|
11
|
+
dodgeY: import("../transforms/dodge").DodgeYOptions;
|
|
13
12
|
fill: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
14
13
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
15
|
-
sort: {
|
|
14
|
+
sort: ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | {
|
|
16
15
|
channel: string;
|
|
17
16
|
order?: "ascending" | "descending";
|
|
18
|
-
} |
|
|
17
|
+
} | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Record<string | symbol, import("../types/data").RawValue>>;
|
|
19
18
|
stroke: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
20
19
|
strokeWidth: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
21
20
|
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
@@ -76,7 +75,7 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
76
75
|
sort?: import("../types/index.js").ConstantAccessor<import("../types/data").RawValue> | {
|
|
77
76
|
channel: "stroke" | "fill";
|
|
78
77
|
};
|
|
79
|
-
stack?: Partial<
|
|
78
|
+
stack?: Partial<import("../transforms/stack.js").StackOptions>;
|
|
80
79
|
canvas?: boolean;
|
|
81
80
|
areaClass?: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
82
81
|
}, "y1" | "y2"> & {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { DataRecord, ConstantAccessor, ChannelAccessor, RawValue } from '../types/index.js';
|
|
2
2
|
import { type SweepOption } from '../helpers/arrowPath.js';
|
|
3
|
-
import { replaceChannels } from '../transforms/rename.js';
|
|
4
3
|
declare function $$render<Datum extends DataRecord>(): {
|
|
5
4
|
props: Omit<Partial<{
|
|
6
5
|
filter: ConstantAccessor<boolean, Datum>;
|
|
@@ -9,14 +8,14 @@ declare function $$render<Datum extends DataRecord>(): {
|
|
|
9
8
|
fy: ChannelAccessor<Datum>;
|
|
10
9
|
dx: ConstantAccessor<number, Datum>;
|
|
11
10
|
dy: ConstantAccessor<number, Datum>;
|
|
12
|
-
dodgeX:
|
|
13
|
-
dodgeY:
|
|
11
|
+
dodgeX: import("../transforms/dodge.js").DodgeXOptions;
|
|
12
|
+
dodgeY: import("../transforms/dodge.js").DodgeYOptions;
|
|
14
13
|
fill: ChannelAccessor<Datum>;
|
|
15
14
|
fillOpacity: ConstantAccessor<number, Datum>;
|
|
16
|
-
sort: {
|
|
15
|
+
sort: ((a: RawValue, b: RawValue) => number) | {
|
|
17
16
|
channel: string;
|
|
18
17
|
order?: "ascending" | "descending";
|
|
19
|
-
} |
|
|
18
|
+
} | ConstantAccessor<RawValue, Datum>;
|
|
20
19
|
stroke: ChannelAccessor<Datum>;
|
|
21
20
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
22
21
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { RawValue, ConstantAccessor } from '../types/index.js';
|
|
2
2
|
import type * as CSS from 'csstype';
|
|
3
|
-
import autoTimeFormat from '../helpers/autoTimeFormat.js';
|
|
4
3
|
declare function $$render<Datum extends RawValue>(): {
|
|
5
4
|
props: Omit<Partial<{
|
|
6
5
|
filter: ConstantAccessor<boolean, Datum>;
|
|
@@ -9,14 +8,14 @@ declare function $$render<Datum extends RawValue>(): {
|
|
|
9
8
|
fy: import("../types/channel").ChannelAccessor<Datum>;
|
|
10
9
|
dx: ConstantAccessor<number, Datum>;
|
|
11
10
|
dy: ConstantAccessor<number, Datum>;
|
|
12
|
-
dodgeX:
|
|
13
|
-
dodgeY:
|
|
11
|
+
dodgeX: import("../transforms/dodge").DodgeXOptions;
|
|
12
|
+
dodgeY: import("../transforms/dodge").DodgeYOptions;
|
|
14
13
|
fill: import("../types/channel").ChannelAccessor<Datum>;
|
|
15
14
|
fillOpacity: ConstantAccessor<number, Datum>;
|
|
16
|
-
sort: {
|
|
15
|
+
sort: ((a: RawValue, b: RawValue) => number) | {
|
|
17
16
|
channel: string;
|
|
18
17
|
order?: "ascending" | "descending";
|
|
19
|
-
} |
|
|
18
|
+
} | ConstantAccessor<RawValue, Datum>;
|
|
20
19
|
stroke: import("../types/channel").ChannelAccessor<Datum>;
|
|
21
20
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
22
21
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
@@ -65,7 +64,7 @@ declare function $$render<Datum extends RawValue>(): {
|
|
|
65
64
|
class: string;
|
|
66
65
|
style: string;
|
|
67
66
|
cursor: ConstantAccessor<CSS.Property.Cursor, Datum>;
|
|
68
|
-
}>, "fillOpacity" | "
|
|
67
|
+
}>, "fillOpacity" | "paintOrder" | "href" | "target" | "title"> & {
|
|
69
68
|
data?: Datum[];
|
|
70
69
|
automatic?: boolean;
|
|
71
70
|
title?: string | false | null;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { RawValue, ConstantAccessor } from '../types/index.js';
|
|
2
|
-
import autoTimeFormat from '../helpers/autoTimeFormat.js';
|
|
3
2
|
declare function $$render<Datum extends RawValue>(): {
|
|
4
3
|
props: Omit<Partial<{
|
|
5
4
|
filter: ConstantAccessor<boolean, Datum>;
|
|
@@ -8,14 +7,14 @@ declare function $$render<Datum extends RawValue>(): {
|
|
|
8
7
|
fy: import("../types/channel").ChannelAccessor<Datum>;
|
|
9
8
|
dx: ConstantAccessor<number, Datum>;
|
|
10
9
|
dy: ConstantAccessor<number, Datum>;
|
|
11
|
-
dodgeX:
|
|
12
|
-
dodgeY:
|
|
10
|
+
dodgeX: import("../transforms/dodge").DodgeXOptions;
|
|
11
|
+
dodgeY: import("../transforms/dodge").DodgeYOptions;
|
|
13
12
|
fill: import("../types/channel").ChannelAccessor<Datum>;
|
|
14
13
|
fillOpacity: ConstantAccessor<number, Datum>;
|
|
15
|
-
sort: {
|
|
14
|
+
sort: ((a: RawValue, b: RawValue) => number) | {
|
|
16
15
|
channel: string;
|
|
17
16
|
order?: "ascending" | "descending";
|
|
18
|
-
} |
|
|
17
|
+
} | ConstantAccessor<RawValue, Datum>;
|
|
19
18
|
stroke: import("../types/channel").ChannelAccessor<Datum>;
|
|
20
19
|
strokeWidth: ConstantAccessor<number, Datum>;
|
|
21
20
|
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
@@ -64,7 +63,7 @@ declare function $$render<Datum extends RawValue>(): {
|
|
|
64
63
|
class: string;
|
|
65
64
|
style: string;
|
|
66
65
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
67
|
-
}>, "fillOpacity" | "
|
|
66
|
+
}>, "fillOpacity" | "paintOrder" | "href" | "target" | "title"> & {
|
|
68
67
|
data?: Datum[];
|
|
69
68
|
automatic?: boolean;
|
|
70
69
|
title?: string | false | null;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { stackX } from '../index.js';
|
|
2
1
|
import type { StackOptions } from '../transforms/stack.js';
|
|
3
2
|
import type { DataRow } from '../types/index.js';
|
|
4
3
|
import type { BaseRectMarkProps, ChannelAccessor, LinkableMarkProps } from '../types/index.js';
|
|
@@ -10,14 +9,14 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
10
9
|
fy: ChannelAccessor<Datum>;
|
|
11
10
|
dx: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
12
11
|
dy: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
13
|
-
dodgeX:
|
|
14
|
-
dodgeY:
|
|
12
|
+
dodgeX: import("../transforms/dodge").DodgeXOptions;
|
|
13
|
+
dodgeY: import("../transforms/dodge").DodgeYOptions;
|
|
15
14
|
fill: ChannelAccessor<Datum>;
|
|
16
15
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
17
|
-
sort: {
|
|
16
|
+
sort: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
18
17
|
channel: string;
|
|
19
18
|
order?: "ascending" | "descending";
|
|
20
|
-
} |
|
|
19
|
+
} | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Datum>;
|
|
21
20
|
stroke: ChannelAccessor<Datum>;
|
|
22
21
|
strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
23
22
|
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { intervalY } from '../index.js';
|
|
2
1
|
import type { StackOptions } from '../transforms/stack.js';
|
|
3
2
|
import type { BaseRectMarkProps, ChannelAccessor, DataRow, LinkableMarkProps } from '../types/index.js';
|
|
4
3
|
declare function $$render<Datum extends DataRow>(): {
|
|
@@ -9,14 +8,14 @@ declare function $$render<Datum extends DataRow>(): {
|
|
|
9
8
|
fy: ChannelAccessor<Datum>;
|
|
10
9
|
dx: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
11
10
|
dy: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
12
|
-
dodgeX:
|
|
13
|
-
dodgeY:
|
|
11
|
+
dodgeX: import("../transforms/dodge").DodgeXOptions;
|
|
12
|
+
dodgeY: import("../transforms/dodge").DodgeYOptions;
|
|
14
13
|
fill: ChannelAccessor<Datum>;
|
|
15
14
|
fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
16
|
-
sort: {
|
|
15
|
+
sort: ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | {
|
|
17
16
|
channel: string;
|
|
18
17
|
order?: "ascending" | "descending";
|
|
19
|
-
} |
|
|
18
|
+
} | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, Datum>;
|
|
20
19
|
stroke: ChannelAccessor<Datum>;
|
|
21
20
|
strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
22
21
|
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
@@ -1,6 +1,81 @@
|
|
|
1
|
-
import type { DataRecord } from '../types/index.js';
|
|
1
|
+
import type { ChannelAccessor, DataRecord } from '../types/index.js';
|
|
2
2
|
declare function $$render<Datum extends DataRecord>(): {
|
|
3
|
-
props:
|
|
3
|
+
props: Partial<{
|
|
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
|
+
dodgeX: import("../transforms/dodge").DodgeXOptions;
|
|
11
|
+
dodgeY: import("../transforms/dodge").DodgeYOptions;
|
|
12
|
+
fill: ChannelAccessor<Datum>;
|
|
13
|
+
fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
14
|
+
sort: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
15
|
+
channel: string;
|
|
16
|
+
order?: "ascending" | "descending";
|
|
17
|
+
} | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Datum>;
|
|
18
|
+
stroke: ChannelAccessor<Datum>;
|
|
19
|
+
strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
20
|
+
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
21
|
+
strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
|
|
22
|
+
strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
|
|
23
|
+
strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
24
|
+
opacity: ChannelAccessor<Datum>;
|
|
25
|
+
strokeDasharray: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
26
|
+
strokeDashoffset: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
27
|
+
mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
|
|
28
|
+
clipPath: string;
|
|
29
|
+
mask: string;
|
|
30
|
+
imageFilter: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
31
|
+
shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
32
|
+
paintOrder: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
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, Datum>;
|
|
66
|
+
}> & {
|
|
67
|
+
data: Datum[];
|
|
68
|
+
x?: ChannelAccessor<Datum>;
|
|
69
|
+
y?: ChannelAccessor<Datum>;
|
|
70
|
+
/**
|
|
71
|
+
* the window size (the window transform's k option), an integer; defaults to 20
|
|
72
|
+
*/
|
|
73
|
+
n?: number;
|
|
74
|
+
/**
|
|
75
|
+
* the band radius, a number representing a multiple of standard deviations; defaults to 2
|
|
76
|
+
*/
|
|
77
|
+
k?: number;
|
|
78
|
+
};
|
|
4
79
|
exports: {};
|
|
5
80
|
bindings: "";
|
|
6
81
|
slots: {};
|
|
@@ -1,6 +1,81 @@
|
|
|
1
|
-
import type { DataRecord } from '../types/index.js';
|
|
1
|
+
import type { ChannelAccessor, DataRecord } from '../types/index.js';
|
|
2
2
|
declare function $$render<Datum extends DataRecord>(): {
|
|
3
|
-
props:
|
|
3
|
+
props: Partial<{
|
|
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
|
+
dodgeX: import("../transforms/dodge").DodgeXOptions;
|
|
11
|
+
dodgeY: import("../transforms/dodge").DodgeYOptions;
|
|
12
|
+
fill: ChannelAccessor<Datum>;
|
|
13
|
+
fillOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
14
|
+
sort: ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | {
|
|
15
|
+
channel: string;
|
|
16
|
+
order?: "ascending" | "descending";
|
|
17
|
+
} | import("../types/index.js").ConstantAccessor<import("../types/index.js").RawValue, Datum>;
|
|
18
|
+
stroke: ChannelAccessor<Datum>;
|
|
19
|
+
strokeWidth: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
20
|
+
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
21
|
+
strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
|
|
22
|
+
strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
|
|
23
|
+
strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
24
|
+
opacity: ChannelAccessor<Datum>;
|
|
25
|
+
strokeDasharray: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
26
|
+
strokeDashoffset: import("../types/index.js").ConstantAccessor<number, Datum>;
|
|
27
|
+
mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
|
|
28
|
+
clipPath: string;
|
|
29
|
+
mask: string;
|
|
30
|
+
imageFilter: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
31
|
+
shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
32
|
+
paintOrder: import("../types/index.js").ConstantAccessor<string, Datum>;
|
|
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, Datum>;
|
|
66
|
+
}> & {
|
|
67
|
+
data: Datum[];
|
|
68
|
+
x?: ChannelAccessor<Datum>;
|
|
69
|
+
y?: ChannelAccessor<Datum>;
|
|
70
|
+
/**
|
|
71
|
+
* the window size (the window transform's k option), an integer; defaults to 20
|
|
72
|
+
*/
|
|
73
|
+
n?: number;
|
|
74
|
+
/**
|
|
75
|
+
* the band radius, a number representing a multiple of standard deviations; defaults to 2
|
|
76
|
+
*/
|
|
77
|
+
k?: number;
|
|
78
|
+
};
|
|
4
79
|
exports: {};
|
|
5
80
|
bindings: "";
|
|
6
81
|
slots: {};
|