svelteplot 0.3.11 → 0.4.1-pr-181.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 +3 -3
- package/dist/core/FacetGrid.svelte +3 -0
- package/dist/helpers/autoScales.js +1 -1
- package/dist/helpers/colors.d.ts +1 -1
- package/dist/helpers/group.d.ts +2 -2
- package/dist/helpers/index.d.ts +4 -7
- package/dist/helpers/index.js +1 -1
- package/dist/helpers/mergeDeep.js +0 -1
- package/dist/helpers/reduce.js +0 -1
- package/dist/helpers/resolve.d.ts +1 -1
- package/dist/helpers/scales.d.ts +1 -1
- package/dist/helpers/scales.js +1 -1
- package/dist/helpers/typeChecks.d.ts +4 -4
- package/dist/marks/AreaX.svelte.d.ts +31 -30
- package/dist/marks/AreaY.svelte.d.ts +31 -30
- package/dist/marks/AxisX.svelte.d.ts +1 -1
- package/dist/marks/AxisY.svelte.d.ts +1 -1
- package/dist/marks/BarX.svelte.d.ts +1 -1
- package/dist/marks/BollingerX.svelte.d.ts +2 -73
- package/dist/marks/BollingerY.svelte.d.ts +2 -73
- package/dist/marks/BoxY.svelte.d.ts +6 -65
- package/dist/marks/CustomMark.svelte.d.ts +2 -80
- package/dist/marks/DifferenceY.svelte.d.ts +7 -66
- package/dist/marks/DotX.svelte.d.ts +29 -29
- package/dist/marks/DotY.svelte.d.ts +29 -29
- package/dist/marks/Frame.svelte +10 -4
- package/dist/marks/Frame.svelte.d.ts +1 -0
- package/dist/marks/GridX.svelte +4 -2
- package/dist/marks/GridY.svelte +4 -2
- package/dist/marks/HTMLTooltip.svelte +38 -12
- package/dist/marks/HTMLTooltip.svelte.d.ts +2 -0
- package/dist/marks/Line.svelte.d.ts +2 -2
- package/dist/marks/LineX.svelte.d.ts +34 -33
- package/dist/marks/LineY.svelte.d.ts +34 -33
- package/dist/marks/Link.svelte +1 -4
- package/dist/marks/Rect.svelte +7 -4
- package/dist/marks/RuleX.svelte +3 -5
- package/dist/marks/RuleY.svelte +4 -5
- package/dist/marks/Spike.svelte.d.ts +27 -27
- package/dist/marks/Text.svelte +9 -6
- package/dist/marks/Text.svelte.d.ts +8 -4
- package/dist/marks/Vector.svelte +1 -3
- package/dist/marks/helpers/MultilineText.svelte +6 -8
- package/dist/marks/helpers/RectPath.svelte +2 -4
- package/dist/transforms/bollinger.d.ts +1 -66
- package/dist/transforms/filter.d.ts +2 -2
- package/dist/transforms/group.d.ts +4 -12
- package/dist/transforms/index.d.ts +1 -1
- package/dist/transforms/index.js +1 -1
- package/dist/transforms/interval.d.ts +2 -122
- package/dist/transforms/map.d.ts +4 -184
- package/dist/transforms/normalize.d.ts +3 -123
- package/dist/transforms/select.d.ts +7 -427
- package/dist/transforms/sort.d.ts +5 -244
- package/dist/transforms/stack.d.ts +2 -0
- package/dist/transforms/stack.js +71 -2
- package/dist/transforms/window.d.ts +2 -130
- package/dist/types/channel.d.ts +1 -1
- package/dist/types/data.d.ts +3 -3
- package/dist/types/index.d.ts +5 -5
- package/dist/types/scale.d.ts +1 -1
- package/dist/ui/ExamplesGrid.svelte +2 -1
- package/package.json +126 -125
package/dist/Mark.svelte
CHANGED
|
@@ -211,8 +211,8 @@
|
|
|
211
211
|
valid: true
|
|
212
212
|
};
|
|
213
213
|
// compute dx/dy
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
out.dx = Number(resolveProp<number>(options.dx, out.datum, 0));
|
|
215
|
+
out.dy = Number(resolveProp<number>(options.dy, out.datum, 0));
|
|
216
216
|
|
|
217
217
|
// special handling if there's a projection, e.g. a line mark
|
|
218
218
|
if (plot.scales.projection && mark.type !== 'geo') {
|
|
@@ -271,7 +271,7 @@
|
|
|
271
271
|
// apply dx/dy transform
|
|
272
272
|
out[channel] =
|
|
273
273
|
Number.isFinite(scaled) && (scale === 'x' || scale === 'y')
|
|
274
|
-
? scaled + (scale === 'x' ? dx : dy)
|
|
274
|
+
? scaled + (scale === 'x' ? out.dx : out.dy)
|
|
275
275
|
: scaled;
|
|
276
276
|
} else if (defaults[channel]) {
|
|
277
277
|
out[channel] = defaults[channel];
|
|
@@ -59,6 +59,9 @@
|
|
|
59
59
|
{#each fyValues as facetY, j (j)}
|
|
60
60
|
<g
|
|
61
61
|
class="facet"
|
|
62
|
+
data-facet-x={i}
|
|
63
|
+
data-facet-y={j}
|
|
64
|
+
data-facet={i * fyValues.length + j}
|
|
62
65
|
fill="currentColor"
|
|
63
66
|
style:display={emptyFacets.get(facetX)?.get(facetY) ? 'none' : 'block'}
|
|
64
67
|
transform="translate({useFacetX ? facetXScale(facetX) : 0}, {useFacetY
|
|
@@ -180,7 +180,7 @@ export function autoScaleColor({ type, domain, scaleOptions, plotOptions, plotWi
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
if (!fn) {
|
|
183
|
-
console.
|
|
183
|
+
console.error('color problem', type);
|
|
184
184
|
// problem
|
|
185
185
|
fn = () => 'red';
|
|
186
186
|
fn.range = () => ['red'];
|
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/group.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Channels
|
|
1
|
+
import type { Channels } from '../types/index.js';
|
|
2
2
|
/**
|
|
3
3
|
* Groups the data by the fx, fy and z channels and calls the reduce function
|
|
4
4
|
* for each group. Returns the new channels to be added in the transform.
|
|
5
5
|
*/
|
|
6
|
-
export declare function groupFacetsAndZ(items:
|
|
6
|
+
export declare function groupFacetsAndZ<T>(items: T[], channels: Channels<T>, reduce: (items: T[]) => any): any;
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ChannelName, Channels, DataRecord, RawValue } from '../types/index.js';
|
|
2
2
|
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(datum:
|
|
8
|
-
value: import("../types/index.js").ChannelValue<Record<string | symbol, RawValue>>;
|
|
9
|
-
scale: boolean | null;
|
|
10
|
-
} | null;
|
|
6
|
+
export declare function coalesce(...args: (RawValue | undefined | null)[]): any;
|
|
7
|
+
export declare function testFilter<T>(datum: T, options: Channels<T>): any;
|
|
11
8
|
export declare function randomId(): string;
|
|
12
9
|
export declare function isSnippet(value: unknown): value is Snippet;
|
|
13
10
|
export declare function isValid(value: RawValue | undefined): value is number | Date | string;
|
|
14
11
|
export declare function maybeData(data: DataRecord[]): DataRecord[];
|
|
15
|
-
export declare function isObject(option: object |
|
|
12
|
+
export declare function isObject<T>(option: object | T): option is object;
|
|
16
13
|
export declare function maybeNumber(value: RawValue | null): number | null;
|
|
17
14
|
export declare const constant: <T>(x: T) => () => T;
|
|
18
15
|
export declare const POSITION_CHANNELS: Set<ChannelName>;
|
package/dist/helpers/index.js
CHANGED
|
@@ -14,7 +14,7 @@ export function coalesce(...args) {
|
|
|
14
14
|
}
|
|
15
15
|
export function testFilter(datum, options) {
|
|
16
16
|
return (options.filter == null ||
|
|
17
|
-
resolveProp(options.filter, datum
|
|
17
|
+
resolveProp(options.filter, isObject(datum) && datum.hasOwnProperty(RAW_VALUE) ? datum[RAW_VALUE] : datum));
|
|
18
18
|
}
|
|
19
19
|
export function randomId() {
|
|
20
20
|
return Math.ceil(1e9 + Math.random() * 1e9).toString(36);
|
package/dist/helpers/reduce.js
CHANGED
|
@@ -72,7 +72,6 @@ export function reduceOutputs(newDatum, data, options, outputs, channels, newCha
|
|
|
72
72
|
if (typeof channels[k] === 'string') {
|
|
73
73
|
// the named reducer is applied to a column name, so we can use a combination
|
|
74
74
|
// of both as axis labels, e.g. MEAN(weight)
|
|
75
|
-
// eslint-disable-next-line no-irregular-whitespace
|
|
76
75
|
newChannels[`__${k}_origField`] = `${reducerName} ( ${channels[k]} )`;
|
|
77
76
|
}
|
|
78
77
|
else {
|
|
@@ -3,7 +3,7 @@ import type { ScaleName, ChannelName, ScaledChannelName, ChannelAccessor, DataRo
|
|
|
3
3
|
type ChannelAlias = {
|
|
4
4
|
channel: ScaledChannelName;
|
|
5
5
|
};
|
|
6
|
-
export declare function resolveProp<T>(accessor: ConstantAccessor<T>, datum: DataRecord | null, _defaultValue?:
|
|
6
|
+
export declare function resolveProp<K, T>(accessor: ConstantAccessor<K, T>, datum: DataRecord | null, _defaultValue?: K | null): K | typeof _defaultValue;
|
|
7
7
|
type ChannelOptions = {
|
|
8
8
|
value: ChannelAccessor;
|
|
9
9
|
scale?: ScaleName | null;
|
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
|
@@ -177,7 +177,7 @@ export function createScale(name, scaleOptions, marks, plotOptions, plotWidth, p
|
|
|
177
177
|
}
|
|
178
178
|
else {
|
|
179
179
|
if (markTypes.size > 0) {
|
|
180
|
-
console.
|
|
180
|
+
console.error('Setting interval via axis options is only supported for ordinal scales');
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
}
|
|
@@ -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;
|
|
@@ -1,32 +1,33 @@
|
|
|
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<{
|
|
4
|
-
filter?: import("../types/index.js").ConstantAccessor<boolean, import("../types/data").
|
|
5
|
+
filter?: import("../types/index.js").ConstantAccessor<boolean, Record<string | symbol, import("../types/data").RawValue>>;
|
|
5
6
|
facet?: "auto" | "include" | "exclude";
|
|
6
|
-
fx: ChannelAccessor<import("../types/data").
|
|
7
|
-
fy: ChannelAccessor<import("../types/data").
|
|
8
|
-
dx: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
9
|
-
dy: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
10
|
-
fill: ChannelAccessor<import("../types/data").
|
|
11
|
-
fillOpacity: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
7
|
+
fx: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
8
|
+
fy: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
9
|
+
dx: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
10
|
+
dy: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
11
|
+
fill: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
12
|
+
fillOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
12
13
|
sort: {
|
|
13
14
|
channel: string;
|
|
14
15
|
order?: "ascending" | "descending";
|
|
15
|
-
} | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, import("../types/data").
|
|
16
|
-
stroke: ChannelAccessor<import("../types/data").
|
|
17
|
-
strokeWidth: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
18
|
-
strokeOpacity: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
19
|
-
strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, import("../types/data").
|
|
20
|
-
strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, import("../types/data").
|
|
21
|
-
strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
22
|
-
opacity: ChannelAccessor<import("../types/data").
|
|
23
|
-
strokeDasharray: import("../types/index.js").ConstantAccessor<string, import("../types/data").
|
|
24
|
-
strokeDashoffset: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
25
|
-
mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, import("../types/data").
|
|
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>>;
|
|
17
|
+
stroke: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
18
|
+
strokeWidth: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
19
|
+
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
20
|
+
strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Record<string | symbol, import("../types/data").RawValue>>;
|
|
21
|
+
strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Record<string | symbol, import("../types/data").RawValue>>;
|
|
22
|
+
strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
23
|
+
opacity: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
24
|
+
strokeDasharray: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
25
|
+
strokeDashoffset: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
26
|
+
mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Record<string | symbol, import("../types/data").RawValue>>;
|
|
26
27
|
clipPath: string;
|
|
27
|
-
imageFilter: import("../types/index.js").ConstantAccessor<string, import("../types/data").
|
|
28
|
-
shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, import("../types/data").
|
|
29
|
-
paintOrder: import("../types/index.js").ConstantAccessor<string, import("../types/data").
|
|
28
|
+
imageFilter: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
29
|
+
shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Record<string | symbol, import("../types/data").RawValue>>;
|
|
30
|
+
paintOrder: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
30
31
|
onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
31
32
|
ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
32
33
|
onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
@@ -58,20 +59,20 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
58
59
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
60
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
61
|
class: string | null;
|
|
61
|
-
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, import("../types/data").
|
|
62
|
-
}> & import("../types/mark").LinkableMarkProps<import("../types/data").
|
|
63
|
-
data: import("../types/data").
|
|
64
|
-
x1?: ChannelAccessor<import("../types/data").
|
|
65
|
-
x2?: ChannelAccessor<import("../types/data").
|
|
66
|
-
y1?: ChannelAccessor<import("../types/data").
|
|
67
|
-
y2?: ChannelAccessor<import("../types/data").
|
|
68
|
-
z?: ChannelAccessor<import("../types/data").
|
|
62
|
+
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types/data").RawValue>>;
|
|
63
|
+
}> & import("../types/mark").LinkableMarkProps<Record<string | symbol, import("../types/data").RawValue>> & {
|
|
64
|
+
data: Record<string | symbol, import("../types/data").RawValue>[];
|
|
65
|
+
x1?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
66
|
+
x2?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
67
|
+
y1?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
68
|
+
y2?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
69
|
+
z?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
69
70
|
curve?: import("../types/index.js").CurveName | import("d3-shape").CurveFactory;
|
|
70
71
|
tension?: number;
|
|
71
72
|
sort?: import("../types/index.js").ConstantAccessor<import("../types/data").RawValue> | {
|
|
72
73
|
channel: "stroke" | "fill";
|
|
73
74
|
};
|
|
74
|
-
stack?: Partial<
|
|
75
|
+
stack?: Partial<renameChannels>;
|
|
75
76
|
canvas?: boolean;
|
|
76
77
|
}, "y1" | "y2"> & {
|
|
77
78
|
x?: ChannelAccessor<Datum>;
|
|
@@ -1,32 +1,33 @@
|
|
|
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<{
|
|
4
|
-
filter?: import("../types/index.js").ConstantAccessor<boolean, import("../types/data").
|
|
5
|
+
filter?: import("../types/index.js").ConstantAccessor<boolean, Record<string | symbol, import("../types/data").RawValue>>;
|
|
5
6
|
facet?: "auto" | "include" | "exclude";
|
|
6
|
-
fx: ChannelAccessor<import("../types/data").
|
|
7
|
-
fy: ChannelAccessor<import("../types/data").
|
|
8
|
-
dx: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
9
|
-
dy: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
10
|
-
fill: ChannelAccessor<import("../types/data").
|
|
11
|
-
fillOpacity: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
7
|
+
fx: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
8
|
+
fy: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
9
|
+
dx: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
10
|
+
dy: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
11
|
+
fill: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
12
|
+
fillOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
12
13
|
sort: {
|
|
13
14
|
channel: string;
|
|
14
15
|
order?: "ascending" | "descending";
|
|
15
|
-
} | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, import("../types/data").
|
|
16
|
-
stroke: ChannelAccessor<import("../types/data").
|
|
17
|
-
strokeWidth: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
18
|
-
strokeOpacity: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
19
|
-
strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, import("../types/data").
|
|
20
|
-
strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, import("../types/data").
|
|
21
|
-
strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
22
|
-
opacity: ChannelAccessor<import("../types/data").
|
|
23
|
-
strokeDasharray: import("../types/index.js").ConstantAccessor<string, import("../types/data").
|
|
24
|
-
strokeDashoffset: import("../types/index.js").ConstantAccessor<number, import("../types/data").
|
|
25
|
-
mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, import("../types/data").
|
|
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>>;
|
|
17
|
+
stroke: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
18
|
+
strokeWidth: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
19
|
+
strokeOpacity: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
20
|
+
strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Record<string | symbol, import("../types/data").RawValue>>;
|
|
21
|
+
strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Record<string | symbol, import("../types/data").RawValue>>;
|
|
22
|
+
strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
23
|
+
opacity: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
24
|
+
strokeDasharray: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
25
|
+
strokeDashoffset: import("../types/index.js").ConstantAccessor<number, Record<string | symbol, import("../types/data").RawValue>>;
|
|
26
|
+
mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Record<string | symbol, import("../types/data").RawValue>>;
|
|
26
27
|
clipPath: string;
|
|
27
|
-
imageFilter: import("../types/index.js").ConstantAccessor<string, import("../types/data").
|
|
28
|
-
shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, import("../types/data").
|
|
29
|
-
paintOrder: import("../types/index.js").ConstantAccessor<string, import("../types/data").
|
|
28
|
+
imageFilter: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
29
|
+
shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Record<string | symbol, import("../types/data").RawValue>>;
|
|
30
|
+
paintOrder: import("../types/index.js").ConstantAccessor<string, Record<string | symbol, import("../types/data").RawValue>>;
|
|
30
31
|
onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
31
32
|
ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
32
33
|
onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
@@ -58,20 +59,20 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
58
59
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
59
60
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
61
|
class: string | null;
|
|
61
|
-
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, import("../types/data").
|
|
62
|
-
}> & import("../types/mark").LinkableMarkProps<import("../types/data").
|
|
63
|
-
data: import("../types/data").
|
|
64
|
-
x1?: ChannelAccessor<import("../types/data").
|
|
65
|
-
x2?: ChannelAccessor<import("../types/data").
|
|
66
|
-
y1?: ChannelAccessor<import("../types/data").
|
|
67
|
-
y2?: ChannelAccessor<import("../types/data").
|
|
68
|
-
z?: ChannelAccessor<import("../types/data").
|
|
62
|
+
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Record<string | symbol, import("../types/data").RawValue>>;
|
|
63
|
+
}> & import("../types/mark").LinkableMarkProps<Record<string | symbol, import("../types/data").RawValue>> & {
|
|
64
|
+
data: Record<string | symbol, import("../types/data").RawValue>[];
|
|
65
|
+
x1?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
66
|
+
x2?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
67
|
+
y1?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
68
|
+
y2?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
69
|
+
z?: ChannelAccessor<Record<string | symbol, import("../types/data").RawValue>>;
|
|
69
70
|
curve?: import("../types/index.js").CurveName | import("d3-shape").CurveFactory;
|
|
70
71
|
tension?: number;
|
|
71
72
|
sort?: import("../types/index.js").ConstantAccessor<import("../types/data").RawValue> | {
|
|
72
73
|
channel: "stroke" | "fill";
|
|
73
74
|
};
|
|
74
|
-
stack?: Partial<
|
|
75
|
+
stack?: Partial<renameChannels>;
|
|
75
76
|
canvas?: boolean;
|
|
76
77
|
}, "x1" | "x2"> & {
|
|
77
78
|
x?: ChannelAccessor<Datum>;
|
|
@@ -59,7 +59,7 @@ declare class __sveltets_Render<Datum extends RawValue> {
|
|
|
59
59
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
60
|
class: string | null;
|
|
61
61
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
62
|
-
}>, "fill" | "fillOpacity" | "href" | "target" | "
|
|
62
|
+
}>, "fill" | "fillOpacity" | "href" | "target" | "title" | "paintOrder"> & {
|
|
63
63
|
data?: Datum[] | undefined;
|
|
64
64
|
automatic?: boolean;
|
|
65
65
|
title?: string | false | null;
|
|
@@ -59,7 +59,7 @@ declare class __sveltets_Render<Datum extends RawValue> {
|
|
|
59
59
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
60
|
class: string | null;
|
|
61
61
|
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
62
|
-
}>, "fill" | "fillOpacity" | "href" | "target" | "
|
|
62
|
+
}>, "fill" | "fillOpacity" | "href" | "target" | "title" | "paintOrder"> & {
|
|
63
63
|
data?: Datum[] | undefined;
|
|
64
64
|
automatic?: boolean;
|
|
65
65
|
title?: string | false | null;
|
|
@@ -14,7 +14,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
14
14
|
sort: {
|
|
15
15
|
channel: string;
|
|
16
16
|
order?: "ascending" | "descending";
|
|
17
|
-
} | ((a: 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>;
|
|
@@ -1,77 +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: {
|
|
13
|
-
channel: string;
|
|
14
|
-
order?: "ascending" | "descending";
|
|
15
|
-
} | ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | 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 | null;
|
|
61
|
-
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
62
|
-
}> & {
|
|
63
|
-
data: Datum[];
|
|
64
|
-
x?: ChannelAccessor<Datum>;
|
|
65
|
-
y?: ChannelAccessor<Datum>;
|
|
66
|
-
/**
|
|
67
|
-
* the window size (the window transform's k option), an integer; defaults to 20
|
|
68
|
-
*/
|
|
69
|
-
n?: number;
|
|
70
|
-
/**
|
|
71
|
-
* the band radius, a number representing a multiple of standard deviations; defaults to 2
|
|
72
|
-
*/
|
|
73
|
-
k?: number;
|
|
74
|
-
};
|
|
3
|
+
props(): any;
|
|
75
4
|
events(): {};
|
|
76
5
|
slots(): {};
|
|
77
6
|
bindings(): "";
|
|
@@ -1,77 +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: {
|
|
13
|
-
channel: string;
|
|
14
|
-
order?: "ascending" | "descending";
|
|
15
|
-
} | ((a: import("../types/index.js").RawValue, b: import("../types/index.js").RawValue) => number) | 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 | null;
|
|
61
|
-
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
62
|
-
}> & {
|
|
63
|
-
data: Datum[];
|
|
64
|
-
x?: ChannelAccessor<Datum>;
|
|
65
|
-
y?: ChannelAccessor<Datum>;
|
|
66
|
-
/**
|
|
67
|
-
* the window size (the window transform's k option), an integer; defaults to 20
|
|
68
|
-
*/
|
|
69
|
-
n?: number;
|
|
70
|
-
/**
|
|
71
|
-
* the band radius, a number representing a multiple of standard deviations; defaults to 2
|
|
72
|
-
*/
|
|
73
|
-
k?: number;
|
|
74
|
-
};
|
|
3
|
+
props(): any;
|
|
75
4
|
events(): {};
|
|
76
5
|
slots(): {};
|
|
77
6
|
bindings(): "";
|