svelteplot 0.3.5 → 0.3.6-pr-124.1
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 +2 -0
- package/dist/helpers/arrowPath.js +3 -3
- 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 +3 -6
- 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 +23 -24
- package/dist/marks/AreaX.svelte.d.ts +24 -23
- package/dist/marks/AreaY.svelte.d.ts +24 -23
- package/dist/marks/Arrow.svelte.d.ts +22 -22
- package/dist/marks/AxisX.svelte +20 -16
- package/dist/marks/AxisX.svelte.d.ts +25 -24
- package/dist/marks/AxisY.svelte +33 -14
- package/dist/marks/AxisY.svelte.d.ts +26 -24
- package/dist/marks/BarX.svelte +1 -1
- package/dist/marks/BarX.svelte.d.ts +22 -22
- package/dist/marks/BarY.svelte +1 -1
- package/dist/marks/BarY.svelte.d.ts +22 -22
- package/dist/marks/BollingerX.svelte +1 -1
- package/dist/marks/BollingerX.svelte.d.ts +2 -73
- package/dist/marks/BollingerY.svelte +1 -1
- package/dist/marks/BollingerY.svelte.d.ts +2 -73
- package/dist/marks/BoxX.svelte +1 -1
- package/dist/marks/BoxY.svelte +1 -1
- package/dist/marks/BoxY.svelte.d.ts +6 -65
- package/dist/marks/Cell.svelte +1 -1
- package/dist/marks/Cell.svelte.d.ts +22 -22
- package/dist/marks/CellX.svelte +1 -1
- package/dist/marks/CellY.svelte +1 -1
- package/dist/marks/ColorLegend.svelte +4 -2
- package/dist/marks/CustomMark.svelte.d.ts +2 -71
- package/dist/marks/DifferenceY.svelte +1 -1
- package/dist/marks/DifferenceY.svelte.d.ts +7 -66
- package/dist/marks/Dot.svelte +1 -1
- package/dist/marks/Dot.svelte.d.ts +22 -22
- package/dist/marks/DotX.svelte +1 -1
- package/dist/marks/DotX.svelte.d.ts +23 -23
- package/dist/marks/DotY.svelte +1 -1
- 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 +2 -2
- package/dist/marks/LineX.svelte.d.ts +4 -3
- package/dist/marks/LineY.svelte +2 -2
- package/dist/marks/LineY.svelte.d.ts +4 -3
- package/dist/marks/Link.svelte.d.ts +22 -22
- package/dist/marks/Rect.svelte +1 -1
- package/dist/marks/Rect.svelte.d.ts +22 -22
- package/dist/marks/RectX.svelte +2 -2
- package/dist/marks/RectX.svelte.d.ts +1 -1
- package/dist/marks/RectY.svelte +2 -2
- 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 +1 -1
- package/dist/marks/Text.svelte.d.ts +23 -23
- package/dist/marks/TickX.svelte +1 -1
- package/dist/marks/TickX.svelte.d.ts +22 -22
- package/dist/marks/TickY.svelte +1 -1
- package/dist/marks/TickY.svelte.d.ts +22 -22
- package/dist/marks/Vector.svelte +1 -1
- 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 +4 -2
- package/dist/marks/helpers/BaseAxisY.svelte +6 -6
- package/dist/marks/helpers/BaseAxisY.svelte.d.ts +2 -0
- package/dist/marks/helpers/CanvasLayer.svelte +1 -1
- package/dist/marks/helpers/DotCanvas.svelte +1 -1
- package/dist/marks/helpers/LineCanvas.svelte +1 -1
- package/dist/marks/helpers/LinearGradientX.svelte +1 -1
- package/dist/marks/helpers/LinearGradientX.svelte.d.ts +1 -1
- package/dist/marks/helpers/LinearGradientY.svelte +1 -1
- package/dist/marks/helpers/LinearGradientY.svelte.d.ts +1 -1
- package/dist/marks/helpers/MultilineText.svelte +1 -1
- package/dist/marks/helpers/MultilineText.svelte.d.ts +1 -1
- package/dist/marks/helpers/RectPath.svelte +2 -2
- package/dist/marks/helpers/RectPath.svelte.d.ts +1 -1
- package/dist/marks/helpers/Regression.svelte +2 -2
- package/dist/marks/helpers/events.d.ts +1 -1
- package/dist/transforms/bin.d.ts +2 -2
- package/dist/transforms/bollinger.d.ts +2 -67
- package/dist/transforms/bollinger.js +3 -3
- package/dist/transforms/centroid.d.ts +1 -1
- package/dist/transforms/filter.d.ts +1 -1
- package/dist/transforms/group.d.ts +5 -13
- package/dist/transforms/interval.d.ts +3 -123
- 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 +8 -428
- package/dist/transforms/shift.d.ts +1 -1
- package/dist/transforms/sort.d.ts +4 -243
- package/dist/transforms/stack.d.ts +1 -1
- package/dist/transforms/window.d.ts +3 -131
- 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/package.json +126 -124
- package/dist/types.d.ts +0 -834
- package/dist/types.js +0 -1
package/dist/Mark.svelte.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { type Snippet } from 'svelte';
|
|
2
|
-
import type { ScaledChannelName, MarkType, DataRecord, ScaleName, RawValue, ScaledDataRecord, ScaleType } from './types/index.js';
|
|
2
|
+
import type { ScaledChannelName, MarkType, DataRecord, ChannelAccessor, 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.js").ConstantAccessor<boolean, Datum>;
|
|
6
|
+
filter?: import("./types/index.js").ConstantAccessor<boolean, Datum>;
|
|
7
7
|
facet?: "auto" | "include" | "exclude";
|
|
8
|
-
fx:
|
|
9
|
-
fy:
|
|
10
|
-
dx: import("./types.js").ConstantAccessor<number, Datum>;
|
|
11
|
-
dy: import("./types.js").ConstantAccessor<number, Datum>;
|
|
12
|
-
fill:
|
|
13
|
-
fillOpacity: import("./types.js").ConstantAccessor<number, Datum>;
|
|
8
|
+
fx: ChannelAccessor<Datum>;
|
|
9
|
+
fy: ChannelAccessor<Datum>;
|
|
10
|
+
dx: import("./types/index.js").ConstantAccessor<number, Datum>;
|
|
11
|
+
dy: import("./types/index.js").ConstantAccessor<number, Datum>;
|
|
12
|
+
fill: ChannelAccessor<Datum>;
|
|
13
|
+
fillOpacity: import("./types/index.js").ConstantAccessor<number, Datum>;
|
|
14
14
|
sort: {
|
|
15
15
|
channel: string;
|
|
16
16
|
order?: "ascending" | "descending";
|
|
17
|
-
} | ((a:
|
|
18
|
-
stroke:
|
|
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:
|
|
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>;
|
|
17
|
+
} | ((a: RawValue, b: RawValue) => number) | import("./types/index.js").ConstantAccessor<RawValue, Datum>;
|
|
18
|
+
stroke: ChannelAccessor<Datum>;
|
|
19
|
+
strokeWidth: import("./types/index.js").ConstantAccessor<number, Datum>;
|
|
20
|
+
strokeOpacity: import("./types/index.js").ConstantAccessor<number, Datum>;
|
|
21
|
+
strokeLinejoin: import("./types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, Datum>;
|
|
22
|
+
strokeLinecap: import("./types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, Datum>;
|
|
23
|
+
strokeMiterlimit: import("./types/index.js").ConstantAccessor<number, Datum>;
|
|
24
|
+
opacity: ChannelAccessor<Datum>;
|
|
25
|
+
strokeDasharray: import("./types/index.js").ConstantAccessor<string, Datum>;
|
|
26
|
+
strokeDashoffset: import("./types/index.js").ConstantAccessor<number, Datum>;
|
|
27
|
+
mixBlendMode: import("./types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, Datum>;
|
|
28
28
|
clipPath: string;
|
|
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>;
|
|
29
|
+
imageFilter: import("./types/index.js").ConstantAccessor<string, Datum>;
|
|
30
|
+
shapeRendering: import("./types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
31
|
+
paintOrder: import("./types/index.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.js").ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
63
|
+
cursor: import("./types/index.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 {
|
|
15
|
+
import type { 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.js';
|
|
1
|
+
import type { ScaleName, ScaleType, ScaledChannelName } from './types/index.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,6 +36,7 @@
|
|
|
36
36
|
scaleType="band"
|
|
37
37
|
ticks={fxValues}
|
|
38
38
|
tickFormat={(d) => d}
|
|
39
|
+
tickFontSize={11}
|
|
39
40
|
tickSize={0}
|
|
40
41
|
tickPadding={5}
|
|
41
42
|
anchor={plot.options.fx.axis}
|
|
@@ -53,6 +54,7 @@
|
|
|
53
54
|
scaleType="band"
|
|
54
55
|
ticks={fyValues}
|
|
55
56
|
tickFormat={(d) => d}
|
|
57
|
+
tickFontSize={11}
|
|
56
58
|
tickSize={0}
|
|
57
59
|
tickPadding={5}
|
|
58
60
|
anchor={plot.options.fy.axis}
|
|
@@ -53,16 +53,16 @@ export function arrowPath(x1, y1, x2, y2, insetStart, insetEnd, headAngle, headL
|
|
|
53
53
|
if (insetEnd) {
|
|
54
54
|
const [x, y] = circleCircleIntersect([cx, cy, r], [x2, y2, insetEnd], sign * Math.sign(insetEnd));
|
|
55
55
|
lineAngle += Math.atan2(y - cy, x - cx) - Math.atan2(y2 - cy, x2 - cx);
|
|
56
|
-
(x2 = x), (y2 = y);
|
|
56
|
+
((x2 = x), (y2 = y));
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
else {
|
|
60
60
|
// For inset straight arrows, offset along the straight line.
|
|
61
61
|
const dx = x2 - x1, dy = y2 - y1, d = Math.hypot(dx, dy);
|
|
62
62
|
if (insetStart)
|
|
63
|
-
(x1 += (dx / d) * insetStart), (y1 += (dy / d) * insetStart);
|
|
63
|
+
((x1 += (dx / d) * insetStart), (y1 += (dy / d) * insetStart));
|
|
64
64
|
if (insetEnd)
|
|
65
|
-
(x2 -= (dx / d) * insetEnd), (y2 -= (dy / d) * insetEnd);
|
|
65
|
+
((x2 -= (dx / d) * insetEnd), (y2 -= (dy / d) * insetEnd));
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
// The angle of the arrow as it approaches the endpoint, and the
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ColorScaleOptions, PlotDefaults, PlotOptions, RawValue, ScaleName, ScaleOptions, ScaleType } from '../types.js';
|
|
1
|
+
import type { ColorScaleOptions, PlotDefaults, PlotOptions, RawValue, ScaleName, ScaleOptions, ScaleType } from '../types/index.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.js';
|
|
1
|
+
import type { RawValue, ScaleType } from '../types/index.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 { PlotScale } from '../types/index.js';
|
|
2
|
+
export default function autoTimeFormat(x: PlotScale, 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.js';
|
|
2
|
+
import type { ColorScheme } from '../types/index.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): 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/curves.d.ts
CHANGED
package/dist/helpers/facets.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GenericMarkOptions, Mark, RawValue } from '../types.js';
|
|
1
|
+
import type { GenericMarkOptions, Mark, RawValue } from '../types/index.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.js';
|
|
2
|
-
import type { DataRow } from '../types.js';
|
|
1
|
+
import type { Channels } from '../types/index.js';
|
|
2
|
+
import type { DataRow } from '../types/index.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.js';
|
|
1
|
+
import type { Channels, DataRecord } 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.
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import type { ChannelAccessor, ChannelName, DataRecord, RawValue } from '../types.js';
|
|
1
|
+
import type { ChannelAccessor, ChannelName, 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: DataRecord, options: Record<ChannelName, ChannelAccessor>):
|
|
8
|
-
value: import("../types.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(datum: DataRecord, options: Record<ChannelName, ChannelAccessor>): 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;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { DataRecord } from '../types.js';
|
|
1
|
+
import type { DataRecord } from '../types/index.js';
|
|
2
2
|
export default function (value: any): value is DataRecord;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { RawValue } from '../types.js';
|
|
1
|
+
import type { RawValue } from '../types/index.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.js';
|
|
1
|
+
import type { ChannelName, Channels, DataRecord, DataRow, RawValue } from '../types/index.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.js';
|
|
2
|
-
import type { ScaleName, ChannelName, ScaledChannelName, ChannelAccessor, DataRow, RawValue, DataRecord, ConstantAccessor } from '../types.js';
|
|
1
|
+
import type { MarkStyleProps, PlotState, ScaledDataRecord } from '../types/index.js';
|
|
2
|
+
import type { ScaleName, ChannelName, ScaledChannelName, ChannelAccessor, DataRow, RawValue, DataRecord, ConstantAccessor } from '../types/index.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.js';
|
|
1
|
+
import type { ChannelAccessor, GenericMarkOptions, Mark, MarkType, PlotDefaults, PlotOptions, PlotScales, PlotState, RawValue, ScaleName, ScaleOptions, ScaleType, ScaledChannelName, UsedScales } from '../types/index.js';
|
|
2
2
|
/**
|
|
3
3
|
* compute the plot scales
|
|
4
4
|
*/
|
|
@@ -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>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { RawValue } from '../types.js';
|
|
2
|
-
export declare function isBooleanOrNull(v: RawValue):
|
|
1
|
+
import type { RawValue } from '../types/index.js';
|
|
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;
|
package/dist/marks/Area.svelte
CHANGED
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
ChannelAccessor,
|
|
38
38
|
ScaledDataRecord,
|
|
39
39
|
LinkableMarkProps,
|
|
40
|
-
PlotDefaults
|
|
40
|
+
PlotDefaults,
|
|
41
|
+
RawValue
|
|
41
42
|
} 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,35 +1,34 @@
|
|
|
1
1
|
import { type CurveFactory } from 'd3-shape';
|
|
2
|
-
import type { CurveName, DataRecord, ConstantAccessor, ChannelAccessor, LinkableMarkProps } from '../types/index.js';
|
|
3
|
-
import type { RawValue } from '../types/index.js';
|
|
2
|
+
import type { CurveName, DataRecord, ConstantAccessor, ChannelAccessor, LinkableMarkProps, RawValue } from '../types/index.js';
|
|
4
3
|
import type { StackOptions } from '../transforms/stack.js';
|
|
5
4
|
declare class __sveltets_Render<Datum extends DataRecord> {
|
|
6
5
|
props(): Partial<{
|
|
7
|
-
filter?:
|
|
6
|
+
filter?: ConstantAccessor<boolean, Datum>;
|
|
8
7
|
facet?: "auto" | "include" | "exclude";
|
|
9
|
-
fx:
|
|
10
|
-
fy:
|
|
11
|
-
dx:
|
|
12
|
-
dy:
|
|
13
|
-
fill:
|
|
14
|
-
fillOpacity:
|
|
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>;
|
|
15
14
|
sort: {
|
|
16
15
|
channel: string;
|
|
17
16
|
order?: "ascending" | "descending";
|
|
18
|
-
} | ((a:
|
|
19
|
-
stroke:
|
|
20
|
-
strokeWidth:
|
|
21
|
-
strokeOpacity:
|
|
22
|
-
strokeLinejoin:
|
|
23
|
-
strokeLinecap:
|
|
24
|
-
strokeMiterlimit:
|
|
25
|
-
opacity:
|
|
26
|
-
strokeDasharray:
|
|
27
|
-
strokeDashoffset:
|
|
28
|
-
mixBlendMode:
|
|
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>;
|
|
29
28
|
clipPath: string;
|
|
30
|
-
imageFilter:
|
|
31
|
-
shapeRendering:
|
|
32
|
-
paintOrder:
|
|
29
|
+
imageFilter: ConstantAccessor<string, Datum>;
|
|
30
|
+
shapeRendering: ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
31
|
+
paintOrder: ConstantAccessor<string, Datum>;
|
|
33
32
|
onclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
34
33
|
ondblclick?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
35
34
|
onmouseup?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
@@ -61,7 +60,7 @@ declare class __sveltets_Render<Datum extends DataRecord> {
|
|
|
61
60
|
oncontextmenu?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
62
61
|
onwheel?: import("svelte/elements").MouseEventHandler<SVGPathElement>;
|
|
63
62
|
class: string | null;
|
|
64
|
-
cursor:
|
|
63
|
+
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
65
64
|
}> & LinkableMarkProps<Datum> & {
|
|
66
65
|
data: Datum[];
|
|
67
66
|
x1?: 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").ConstantAccessor<boolean, import("../types/data").DataRecord>;
|
|
5
|
+
filter?: import("../types/index.js").ConstantAccessor<boolean, import("../types/data").DataRecord>;
|
|
5
6
|
facet?: "auto" | "include" | "exclude";
|
|
6
|
-
fx:
|
|
7
|
-
fy:
|
|
8
|
-
dx: import("../types").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
9
|
-
dy: import("../types").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
10
|
-
fill:
|
|
11
|
-
fillOpacity: import("../types").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
7
|
+
fx: ChannelAccessor<import("../types/data").DataRecord>;
|
|
8
|
+
fy: ChannelAccessor<import("../types/data").DataRecord>;
|
|
9
|
+
dx: import("../types/index.js").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
10
|
+
dy: import("../types/index.js").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
11
|
+
fill: ChannelAccessor<import("../types/data").DataRecord>;
|
|
12
|
+
fillOpacity: import("../types/index.js").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
12
13
|
sort: {
|
|
13
14
|
channel: string;
|
|
14
15
|
order?: "ascending" | "descending";
|
|
15
|
-
} | ((a: import("../types").RawValue, b: import("../types").RawValue) => number) | import("../types").ConstantAccessor<import("../types").RawValue, import("../types/data").DataRecord>;
|
|
16
|
-
stroke:
|
|
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:
|
|
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>;
|
|
16
|
+
} | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, import("../types/data").DataRecord>;
|
|
17
|
+
stroke: ChannelAccessor<import("../types/data").DataRecord>;
|
|
18
|
+
strokeWidth: import("../types/index.js").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
19
|
+
strokeOpacity: import("../types/index.js").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
20
|
+
strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, import("../types/data").DataRecord>;
|
|
21
|
+
strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, import("../types/data").DataRecord>;
|
|
22
|
+
strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
23
|
+
opacity: ChannelAccessor<import("../types/data").DataRecord>;
|
|
24
|
+
strokeDasharray: import("../types/index.js").ConstantAccessor<string, import("../types/data").DataRecord>;
|
|
25
|
+
strokeDashoffset: import("../types/index.js").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
26
|
+
mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, import("../types/data").DataRecord>;
|
|
26
27
|
clipPath: string;
|
|
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>;
|
|
28
|
+
imageFilter: import("../types/index.js").ConstantAccessor<string, import("../types/data").DataRecord>;
|
|
29
|
+
shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, import("../types/data").DataRecord>;
|
|
30
|
+
paintOrder: import("../types/index.js").ConstantAccessor<string, import("../types/data").DataRecord>;
|
|
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,7 +59,7 @@ 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").ConstantAccessor<import("csstype").Property.Cursor, import("../types/data").DataRecord>;
|
|
62
|
+
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, import("../types/data").DataRecord>;
|
|
62
63
|
}> & import("../types/mark").LinkableMarkProps<import("../types/data").DataRecord> & {
|
|
63
64
|
data: import("../types/data").DataRecord[];
|
|
64
65
|
x1?: ChannelAccessor<import("../types/data").DataRecord>;
|
|
@@ -71,7 +72,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
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").ConstantAccessor<boolean, import("../types/data").DataRecord>;
|
|
5
|
+
filter?: import("../types/index.js").ConstantAccessor<boolean, import("../types/data").DataRecord>;
|
|
5
6
|
facet?: "auto" | "include" | "exclude";
|
|
6
|
-
fx:
|
|
7
|
-
fy:
|
|
8
|
-
dx: import("../types").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
9
|
-
dy: import("../types").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
10
|
-
fill:
|
|
11
|
-
fillOpacity: import("../types").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
7
|
+
fx: ChannelAccessor<import("../types/data").DataRecord>;
|
|
8
|
+
fy: ChannelAccessor<import("../types/data").DataRecord>;
|
|
9
|
+
dx: import("../types/index.js").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
10
|
+
dy: import("../types/index.js").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
11
|
+
fill: ChannelAccessor<import("../types/data").DataRecord>;
|
|
12
|
+
fillOpacity: import("../types/index.js").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
12
13
|
sort: {
|
|
13
14
|
channel: string;
|
|
14
15
|
order?: "ascending" | "descending";
|
|
15
|
-
} | ((a: import("../types").RawValue, b: import("../types").RawValue) => number) | import("../types").ConstantAccessor<import("../types").RawValue, import("../types/data").DataRecord>;
|
|
16
|
-
stroke:
|
|
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:
|
|
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>;
|
|
16
|
+
} | ((a: import("../types/data").RawValue, b: import("../types/data").RawValue) => number) | import("../types/index.js").ConstantAccessor<import("../types/data").RawValue, import("../types/data").DataRecord>;
|
|
17
|
+
stroke: ChannelAccessor<import("../types/data").DataRecord>;
|
|
18
|
+
strokeWidth: import("../types/index.js").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
19
|
+
strokeOpacity: import("../types/index.js").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
20
|
+
strokeLinejoin: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinejoin, import("../types/data").DataRecord>;
|
|
21
|
+
strokeLinecap: import("../types/index.js").ConstantAccessor<import("csstype").Property.StrokeLinecap, import("../types/data").DataRecord>;
|
|
22
|
+
strokeMiterlimit: import("../types/index.js").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
23
|
+
opacity: ChannelAccessor<import("../types/data").DataRecord>;
|
|
24
|
+
strokeDasharray: import("../types/index.js").ConstantAccessor<string, import("../types/data").DataRecord>;
|
|
25
|
+
strokeDashoffset: import("../types/index.js").ConstantAccessor<number, import("../types/data").DataRecord>;
|
|
26
|
+
mixBlendMode: import("../types/index.js").ConstantAccessor<import("csstype").Property.MixBlendMode, import("../types/data").DataRecord>;
|
|
26
27
|
clipPath: string;
|
|
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>;
|
|
28
|
+
imageFilter: import("../types/index.js").ConstantAccessor<string, import("../types/data").DataRecord>;
|
|
29
|
+
shapeRendering: import("../types/index.js").ConstantAccessor<import("csstype").Property.ShapeRendering, import("../types/data").DataRecord>;
|
|
30
|
+
paintOrder: import("../types/index.js").ConstantAccessor<string, import("../types/data").DataRecord>;
|
|
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,7 +59,7 @@ 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").ConstantAccessor<import("csstype").Property.Cursor, import("../types/data").DataRecord>;
|
|
62
|
+
cursor: import("../types/index.js").ConstantAccessor<import("csstype").Property.Cursor, import("../types/data").DataRecord>;
|
|
62
63
|
}> & import("../types/mark").LinkableMarkProps<import("../types/data").DataRecord> & {
|
|
63
64
|
data: import("../types/data").DataRecord[];
|
|
64
65
|
x1?: ChannelAccessor<import("../types/data").DataRecord>;
|
|
@@ -71,7 +72,7 @@ declare class __sveltets_Render<Datum extends DataRow> {
|
|
|
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>;
|
|
@@ -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?:
|
|
5
|
+
filter?: ConstantAccessor<boolean, Datum>;
|
|
6
6
|
facet?: "auto" | "include" | "exclude";
|
|
7
|
-
fx:
|
|
8
|
-
fy:
|
|
9
|
-
dx:
|
|
10
|
-
dy:
|
|
11
|
-
fill:
|
|
12
|
-
fillOpacity:
|
|
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>;
|
|
13
13
|
sort: {
|
|
14
14
|
channel: string;
|
|
15
15
|
order?: "ascending" | "descending";
|
|
16
|
-
} | ((a:
|
|
17
|
-
stroke:
|
|
18
|
-
strokeWidth:
|
|
19
|
-
strokeOpacity:
|
|
20
|
-
strokeLinejoin:
|
|
21
|
-
strokeLinecap:
|
|
22
|
-
strokeMiterlimit:
|
|
23
|
-
opacity:
|
|
24
|
-
strokeDasharray:
|
|
25
|
-
strokeDashoffset:
|
|
26
|
-
mixBlendMode:
|
|
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>;
|
|
27
27
|
clipPath: string;
|
|
28
|
-
imageFilter:
|
|
29
|
-
shapeRendering:
|
|
30
|
-
paintOrder:
|
|
28
|
+
imageFilter: ConstantAccessor<string, Datum>;
|
|
29
|
+
shapeRendering: ConstantAccessor<import("csstype").Property.ShapeRendering, Datum>;
|
|
30
|
+
paintOrder: 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:
|
|
62
|
+
cursor: ConstantAccessor<import("csstype").Property.Cursor, Datum>;
|
|
63
63
|
}>, "fill" | "fillOpacity"> & {
|
|
64
64
|
data: Datum[];
|
|
65
65
|
sort?: ConstantAccessor<RawValue> | {
|