svelteplot 0.6.0-pr-262.1 → 0.6.0-pr-262.2
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/constants.d.ts +1 -1
- package/dist/helpers/colors.d.ts +8 -11
- package/dist/helpers/facets.d.ts +1 -1
- package/dist/helpers/getBaseStyles.d.ts +2 -4
- package/dist/helpers/index.d.ts +1 -1
- package/dist/helpers/reduce.d.ts +1 -1
- package/dist/helpers/scales.d.ts +5 -5
- package/dist/helpers/symbols.d.ts +2 -2
- package/dist/helpers/time.d.ts +3 -3
- package/dist/helpers/typeChecks.d.ts +4 -4
- package/dist/marks/Text.svelte.d.ts +1 -1
- package/dist/transforms/centroid.d.ts +1 -4
- package/dist/transforms/recordize.d.ts +3 -3
- package/dist/transforms/sort.d.ts +2 -2
- package/package.json +14 -14
package/dist/constants.d.ts
CHANGED
package/dist/helpers/colors.d.ts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { interpolateBrBG } from 'd3-scale-chromatic';
|
|
2
1
|
import type { ColorScheme } from '../types/index.js';
|
|
3
|
-
export declare const categoricalSchemes:
|
|
4
|
-
export declare function isCategoricalScheme(scheme: string):
|
|
5
|
-
|
|
6
|
-
export declare function
|
|
7
|
-
export declare function
|
|
8
|
-
export declare function ordinalRange(scheme: string, length: number): readonly string[] | undefined;
|
|
2
|
+
export declare const categoricalSchemes: any;
|
|
3
|
+
export declare function isCategoricalScheme(scheme: string): any;
|
|
4
|
+
export declare function isOrdinalScheme(scheme: ColorScheme): any;
|
|
5
|
+
export declare function ordinalScheme(scheme: string): any;
|
|
6
|
+
export declare function ordinalRange(scheme: string, length: number): any;
|
|
9
7
|
export declare function maybeBooleanRange(domain: boolean[], scheme?: string): any[] | undefined;
|
|
10
|
-
export declare function isQuantitativeScheme(scheme: string):
|
|
11
|
-
export declare function quantitativeScheme(scheme: string):
|
|
12
|
-
export declare function isDivergingScheme(scheme: string):
|
|
13
|
-
export {};
|
|
8
|
+
export declare function isQuantitativeScheme(scheme: string): any;
|
|
9
|
+
export declare function quantitativeScheme(scheme: string): any;
|
|
10
|
+
export declare function isDivergingScheme(scheme: string): any;
|
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[]): any;
|
|
@@ -1,9 +1,7 @@
|
|
|
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
|
-
|
|
5
|
-
};
|
|
6
|
-
export default function (datum: DataRow, props: Partial<Channels>): string;
|
|
3
|
+
export declare function getBaseStylesObject(datum: DataRow, props: Partial<Channels>): any;
|
|
4
|
+
export default function (datum: DataRow, props: Partial<Channels>): any;
|
|
7
5
|
export declare function maybeToPixel(cssKey: string, value: string | number): string | number;
|
|
8
6
|
export declare function maybeFromPixel(value: string | number): string | number;
|
|
9
7
|
export declare function maybeFromRem(value: string | number, rootFontSize?: number): string | number;
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -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: any;
|
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: any;
|
|
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 {
|
|
1
|
+
import type { GenericMarkOptions, Mark, MarkType, PlotDefaults, PlotOptions, PlotScales, PlotState, RawValue, ScaleName, ScaleOptions, ScaleType, UsedScales } from '../types/index.js';
|
|
2
2
|
/**
|
|
3
3
|
* compute the plot scales
|
|
4
4
|
*/
|
|
@@ -8,7 +8,7 @@ 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:
|
|
11
|
+
skip: any;
|
|
12
12
|
isDummy: boolean;
|
|
13
13
|
manualActiveMarks?: undefined;
|
|
14
14
|
uniqueScaleProps?: undefined;
|
|
@@ -18,9 +18,9 @@ export declare function createScale<T extends ScaleOptions>(name: ScaleName, sca
|
|
|
18
18
|
domain: any;
|
|
19
19
|
range: any;
|
|
20
20
|
fn: any;
|
|
21
|
-
skip:
|
|
21
|
+
skip: any;
|
|
22
22
|
manualActiveMarks: number;
|
|
23
|
-
uniqueScaleProps:
|
|
23
|
+
uniqueScaleProps: any;
|
|
24
24
|
autoTitle: string | null;
|
|
25
25
|
isDummy?: undefined;
|
|
26
26
|
};
|
|
@@ -36,7 +36,7 @@ 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): any;
|
|
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;
|
|
@@ -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): any;
|
|
5
|
+
export declare function maybeSymbol(symbol: SymbolType | string): any;
|
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: any;
|
|
2
|
+
export declare const intervalDuration: any;
|
|
3
|
+
export declare const intervalType: any;
|
|
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;
|
|
@@ -2,9 +2,9 @@ import type { RawValue } from '../types/index.js';
|
|
|
2
2
|
export declare function isBooleanOrNull(v: RawValue): boolean;
|
|
3
3
|
export declare function isDate(v: RawValue): v is Date;
|
|
4
4
|
export declare function isDateOrNull(v: RawValue | null | undefined): boolean;
|
|
5
|
-
export declare function isNumberOrNull(v: RawValue | null | undefined):
|
|
6
|
-
export declare function isNumberOrNullOrNaN(v: RawValue | null | undefined):
|
|
5
|
+
export declare function isNumberOrNull(v: RawValue | null | undefined): any;
|
|
6
|
+
export declare function isNumberOrNullOrNaN(v: RawValue | null | undefined): any;
|
|
7
7
|
export declare function isStringOrNull(v: RawValue | null | undefined): boolean;
|
|
8
|
-
export declare function isSymbolOrNull(v: RawValue | null | undefined):
|
|
8
|
+
export declare function isSymbolOrNull(v: RawValue | null | undefined): any;
|
|
9
9
|
export declare function isColorOrNull(v: RawValue | null | undefined): any;
|
|
10
|
-
export declare function isOpacityOrNull(v: RawValue):
|
|
10
|
+
export declare function isOpacityOrNull(v: RawValue): any;
|
|
@@ -76,7 +76,7 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
76
76
|
* the font size of the text
|
|
77
77
|
*/
|
|
78
78
|
fontFamily?: ConstantAccessor<CSS.Property.FontFamily, Datum>;
|
|
79
|
-
fontSize?: ConstantAccessor<number | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | (string & {}) | "small" | "
|
|
79
|
+
fontSize?: ConstantAccessor<number | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | (string & {}) | "small" | "math" | "large" | "medium" | "x-large" | "x-small" | "xx-large" | "xx-small" | "xxx-large" | "larger" | "smaller", Datum>;
|
|
80
80
|
fontWeight?: ConstantAccessor<CSS.Property.FontWeight, Datum>;
|
|
81
81
|
fontStyle?: ConstantAccessor<CSS.Property.FontStyle, Datum>;
|
|
82
82
|
fontVariant?: ConstantAccessor<CSS.Property.FontVariant, Datum>;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import type { DataRecord, TransformArg } from '../types/index.js';
|
|
2
|
-
|
|
3
|
-
type WithCentroid<T> = T & {
|
|
4
|
-
[CENTROID]: [number, number];
|
|
5
|
-
};
|
|
2
|
+
type WithCentroid<T> = T & {};
|
|
6
3
|
export declare function geoCentroid<Datum extends DataRecord>({ data, ...options }: {
|
|
7
4
|
data: Datum[];
|
|
8
5
|
} & TransformArg<Datum>): TransformArg<WithCentroid<Datum>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { TransformArgsRow, TransformArgsRecord } from '../types/index.js';
|
|
2
|
-
export declare const X:
|
|
3
|
-
export declare const Y:
|
|
4
|
-
export declare const RAW_VALUE:
|
|
2
|
+
export declare const X: any;
|
|
3
|
+
export declare const Y: any;
|
|
4
|
+
export declare const RAW_VALUE: any;
|
|
5
5
|
export declare function indexData<T extends object>(data: T[]): (T & {})[];
|
|
6
6
|
export declare function recordizeX<T>({ data, ...channels }: TransformArgsRow<T>, { withIndex }?: {
|
|
7
7
|
withIndex: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DataRow, TransformArg } from '../types/index.js';
|
|
2
|
-
export declare const SORT_KEY:
|
|
3
|
-
export declare const IS_SORTED:
|
|
2
|
+
export declare const SORT_KEY: any;
|
|
3
|
+
export declare const IS_SORTED: any;
|
|
4
4
|
export declare function sort<T>({ data, ...channels }: TransformArg<T>, options?: {
|
|
5
5
|
reverse?: boolean;
|
|
6
6
|
}): any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelteplot",
|
|
3
|
-
"version": "0.6.0-pr-262.
|
|
3
|
+
"version": "0.6.0-pr-262.2",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Gregor Aisch",
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
"@sveltejs/adapter-auto": "^6.1.1",
|
|
58
58
|
"@sveltejs/adapter-static": "^3.0.10",
|
|
59
59
|
"@sveltejs/eslint-config": "^8.3.4",
|
|
60
|
-
"@sveltejs/kit": "^2.
|
|
60
|
+
"@sveltejs/kit": "^2.48.5",
|
|
61
61
|
"@sveltejs/package": "^2.5.4",
|
|
62
62
|
"@sveltejs/vite-plugin-svelte": "5.1.1",
|
|
63
63
|
"@sveltepress/theme-default": "^6.0.4",
|
|
64
64
|
"@sveltepress/twoslash": "^1.2.2",
|
|
65
65
|
"@sveltepress/vite": "^1.2.2",
|
|
66
|
-
"@testing-library/svelte": "^5.2.
|
|
66
|
+
"@testing-library/svelte": "^5.2.9",
|
|
67
67
|
"@testing-library/user-event": "^14.6.1",
|
|
68
68
|
"@types/d3-array": "^3.2.2",
|
|
69
69
|
"@types/d3-color": "^3.1.3",
|
|
@@ -79,24 +79,24 @@
|
|
|
79
79
|
"@types/geojson": "^7946.0.16",
|
|
80
80
|
"@types/topojson": "^3.2.6",
|
|
81
81
|
"@types/topojson-client": "^3.1.5",
|
|
82
|
-
"@typescript-eslint/eslint-plugin": "^8.46.
|
|
83
|
-
"@typescript-eslint/parser": "^8.46.
|
|
84
|
-
"csstype": "^3.
|
|
82
|
+
"@typescript-eslint/eslint-plugin": "^8.46.4",
|
|
83
|
+
"@typescript-eslint/parser": "^8.46.4",
|
|
84
|
+
"csstype": "^3.2.0",
|
|
85
85
|
"d3-dsv": "^3.0.1",
|
|
86
86
|
"d3-fetch": "^3.0.1",
|
|
87
87
|
"d3-force": "^3.0.0",
|
|
88
|
-
"eslint": "^9.
|
|
88
|
+
"eslint": "^9.39.1",
|
|
89
89
|
"eslint-config-prettier": "^10.1.8",
|
|
90
|
-
"eslint-plugin-svelte": "3.
|
|
90
|
+
"eslint-plugin-svelte": "3.13.0",
|
|
91
91
|
"jsdom": "^26.1.0",
|
|
92
92
|
"prettier": "^3.6.2",
|
|
93
93
|
"prettier-plugin-svelte": "^3.4.0",
|
|
94
|
-
"puppeteer": "^24.
|
|
94
|
+
"puppeteer": "^24.30.0",
|
|
95
95
|
"remark-code-extra": "^1.0.1",
|
|
96
96
|
"remark-code-frontmatter": "^1.0.0",
|
|
97
97
|
"resize-observer-polyfill": "^1.5.1",
|
|
98
|
-
"sass": "^1.
|
|
99
|
-
"svelte-check": "^4.3.
|
|
98
|
+
"sass": "^1.94.0",
|
|
99
|
+
"svelte-check": "^4.3.4",
|
|
100
100
|
"svelte-eslint-parser": "1.4.0",
|
|
101
101
|
"svelte-highlight": "^7.9.0",
|
|
102
102
|
"svg-path-parser": "^1.1.0",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"typedoc-plugin-markdown": "^4.9.0",
|
|
108
108
|
"typescript": "^5.9.3",
|
|
109
109
|
"vite": "^6.4.1",
|
|
110
|
-
"vitest": "^
|
|
110
|
+
"vitest": "^4.0.9",
|
|
111
111
|
"vitest-matchmedia-mock": "^2.0.3",
|
|
112
112
|
"yoctocolors": "^2.1.2"
|
|
113
113
|
},
|
|
@@ -127,9 +127,9 @@
|
|
|
127
127
|
"d3-shape": "^3.2.0",
|
|
128
128
|
"d3-time": "^3.1.0",
|
|
129
129
|
"es-toolkit": "^1.41.0",
|
|
130
|
-
"fast-equals": "^5.3.
|
|
130
|
+
"fast-equals": "^5.3.3",
|
|
131
131
|
"interval-tree-1d": "^1.0.4",
|
|
132
132
|
"merge-deep": "^3.0.3",
|
|
133
|
-
"svelte": "5
|
|
133
|
+
"svelte": "5"
|
|
134
134
|
}
|
|
135
135
|
}
|