layerchart 0.41.5 → 0.42.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/components/Arc.svelte.d.ts +8 -8
- package/dist/components/Area.svelte.d.ts +5 -15
- package/dist/components/AreaStack.svelte.d.ts +2 -2
- package/dist/components/Axis.svelte.d.ts +8 -8
- package/dist/components/Bar.svelte.d.ts +9 -9
- package/dist/components/Bars.svelte.d.ts +8 -8
- package/dist/components/Blur.svelte.d.ts +2 -2
- package/dist/components/Bounds.svelte.d.ts +2 -2
- package/dist/components/Brush.svelte.d.ts +16 -16
- package/dist/components/Calendar.svelte.d.ts +3 -5
- package/dist/components/Chart.svelte +1 -1
- package/dist/components/Chart.svelte.d.ts +7 -7
- package/dist/components/ChartClipPath.svelte.d.ts +1 -1
- package/dist/components/Circle.svelte.d.ts +6 -6
- package/dist/components/CircleClipPath.svelte.d.ts +3 -3
- package/dist/components/ClipPath.svelte.d.ts +2 -2
- package/dist/components/ColorRamp.svelte.d.ts +3 -3
- package/dist/components/ForceSimulation.svelte +180 -24
- package/dist/components/ForceSimulation.svelte.d.ts +18 -7
- package/dist/components/Frame.svelte.d.ts +1 -1
- package/dist/components/GeoCircle.svelte.d.ts +5 -4
- package/dist/components/GeoContext.svelte.d.ts +2 -2
- package/dist/components/GeoPath.svelte.d.ts +4 -4
- package/dist/components/GeoPoint.svelte.d.ts +2 -2
- package/dist/components/GeoSpline.svelte.d.ts +1 -1
- package/dist/components/GeoTile.svelte.d.ts +4 -4
- package/dist/components/Graticule.svelte.d.ts +1 -1
- package/dist/components/Group.svelte.d.ts +2 -2
- package/dist/components/Highlight.svelte.d.ts +22 -72
- package/dist/components/HitCanvas.svelte.d.ts +2 -2
- package/dist/components/Hull.svelte.d.ts +4 -4
- package/dist/components/Labels.svelte.d.ts +5 -5
- package/dist/components/Legend.svelte.d.ts +12 -12
- package/dist/components/Line.svelte.d.ts +4 -4
- package/dist/components/LinearGradient.svelte.d.ts +8 -8
- package/dist/components/Link.svelte.d.ts +7 -7
- package/dist/components/MotionPath.svelte.d.ts +5 -5
- package/dist/components/Partition.svelte.d.ts +1 -1
- package/dist/components/Pie.svelte.d.ts +5 -5
- package/dist/components/Points.svelte.d.ts +5 -14
- package/dist/components/RadialGradient.svelte.d.ts +10 -10
- package/dist/components/Rect.svelte.d.ts +6 -6
- package/dist/components/RectClipPath.svelte.d.ts +5 -5
- package/dist/components/Rule.svelte.d.ts +2 -2
- package/dist/components/Sankey.svelte.d.ts +6 -6
- package/dist/components/Spline.svelte.d.ts +2 -2
- package/dist/components/Text.svelte.d.ts +12 -12
- package/dist/components/Threshold.svelte.d.ts +7 -3
- package/dist/components/TileImage.svelte.d.ts +2 -2
- package/dist/components/Tooltip.svelte.d.ts +13 -13
- package/dist/components/TooltipContext.svelte.d.ts +7 -7
- package/dist/components/TooltipItem.svelte.d.ts +5 -5
- package/dist/components/TransformContext.svelte.d.ts +24 -24
- package/dist/components/TransformControls.svelte.d.ts +3 -3
- package/dist/components/Tree.svelte.d.ts +2 -2
- package/dist/components/Treemap.svelte.d.ts +6 -6
- package/dist/components/Voronoi.svelte.d.ts +7 -7
- package/dist/components/layout/Canvas.svelte.d.ts +3 -3
- package/dist/docs/Code.svelte.d.ts +7 -7
- package/dist/docs/CurveMenuField.svelte.d.ts +1 -1
- package/dist/docs/Json.svelte.d.ts +1 -1
- package/dist/docs/PathDataMenuField.svelte.d.ts +3 -3
- package/dist/docs/Preview.svelte.d.ts +3 -3
- package/dist/docs/TilesetField.svelte.d.ts +2 -2
- package/dist/stores/motionStore.d.ts +0 -1
- package/dist/utils/rect.d.ts +0 -1
- package/dist/utils/scales.d.ts +0 -1
- package/package.json +13 -13
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import GeoPath from './GeoPath.svelte';
|
|
2
3
|
declare const __propDef: {
|
|
3
4
|
props: {
|
|
4
5
|
[x: string]: any;
|
|
5
|
-
radius?: number
|
|
6
|
-
center?: [number, number]
|
|
7
|
-
precision?: number
|
|
6
|
+
radius?: number;
|
|
7
|
+
center?: [number, number];
|
|
8
|
+
precision?: number;
|
|
8
9
|
};
|
|
9
10
|
events: {
|
|
10
11
|
pointermove: PointerEvent;
|
|
11
12
|
pointerleave: PointerEvent;
|
|
12
13
|
click: CustomEvent<{
|
|
13
|
-
geoPath:
|
|
14
|
+
geoPath: GeoPath;
|
|
14
15
|
event: MouseEvent;
|
|
15
16
|
}>;
|
|
16
17
|
} & {
|
|
@@ -22,10 +22,10 @@ declare const __propDef: {
|
|
|
22
22
|
scale?: number | undefined;
|
|
23
23
|
translate?: [number, number] | undefined;
|
|
24
24
|
center?: [number, number] | undefined;
|
|
25
|
-
/** Apply TransformContext to the selected properties. Typically `translate` or `rotate` are mutually selected */ applyTransform?: ("
|
|
25
|
+
/** Apply TransformContext to the selected properties. Typically `translate` or `rotate` are mutually selected */ applyTransform?: ("scale" | "translate" | "rotate")[];
|
|
26
26
|
reflectX?: boolean | undefined;
|
|
27
27
|
reflectY?: boolean | undefined;
|
|
28
|
-
/** Exposed to allow binding in Chart */ geo?: Writable<GeoProjection | GeoIdentityTransform
|
|
28
|
+
/** Exposed to allow binding in Chart */ geo?: Writable<GeoProjection | GeoIdentityTransform>;
|
|
29
29
|
};
|
|
30
30
|
events: {
|
|
31
31
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import { type GeoIdentityTransform, type
|
|
2
|
+
import { type GeoIdentityTransform, type GeoPermissibleObjects, type GeoProjection, type GeoTransformPrototype } from 'd3-geo';
|
|
3
3
|
import type { TooltipContextValue } from './TooltipContext.svelte';
|
|
4
4
|
import { type CurveFactory, type CurveFactoryLineOnly } from 'd3-shape';
|
|
5
5
|
declare const __propDef: {
|
|
6
6
|
props: {
|
|
7
7
|
[x: string]: any;
|
|
8
|
-
geojson?: GeoPermissibleObjects
|
|
9
|
-
render?: ((ctx: CanvasRenderingContext2D, { geoPath: GeoPath }) => any) | undefined;
|
|
8
|
+
geojson?: GeoPermissibleObjects;
|
|
9
|
+
render?: ((ctx: CanvasRenderingContext2D, { geoPath: GeoPath }: any) => any) | undefined;
|
|
10
10
|
fill?: string | undefined;
|
|
11
11
|
stroke?: string | undefined;
|
|
12
12
|
strokeWidth?: number | string | undefined;
|
|
13
13
|
tooltip?: TooltipContextValue | undefined;
|
|
14
|
-
curve?: CurveFactory | CurveFactoryLineOnly
|
|
14
|
+
curve?: CurveFactory | CurveFactoryLineOnly;
|
|
15
15
|
class?: string | undefined;
|
|
16
16
|
geoTransform?: ((projection: GeoProjection | GeoIdentityTransform) => GeoTransformPrototype) | undefined;
|
|
17
17
|
};
|
|
@@ -4,10 +4,10 @@ declare const __propDef: {
|
|
|
4
4
|
[x: string]: any;
|
|
5
5
|
lat: number;
|
|
6
6
|
long: number;
|
|
7
|
-
render?: (
|
|
7
|
+
render?: (ctx: CanvasRenderingContext2D, coords: {
|
|
8
8
|
x: number;
|
|
9
9
|
y: number;
|
|
10
|
-
}) => any
|
|
10
|
+
}) => any;
|
|
11
11
|
};
|
|
12
12
|
events: {
|
|
13
13
|
[evt: string]: CustomEvent<any>;
|
|
@@ -2,10 +2,10 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
4
|
url: (x: number, y: number, z: number) => string;
|
|
5
|
-
zoomDelta?: number
|
|
6
|
-
tileSize?: number
|
|
7
|
-
disableCache?: boolean
|
|
8
|
-
debug?: boolean
|
|
5
|
+
zoomDelta?: number;
|
|
6
|
+
tileSize?: number;
|
|
7
|
+
disableCache?: boolean;
|
|
8
|
+
debug?: boolean;
|
|
9
9
|
};
|
|
10
10
|
events: {
|
|
11
11
|
[evt: string]: CustomEvent<any>;
|
|
@@ -6,7 +6,7 @@ declare const __propDef: {
|
|
|
6
6
|
[x: string]: any;
|
|
7
7
|
lines?: Partial<ComponentProps<GeoPath>> | boolean | undefined;
|
|
8
8
|
outline?: Partial<ComponentProps<GeoPath>> | boolean | undefined;
|
|
9
|
-
step?: [number, number]
|
|
9
|
+
step?: [number, number];
|
|
10
10
|
};
|
|
11
11
|
events: {
|
|
12
12
|
[evt: string]: CustomEvent<any>;
|
|
@@ -7,8 +7,8 @@ declare const __propDef: {
|
|
|
7
7
|
initialX?: number | undefined;
|
|
8
8
|
y?: number | undefined;
|
|
9
9
|
initialY?: number | undefined;
|
|
10
|
-
center?: boolean | "x" | "y"
|
|
11
|
-
preventTouchMove?: boolean
|
|
10
|
+
center?: boolean | "x" | "y";
|
|
11
|
+
preventTouchMove?: boolean;
|
|
12
12
|
spring?: boolean | Parameters<typeof springStore>[1];
|
|
13
13
|
tweened?: boolean | Parameters<typeof tweenedStore>[1];
|
|
14
14
|
};
|
|
@@ -1,67 +1,17 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import { type ComponentProps } from 'svelte';
|
|
3
|
+
import Circle from './Circle.svelte';
|
|
4
|
+
import Line from './Line.svelte';
|
|
5
|
+
import Rect from './Rect.svelte';
|
|
2
6
|
declare const __propDef: {
|
|
3
7
|
props: {
|
|
4
8
|
/** Highlight specific data (annotate), espect uses tooltip data */ data?: any;
|
|
5
|
-
axis?:
|
|
6
|
-
/** Show points and pass props to Circles */ points?: boolean | Partial<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
initialCy?: number | undefined;
|
|
12
|
-
r?: number | undefined;
|
|
13
|
-
initialR?: number | undefined;
|
|
14
|
-
spring?: boolean | import("svelte/motion").SpringOpts | undefined;
|
|
15
|
-
tweened?: boolean | import("svelte/motion").TweenedOptions<unknown> | undefined;
|
|
16
|
-
}> | undefined;
|
|
17
|
-
/** Show lines and pass props to Lines */ lines?: boolean | Partial<{
|
|
18
|
-
[x: string]: any;
|
|
19
|
-
x1: number;
|
|
20
|
-
initialX1?: number | undefined;
|
|
21
|
-
y1: number;
|
|
22
|
-
initialY1?: number | undefined;
|
|
23
|
-
x2: number;
|
|
24
|
-
initialX2?: number | undefined;
|
|
25
|
-
y2: number;
|
|
26
|
-
initialY2?: number | undefined;
|
|
27
|
-
spring?: boolean | import("svelte/motion").SpringOpts | undefined;
|
|
28
|
-
tweened?: boolean | import("svelte/motion").TweenedOptions<unknown> | undefined;
|
|
29
|
-
}> | undefined;
|
|
30
|
-
/** Show area and pass props to Rect */ area?: boolean | Partial<{
|
|
31
|
-
[x: string]: any;
|
|
32
|
-
x?: number | undefined;
|
|
33
|
-
initialX?: number | undefined;
|
|
34
|
-
y?: number | undefined;
|
|
35
|
-
initialY?: number | undefined;
|
|
36
|
-
width: number;
|
|
37
|
-
initialWidth?: number | undefined;
|
|
38
|
-
height: number;
|
|
39
|
-
initialHeight?: number | undefined;
|
|
40
|
-
spring?: boolean | import("svelte/motion").SpringOpts | {
|
|
41
|
-
[prop: string]: import("svelte/motion").SpringOpts | undefined;
|
|
42
|
-
} | undefined;
|
|
43
|
-
tweened?: boolean | import("svelte/motion").TweenedOptions<unknown> | {
|
|
44
|
-
[prop: string]: import("svelte/motion").TweenedOptions<unknown> | undefined;
|
|
45
|
-
} | undefined;
|
|
46
|
-
}> | undefined;
|
|
47
|
-
/** Show bar and pass props to Rect */ bar?: boolean | Partial<{
|
|
48
|
-
[x: string]: any;
|
|
49
|
-
x?: number | undefined;
|
|
50
|
-
initialX?: number | undefined;
|
|
51
|
-
y?: number | undefined;
|
|
52
|
-
initialY?: number | undefined;
|
|
53
|
-
width: number;
|
|
54
|
-
initialWidth?: number | undefined;
|
|
55
|
-
height: number;
|
|
56
|
-
initialHeight?: number | undefined;
|
|
57
|
-
spring?: boolean | import("svelte/motion").SpringOpts | {
|
|
58
|
-
[prop: string]: import("svelte/motion").SpringOpts | undefined;
|
|
59
|
-
} | undefined;
|
|
60
|
-
tweened?: boolean | import("svelte/motion").TweenedOptions<unknown> | {
|
|
61
|
-
[prop: string]: import("svelte/motion").TweenedOptions<unknown> | undefined;
|
|
62
|
-
} | undefined;
|
|
63
|
-
}> | undefined;
|
|
64
|
-
/** Set to false to disable spring transitions */ motion?: boolean | undefined;
|
|
9
|
+
axis?: "x" | "y" | "both" | "none" | undefined;
|
|
10
|
+
/** Show points and pass props to Circles */ points?: boolean | Partial<ComponentProps<Circle>>;
|
|
11
|
+
/** Show lines and pass props to Lines */ lines?: boolean | Partial<ComponentProps<Line>>;
|
|
12
|
+
/** Show area and pass props to Rect */ area?: boolean | Partial<ComponentProps<Rect>>;
|
|
13
|
+
/** Show bar and pass props to Rect */ bar?: boolean | Partial<ComponentProps<Rect>>;
|
|
14
|
+
/** Set to false to disable spring transitions */ motion?: boolean;
|
|
65
15
|
};
|
|
66
16
|
events: {
|
|
67
17
|
click: MouseEvent;
|
|
@@ -80,20 +30,20 @@ declare const __propDef: {
|
|
|
80
30
|
bar: {
|
|
81
31
|
bar: boolean | Partial<{
|
|
82
32
|
[x: string]: any;
|
|
83
|
-
x?: number
|
|
84
|
-
initialX?: number
|
|
85
|
-
y?: number
|
|
86
|
-
initialY?: number
|
|
33
|
+
x?: number;
|
|
34
|
+
initialX?: number;
|
|
35
|
+
y?: number;
|
|
36
|
+
initialY?: number;
|
|
87
37
|
width: number;
|
|
88
|
-
initialWidth?: number
|
|
38
|
+
initialWidth?: number;
|
|
89
39
|
height: number;
|
|
90
|
-
initialHeight?: number
|
|
91
|
-
spring?: boolean | import("
|
|
92
|
-
[prop: string]: import("
|
|
93
|
-
}
|
|
94
|
-
tweened?: boolean | import("
|
|
95
|
-
[prop: string]: import("
|
|
96
|
-
}
|
|
40
|
+
initialHeight?: number;
|
|
41
|
+
spring?: boolean | import("../stores/motionStore").SpringOptions | {
|
|
42
|
+
[prop: string]: import("../stores/motionStore").SpringOptions;
|
|
43
|
+
};
|
|
44
|
+
tweened?: boolean | import("../stores/motionStore").TweenedOptions | {
|
|
45
|
+
[prop: string]: import("../stores/motionStore").TweenedOptions;
|
|
46
|
+
};
|
|
97
47
|
}>;
|
|
98
48
|
};
|
|
99
49
|
lines: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
context?: CanvasRenderingContext2D
|
|
5
|
-
/** Show canvas for debugging */ debug?: boolean
|
|
4
|
+
context?: CanvasRenderingContext2D;
|
|
5
|
+
/** Show canvas for debugging */ debug?: boolean;
|
|
6
6
|
};
|
|
7
7
|
events: {
|
|
8
8
|
pointerleave: PointerEvent;
|
|
@@ -6,11 +6,11 @@ declare const __propDef: {
|
|
|
6
6
|
props: {
|
|
7
7
|
[x: string]: any;
|
|
8
8
|
data?: any;
|
|
9
|
-
curve?: ComponentProps<Spline>[
|
|
9
|
+
curve?: ComponentProps<Spline>["curve"];
|
|
10
10
|
classes?: {
|
|
11
|
-
root?: string
|
|
12
|
-
path?: string
|
|
13
|
-
}
|
|
11
|
+
root?: string;
|
|
12
|
+
path?: string;
|
|
13
|
+
};
|
|
14
14
|
};
|
|
15
15
|
events: {
|
|
16
16
|
pointerleave: PointerEvent;
|
|
@@ -3,13 +3,13 @@ import { type FormatType } from 'svelte-ux';
|
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
5
|
[x: string]: any;
|
|
6
|
-
placement?: "inside" | "outside"
|
|
7
|
-
offset?: number
|
|
8
|
-
significantDigits?: number
|
|
6
|
+
placement?: "inside" | "outside";
|
|
7
|
+
offset?: number;
|
|
8
|
+
significantDigits?: number;
|
|
9
9
|
format?: FormatType | undefined;
|
|
10
10
|
groupBy?: string | undefined;
|
|
11
|
-
groupPaddingInner?: number
|
|
12
|
-
groupPaddingOuter?: number
|
|
11
|
+
groupPaddingInner?: number;
|
|
12
|
+
groupPaddingOuter?: number;
|
|
13
13
|
};
|
|
14
14
|
events: {
|
|
15
15
|
[evt: string]: CustomEvent<any>;
|
|
@@ -4,21 +4,21 @@ declare const __propDef: {
|
|
|
4
4
|
props: {
|
|
5
5
|
[x: string]: any;
|
|
6
6
|
scale?: any;
|
|
7
|
-
title?: string
|
|
8
|
-
width?: number
|
|
9
|
-
height?: number
|
|
10
|
-
ticks?: number
|
|
11
|
-
tickFormat?: FormatType
|
|
7
|
+
title?: string;
|
|
8
|
+
width?: number;
|
|
9
|
+
height?: number;
|
|
10
|
+
ticks?: number;
|
|
11
|
+
tickFormat?: FormatType;
|
|
12
12
|
tickValues?: any[] | undefined;
|
|
13
|
-
tickFontSize?: number
|
|
14
|
-
tickLength?: number
|
|
13
|
+
tickFontSize?: number;
|
|
14
|
+
tickLength?: number;
|
|
15
15
|
placement?: ("center" | "top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right") | undefined;
|
|
16
16
|
classes?: {
|
|
17
|
-
root?: string
|
|
18
|
-
title?: string
|
|
19
|
-
label?: string
|
|
20
|
-
tick?: string
|
|
21
|
-
}
|
|
17
|
+
root?: string;
|
|
18
|
+
title?: string;
|
|
19
|
+
label?: string;
|
|
20
|
+
tick?: string;
|
|
21
|
+
};
|
|
22
22
|
};
|
|
23
23
|
events: {
|
|
24
24
|
[evt: string]: CustomEvent<any>;
|
|
@@ -4,13 +4,13 @@ declare const __propDef: {
|
|
|
4
4
|
props: {
|
|
5
5
|
[x: string]: any;
|
|
6
6
|
x1: number;
|
|
7
|
-
initialX1?: number
|
|
7
|
+
initialX1?: number;
|
|
8
8
|
y1: number;
|
|
9
|
-
initialY1?: number
|
|
9
|
+
initialY1?: number;
|
|
10
10
|
x2: number;
|
|
11
|
-
initialX2?: number
|
|
11
|
+
initialX2?: number;
|
|
12
12
|
y2: number;
|
|
13
|
-
initialY2?: number
|
|
13
|
+
initialY2?: number;
|
|
14
14
|
spring?: boolean | Parameters<typeof springStore>[1];
|
|
15
15
|
tweened?: boolean | Parameters<typeof tweenedStore>[1];
|
|
16
16
|
};
|
|
@@ -2,15 +2,15 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
4
|
[x: string]: any;
|
|
5
|
-
id?: string
|
|
6
|
-
stops?: string[] | [string | number, string][]
|
|
7
|
-
vertical?: boolean
|
|
8
|
-
x1?: string
|
|
9
|
-
y1?: string
|
|
10
|
-
x2?: string
|
|
11
|
-
y2?: string
|
|
5
|
+
id?: string;
|
|
6
|
+
stops?: string[] | [string | number, string][];
|
|
7
|
+
vertical?: boolean;
|
|
8
|
+
x1?: string;
|
|
9
|
+
y1?: string;
|
|
10
|
+
x2?: string;
|
|
11
|
+
y2?: string;
|
|
12
12
|
rotate?: number | undefined;
|
|
13
|
-
units?: "objectBoundingBox" | "userSpaceOnUse"
|
|
13
|
+
units?: "objectBoundingBox" | "userSpaceOnUse";
|
|
14
14
|
};
|
|
15
15
|
events: {
|
|
16
16
|
[evt: string]: CustomEvent<any>;
|
|
@@ -4,13 +4,13 @@ declare const __propDef: {
|
|
|
4
4
|
props: {
|
|
5
5
|
[x: string]: any;
|
|
6
6
|
data?: any;
|
|
7
|
-
sankey?: boolean
|
|
8
|
-
source?: (
|
|
9
|
-
target?: (
|
|
10
|
-
orientation?: "
|
|
11
|
-
x?: (
|
|
12
|
-
y?: (
|
|
13
|
-
curve?: import("d3-shape").CurveFactory
|
|
7
|
+
sankey?: boolean;
|
|
8
|
+
source?: (d: any) => any;
|
|
9
|
+
target?: (d: any) => any;
|
|
10
|
+
orientation?: "vertical" | "horizontal";
|
|
11
|
+
x?: (d: any) => any;
|
|
12
|
+
y?: (d: any) => any;
|
|
13
|
+
curve?: import("d3-shape").CurveFactory;
|
|
14
14
|
tweened?: boolean | Parameters<typeof tweenedStore>[1];
|
|
15
15
|
};
|
|
16
16
|
events: {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
/** Id of path to move object along */ pathId?: string
|
|
5
|
-
/** Id of object to move along path */ objectId?: string
|
|
4
|
+
/** Id of path to move object along */ pathId?: string;
|
|
5
|
+
/** Id of object to move along path */ objectId?: string;
|
|
6
6
|
/** Duration of the animation */ duration: string;
|
|
7
|
-
/** Number of times the animation will occur */ repeatCount?: number |
|
|
7
|
+
/** Number of times the animation will occur */ repeatCount?: number | "indefinite" | undefined;
|
|
8
8
|
/** Final state of the animation. Freeze (last frame) or remove (first frame)
|
|
9
9
|
* https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill#animate
|
|
10
|
-
* */ fill?: "
|
|
11
|
-
/** Rotation applied to the element animated along a path, usually to make it pointing in the direction of the animation */ rotate?: number |
|
|
10
|
+
* */ fill?: "freeze" | "remove";
|
|
11
|
+
/** Rotation applied to the element animated along a path, usually to make it pointing in the direction of the animation */ rotate?: number | "auto" | "auto-reverse" | undefined;
|
|
12
12
|
};
|
|
13
13
|
events: {
|
|
14
14
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
orientation?: "
|
|
4
|
+
orientation?: "vertical" | "horizontal";
|
|
5
5
|
size?: [number, number] | undefined;
|
|
6
6
|
/**
|
|
7
7
|
* see: https://github.com/d3/d3-hierarchy#tree_nodeSize
|
|
@@ -6,7 +6,7 @@ declare const __propDef: {
|
|
|
6
6
|
data?: any;
|
|
7
7
|
/**
|
|
8
8
|
* Range [min,max] in degrees. See also startAngle/endAngle
|
|
9
|
-
*/ range?: number[]
|
|
9
|
+
*/ range?: number[];
|
|
10
10
|
/**
|
|
11
11
|
* Start angle in radians
|
|
12
12
|
*/ startAngle?: number | undefined;
|
|
@@ -23,14 +23,14 @@ declare const __propDef: {
|
|
|
23
23
|
/**
|
|
24
24
|
* Define outerRadius. Defaults to yRange max/2 (ie. chart height / 2)
|
|
25
25
|
*/ outerRadius?: number | undefined;
|
|
26
|
-
cornerRadius?: number
|
|
27
|
-
padAngle?: number
|
|
28
|
-
placement?: "
|
|
26
|
+
cornerRadius?: number;
|
|
27
|
+
padAngle?: number;
|
|
28
|
+
placement?: "left" | "center" | "right" | "none";
|
|
29
29
|
spring?: boolean | Parameters<typeof springStore>[1];
|
|
30
30
|
tweened?: boolean | Parameters<typeof tweenedStore>[1];
|
|
31
31
|
/**
|
|
32
32
|
* Offset all arcs from center
|
|
33
|
-
*/ offset?: number
|
|
33
|
+
*/ offset?: number;
|
|
34
34
|
/**
|
|
35
35
|
* Tooltip context to setup mouse events to show tooltip for related data
|
|
36
36
|
*/ tooltip?: TooltipContextValue | undefined;
|
|
@@ -1,24 +1,15 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
+
import { type ComponentProps } from 'svelte';
|
|
3
|
+
import Link from './Link.svelte';
|
|
2
4
|
declare const __propDef: {
|
|
3
5
|
props: {
|
|
4
6
|
[x: string]: any;
|
|
5
7
|
data?: any;
|
|
6
|
-
r?: number
|
|
8
|
+
r?: number;
|
|
7
9
|
offsetX?: number | ((value: number, context: any) => number) | undefined;
|
|
8
10
|
offsetY?: number | ((value: number, context: any) => number) | undefined;
|
|
9
|
-
radial?: boolean
|
|
10
|
-
links?: boolean | Partial<
|
|
11
|
-
[x: string]: any;
|
|
12
|
-
data?: any;
|
|
13
|
-
sankey?: boolean | undefined;
|
|
14
|
-
source?: ((d: any) => any) | undefined;
|
|
15
|
-
target?: ((d: any) => any) | undefined;
|
|
16
|
-
orientation?: "horizontal" | "vertical" | undefined;
|
|
17
|
-
x?: ((d: any) => any) | undefined;
|
|
18
|
-
y?: ((d: any) => any) | undefined;
|
|
19
|
-
curve?: import("d3-shape").CurveFactory | undefined;
|
|
20
|
-
tweened?: boolean | import("svelte/motion").TweenedOptions<unknown> | undefined;
|
|
21
|
-
}> | undefined;
|
|
11
|
+
radial?: boolean;
|
|
12
|
+
links?: boolean | Partial<ComponentProps<Link>>;
|
|
22
13
|
};
|
|
23
14
|
events: {
|
|
24
15
|
[evt: string]: CustomEvent<any>;
|
|
@@ -2,17 +2,17 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
4
|
[x: string]: any;
|
|
5
|
-
id?: string
|
|
6
|
-
stops?: string[] | [string | number, string][]
|
|
7
|
-
cx?: string
|
|
8
|
-
cy?: string
|
|
9
|
-
fx?: string
|
|
10
|
-
fy?: string
|
|
11
|
-
r?: string
|
|
12
|
-
fr?: string
|
|
13
|
-
spreadMethod?: "pad" | "reflect" | "repeat"
|
|
5
|
+
id?: string;
|
|
6
|
+
stops?: string[] | [string | number, string][];
|
|
7
|
+
cx?: string;
|
|
8
|
+
cy?: string;
|
|
9
|
+
fx?: string;
|
|
10
|
+
fy?: string;
|
|
11
|
+
r?: string;
|
|
12
|
+
fr?: string;
|
|
13
|
+
spreadMethod?: "pad" | "reflect" | "repeat";
|
|
14
14
|
transform?: string | null | undefined;
|
|
15
|
-
units?: "objectBoundingBox" | "userSpaceOnUse"
|
|
15
|
+
units?: "objectBoundingBox" | "userSpaceOnUse";
|
|
16
16
|
};
|
|
17
17
|
events: {
|
|
18
18
|
[evt: string]: CustomEvent<any>;
|
|
@@ -3,14 +3,14 @@ import { type SpringOptions, type TweenedOptions } from '../stores/motionStore.j
|
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
5
|
[x: string]: any;
|
|
6
|
-
x?: number
|
|
7
|
-
initialX?: number
|
|
8
|
-
y?: number
|
|
9
|
-
initialY?: number
|
|
6
|
+
x?: number;
|
|
7
|
+
initialX?: number;
|
|
8
|
+
y?: number;
|
|
9
|
+
initialY?: number;
|
|
10
10
|
width: number;
|
|
11
|
-
initialWidth?: number
|
|
11
|
+
initialWidth?: number;
|
|
12
12
|
height: number;
|
|
13
|
-
initialHeight?: number
|
|
13
|
+
initialHeight?: number;
|
|
14
14
|
spring?: boolean | SpringOptions | {
|
|
15
15
|
[prop: string]: SpringOptions;
|
|
16
16
|
};
|
|
@@ -4,13 +4,13 @@ import Rect from './Rect.svelte';
|
|
|
4
4
|
declare const __propDef: {
|
|
5
5
|
props: {
|
|
6
6
|
[x: string]: any;
|
|
7
|
-
id?: string
|
|
8
|
-
x?: number
|
|
9
|
-
y?: number
|
|
7
|
+
id?: string;
|
|
8
|
+
x?: number;
|
|
9
|
+
y?: number;
|
|
10
10
|
width: number;
|
|
11
11
|
height: number;
|
|
12
|
-
spring?: ComponentProps<Rect>[
|
|
13
|
-
tweened?: ComponentProps<Rect>[
|
|
12
|
+
spring?: ComponentProps<Rect>["spring"];
|
|
13
|
+
tweened?: ComponentProps<Rect>["tweened"];
|
|
14
14
|
};
|
|
15
15
|
events: {
|
|
16
16
|
[evt: string]: CustomEvent<any>;
|
|
@@ -2,8 +2,8 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
4
|
[x: string]: any;
|
|
5
|
-
x?: number | boolean | "left" | "right"
|
|
6
|
-
y?: number | boolean | "top" | "bottom"
|
|
5
|
+
x?: number | Date | boolean | "left" | "right";
|
|
6
|
+
y?: number | Date | boolean | "top" | "bottom";
|
|
7
7
|
};
|
|
8
8
|
events: {
|
|
9
9
|
[evt: string]: CustomEvent<any>;
|
|
@@ -2,15 +2,15 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
import { type SankeyNode } from 'd3-sankey';
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
|
-
nodes?: (
|
|
6
|
-
nodeId?: (
|
|
5
|
+
nodes?: (d: any) => any;
|
|
6
|
+
nodeId?: (d: any) => any;
|
|
7
7
|
/**
|
|
8
8
|
* see: https://github.com/d3/d3-sankey#alignments
|
|
9
|
-
*/ nodeAlign?:
|
|
10
|
-
nodeWidth?: number
|
|
11
|
-
nodePadding?: number
|
|
9
|
+
*/ nodeAlign?: ((node: SankeyNode<any, any>, n: number) => number) | "left" | "right" | "center" | "justify";
|
|
10
|
+
nodeWidth?: number;
|
|
11
|
+
nodePadding?: number;
|
|
12
12
|
nodeSort?: undefined;
|
|
13
|
-
links?: (
|
|
13
|
+
links?: (d: any) => any;
|
|
14
14
|
linkSort?: undefined;
|
|
15
15
|
};
|
|
16
16
|
events: {
|
|
@@ -7,13 +7,13 @@ declare const __propDef: {
|
|
|
7
7
|
[x: string]: any;
|
|
8
8
|
data?: any;
|
|
9
9
|
pathData?: string | undefined | null;
|
|
10
|
-
radial?: boolean
|
|
10
|
+
radial?: boolean;
|
|
11
11
|
x?: any;
|
|
12
12
|
y?: any;
|
|
13
13
|
tweened?: boolean | Parameters<typeof tweenedStore>[1];
|
|
14
14
|
draw?: boolean | Parameters<typeof _drawTransition>[1];
|
|
15
15
|
curve?: CurveFactory | CurveFactoryLineOnly | undefined;
|
|
16
|
-
defined?: Parameters<Line<any>[
|
|
16
|
+
defined?: Parameters<Line<any>["defined"]>[0] | undefined;
|
|
17
17
|
};
|
|
18
18
|
events: {
|
|
19
19
|
click: MouseEvent;
|
|
@@ -3,19 +3,19 @@ import type { spring as springStore, tweened as tweenedStore } from 'svelte/moti
|
|
|
3
3
|
declare const __propDef: {
|
|
4
4
|
props: {
|
|
5
5
|
[x: string]: any;
|
|
6
|
-
value?: string | number
|
|
6
|
+
value?: string | number;
|
|
7
7
|
width?: number | undefined;
|
|
8
|
-
x?: string | number
|
|
9
|
-
initialX?: string | number
|
|
10
|
-
y?: string | number
|
|
11
|
-
initialY?: string | number
|
|
12
|
-
dx?: string | number
|
|
13
|
-
dy?: string | number
|
|
14
|
-
lineHeight?: string
|
|
15
|
-
capHeight?: string
|
|
16
|
-
scaleToFit?: boolean
|
|
17
|
-
textAnchor?: "start" | "
|
|
18
|
-
verticalAnchor?: "start" | "
|
|
8
|
+
x?: string | number;
|
|
9
|
+
initialX?: string | number;
|
|
10
|
+
y?: string | number;
|
|
11
|
+
initialY?: string | number;
|
|
12
|
+
dx?: string | number;
|
|
13
|
+
dy?: string | number;
|
|
14
|
+
lineHeight?: string;
|
|
15
|
+
capHeight?: string;
|
|
16
|
+
scaleToFit?: boolean;
|
|
17
|
+
textAnchor?: "start" | "middle" | "end" | "inherit";
|
|
18
|
+
verticalAnchor?: "start" | "middle" | "end" | "inherit";
|
|
19
19
|
rotate?: number | undefined;
|
|
20
20
|
spring?: boolean | Parameters<typeof springStore>[1];
|
|
21
21
|
tweened?: boolean | Parameters<typeof tweenedStore>[1];
|