layerchart 0.41.4 → 0.41.6
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.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.d.ts +7 -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 +3 -5
- 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 +16 -10
- package/dist/components/TileImage.svelte.d.ts +4 -4
- 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 +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];
|
|
@@ -6,9 +6,13 @@ declare const __propDef: {
|
|
|
6
6
|
x?: any;
|
|
7
7
|
y0?: any;
|
|
8
8
|
y1?: any;
|
|
9
|
-
curve?: CurveFactory
|
|
10
|
-
defined?:
|
|
11
|
-
|
|
9
|
+
curve?: CurveFactory;
|
|
10
|
+
defined?: Parameters<{
|
|
11
|
+
(): (d: [number, number], index: number, data: [number, number][]) => boolean;
|
|
12
|
+
(defined: boolean): import("d3-shape").Area<[number, number]>;
|
|
13
|
+
(defined: (d: [number, number], index: number, data: [number, number][]) => boolean): import("d3-shape").Area<[number, number]>;
|
|
14
|
+
}>[0];
|
|
15
|
+
id?: string;
|
|
12
16
|
};
|
|
13
17
|
events: {
|
|
14
18
|
[evt: string]: CustomEvent<any>;
|
|
@@ -8,9 +8,9 @@ export let y;
|
|
|
8
8
|
export let z;
|
|
9
9
|
/** translate x */
|
|
10
10
|
export let tx;
|
|
11
|
-
/**
|
|
11
|
+
/** translate y */
|
|
12
12
|
export let ty;
|
|
13
|
-
export let
|
|
13
|
+
export let scale;
|
|
14
14
|
export let disableCache = false;
|
|
15
15
|
export let debug = false;
|
|
16
16
|
export let url;
|
|
@@ -58,17 +58,23 @@ $: if (!disableCache) {
|
|
|
58
58
|
<!-- To avoid aliasing artifacts (thin white lines) between tiles, two layers of tiles are drawn, with the lower layer’s tiles enlarged by one pixel -->
|
|
59
59
|
<image
|
|
60
60
|
xlink:href={href}
|
|
61
|
-
x={(x + tx) *
|
|
62
|
-
y={(y + ty) *
|
|
63
|
-
width={
|
|
64
|
-
height={
|
|
61
|
+
x={(x + tx) * scale - 0.5}
|
|
62
|
+
y={(y + ty) * scale - 0.5}
|
|
63
|
+
width={scale + 1}
|
|
64
|
+
height={scale + 1}
|
|
65
65
|
/>
|
|
66
|
-
<image xlink:href={href} x={(x + tx) *
|
|
66
|
+
<image xlink:href={href} x={(x + tx) * scale} y={(y + ty) * scale} width={scale} height={scale} />
|
|
67
67
|
{#if debug}
|
|
68
|
-
<rect
|
|
68
|
+
<rect
|
|
69
|
+
x={(x + tx) * scale}
|
|
70
|
+
y={(y + ty) * scale}
|
|
71
|
+
width={scale}
|
|
72
|
+
height={scale}
|
|
73
|
+
class="stroke-danger/50 fill-none"
|
|
74
|
+
/>
|
|
69
75
|
<Text
|
|
70
|
-
x={(x + tx) *
|
|
71
|
-
y={(y + ty) *
|
|
76
|
+
x={(x + tx) * scale}
|
|
77
|
+
y={(y + ty) * scale}
|
|
72
78
|
verticalAnchor="start"
|
|
73
79
|
dx={2}
|
|
74
80
|
dy={-2}
|
|
@@ -5,10 +5,10 @@ declare const __propDef: {
|
|
|
5
5
|
y: number;
|
|
6
6
|
z: number;
|
|
7
7
|
/** translate x */ tx: number;
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
disableCache?: boolean
|
|
11
|
-
debug?: boolean
|
|
8
|
+
/** translate y */ ty: number;
|
|
9
|
+
scale: number;
|
|
10
|
+
disableCache?: boolean;
|
|
11
|
+
debug?: boolean;
|
|
12
12
|
url: (x: number, y: number, z: number) => string;
|
|
13
13
|
};
|
|
14
14
|
events: {
|
|
@@ -2,21 +2,21 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
4
|
[x: string]: any;
|
|
5
|
-
x?:
|
|
6
|
-
y?:
|
|
7
|
-
xOffset?: number
|
|
8
|
-
yOffset?: number
|
|
9
|
-
anchor?:
|
|
10
|
-
contained?:
|
|
11
|
-
variant?: "default" | "
|
|
12
|
-
motion?: boolean
|
|
5
|
+
x?: "pointer" | "data" | number | undefined;
|
|
6
|
+
y?: "pointer" | "data" | number | undefined;
|
|
7
|
+
xOffset?: number;
|
|
8
|
+
yOffset?: number;
|
|
9
|
+
anchor?: "center" | "top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
10
|
+
contained?: "container" | false;
|
|
11
|
+
variant?: "default" | "invert" | "none";
|
|
12
|
+
motion?: boolean;
|
|
13
13
|
header?: ((data: any) => any) | undefined;
|
|
14
14
|
classes?: {
|
|
15
|
-
root?: string
|
|
16
|
-
container?: string
|
|
17
|
-
header?: string
|
|
18
|
-
content?: string
|
|
19
|
-
}
|
|
15
|
+
root?: string;
|
|
16
|
+
container?: string;
|
|
17
|
+
header?: string;
|
|
18
|
+
content?: string;
|
|
19
|
+
};
|
|
20
20
|
};
|
|
21
21
|
events: {
|
|
22
22
|
[evt: string]: CustomEvent<any>;
|