svelteplot 0.2.8-pr-78.1 → 0.2.9

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.
@@ -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): any[] | undefined;
9
+ export declare function maybeBooleanRange(domain: boolean[], scheme?: string): unknown[] | 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;
@@ -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)[]): any;
7
- export declare function testFilter(datum: DataRecord, options: Record<ChannelName, ChannelAccessor>): any;
6
+ export declare function coalesce(...args: (RawValue | undefined | null)[]): RawValue | null;
7
+ export declare function testFilter(datum: DataRecord, options: Record<ChannelName, ChannelAccessor>): string | number | boolean | symbol | Date | 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,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: any;
18
+ domain: RawValue[] | [undefined, undefined];
19
19
  range: any;
20
20
  fn: any;
21
21
  skip: Map<ScaledChannelName, Set<symbol>>;
@@ -1,10 +1,10 @@
1
1
  import type { RawValue } from '../types.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): boolean;
4
+ export declare function isDateOrNull(v: RawValue | null | undefined): v is Date | null | undefined;
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): boolean;
7
+ export declare function isStringOrNull(v: RawValue | null | undefined): v is string | null | undefined;
8
8
  export declare function isSymbolOrNull(v: RawValue | null | undefined): boolean;
9
- export declare function isColorOrNull(v: RawValue | null | undefined): any;
9
+ export declare function isColorOrNull(v: RawValue | null | undefined): boolean;
10
10
  export declare function isOpacityOrNull(v: RawValue): boolean;
@@ -23,6 +23,8 @@
23
23
  | Intl.NumberFormatOptions
24
24
  | ((d: RawValue) => string);
25
25
  tickClass?: ConstantAccessor<string>;
26
+ /** ticks is a shorthand for defining data, tickCount or interval */
27
+ ticks?: number | string | RawValue[];
26
28
  } & XOR<
27
29
  {
28
30
  /** approximate number of ticks to be generated */
@@ -61,12 +63,13 @@
61
63
  };
62
64
 
63
65
  let {
64
- data = [],
66
+ ticks: magicTicks,
67
+ data = Array.isArray(magicTicks) ? magicTicks : [],
65
68
  automatic = false,
66
69
  title,
67
70
  anchor = DEFAULTS.axisXAnchor as 'top' | 'bottom',
68
71
  facetAnchor = 'auto',
69
- interval,
72
+ interval = typeof magicTicks === 'string' ? magicTicks : undefined,
70
73
  tickSize = DEFAULTS.tickSize,
71
74
  tickFontSize = DEFAULTS.tickFontSize,
72
75
  tickPadding = DEFAULTS.tickPadding,
@@ -74,7 +77,7 @@
74
77
  tickFormat,
75
78
  tickClass,
76
79
  class: className,
77
- tickCount,
80
+ tickCount = typeof magicTicks === 'number' ? magicTicks : undefined,
78
81
  tickSpacing,
79
82
  ...options
80
83
  }: AxisXMarkProps = $props();
@@ -12,6 +12,8 @@ export type AxisXMarkProps = Omit<BaseMarkProps, 'fill' | 'fillOpacity' | 'paint
12
12
  tickPadding?: number;
13
13
  tickFormat?: 'auto' | Intl.DateTimeFormatOptions | Intl.NumberFormatOptions | ((d: RawValue) => string);
14
14
  tickClass?: ConstantAccessor<string>;
15
+ /** ticks is a shorthand for defining data, tickCount or interval */
16
+ ticks?: number | string | RawValue[];
15
17
  } & XOR<{
16
18
  /** approximate number of ticks to be generated */
17
19
  tickCount?: number;
@@ -24,6 +24,8 @@
24
24
  | Intl.NumberFormatOptions
25
25
  | ((d: RawValue) => string);
26
26
  tickClass?: ConstantAccessor<string>;
27
+ /** ticks is a shorthand for defining data, tickCount or interval */
28
+ ticks?: number | string | RawValue[];
27
29
  } & XOR<
28
30
  {
29
31
  /** approximate number of ticks to be generated */
@@ -61,19 +63,20 @@
61
63
  };
62
64
 
63
65
  let {
64
- data = [],
66
+ ticks: magicTicks,
67
+ data = Array.isArray(magicTicks) ? magicTicks : [],
65
68
  automatic = false,
66
69
  title,
67
70
  anchor = DEFAULTS.axisYAnchor as 'left' | 'right',
68
71
  facetAnchor = 'auto',
69
- interval,
72
+ interval = typeof magicTicks === 'string' ? magicTicks : undefined,
70
73
  lineAnchor = 'center',
71
74
  tickSize = DEFAULTS.tickSize,
72
75
  tickFontSize = DEFAULTS.tickFontSize,
73
76
  tickPadding = DEFAULTS.tickPadding,
74
77
  tickFormat,
75
78
  tickClass,
76
- tickCount,
79
+ tickCount = typeof magicTicks === 'number' ? magicTicks : undefined,
77
80
  tickSpacing,
78
81
  ...options
79
82
  }: AxisYMarkProps = $props();
@@ -13,6 +13,8 @@ export type AxisYMarkProps = Omit<BaseMarkProps, 'fill' | 'fillOpacity' | 'paint
13
13
  tickPadding?: number;
14
14
  tickFormat?: 'auto' | Intl.DateTimeFormatOptions | Intl.NumberFormatOptions | ((d: RawValue) => string);
15
15
  tickClass?: ConstantAccessor<string>;
16
+ /** ticks is a shorthand for defining data, tickCount or interval */
17
+ ticks?: number | string | RawValue[];
16
18
  } & XOR<{
17
19
  /** approximate number of ticks to be generated */
18
20
  tickCount?: number;
@@ -13,6 +13,6 @@ export type BollingerXMarkProps = BaseMarkProps & {
13
13
  };
14
14
  import type { BaseMarkProps, ChannelAccessor, DataRow } from '../types.js';
15
15
  /** line representing a moving average and an area representing volatility as a band */
16
- declare const BollingerX: import("svelte").Component<any, {}, "">;
16
+ declare const BollingerX: import("svelte").Component<BollingerXMarkProps, {}, "">;
17
17
  type BollingerX = ReturnType<typeof BollingerX>;
18
18
  export default BollingerX;
@@ -13,6 +13,6 @@ export type BollingerYMarkProps = BaseMarkProps & {
13
13
  };
14
14
  import type { BaseMarkProps, ChannelAccessor, DataRow } from '../types.js';
15
15
  /** line representing a moving average and an area representing volatility as a band */
16
- declare const BollingerY: import("svelte").Component<any, {}, "">;
16
+ declare const BollingerY: import("svelte").Component<BollingerYMarkProps, {}, "">;
17
17
  type BollingerY = ReturnType<typeof BollingerY>;
18
18
  export default BollingerY;
@@ -1,6 +1,61 @@
1
1
  import { type BaseMarkProps } from '../types.js';
2
2
  export type SphereMarkProps = BaseMarkProps;
3
3
  /** Geo mark with Sphere geometry object */
4
- declare const Sphere: import("svelte").Component<BaseMarkProps, {}, "">;
4
+ declare const Sphere: import("svelte").Component<Partial<{
5
+ filter?: import("../types.js").ConstantAccessor<boolean>;
6
+ facet?: "auto" | "include" | "exclude";
7
+ fx: import("../types.js").ChannelAccessor;
8
+ fy: import("../types.js").ChannelAccessor;
9
+ dx: import("../types.js").ConstantAccessor<number>;
10
+ dy: import("../types.js").ConstantAccessor<number>;
11
+ fill: import("../types.js").ConstantAccessor<string>;
12
+ fillOpacity: import("../types.js").ConstantAccessor<number>;
13
+ stroke: import("../types.js").ConstantAccessor<string>;
14
+ strokeWidth: import("../types.js").ConstantAccessor<number>;
15
+ strokeOpacity: import("../types.js").ConstantAccessor<number>;
16
+ strokeLinejoin: import("../types.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin>;
17
+ strokeLinecap: import("../types.js").ConstantAccessor<import("csstype").Property.StrokeLinecap>;
18
+ strokeMiterlimit: import("../types.js").ConstantAccessor<number>;
19
+ opacity: import("../types.js").ConstantAccessor<number>;
20
+ strokeDasharray: import("../types.js").ConstantAccessor<string>;
21
+ strokeDashoffset: import("../types.js").ConstantAccessor<number>;
22
+ mixBlendMode: import("../types.js").ConstantAccessor<import("csstype").Property.MixBlendMode>;
23
+ clipPath: string;
24
+ imageFilter: import("../types.js").ConstantAccessor<string>;
25
+ shapeRendering: import("../types.js").ConstantAccessor<import("csstype").Property.ShapeRendering>;
26
+ paintOrder: import("../types.js").ConstantAccessor<string>;
27
+ onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
28
+ ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
29
+ onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
30
+ onmousedown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
31
+ onmouseenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
32
+ onmousemove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
33
+ onmouseleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
34
+ onmouseout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
35
+ onmouseover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
36
+ onpointercancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
37
+ onpointerdown?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
38
+ onpointerup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
39
+ onpointerenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
40
+ onpointerleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
41
+ onpointermove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
42
+ onpointerover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
43
+ onpointerout?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
44
+ ondrag?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
45
+ ondrop?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
46
+ ondragstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
47
+ ondragenter?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
48
+ ondragleave?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
49
+ ondragover?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
50
+ ondragend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
51
+ ontouchstart?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
52
+ ontouchmove?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
53
+ ontouchend?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
54
+ ontouchcancel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
55
+ oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
56
+ onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
57
+ class: string | null;
58
+ cursor: import("../types.js").ConstantAccessor<import("csstype").Property.Cursor>;
59
+ }>, {}, "">;
5
60
  type Sphere = ReturnType<typeof Sphere>;
6
61
  export default Sphere;
@@ -1,4 +1,44 @@
1
+ import { type MarkerShape } from './Marker.svelte';
2
+ import type { BaseMarkProps, ConstantAccessor, DataRecord, Mark, PlotScales } from '../../types.js';
3
+ type MarkerPathProps = BaseMarkProps & {
4
+ /**
5
+ * the datum associated with this path, usually the first
6
+ * element of the data array group
7
+ */
8
+ datum: DataRecord;
9
+ /**
10
+ * the marker shape to use at the start of the path, defaults to
11
+ * circle
12
+ */
13
+ markerStart?: boolean | MarkerShape;
14
+ /**
15
+ * the marker shape to use at the middle of the path, defaults to circle
16
+ */
17
+ markerMid?: boolean | MarkerShape;
18
+ /**
19
+ * the marker shape to use at the end of the path, defaults to circle
20
+ */
21
+ markerEnd?: boolean | MarkerShape;
22
+ /**
23
+ * shorthand for setting all markers
24
+ */
25
+ marker?: boolean | MarkerShape;
26
+ /**
27
+ * path string
28
+ */
29
+ d: string;
30
+ style: string;
31
+ startOffset: string;
32
+ textStyle: string;
33
+ textStyleClass?: string | null;
34
+ text: string;
35
+ transform: string;
36
+ color: string;
37
+ strokeWidth: ConstantAccessor<number>;
38
+ mark: Mark<BaseMarkProps>;
39
+ scales: PlotScales;
40
+ };
1
41
  /** Helper component for paths with markers and optional text along the path. */
2
- declare const MarkerPath: import("svelte").Component<any, {}, "">;
42
+ declare const MarkerPath: import("svelte").Component<MarkerPathProps, {}, "">;
3
43
  type MarkerPath = ReturnType<typeof MarkerPath>;
4
44
  export default MarkerPath;
@@ -11,4 +11,11 @@ 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): any;
14
+ export declare function bollingerDim(dim: 'x' | 'y', { data, ...channels }: TransformArg<DataRecord>, options?: BollingerOptions): {
15
+ data: {
16
+ __x: import("../types.js").RawValue;
17
+ __lo: number;
18
+ __avg: number;
19
+ __hi: number;
20
+ }[];
21
+ };
@@ -1,2 +1,9 @@
1
1
  import type { DataRecord, TransformArg } from '../types.js';
2
- export declare function geoCentroid({ data, ...options }: TransformArg<DataRecord>): any;
2
+ export declare function geoCentroid({ data, ...options }: TransformArg<DataRecord>): {
3
+ x: (d: any) => any;
4
+ y: (d: any) => any;
5
+ data: {
6
+ __centroid__: [number, number];
7
+ ___orig___?: import("../types.js").RawValue | [import("../types.js").RawValue, import("../types.js").RawValue];
8
+ }[];
9
+ };
@@ -38,21 +38,29 @@ 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): any;
41
+ export declare function group({ data, ...channels }: TransformArg<T, DataRecord>, options?: GroupXOptions): {
42
+ data: DataRecord[];
43
+ };
42
44
  /**
43
45
  * groups the dataset by the x channel and optionally reduces the group items
44
46
  * to output channels y, y1, y2, fill, stroke, r, opacity, fillOpacity, or strokeOpacity
45
47
  */
46
- export declare function groupX(input: TransformArg<T, DataRecord>, options?: GroupXOptions): any;
48
+ export declare function groupX(input: TransformArg<T, DataRecord>, options?: GroupXOptions): {
49
+ data: DataRecord[];
50
+ };
47
51
  /**
48
52
  * groups the dataset by the y channel and optionally reduces the group items
49
53
  * to output channels x, x1, x2, fill, stroke, r, opacity, fillOpacity, or strokeOpacity
50
54
  */
51
- export declare function groupY(input: TransformArg<T, DataRecord>, options?: GroupYOptions): any;
55
+ export declare function groupY(input: TransformArg<T, DataRecord>, options?: GroupYOptions): {
56
+ data: DataRecord[];
57
+ };
52
58
  /**
53
59
  * groups the dataset by the z channel and optionally reduces the group items
54
60
  * to output channels x, x1, x2, y, y1, y2, fill, stroke, r, opacity, fillOpacity,
55
61
  * or strokeOpacity
56
62
  */
57
- export declare function groupZ(input: TransformArg<T, DataRecord>, options?: GroupZOptions): any;
63
+ export declare function groupZ(input: TransformArg<T, DataRecord>, options?: GroupZOptions): {
64
+ data: DataRecord[];
65
+ };
58
66
  export {};
@@ -1,7 +1,11 @@
1
1
  import type { PlotState, TransformArg } from '../types.js';
2
2
  export declare function intervalX<T>(args: TransformArg<T>, { plot }: {
3
3
  plot: PlotState;
4
- }): any;
4
+ }): {
5
+ data: T[];
6
+ };
5
7
  export declare function intervalY<T>(args: TransformArg<T>, { plot }: {
6
8
  plot: PlotState;
7
- }): any;
9
+ }): {
10
+ data: T[];
11
+ };
@@ -1,4 +1,10 @@
1
- import type { TransformArg, MapOptions, MapMethod } from '../types.js';
2
- export declare function map<T>(args: TransformArg<T>, options: MapOptions): any;
3
- export declare function mapX<T>(args: TransformArg<T>, mapper: MapMethod): any;
4
- export declare function mapY<T>(args: TransformArg<T>, mapper: MapMethod): any;
1
+ import type { TransformArg, MapOptions, MapMethod, DataRecord } from '../types.js';
2
+ export declare function map<T>(args: TransformArg<T>, options: MapOptions): {
3
+ data: DataRecord[];
4
+ };
5
+ export declare function mapX<T>(args: TransformArg<T>, mapper: MapMethod): {
6
+ data: DataRecord[];
7
+ };
8
+ export declare function mapY<T>(args: TransformArg<T>, mapper: MapMethod): {
9
+ data: DataRecord[];
10
+ };
@@ -1,5 +1,9 @@
1
1
  import type { TransformArg, MapIndexObject } from '../types.js';
2
2
  type NormalizeBasis = 'deviation' | 'first' | 'last' | 'min' | 'max' | 'mean' | 'median' | 'sum' | 'extent' | MapIndexObject;
3
- export declare function normalizeX<T>(args: TransformArg<T>, basis: NormalizeBasis): any;
4
- export declare function normalizeY<T>(args: TransformArg<T>, basis: NormalizeBasis): any;
3
+ export declare function normalizeX<T>(args: TransformArg<T>, basis: NormalizeBasis): {
4
+ data: import("../types.js").DataRecord[];
5
+ };
6
+ export declare function normalizeY<T>(args: TransformArg<T>, basis: NormalizeBasis): {
7
+ data: import("../types.js").DataRecord[];
8
+ };
5
9
  export {};
@@ -5,17 +5,31 @@ type AtLeastOne<T, U = {
5
5
  type SelectOptions = 'first' | 'last' | AtLeastOne<{
6
6
  [k in ChannelName]: 'min' | 'max';
7
7
  }>;
8
- export declare function select({ data, ...channels }: TransformArg<DataRecord>, options: SelectOptions): any;
8
+ export declare function select({ data, ...channels }: TransformArg<DataRecord>, options: SelectOptions): {
9
+ data: DataRecord[];
10
+ };
9
11
  /**
10
12
  * Keeps only the first item of each group
11
13
  */
12
- export declare function selectFirst(args: TransformArg<DataRecord>): any;
14
+ export declare function selectFirst(args: TransformArg<DataRecord>): {
15
+ data: DataRecord[];
16
+ };
13
17
  /**
14
18
  * Keeps only the last item of each group
15
19
  */
16
- export declare function selectLast(args: TransformArg<DataRecord>): any;
17
- export declare function selectMinX(args: TransformArg<DataRecord>): any;
18
- export declare function selectMaxX(args: TransformArg<DataRecord>): any;
19
- export declare function selectMinY(args: TransformArg<DataRecord>): any;
20
- export declare function selectMaxY(args: TransformArg<DataRecord>): any;
20
+ export declare function selectLast(args: TransformArg<DataRecord>): {
21
+ data: DataRecord[];
22
+ };
23
+ export declare function selectMinX(args: TransformArg<DataRecord>): {
24
+ data: DataRecord[];
25
+ };
26
+ export declare function selectMaxX(args: TransformArg<DataRecord>): {
27
+ data: DataRecord[];
28
+ };
29
+ export declare function selectMinY(args: TransformArg<DataRecord>): {
30
+ data: DataRecord[];
31
+ };
32
+ export declare function selectMaxY(args: TransformArg<DataRecord>): {
33
+ data: DataRecord[];
34
+ };
21
35
  export {};
@@ -2,14 +2,27 @@ import type { DataRecord, DataRow, TransformArg } from '../types.js';
2
2
  export declare const SORT_KEY: unique symbol;
3
3
  export declare function sort({ data, ...channels }: TransformArg<DataRecord>, options?: {
4
4
  reverse?: boolean;
5
- }): any;
5
+ }): {
6
+ sort: null;
7
+ data: {
8
+ ___orig___?: import("../types.js").RawValue | [import("../types.js").RawValue, import("../types.js").RawValue];
9
+ }[];
10
+ } | {
11
+ data: DataRecord[];
12
+ };
6
13
  /**
7
14
  * reverses the data row order
8
15
  */
9
16
  export declare function shuffle({ data, ...channels }: TransformArg<DataRow[]>, options?: {
10
17
  seed?: number;
11
- }): any;
18
+ }): {
19
+ sort: null;
20
+ data: DataRow[][];
21
+ };
12
22
  /**
13
23
  * reverses the data row order
14
24
  */
15
- export declare function reverse({ data, ...channels }: TransformArg<DataRow[]>): any;
25
+ export declare function reverse({ data, ...channels }: TransformArg<DataRow[]>): {
26
+ sort: null;
27
+ data: DataRow[][];
28
+ };
@@ -7,6 +7,18 @@ type WindowOptions = {
7
7
  reduce: ReducerName;
8
8
  strict: boolean;
9
9
  };
10
- export declare function windowX(args: TransformArg<DataRecord>, options: WindowOptions): any;
11
- export declare function windowY(args: TransformArg<DataRecord>, options: WindowOptions): any;
10
+ export declare function windowX(args: TransformArg<DataRecord>, options: WindowOptions): {
11
+ data: {
12
+ [x: string]: import("../types.js").RawValue;
13
+ [x: symbol]: import("../types.js").RawValue;
14
+ ___orig___?: import("../types.js").RawValue | [import("../types.js").RawValue, import("../types.js").RawValue];
15
+ }[];
16
+ };
17
+ export declare function windowY(args: TransformArg<DataRecord>, options: WindowOptions): {
18
+ data: {
19
+ [x: string]: import("../types.js").RawValue;
20
+ [x: symbol]: import("../types.js").RawValue;
21
+ ___orig___?: import("../types.js").RawValue | [import("../types.js").RawValue, import("../types.js").RawValue];
22
+ }[];
23
+ };
12
24
  export {};
package/package.json CHANGED
@@ -1,127 +1,126 @@
1
1
  {
2
- "name": "svelteplot",
3
- "version": "0.2.8-pr-78.1",
4
- "license": "ISC",
5
- "author": {
6
- "name": "Gregor Aisch",
7
- "email": "gka@users.noreply.github.com"
2
+ "name": "svelteplot",
3
+ "version": "0.2.9",
4
+ "license": "ISC",
5
+ "author": {
6
+ "name": "Gregor Aisch",
7
+ "email": "gka@users.noreply.github.com"
8
+ },
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "svelte": "./dist/index.js"
8
13
  },
9
- "scripts": {
10
- "dev": "vite dev",
11
- "build": "vite build",
12
- "preview": "vite preview",
13
- "test": "npm run test:unit",
14
- "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
15
- "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
16
- "lint": "prettier --check src && eslint src",
17
- "format": "prettier --write .",
18
- "test:unit": "vitest",
19
- "prepack": "npx svelte-package",
20
- "release-next": "npm version prerelease --preid next && npm publish && git push && git push --tags && sleep 1 && npm dist-tag add svelteplot@$(npm view . version) next",
21
- "docs": "npm run build && cd build && rsync --recursive . vis4.net:svelteplot/alpha0/",
22
- "screenshots": "node screenshot-examples.js"
14
+ "./*.js": {
15
+ "import": "./dist/*.js"
23
16
  },
24
- "exports": {
25
- ".": {
26
- "types": "./dist/index.d.ts",
27
- "svelte": "./dist/index.js"
28
- },
29
- "./*.js": {
30
- "import": "./dist/*.js"
31
- },
32
- "./*.svelte": {
33
- "import": "./dist/*.svelte"
34
- },
35
- "./core/*.svelte": {
36
- "import": "./dist/core/*.svelte"
37
- },
38
- "./marks/*.svelte": {
39
- "import": "./dist/marks/*.svelte"
40
- },
41
- "./transforms": {
42
- "import": "./dist/transforms/index.js"
43
- }
17
+ "./*.svelte": {
18
+ "import": "./dist/*.svelte"
44
19
  },
45
- "main": "./dist/index.js",
46
- "files": [
47
- "dist",
48
- "!dist/**/*.test.*",
49
- "!dist/**/*.spec.*"
50
- ],
51
- "devDependencies": {
52
- "@aitodotai/json-stringify-pretty-compact": "^1.3.0",
53
- "@emotion/css": "^11.13.5",
54
- "@sveltejs/adapter-auto": "^6.0.1",
55
- "@sveltejs/adapter-static": "^3.0.8",
56
- "@sveltejs/eslint-config": "^8.2.0",
57
- "@sveltejs/kit": "^2.21.1",
58
- "@sveltejs/package": "^2.3.11",
59
- "@sveltejs/vite-plugin-svelte": "5.0.3",
60
- "@sveltepress/theme-default": "^6.0.3",
61
- "@sveltepress/twoslash": "^1.2.2",
62
- "@sveltepress/vite": "^1.2.2",
63
- "@testing-library/svelte": "^5.2.8",
64
- "@testing-library/user-event": "^14.6.1",
65
- "@types/d3-array": "^3.2.1",
66
- "@types/d3-color": "^3.1.3",
67
- "@types/d3-dsv": "^3.0.7",
68
- "@types/d3-geo": "^3.1.0",
69
- "@types/d3-interpolate": "^3.0.4",
70
- "@types/d3-path": "^3.1.1",
71
- "@types/d3-random": "^3.0.3",
72
- "@types/d3-scale": "^4.0.9",
73
- "@types/d3-scale-chromatic": "^3.1.0",
74
- "@types/d3-shape": "^3.1.7",
75
- "@typescript-eslint/eslint-plugin": "^8.32.1",
76
- "@typescript-eslint/parser": "^8.32.1",
77
- "csstype": "^3.1.3",
78
- "d3-dsv": "^3.0.1",
79
- "d3-fetch": "^3.0.1",
80
- "d3-force": "^3.0.0",
81
- "eslint": "^9.27.0",
82
- "eslint-config-prettier": "^10.1.5",
83
- "eslint-plugin-svelte": "3.9.0",
84
- "jsdom": "^26.1.0",
85
- "prettier": "^3.5.3",
86
- "prettier-plugin-svelte": "^3.4.0",
87
- "puppeteer": "^24.9.0",
88
- "remark-code-extra": "^1.0.1",
89
- "remark-code-frontmatter": "^1.0.0",
90
- "resize-observer-polyfill": "^1.5.1",
91
- "sass": "^1.89.0",
92
- "svelte-check": "^4.2.1",
93
- "svelte-eslint-parser": "1.2.0",
94
- "svelte-highlight": "^7.8.3",
95
- "svg-path-parser": "^1.1.0",
96
- "topojson-client": "^3.1.0",
97
- "ts-essentials": "^10.0.4",
98
- "tslib": "^2.8.1",
99
- "typedoc": "^0.28.5",
100
- "typedoc-plugin-markdown": "^4.6.3",
101
- "typescript": "^5.8.3",
102
- "vite": "^6.3.5",
103
- "vitest": "^3.1.4",
104
- "vitest-matchmedia-mock": "^2.0.3"
20
+ "./core/*.svelte": {
21
+ "import": "./dist/core/*.svelte"
105
22
  },
106
- "types": "./dist/index.d.ts",
107
- "type": "module",
108
- "dependencies": {
109
- "d3-array": "^3.2.4",
110
- "d3-color": "^3.1.0",
111
- "d3-format": "^3.1.0",
112
- "d3-geo": "^3.1.1",
113
- "d3-interpolate": "^3.0.1",
114
- "d3-path": "^3.1.0",
115
- "d3-quadtree": "^3.0.1",
116
- "d3-random": "^3.0.1",
117
- "d3-regression": "^1.3.10",
118
- "d3-scale": "^4.0.2",
119
- "d3-scale-chromatic": "^3.1.0",
120
- "d3-shape": "^3.2.0",
121
- "d3-time": "^3.1.0",
122
- "es-toolkit": "^1.38.0",
123
- "fast-equals": "^5.2.2",
124
- "merge-deep": "^3.0.3",
125
- "svelte": "5.33.2"
23
+ "./marks/*.svelte": {
24
+ "import": "./dist/marks/*.svelte"
25
+ },
26
+ "./transforms": {
27
+ "import": "./dist/transforms/index.js"
126
28
  }
127
- }
29
+ },
30
+ "main": "./dist/index.js",
31
+ "files": [
32
+ "dist",
33
+ "!dist/**/*.test.*",
34
+ "!dist/**/*.spec.*"
35
+ ],
36
+ "devDependencies": {
37
+ "@aitodotai/json-stringify-pretty-compact": "^1.3.0",
38
+ "@emotion/css": "^11.13.5",
39
+ "@sveltejs/adapter-auto": "^6.0.1",
40
+ "@sveltejs/adapter-static": "^3.0.8",
41
+ "@sveltejs/eslint-config": "^8.2.0",
42
+ "@sveltejs/kit": "^2.21.1",
43
+ "@sveltejs/package": "^2.3.11",
44
+ "@sveltejs/vite-plugin-svelte": "5.0.3",
45
+ "@sveltepress/theme-default": "^6.0.3",
46
+ "@sveltepress/twoslash": "^1.2.2",
47
+ "@sveltepress/vite": "^1.2.2",
48
+ "@testing-library/svelte": "^5.2.8",
49
+ "@testing-library/user-event": "^14.6.1",
50
+ "@types/d3-array": "^3.2.1",
51
+ "@types/d3-color": "^3.1.3",
52
+ "@types/d3-dsv": "^3.0.7",
53
+ "@types/d3-geo": "^3.1.0",
54
+ "@types/d3-interpolate": "^3.0.4",
55
+ "@types/d3-path": "^3.1.1",
56
+ "@types/d3-random": "^3.0.3",
57
+ "@types/d3-scale": "^4.0.9",
58
+ "@types/d3-scale-chromatic": "^3.1.0",
59
+ "@types/d3-shape": "^3.1.7",
60
+ "@typescript-eslint/eslint-plugin": "^8.32.1",
61
+ "@typescript-eslint/parser": "^8.32.1",
62
+ "csstype": "^3.1.3",
63
+ "d3-dsv": "^3.0.1",
64
+ "d3-fetch": "^3.0.1",
65
+ "d3-force": "^3.0.0",
66
+ "eslint": "^9.27.0",
67
+ "eslint-config-prettier": "^10.1.5",
68
+ "eslint-plugin-svelte": "3.9.0",
69
+ "jsdom": "^26.1.0",
70
+ "prettier": "^3.5.3",
71
+ "prettier-plugin-svelte": "^3.4.0",
72
+ "puppeteer": "^24.9.0",
73
+ "remark-code-extra": "^1.0.1",
74
+ "remark-code-frontmatter": "^1.0.0",
75
+ "resize-observer-polyfill": "^1.5.1",
76
+ "sass": "^1.89.0",
77
+ "svelte-check": "^4.2.1",
78
+ "svelte-eslint-parser": "1.2.0",
79
+ "svelte-highlight": "^7.8.3",
80
+ "svg-path-parser": "^1.1.0",
81
+ "topojson-client": "^3.1.0",
82
+ "ts-essentials": "^10.0.4",
83
+ "tslib": "^2.8.1",
84
+ "typedoc": "^0.28.5",
85
+ "typedoc-plugin-markdown": "^4.6.3",
86
+ "typescript": "^5.8.3",
87
+ "vite": "^6.3.5",
88
+ "vitest": "^3.1.4",
89
+ "vitest-matchmedia-mock": "^2.0.3"
90
+ },
91
+ "types": "./dist/index.d.ts",
92
+ "type": "module",
93
+ "dependencies": {
94
+ "d3-array": "^3.2.4",
95
+ "d3-color": "^3.1.0",
96
+ "d3-format": "^3.1.0",
97
+ "d3-geo": "^3.1.1",
98
+ "d3-interpolate": "^3.0.1",
99
+ "d3-path": "^3.1.0",
100
+ "d3-quadtree": "^3.0.1",
101
+ "d3-random": "^3.0.1",
102
+ "d3-regression": "^1.3.10",
103
+ "d3-scale": "^4.0.2",
104
+ "d3-scale-chromatic": "^3.1.0",
105
+ "d3-shape": "^3.2.0",
106
+ "d3-time": "^3.1.0",
107
+ "es-toolkit": "^1.38.0",
108
+ "fast-equals": "^5.2.2",
109
+ "merge-deep": "^3.0.3",
110
+ "svelte": "5.33.2"
111
+ },
112
+ "scripts": {
113
+ "dev": "vite dev",
114
+ "build": "vite build",
115
+ "preview": "vite preview",
116
+ "test": "npm run test:unit",
117
+ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
118
+ "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
119
+ "lint": "prettier --check src && eslint src",
120
+ "format": "prettier --write .",
121
+ "test:unit": "vitest",
122
+ "release-next": "npm version prerelease --preid next && npm publish && git push && git push --tags && sleep 1 && npm dist-tag add svelteplot@$(npm view . version) next",
123
+ "docs": "npm run build && cd build && rsync --recursive . vis4.net:svelteplot/alpha0/",
124
+ "screenshots": "node screenshot-examples.js"
125
+ }
126
+ }