svelteplot 0.3.5-pr-121.8 → 0.3.5
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 +23 -23
- package/dist/Plot.svelte +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/core/FacetAxes.svelte +0 -2
- package/dist/helpers/autoScales.d.ts +1 -1
- package/dist/helpers/autoTicks.d.ts +1 -1
- package/dist/helpers/autoTimeFormat.d.ts +2 -2
- package/dist/helpers/autoTimeFormat.js +1 -1
- package/dist/helpers/callWithProps.d.ts +1 -1
- package/dist/helpers/colors.d.ts +2 -2
- package/dist/helpers/curves.d.ts +1 -1
- package/dist/helpers/facets.d.ts +1 -1
- package/dist/helpers/getBaseStyles.d.ts +2 -2
- package/dist/helpers/group.d.ts +1 -1
- package/dist/helpers/index.d.ts +6 -3
- package/dist/helpers/isDataRecord.d.ts +1 -1
- package/dist/helpers/isRawValue.d.ts +1 -1
- package/dist/helpers/reduce.d.ts +1 -1
- package/dist/helpers/regressionLoess.d.ts +1 -1
- package/dist/helpers/resolve.d.ts +2 -2
- package/dist/helpers/scales.d.ts +2 -2
- package/dist/helpers/typeChecks.d.ts +5 -5
- package/dist/marks/Area.svelte +2 -2
- package/dist/marks/Area.svelte.d.ts +24 -23
- package/dist/marks/AreaX.svelte.d.ts +23 -24
- package/dist/marks/AreaY.svelte.d.ts +23 -24
- package/dist/marks/Arrow.svelte.d.ts +22 -22
- package/dist/marks/AxisX.svelte +16 -20
- package/dist/marks/AxisX.svelte.d.ts +24 -25
- package/dist/marks/AxisY.svelte +14 -33
- package/dist/marks/AxisY.svelte.d.ts +24 -26
- package/dist/marks/BarX.svelte.d.ts +22 -22
- package/dist/marks/BarY.svelte.d.ts +22 -22
- package/dist/marks/BollingerX.svelte.d.ts +73 -2
- package/dist/marks/BollingerY.svelte.d.ts +73 -2
- package/dist/marks/BoxY.svelte.d.ts +65 -6
- package/dist/marks/Cell.svelte.d.ts +22 -22
- package/dist/marks/ColorLegend.svelte +2 -4
- package/dist/marks/CustomMark.svelte.d.ts +71 -2
- package/dist/marks/DifferenceY.svelte +1 -1
- package/dist/marks/DifferenceY.svelte.d.ts +66 -7
- package/dist/marks/Dot.svelte.d.ts +22 -22
- package/dist/marks/DotX.svelte.d.ts +23 -23
- package/dist/marks/DotY.svelte.d.ts +23 -23
- package/dist/marks/Geo.svelte +1 -1
- package/dist/marks/Geo.svelte.d.ts +22 -22
- package/dist/marks/GridX.svelte.d.ts +22 -22
- package/dist/marks/GridY.svelte.d.ts +22 -22
- package/dist/marks/Line.svelte.d.ts +23 -23
- package/dist/marks/LineX.svelte.d.ts +2 -3
- package/dist/marks/LineY.svelte.d.ts +2 -3
- package/dist/marks/Link.svelte.d.ts +22 -22
- package/dist/marks/Rect.svelte.d.ts +22 -22
- package/dist/marks/RectX.svelte +1 -1
- package/dist/marks/RectX.svelte.d.ts +1 -1
- package/dist/marks/RectY.svelte +1 -1
- package/dist/marks/RectY.svelte.d.ts +1 -1
- package/dist/marks/RuleX.svelte.d.ts +22 -22
- package/dist/marks/RuleY.svelte.d.ts +22 -22
- package/dist/marks/Spike.svelte.d.ts +23 -23
- package/dist/marks/Text.svelte.d.ts +23 -23
- package/dist/marks/TickX.svelte.d.ts +22 -22
- package/dist/marks/TickY.svelte.d.ts +22 -22
- package/dist/marks/Vector.svelte.d.ts +22 -22
- package/dist/marks/helpers/Anchor.svelte +1 -1
- package/dist/marks/helpers/AreaCanvas.svelte +1 -1
- package/dist/marks/helpers/BaseAxisX.svelte +2 -4
- package/dist/marks/helpers/BaseAxisY.svelte +6 -8
- package/dist/marks/helpers/BaseAxisY.svelte.d.ts +0 -2
- package/dist/marks/helpers/DotCanvas.svelte +1 -1
- package/dist/marks/helpers/LineCanvas.svelte +1 -1
- package/dist/marks/helpers/RectPath.svelte +1 -1
- package/dist/marks/helpers/Regression.svelte +1 -1
- package/dist/marks/helpers/events.d.ts +1 -1
- package/dist/transforms/bin.d.ts +2 -2
- package/dist/transforms/bollinger.d.ts +67 -2
- package/dist/transforms/centroid.d.ts +1 -1
- package/dist/transforms/filter.d.ts +1 -1
- package/dist/transforms/group.d.ts +13 -5
- package/dist/transforms/interval.d.ts +123 -3
- package/dist/transforms/jitter.d.ts +1 -1
- package/dist/transforms/map.d.ts +1 -1
- package/dist/transforms/normalize.d.ts +1 -1
- package/dist/transforms/recordize.d.ts +1 -1
- package/dist/transforms/rename.d.ts +2 -2
- package/dist/transforms/select.d.ts +428 -8
- package/dist/transforms/shift.d.ts +1 -1
- package/dist/transforms/sort.d.ts +243 -4
- package/dist/transforms/stack.d.ts +1 -1
- package/dist/transforms/window.d.ts +131 -3
- package/dist/types/channel.d.ts +1 -1
- package/dist/types/data.d.ts +1 -1
- package/dist/types/facet.d.ts +1 -1
- package/dist/types/index.d.ts +4 -4
- package/dist/types/mark.d.ts +2 -2
- package/dist/types/plot.d.ts +3 -3
- package/dist/types/scale.d.ts +1 -1
- package/dist/types.d.ts +834 -0
- package/dist/types.js +1 -0
- package/package.json +124 -126
package/dist/Mark.svelte.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { type Snippet } from 'svelte';
|
|
2
|
-
import type { ScaledChannelName, MarkType, DataRecord,
|
|
2
|
+
import type { ScaledChannelName, MarkType, DataRecord, ScaleName, RawValue, ScaledDataRecord, ScaleType } from './types/index.js';
|
|
3
3
|
import { getUsedScales } from './helpers/scales.js';
|
|
4
4
|
declare class __sveltets_Render<Datum extends DataRecord> {
|
|
5
5
|
props(): Partial<Partial<{
|
|
6
|
-
filter?: import("./types
|
|
6
|
+
filter?: import("./types.js").ConstantAccessor<boolean, Datum>;
|
|
7
7
|
facet?: "auto" | "include" | "exclude";
|
|
8
|
-
fx: ChannelAccessor<Datum>;
|
|
9
|
-
fy: ChannelAccessor<Datum>;
|
|
10
|
-
dx: import("./types
|
|
11
|
-
dy: import("./types
|
|
12
|
-
fill: ChannelAccessor<Datum>;
|
|
13
|
-
fillOpacity: import("./types
|
|
8
|
+
fx: import("./types.js").ChannelAccessor<Datum>;
|
|
9
|
+
fy: import("./types.js").ChannelAccessor<Datum>;
|
|
10
|
+
dx: import("./types.js").ConstantAccessor<number, Datum>;
|
|
11
|
+
dy: import("./types.js").ConstantAccessor<number, Datum>;
|
|
12
|
+
fill: import("./types.js").ChannelAccessor<Datum>;
|
|
13
|
+
fillOpacity: import("./types.js").ConstantAccessor<number, Datum>;
|
|
14
14
|
sort: {
|
|
15
15
|
channel: string;
|
|
16
16
|
order?: "ascending" | "descending";
|
|
17
|
-
} | ((a: RawValue, b: RawValue) => number) | import("./types
|
|
18
|
-
stroke: ChannelAccessor<Datum>;
|
|
19
|
-
strokeWidth: import("./types
|
|
20
|
-
strokeOpacity: import("./types
|
|
21
|
-
strokeLinejoin: import("./types
|
|
22
|
-
strokeLinecap: import("./types
|
|
23
|
-
strokeMiterlimit: import("./types
|
|
24
|
-
opacity: ChannelAccessor<Datum>;
|
|
25
|
-
strokeDasharray: import("./types
|
|
26
|
-
strokeDashoffset: import("./types
|
|
27
|
-
mixBlendMode: import("./types
|
|
17
|
+
} | ((a: import("./types.js").RawValue, b: import("./types.js").RawValue) => number) | import("./types.js").ConstantAccessor<import("./types.js").RawValue, Datum>;
|
|
18
|
+
stroke: import("./types.js").ChannelAccessor<Datum>;
|
|
19
|
+
strokeWidth: import("./types.js").ConstantAccessor<number, Datum>;
|
|
20
|
+
strokeOpacity: import("./types.js").ConstantAccessor<number, Datum>;
|
|
21
|
+
strokeLinejoin: import("./types.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
|
|
22
|
+
strokeLinecap: import("./types.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
|
|
23
|
+
strokeMiterlimit: import("./types.js").ConstantAccessor<number, Datum>;
|
|
24
|
+
opacity: import("./types.js").ChannelAccessor<Datum>;
|
|
25
|
+
strokeDasharray: import("./types.js").ConstantAccessor<string, Datum>;
|
|
26
|
+
strokeDashoffset: import("./types.js").ConstantAccessor<number, Datum>;
|
|
27
|
+
mixBlendMode: import("./types.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
|
|
28
28
|
clipPath: string;
|
|
29
|
-
imageFilter: import("./types
|
|
30
|
-
shapeRendering: import("./types
|
|
31
|
-
paintOrder: import("./types
|
|
29
|
+
imageFilter: import("./types.js").ConstantAccessor<string, Datum>;
|
|
30
|
+
shapeRendering: import("./types.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
31
|
+
paintOrder: import("./types.js").ConstantAccessor<string, Datum>;
|
|
32
32
|
onclick?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
33
33
|
ondblclick?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
34
34
|
onmouseup?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
@@ -60,7 +60,7 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
60
60
|
oncontextmenu?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
61
61
|
onwheel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
62
62
|
class: string | null;
|
|
63
|
-
cursor: import("./types
|
|
63
|
+
cursor: import("./types.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
64
64
|
}>> & {
|
|
65
65
|
data?: Datum[] | undefined;
|
|
66
66
|
automatic?: boolean;
|
package/dist/Plot.svelte
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<script lang="ts">
|
|
13
13
|
import Plot from './core/Plot.svelte';
|
|
14
14
|
|
|
15
|
-
import type { PlotOptions } from './types/index.js';
|
|
15
|
+
import type { PlotDefaults, PlotOptions } from './types/index.js';
|
|
16
16
|
|
|
17
17
|
// implicit marks
|
|
18
18
|
import AxisX from './marks/AxisX.svelte';
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ScaleName, ScaleType, ScaledChannelName } from './types
|
|
1
|
+
import type { ScaleName, ScaleType, ScaledChannelName } from './types.js';
|
|
2
2
|
export declare const SCALE_TYPES: Record<ScaleName, symbol>;
|
|
3
3
|
export declare const SCALES: ScaleName[];
|
|
4
4
|
export declare const VALID_SCALE_TYPES: Record<ScaleName, Set<ScaleType>>;
|
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
scaleType="band"
|
|
37
37
|
ticks={fxValues}
|
|
38
38
|
tickFormat={(d) => d}
|
|
39
|
-
tickFontSize={11}
|
|
40
39
|
tickSize={0}
|
|
41
40
|
tickPadding={5}
|
|
42
41
|
anchor={plot.options.fx.axis}
|
|
@@ -54,7 +53,6 @@
|
|
|
54
53
|
scaleType="band"
|
|
55
54
|
ticks={fyValues}
|
|
56
55
|
tickFormat={(d) => d}
|
|
57
|
-
tickFontSize={11}
|
|
58
56
|
tickSize={0}
|
|
59
57
|
tickPadding={5}
|
|
60
58
|
anchor={plot.options.fy.axis}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ColorScaleOptions, PlotDefaults, PlotOptions, RawValue, ScaleName, ScaleOptions, ScaleType } from '../types
|
|
1
|
+
import type { ColorScaleOptions, PlotDefaults, PlotOptions, RawValue, ScaleName, ScaleOptions, ScaleType } from '../types.js';
|
|
2
2
|
export declare function autoScale({ name, type, domain, scaleOptions, plotOptions, plotWidth, plotHeight, plotHasFilledDotMarks, plotDefaults }: {
|
|
3
3
|
name: ScaleName;
|
|
4
4
|
type: ScaleType;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { RawValue, ScaleType } from '../types
|
|
1
|
+
import type { RawValue, ScaleType } from '../types.js';
|
|
2
2
|
export declare function maybeInterval(interval: null | number | string | (<T>(d: T) => T)): any;
|
|
3
3
|
export declare function autoTicks(type: ScaleType, ticks: RawValue[], interval: string | number | null, domain: RawValue[], scaleFn: any, count: number): any;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export default function autoTimeFormat(x:
|
|
1
|
+
import type { Scale } from '../classes/Scale.svelte.js';
|
|
2
|
+
export default function autoTimeFormat(x: Scale, plotWidth: number, plotLocale: string): (date: Date) => string[];
|
package/dist/helpers/colors.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { interpolateBrBG } from 'd3-scale-chromatic';
|
|
2
|
-
import type { ColorScheme } from '../types
|
|
2
|
+
import type { ColorScheme } from '../types.js';
|
|
3
3
|
export declare const categoricalSchemes: Map<string, readonly string[]>;
|
|
4
4
|
export declare function isCategoricalScheme(scheme: string): boolean;
|
|
5
5
|
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): 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;
|
package/dist/helpers/curves.d.ts
CHANGED
package/dist/helpers/facets.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GenericMarkOptions, Mark, RawValue } from '../types
|
|
1
|
+
import type { GenericMarkOptions, Mark, RawValue } from '../types.js';
|
|
2
2
|
/**
|
|
3
3
|
* This function tracks which facets are "empty", meaning that they don't contain
|
|
4
4
|
* any "facetted" data points. This can happen when fx and fy are combined and
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Channels } from '../types
|
|
2
|
-
import type { DataRow } from '../types
|
|
1
|
+
import type { Channels } from '../types.js';
|
|
2
|
+
import type { DataRow } from '../types.js';
|
|
3
3
|
export declare function getBaseStylesObject(datum: DataRow, props: Partial<Channels>): {
|
|
4
4
|
[k: string]: string | number;
|
|
5
5
|
};
|
package/dist/helpers/group.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Channels, DataRecord } from '../types
|
|
1
|
+
import type { Channels, DataRecord } from '../types.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.
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import type { ChannelAccessor, ChannelName, DataRecord, RawValue } from '../types
|
|
1
|
+
import type { ChannelAccessor, ChannelName, DataRecord, RawValue } from '../types.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: DataRecord, options: Record<ChannelName, ChannelAccessor>):
|
|
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 | {
|
|
8
|
+
value: import("../types.js").ChannelValue<Record<string | symbol, RawValue>>;
|
|
9
|
+
scale: boolean | null;
|
|
10
|
+
} | null;
|
|
8
11
|
export declare function randomId(): string;
|
|
9
12
|
export declare function isSnippet(value: unknown): value is Snippet;
|
|
10
13
|
export declare function isValid(value: RawValue | undefined): value is number | Date | string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { DataRecord } from '../types
|
|
1
|
+
import type { DataRecord } from '../types.js';
|
|
2
2
|
export default function (value: any): value is DataRecord;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { RawValue } from '../types
|
|
1
|
+
import type { RawValue } from '../types.js';
|
|
2
2
|
export default function (value: any): value is RawValue;
|
package/dist/helpers/reduce.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChannelName, Channels, DataRecord, DataRow, RawValue } from '../types
|
|
1
|
+
import type { ChannelName, Channels, DataRecord, DataRow, RawValue } from '../types.js';
|
|
2
2
|
type ReducerFunc = (group: Iterable<DataRow>) => RawValue;
|
|
3
3
|
type ReducerOption = ReducerName | ReducerFunc;
|
|
4
4
|
type Digit = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { MarkStyleProps, PlotState, ScaledDataRecord } from '../types
|
|
2
|
-
import type { ScaleName, ChannelName, ScaledChannelName, ChannelAccessor, DataRow, RawValue, DataRecord, ConstantAccessor } from '../types
|
|
1
|
+
import type { MarkStyleProps, PlotState, ScaledDataRecord } from '../types.js';
|
|
2
|
+
import type { ScaleName, ChannelName, ScaledChannelName, ChannelAccessor, DataRow, RawValue, DataRecord, ConstantAccessor } from '../types.js';
|
|
3
3
|
type ChannelAlias = {
|
|
4
4
|
channel: ScaledChannelName;
|
|
5
5
|
};
|
package/dist/helpers/scales.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChannelAccessor, GenericMarkOptions, Mark, MarkType, PlotDefaults, PlotOptions, PlotScales, PlotState, RawValue, ScaleName, ScaleOptions, ScaleType, ScaledChannelName, UsedScales } from '../types
|
|
1
|
+
import type { ChannelAccessor, GenericMarkOptions, Mark, MarkType, PlotDefaults, PlotOptions, PlotScales, PlotState, RawValue, ScaleName, ScaleOptions, ScaleType, ScaledChannelName, UsedScales } from '../types.js';
|
|
2
2
|
/**
|
|
3
3
|
* compute the plot scales
|
|
4
4
|
*/
|
|
@@ -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: RawValue[] | [undefined, undefined];
|
|
19
19
|
range: any;
|
|
20
20
|
fn: any;
|
|
21
21
|
skip: Map<ScaledChannelName, Set<symbol>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { RawValue } from '../types
|
|
2
|
-
export declare function isBooleanOrNull(v: RawValue): boolean;
|
|
1
|
+
import type { RawValue } from '../types.js';
|
|
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):
|
|
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):
|
|
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):
|
|
9
|
+
export declare function isColorOrNull(v: RawValue | null | undefined): boolean;
|
|
10
10
|
export declare function isOpacityOrNull(v: RawValue): boolean;
|
package/dist/marks/Area.svelte
CHANGED
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
ChannelAccessor,
|
|
38
38
|
ScaledDataRecord,
|
|
39
39
|
LinkableMarkProps,
|
|
40
|
-
PlotDefaults
|
|
41
|
-
RawValue
|
|
40
|
+
PlotDefaults
|
|
42
41
|
} from '../types/index.js';
|
|
42
|
+
import type { RawValue } from '../types/index.js';
|
|
43
43
|
import type { StackOptions } from '../transforms/stack.js';
|
|
44
44
|
|
|
45
45
|
let markProps: AreaMarkProps = $props();
|
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
import { type CurveFactory } from 'd3-shape';
|
|
2
|
-
import type { CurveName, DataRecord, ConstantAccessor, ChannelAccessor, LinkableMarkProps
|
|
2
|
+
import type { CurveName, DataRecord, ConstantAccessor, ChannelAccessor, LinkableMarkProps } from '../types/index.js';
|
|
3
|
+
import type { RawValue } from '../types/index.js';
|
|
3
4
|
import type { StackOptions } from '../transforms/stack.js';
|
|
4
5
|
declare class __sveltets_Render<Datum extends DataRecord> {
|
|
5
6
|
props(): Partial<{
|
|
6
|
-
filter?: ConstantAccessor<boolean, Datum>;
|
|
7
|
+
filter?: import("../types").ConstantAccessor<boolean, Datum>;
|
|
7
8
|
facet?: "auto" | "include" | "exclude";
|
|
8
|
-
fx: ChannelAccessor<Datum>;
|
|
9
|
-
fy: ChannelAccessor<Datum>;
|
|
10
|
-
dx: ConstantAccessor<number, Datum>;
|
|
11
|
-
dy: ConstantAccessor<number, Datum>;
|
|
12
|
-
fill: ChannelAccessor<Datum>;
|
|
13
|
-
fillOpacity: ConstantAccessor<number, Datum>;
|
|
9
|
+
fx: import("../types").ChannelAccessor<Datum>;
|
|
10
|
+
fy: import("../types").ChannelAccessor<Datum>;
|
|
11
|
+
dx: import("../types").ConstantAccessor<number, Datum>;
|
|
12
|
+
dy: import("../types").ConstantAccessor<number, Datum>;
|
|
13
|
+
fill: import("../types").ChannelAccessor<Datum>;
|
|
14
|
+
fillOpacity: import("../types").ConstantAccessor<number, Datum>;
|
|
14
15
|
sort: {
|
|
15
16
|
channel: string;
|
|
16
17
|
order?: "ascending" | "descending";
|
|
17
|
-
} | ((a: RawValue, b: RawValue) => number) | ConstantAccessor<RawValue, Datum>;
|
|
18
|
-
stroke: ChannelAccessor<Datum>;
|
|
19
|
-
strokeWidth: ConstantAccessor<number, Datum>;
|
|
20
|
-
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
21
|
-
strokeLinejoin: ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
|
|
22
|
-
strokeLinecap: ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
|
|
23
|
-
strokeMiterlimit: ConstantAccessor<number, Datum>;
|
|
24
|
-
opacity: ChannelAccessor<Datum>;
|
|
25
|
-
strokeDasharray: ConstantAccessor<string, Datum>;
|
|
26
|
-
strokeDashoffset: ConstantAccessor<number, Datum>;
|
|
27
|
-
mixBlendMode: ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
|
|
18
|
+
} | ((a: import("../types").RawValue, b: import("../types").RawValue) => number) | import("../types").ConstantAccessor<import("../types").RawValue, Datum>;
|
|
19
|
+
stroke: import("../types").ChannelAccessor<Datum>;
|
|
20
|
+
strokeWidth: import("../types").ConstantAccessor<number, Datum>;
|
|
21
|
+
strokeOpacity: import("../types").ConstantAccessor<number, Datum>;
|
|
22
|
+
strokeLinejoin: import("../types").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
|
|
23
|
+
strokeLinecap: import("../types").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
|
|
24
|
+
strokeMiterlimit: import("../types").ConstantAccessor<number, Datum>;
|
|
25
|
+
opacity: import("../types").ChannelAccessor<Datum>;
|
|
26
|
+
strokeDasharray: import("../types").ConstantAccessor<string, Datum>;
|
|
27
|
+
strokeDashoffset: import("../types").ConstantAccessor<number, Datum>;
|
|
28
|
+
mixBlendMode: import("../types").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
|
|
28
29
|
clipPath: string;
|
|
29
|
-
imageFilter: ConstantAccessor<string, Datum>;
|
|
30
|
-
shapeRendering: ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
31
|
-
paintOrder: ConstantAccessor<string, Datum>;
|
|
30
|
+
imageFilter: import("../types").ConstantAccessor<string, Datum>;
|
|
31
|
+
shapeRendering: import("../types").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
32
|
+
paintOrder: import("../types").ConstantAccessor<string, Datum>;
|
|
32
33
|
onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
33
34
|
ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
34
35
|
onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
@@ -60,7 +61,7 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
60
61
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
61
62
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
62
63
|
class: string | null;
|
|
63
|
-
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
64
|
+
cursor: import("../types").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
64
65
|
}> & LinkableMarkProps<Datum> & {
|
|
65
66
|
data: Datum[];
|
|
66
67
|
x1?: ChannelAccessor<Datum>;
|
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import { renameChannels } from '../transforms/rename.js';
|
|
2
1
|
import type { ChannelAccessor, DataRow } from '../types/index.js';
|
|
3
2
|
declare class __sveltets_Render<Datum extends DataRow> {
|
|
4
3
|
props(): Omit<Partial<{
|
|
5
|
-
filter?: import("../types
|
|
4
|
+
filter?: import("../types").ConstantAccessor<boolean, import("../types/data").DataRecord>;
|
|
6
5
|
facet?: "auto" | "include" | "exclude";
|
|
7
|
-
fx: ChannelAccessor<import("../types/data").DataRecord>;
|
|
8
|
-
fy: ChannelAccessor<import("../types/data").DataRecord>;
|
|
9
|
-
dx: import("../types
|
|
10
|
-
dy: import("../types
|
|
11
|
-
fill: ChannelAccessor<import("../types/data").DataRecord>;
|
|
12
|
-
fillOpacity: import("../types
|
|
6
|
+
fx: import("../types").ChannelAccessor<import("../types/data").DataRecord>;
|
|
7
|
+
fy: import("../types").ChannelAccessor<import("../types/data").DataRecord>;
|
|
8
|
+
dx: import("../types").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
9
|
+
dy: import("../types").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
10
|
+
fill: import("../types").ChannelAccessor<import("../types/data").DataRecord>;
|
|
11
|
+
fillOpacity: import("../types").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
13
12
|
sort: {
|
|
14
13
|
channel: string;
|
|
15
14
|
order?: "ascending" | "descending";
|
|
16
|
-
} | ((a: import("../types
|
|
17
|
-
stroke: ChannelAccessor<import("../types/data").DataRecord>;
|
|
18
|
-
strokeWidth: import("../types
|
|
19
|
-
strokeOpacity: import("../types
|
|
20
|
-
strokeLinejoin: import("../types
|
|
21
|
-
strokeLinecap: import("../types
|
|
22
|
-
strokeMiterlimit: import("../types
|
|
23
|
-
opacity: ChannelAccessor<import("../types/data").DataRecord>;
|
|
24
|
-
strokeDasharray: import("../types
|
|
25
|
-
strokeDashoffset: import("../types
|
|
26
|
-
mixBlendMode: import("../types
|
|
15
|
+
} | ((a: import("../types").RawValue, b: import("../types").RawValue) => number) | import("../types").ConstantAccessor<import("../types").RawValue, import("../types/data").DataRecord>;
|
|
16
|
+
stroke: import("../types").ChannelAccessor<import("../types/data").DataRecord>;
|
|
17
|
+
strokeWidth: import("../types").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
18
|
+
strokeOpacity: import("../types").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
19
|
+
strokeLinejoin: import("../types").ConstantAccessor<import("csstype").Property.StrokeLinejoin, import("../types/data").DataRecord>;
|
|
20
|
+
strokeLinecap: import("../types").ConstantAccessor<import("csstype").Property.StrokeLinecap, import("../types/data").DataRecord>;
|
|
21
|
+
strokeMiterlimit: import("../types").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
22
|
+
opacity: import("../types").ChannelAccessor<import("../types/data").DataRecord>;
|
|
23
|
+
strokeDasharray: import("../types").ConstantAccessor<string, import("../types/data").DataRecord>;
|
|
24
|
+
strokeDashoffset: import("../types").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
25
|
+
mixBlendMode: import("../types").ConstantAccessor<import("csstype").Property.MixBlendMode, import("../types/data").DataRecord>;
|
|
27
26
|
clipPath: string;
|
|
28
|
-
imageFilter: import("../types
|
|
29
|
-
shapeRendering: import("../types
|
|
30
|
-
paintOrder: import("../types
|
|
27
|
+
imageFilter: import("../types").ConstantAccessor<string, import("../types/data").DataRecord>;
|
|
28
|
+
shapeRendering: import("../types").ConstantAccessor<import("csstype").Property.ShapeRendering, import("../types/data").DataRecord>;
|
|
29
|
+
paintOrder: import("../types").ConstantAccessor<string, import("../types/data").DataRecord>;
|
|
31
30
|
onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
32
31
|
ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
33
32
|
onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
@@ -59,7 +58,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
59
58
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
59
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
61
60
|
class: string | null;
|
|
62
|
-
cursor: import("../types
|
|
61
|
+
cursor: import("../types").ConstantAccessor<import("csstype").Property.Cursor, import("../types/data").DataRecord>;
|
|
63
62
|
}> & import("../types/mark").LinkableMarkProps<import("../types/data").DataRecord> & {
|
|
64
63
|
data: import("../types/data").DataRecord[];
|
|
65
64
|
x1?: ChannelAccessor<import("../types/data").DataRecord>;
|
|
@@ -72,7 +71,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
72
71
|
sort?: import("../types/index.js").ConstantAccessor<import("../types/data").RawValue> | {
|
|
73
72
|
channel: "stroke" | "fill";
|
|
74
73
|
};
|
|
75
|
-
stack?: Partial<
|
|
74
|
+
stack?: Partial<import("../transforms/stack.js").StackOptions>;
|
|
76
75
|
canvas?: boolean;
|
|
77
76
|
}, "y1" | "y2"> & {
|
|
78
77
|
x?: ChannelAccessor<Datum>;
|
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import { renameChannels } from '../transforms/rename.js';
|
|
2
1
|
import type { ChannelAccessor, DataRow } from '../types/index.js';
|
|
3
2
|
declare class __sveltets_Render<Datum extends DataRow> {
|
|
4
3
|
props(): Omit<Partial<{
|
|
5
|
-
filter?: import("../types
|
|
4
|
+
filter?: import("../types").ConstantAccessor<boolean, import("../types/data").DataRecord>;
|
|
6
5
|
facet?: "auto" | "include" | "exclude";
|
|
7
|
-
fx: ChannelAccessor<import("../types/data").DataRecord>;
|
|
8
|
-
fy: ChannelAccessor<import("../types/data").DataRecord>;
|
|
9
|
-
dx: import("../types
|
|
10
|
-
dy: import("../types
|
|
11
|
-
fill: ChannelAccessor<import("../types/data").DataRecord>;
|
|
12
|
-
fillOpacity: import("../types
|
|
6
|
+
fx: import("../types").ChannelAccessor<import("../types/data").DataRecord>;
|
|
7
|
+
fy: import("../types").ChannelAccessor<import("../types/data").DataRecord>;
|
|
8
|
+
dx: import("../types").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
9
|
+
dy: import("../types").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
10
|
+
fill: import("../types").ChannelAccessor<import("../types/data").DataRecord>;
|
|
11
|
+
fillOpacity: import("../types").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
13
12
|
sort: {
|
|
14
13
|
channel: string;
|
|
15
14
|
order?: "ascending" | "descending";
|
|
16
|
-
} | ((a: import("../types
|
|
17
|
-
stroke: ChannelAccessor<import("../types/data").DataRecord>;
|
|
18
|
-
strokeWidth: import("../types
|
|
19
|
-
strokeOpacity: import("../types
|
|
20
|
-
strokeLinejoin: import("../types
|
|
21
|
-
strokeLinecap: import("../types
|
|
22
|
-
strokeMiterlimit: import("../types
|
|
23
|
-
opacity: ChannelAccessor<import("../types/data").DataRecord>;
|
|
24
|
-
strokeDasharray: import("../types
|
|
25
|
-
strokeDashoffset: import("../types
|
|
26
|
-
mixBlendMode: import("../types
|
|
15
|
+
} | ((a: import("../types").RawValue, b: import("../types").RawValue) => number) | import("../types").ConstantAccessor<import("../types").RawValue, import("../types/data").DataRecord>;
|
|
16
|
+
stroke: import("../types").ChannelAccessor<import("../types/data").DataRecord>;
|
|
17
|
+
strokeWidth: import("../types").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
18
|
+
strokeOpacity: import("../types").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
19
|
+
strokeLinejoin: import("../types").ConstantAccessor<import("csstype").Property.StrokeLinejoin, import("../types/data").DataRecord>;
|
|
20
|
+
strokeLinecap: import("../types").ConstantAccessor<import("csstype").Property.StrokeLinecap, import("../types/data").DataRecord>;
|
|
21
|
+
strokeMiterlimit: import("../types").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
22
|
+
opacity: import("../types").ChannelAccessor<import("../types/data").DataRecord>;
|
|
23
|
+
strokeDasharray: import("../types").ConstantAccessor<string, import("../types/data").DataRecord>;
|
|
24
|
+
strokeDashoffset: import("../types").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
25
|
+
mixBlendMode: import("../types").ConstantAccessor<import("csstype").Property.MixBlendMode, import("../types/data").DataRecord>;
|
|
27
26
|
clipPath: string;
|
|
28
|
-
imageFilter: import("../types
|
|
29
|
-
shapeRendering: import("../types
|
|
30
|
-
paintOrder: import("../types
|
|
27
|
+
imageFilter: import("../types").ConstantAccessor<string, import("../types/data").DataRecord>;
|
|
28
|
+
shapeRendering: import("../types").ConstantAccessor<import("csstype").Property.ShapeRendering, import("../types/data").DataRecord>;
|
|
29
|
+
paintOrder: import("../types").ConstantAccessor<string, import("../types/data").DataRecord>;
|
|
31
30
|
onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
32
31
|
ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
33
32
|
onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
@@ -59,7 +58,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
59
58
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
60
59
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
61
60
|
class: string | null;
|
|
62
|
-
cursor: import("../types
|
|
61
|
+
cursor: import("../types").ConstantAccessor<import("csstype").Property.Cursor, import("../types/data").DataRecord>;
|
|
63
62
|
}> & import("../types/mark").LinkableMarkProps<import("../types/data").DataRecord> & {
|
|
64
63
|
data: import("../types/data").DataRecord[];
|
|
65
64
|
x1?: ChannelAccessor<import("../types/data").DataRecord>;
|
|
@@ -72,7 +71,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
72
71
|
sort?: import("../types/index.js").ConstantAccessor<import("../types/data").RawValue> | {
|
|
73
72
|
channel: "stroke" | "fill";
|
|
74
73
|
};
|
|
75
|
-
stack?: Partial<
|
|
74
|
+
stack?: Partial<import("../transforms/stack.js").StackOptions>;
|
|
76
75
|
canvas?: boolean;
|
|
77
76
|
}, "x1" | "x2"> & {
|
|
78
77
|
x?: ChannelAccessor<Datum>;
|
|
@@ -2,32 +2,32 @@ import type { DataRecord, ConstantAccessor, ChannelAccessor, RawValue } from '..
|
|
|
2
2
|
import { type SweepOption } from '../helpers/arrowPath.js';
|
|
3
3
|
declare class __sveltets_Render<Datum extends DataRecord> {
|
|
4
4
|
props(): Omit<Partial<{
|
|
5
|
-
filter?: ConstantAccessor<boolean, Datum>;
|
|
5
|
+
filter?: import("../types.js").ConstantAccessor<boolean, Datum>;
|
|
6
6
|
facet?: "auto" | "include" | "exclude";
|
|
7
|
-
fx: ChannelAccessor<Datum>;
|
|
8
|
-
fy: ChannelAccessor<Datum>;
|
|
9
|
-
dx: ConstantAccessor<number, Datum>;
|
|
10
|
-
dy: ConstantAccessor<number, Datum>;
|
|
11
|
-
fill: ChannelAccessor<Datum>;
|
|
12
|
-
fillOpacity: ConstantAccessor<number, Datum>;
|
|
7
|
+
fx: import("../types.js").ChannelAccessor<Datum>;
|
|
8
|
+
fy: import("../types.js").ChannelAccessor<Datum>;
|
|
9
|
+
dx: import("../types.js").ConstantAccessor<number, Datum>;
|
|
10
|
+
dy: import("../types.js").ConstantAccessor<number, Datum>;
|
|
11
|
+
fill: import("../types.js").ChannelAccessor<Datum>;
|
|
12
|
+
fillOpacity: import("../types.js").ConstantAccessor<number, Datum>;
|
|
13
13
|
sort: {
|
|
14
14
|
channel: string;
|
|
15
15
|
order?: "ascending" | "descending";
|
|
16
|
-
} | ((a: RawValue, b: RawValue) => number) | ConstantAccessor<RawValue, Datum>;
|
|
17
|
-
stroke: ChannelAccessor<Datum>;
|
|
18
|
-
strokeWidth: ConstantAccessor<number, Datum>;
|
|
19
|
-
strokeOpacity: ConstantAccessor<number, Datum>;
|
|
20
|
-
strokeLinejoin: ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
|
|
21
|
-
strokeLinecap: ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
|
|
22
|
-
strokeMiterlimit: ConstantAccessor<number, Datum>;
|
|
23
|
-
opacity: ChannelAccessor<Datum>;
|
|
24
|
-
strokeDasharray: ConstantAccessor<string, Datum>;
|
|
25
|
-
strokeDashoffset: ConstantAccessor<number, Datum>;
|
|
26
|
-
mixBlendMode: ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
|
|
16
|
+
} | ((a: import("../types.js").RawValue, b: import("../types.js").RawValue) => number) | import("../types.js").ConstantAccessor<import("../types.js").RawValue, Datum>;
|
|
17
|
+
stroke: import("../types.js").ChannelAccessor<Datum>;
|
|
18
|
+
strokeWidth: import("../types.js").ConstantAccessor<number, Datum>;
|
|
19
|
+
strokeOpacity: import("../types.js").ConstantAccessor<number, Datum>;
|
|
20
|
+
strokeLinejoin: import("../types.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
|
|
21
|
+
strokeLinecap: import("../types.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
|
|
22
|
+
strokeMiterlimit: import("../types.js").ConstantAccessor<number, Datum>;
|
|
23
|
+
opacity: import("../types.js").ChannelAccessor<Datum>;
|
|
24
|
+
strokeDasharray: import("../types.js").ConstantAccessor<string, Datum>;
|
|
25
|
+
strokeDashoffset: import("../types.js").ConstantAccessor<number, Datum>;
|
|
26
|
+
mixBlendMode: import("../types.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
|
|
27
27
|
clipPath: string;
|
|
28
|
-
imageFilter: ConstantAccessor<string, Datum>;
|
|
29
|
-
shapeRendering: ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
30
|
-
paintOrder: ConstantAccessor<string, Datum>;
|
|
28
|
+
imageFilter: import("../types.js").ConstantAccessor<string, Datum>;
|
|
29
|
+
shapeRendering: import("../types.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
30
|
+
paintOrder: import("../types.js").ConstantAccessor<string, Datum>;
|
|
31
31
|
onclick?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
32
32
|
ondblclick?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
33
33
|
onmouseup?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
@@ -59,7 +59,7 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
59
59
|
oncontextmenu?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
60
60
|
onwheel?: import("svelte/elements.js").MouseEventHandler<SVGPathElement>;
|
|
61
61
|
class: string | null;
|
|
62
|
-
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
62
|
+
cursor: import("../types.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
63
63
|
}>, "fill" | "fillOpacity"> & {
|
|
64
64
|
data: Datum[];
|
|
65
65
|
sort?: ConstantAccessor<RawValue> | {
|