layerchart 0.60.0 → 0.60.2
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/Brush.svelte.d.ts +1 -1
- package/dist/components/Calendar.svelte.d.ts +1 -1
- package/dist/components/ClipPath.svelte.d.ts +1 -1
- package/dist/components/ColorRamp.svelte.d.ts +2 -2
- package/dist/components/Dagre.svelte +1 -1
- package/dist/components/GeoPath.svelte.d.ts +6 -6
- package/dist/components/Graticule.svelte.d.ts +28 -4
- package/dist/components/Hull.svelte.d.ts +1 -3
- package/dist/components/Labels.svelte.d.ts +1 -1
- package/dist/components/Legend.svelte.d.ts +4 -4
- package/dist/components/LinearGradient.svelte.d.ts +3 -3
- package/dist/components/Marker.svelte.d.ts +7 -7
- package/dist/components/Points.svelte.d.ts +5 -5
- package/dist/components/RadialGradient.svelte.d.ts +4 -4
- package/dist/components/TransformControls.svelte.d.ts +2 -4
- package/dist/components/charts/AreaChart.svelte +2 -1
- package/dist/components/charts/BarChart.svelte +2 -2
- package/dist/components/charts/LineChart.svelte +2 -1
- package/dist/components/charts/PieChart.svelte.d.ts +4 -4
- package/dist/components/charts/ScatterChart.svelte +9 -1
- package/dist/components/layout/Canvas.svelte.d.ts +4 -4
- package/dist/components/layout/Html.svelte.d.ts +5 -5
- package/dist/components/layout/Svg.svelte.d.ts +7 -7
- package/dist/components/tooltip/Tooltip.svelte.d.ts +4 -4
- package/dist/components/tooltip/TooltipHeader.svelte.d.ts +1 -1
- package/dist/components/tooltip/TooltipItem.svelte.d.ts +2 -2
- package/dist/docs/Code.svelte.d.ts +1 -1
- package/dist/docs/Preview.svelte.d.ts +1 -1
- package/package.json +17 -17
- package/dist/components/Arc.svelte.d.ts +0 -47
- package/dist/components/Area.svelte.d.ts +0 -36
- package/dist/components/Axis.svelte.d.ts +0 -49
- package/dist/components/Bar.svelte.d.ts +0 -38
- package/dist/components/Bars.svelte.d.ts +0 -34
- package/dist/components/Circle.svelte.d.ts +0 -29
- package/dist/components/CircleClipPath.svelte.d.ts +0 -28
- package/dist/components/Grid.svelte.d.ts +0 -35
- package/dist/components/Group.svelte.d.ts +0 -33
- package/dist/components/Highlight.svelte.d.ts +0 -78
- package/dist/components/Line.svelte.d.ts +0 -43
- package/dist/components/Link.svelte.d.ts +0 -48
- package/dist/components/Rect.svelte.d.ts +0 -39
- package/dist/components/RectClipPath.svelte.d.ts +0 -30
- package/dist/components/Spline.svelte.d.ts +0 -55
- package/dist/components/Text.svelte.d.ts +0 -33
- package/dist/components/charts/AreaChart.svelte.d.ts +0 -334
- package/dist/components/charts/BarChart.svelte.d.ts +0 -320
- package/dist/components/charts/LineChart.svelte.d.ts +0 -331
- package/dist/components/charts/ScatterChart.svelte.d.ts +0 -307
|
@@ -6,7 +6,7 @@ import Text from './Text.svelte';
|
|
|
6
6
|
declare const __propDef: {
|
|
7
7
|
props: {
|
|
8
8
|
[x: string]: any;
|
|
9
|
-
axis?:
|
|
9
|
+
axis?: "x" | "y" | "both" | undefined;
|
|
10
10
|
handleSize?: number | undefined;
|
|
11
11
|
resetOnEnd?: boolean | undefined;
|
|
12
12
|
xDomain?: [number | Date | null, number | Date | null] | undefined;
|
|
@@ -7,7 +7,7 @@ declare const __propDef: {
|
|
|
7
7
|
[x: string]: any;
|
|
8
8
|
start: Date;
|
|
9
9
|
end: Date;
|
|
10
|
-
cellSize?: number | [number, number] | undefined;
|
|
10
|
+
cellSize?: number | [number, number] | undefined | undefined;
|
|
11
11
|
monthPath?: (boolean | Partial<ComponentProps<MonthPath>>) | undefined;
|
|
12
12
|
tooltip?: TooltipContextValue | undefined;
|
|
13
13
|
};
|
|
@@ -4,8 +4,8 @@ declare const __propDef: {
|
|
|
4
4
|
[x: string]: any;
|
|
5
5
|
interpolator: (t: number) => string;
|
|
6
6
|
steps?: number | undefined;
|
|
7
|
-
height?:
|
|
8
|
-
width?:
|
|
7
|
+
height?: string | number | undefined;
|
|
8
|
+
width?: string | number | undefined;
|
|
9
9
|
};
|
|
10
10
|
events: {
|
|
11
11
|
[evt: string]: CustomEvent<any>;
|
|
@@ -9,14 +9,14 @@ declare const __propDef: {
|
|
|
9
9
|
geojson?: GeoPermissibleObjects | null | undefined;
|
|
10
10
|
render?: ((ctx: CanvasRenderingContext2D, options: {
|
|
11
11
|
geoPath: ReturnType<typeof geoCurvePath>;
|
|
12
|
-
}) => any) | undefined;
|
|
13
|
-
fill?: string | undefined;
|
|
14
|
-
stroke?: string | undefined;
|
|
15
|
-
strokeWidth?: number | string | undefined;
|
|
12
|
+
}) => any) | undefined | undefined;
|
|
13
|
+
fill?: string | undefined | undefined;
|
|
14
|
+
stroke?: string | undefined | undefined;
|
|
15
|
+
strokeWidth?: number | string | undefined | undefined;
|
|
16
16
|
tooltip?: TooltipContextValue | undefined;
|
|
17
17
|
curve?: (CurveFactory | CurveFactoryLineOnly) | undefined;
|
|
18
|
-
class?: string | undefined;
|
|
19
|
-
geoTransform?: ((projection: GeoProjection | GeoIdentityTransform) => GeoTransformPrototype) | undefined;
|
|
18
|
+
class?: string | undefined | undefined;
|
|
19
|
+
geoTransform?: ((projection: GeoProjection | GeoIdentityTransform) => GeoTransformPrototype) | undefined | undefined;
|
|
20
20
|
};
|
|
21
21
|
events: {
|
|
22
22
|
pointerenter: PointerEvent;
|
|
@@ -1,11 +1,35 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type { ComponentProps } from 'svelte';
|
|
3
|
-
import GeoPath from './GeoPath.svelte';
|
|
4
2
|
declare const __propDef: {
|
|
5
3
|
props: {
|
|
6
4
|
[x: string]: any;
|
|
7
|
-
lines?:
|
|
8
|
-
|
|
5
|
+
lines?: boolean | Partial<{
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
geojson?: import("d3-geo").GeoPermissibleObjects | null | undefined;
|
|
8
|
+
render?: ((ctx: CanvasRenderingContext2D, options: {
|
|
9
|
+
geoPath: ReturnType<typeof import("..").geoCurvePath>;
|
|
10
|
+
}) => any) | undefined | undefined;
|
|
11
|
+
fill?: string | undefined | undefined;
|
|
12
|
+
stroke?: string | undefined | undefined;
|
|
13
|
+
strokeWidth?: number | string | undefined | undefined;
|
|
14
|
+
tooltip?: import("./tooltip/TooltipContext.svelte").TooltipContextValue | undefined;
|
|
15
|
+
curve?: (import("d3-shape").CurveFactory | import("d3-shape").CurveFactoryLineOnly) | undefined;
|
|
16
|
+
class?: string | undefined | undefined;
|
|
17
|
+
geoTransform?: ((projection: import("d3-geo").GeoProjection | import("d3-geo").GeoIdentityTransform) => import("d3-geo").GeoTransformPrototype) | undefined | undefined;
|
|
18
|
+
}> | undefined;
|
|
19
|
+
outline?: boolean | Partial<{
|
|
20
|
+
[x: string]: any;
|
|
21
|
+
geojson?: import("d3-geo").GeoPermissibleObjects | null | undefined;
|
|
22
|
+
render?: ((ctx: CanvasRenderingContext2D, options: {
|
|
23
|
+
geoPath: ReturnType<typeof import("..").geoCurvePath>;
|
|
24
|
+
}) => any) | undefined | undefined;
|
|
25
|
+
fill?: string | undefined | undefined;
|
|
26
|
+
stroke?: string | undefined | undefined;
|
|
27
|
+
strokeWidth?: number | string | undefined | undefined;
|
|
28
|
+
tooltip?: import("./tooltip/TooltipContext.svelte").TooltipContextValue | undefined;
|
|
29
|
+
curve?: (import("d3-shape").CurveFactory | import("d3-shape").CurveFactoryLineOnly) | undefined;
|
|
30
|
+
class?: string | undefined | undefined;
|
|
31
|
+
geoTransform?: ((projection: import("d3-geo").GeoProjection | import("d3-geo").GeoIdentityTransform) => import("d3-geo").GeoTransformPrototype) | undefined | undefined;
|
|
32
|
+
}> | undefined;
|
|
9
33
|
step?: [number, number] | undefined;
|
|
10
34
|
};
|
|
11
35
|
events: {
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import { type ComponentProps } from 'svelte';
|
|
3
2
|
import { Delaunay } from 'd3-delaunay';
|
|
4
|
-
import Spline from './Spline.svelte';
|
|
5
3
|
declare const __propDef: {
|
|
6
4
|
props: {
|
|
7
5
|
[x: string]: any;
|
|
8
6
|
data?: any;
|
|
9
|
-
curve?:
|
|
7
|
+
curve?: import("d3-shape").CurveFactory | import("d3-shape").CurveFactoryLineOnly | undefined;
|
|
10
8
|
classes?: {
|
|
11
9
|
root?: string;
|
|
12
10
|
path?: string;
|
|
@@ -6,7 +6,7 @@ declare const __propDef: {
|
|
|
6
6
|
props: {
|
|
7
7
|
[x: string]: any;
|
|
8
8
|
value?: Accessor;
|
|
9
|
-
placement?:
|
|
9
|
+
placement?: "inside" | "outside" | "center" | undefined;
|
|
10
10
|
offset?: number | undefined;
|
|
11
11
|
format?: FormatType | undefined;
|
|
12
12
|
key?: ((d: any, index: number) => any) | undefined;
|
|
@@ -9,13 +9,13 @@ declare const __propDef: {
|
|
|
9
9
|
height?: number | undefined;
|
|
10
10
|
ticks?: number | undefined;
|
|
11
11
|
tickFormat?: FormatType | undefined;
|
|
12
|
-
tickValues?: any[] | undefined;
|
|
12
|
+
tickValues?: any[] | undefined | undefined;
|
|
13
13
|
tickFontSize?: number | undefined;
|
|
14
14
|
tickLength?: number | undefined;
|
|
15
15
|
placement?: ("center" | "left" | "right" | "bottom" | "top" | "top-left" | "top-right" | "bottom-left" | "bottom-right") | undefined;
|
|
16
|
-
orientation?:
|
|
17
|
-
onClick?: ((tick: any) => any) | undefined;
|
|
18
|
-
variant?:
|
|
16
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
17
|
+
onClick?: ((tick: any) => any) | undefined | undefined;
|
|
18
|
+
variant?: "ramp" | "swatches" | undefined;
|
|
19
19
|
classes?: {
|
|
20
20
|
root?: string;
|
|
21
21
|
title?: string;
|
|
@@ -3,14 +3,14 @@ declare const __propDef: {
|
|
|
3
3
|
props: {
|
|
4
4
|
[x: string]: any;
|
|
5
5
|
id?: string | undefined;
|
|
6
|
-
stops?:
|
|
6
|
+
stops?: string[] | [string | number, string][] | undefined;
|
|
7
7
|
vertical?: boolean | undefined;
|
|
8
8
|
x1?: string | undefined;
|
|
9
9
|
y1?: string | undefined;
|
|
10
10
|
x2?: string | undefined;
|
|
11
11
|
y2?: string | undefined;
|
|
12
|
-
rotate?: number | undefined;
|
|
13
|
-
units?:
|
|
12
|
+
rotate?: number | undefined | undefined;
|
|
13
|
+
units?: "objectBoundingBox" | "userSpaceOnUse" | undefined;
|
|
14
14
|
};
|
|
15
15
|
events: {
|
|
16
16
|
[evt: string]: CustomEvent<any>;
|
|
@@ -2,15 +2,15 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
4
|
[x: string]: any;
|
|
5
|
-
type?: "arrow" | "triangle" | "line" | "circle" | "circle-stroke" | "dot" | undefined;
|
|
5
|
+
type?: "arrow" | "triangle" | "line" | "circle" | "circle-stroke" | "dot" | undefined | undefined;
|
|
6
6
|
id?: string | undefined;
|
|
7
7
|
size?: number | undefined;
|
|
8
|
-
markerWidth?:
|
|
9
|
-
markerHeight?:
|
|
10
|
-
markerUnits?:
|
|
11
|
-
orient?:
|
|
12
|
-
refX?:
|
|
13
|
-
refY?:
|
|
8
|
+
markerWidth?: string | number | undefined;
|
|
9
|
+
markerHeight?: string | number | undefined;
|
|
10
|
+
markerUnits?: "userSpaceOnUse" | "strokeWidth" | undefined;
|
|
11
|
+
orient?: "auto" | "auto-start-reverse" | number | undefined;
|
|
12
|
+
refX?: string | number | undefined;
|
|
13
|
+
refY?: string | number | undefined;
|
|
14
14
|
viewBox?: string | undefined;
|
|
15
15
|
};
|
|
16
16
|
events: {
|
|
@@ -17,11 +17,11 @@ declare const __propDef: {
|
|
|
17
17
|
offsetX?: number | ((value: number, context: any) => number) | undefined;
|
|
18
18
|
offsetY?: number | ((value: number, context: any) => number) | undefined;
|
|
19
19
|
links?: (boolean | Partial<ComponentProps<Link>>) | undefined;
|
|
20
|
-
fill?: string | undefined;
|
|
21
|
-
stroke?: string | undefined;
|
|
22
|
-
strokeWidth?: number | string | undefined;
|
|
23
|
-
render?: ((ctx: CanvasRenderingContext2D, points: Point[]) => any) | undefined;
|
|
24
|
-
class?: string | undefined;
|
|
20
|
+
fill?: string | undefined | undefined;
|
|
21
|
+
stroke?: string | undefined | undefined;
|
|
22
|
+
strokeWidth?: number | string | undefined | undefined;
|
|
23
|
+
render?: ((ctx: CanvasRenderingContext2D, points: Point[]) => any) | undefined | undefined;
|
|
24
|
+
class?: string | undefined | undefined;
|
|
25
25
|
};
|
|
26
26
|
events: {
|
|
27
27
|
[evt: string]: CustomEvent<any>;
|
|
@@ -3,15 +3,15 @@ declare const __propDef: {
|
|
|
3
3
|
props: {
|
|
4
4
|
[x: string]: any;
|
|
5
5
|
id?: string | undefined;
|
|
6
|
-
stops?:
|
|
6
|
+
stops?: string[] | [string | number, string][] | undefined;
|
|
7
7
|
cx?: string | undefined;
|
|
8
8
|
cy?: string | undefined;
|
|
9
9
|
fx?: string | undefined;
|
|
10
10
|
fy?: string | undefined;
|
|
11
11
|
r?: string | undefined;
|
|
12
|
-
spreadMethod?:
|
|
13
|
-
transform?: string | null | undefined;
|
|
14
|
-
units?:
|
|
12
|
+
spreadMethod?: "pad" | "reflect" | "repeat" | undefined;
|
|
13
|
+
transform?: string | null | undefined | undefined;
|
|
14
|
+
units?: "objectBoundingBox" | "userSpaceOnUse" | undefined;
|
|
15
15
|
};
|
|
16
16
|
events: {
|
|
17
17
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import { type ComponentProps } from 'svelte';
|
|
3
|
-
import { Button } from 'svelte-ux';
|
|
4
2
|
declare const __propDef: {
|
|
5
3
|
props: {
|
|
6
4
|
[x: string]: any;
|
|
7
5
|
placement?: ("center" | "left" | "right" | "bottom" | "top" | "top-left" | "top-right" | "bottom-left" | "bottom-right") | undefined;
|
|
8
|
-
orientation?:
|
|
9
|
-
size?:
|
|
6
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
7
|
+
size?: import("svelte-ux").ButtonSize | undefined;
|
|
10
8
|
show?: ("reset" | "scrollMode" | "zoomIn" | "zoomOut" | "center")[] | undefined;
|
|
11
9
|
};
|
|
12
10
|
events: {
|
|
@@ -107,7 +107,8 @@
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
// Default xScale based on first data's `x` value
|
|
110
|
-
$: xScale =
|
|
110
|
+
$: xScale =
|
|
111
|
+
$$props.xScale ?? (accessor(x)(chartData[0]) instanceof Date ? scaleTime() : scaleLinear());
|
|
111
112
|
|
|
112
113
|
function getAreaProps(s: (typeof series)[number], i: number) {
|
|
113
114
|
const lineProps = {
|
|
@@ -74,10 +74,10 @@
|
|
|
74
74
|
/** Padding between group/series items when using 'seriesLayout="group"', applied to scaleBand().padding() */
|
|
75
75
|
export let groupPadding = 0;
|
|
76
76
|
|
|
77
|
-
$: xScale = isVertical ? scaleBand().padding(bandPadding) : scaleLinear();
|
|
77
|
+
$: xScale = $$props.xScale ?? (isVertical ? scaleBand().padding(bandPadding) : scaleLinear());
|
|
78
78
|
$: xBaseline = isVertical ? undefined : 0;
|
|
79
79
|
|
|
80
|
-
$: yScale = isVertical ? scaleLinear() : scaleBand().padding(bandPadding);
|
|
80
|
+
$: yScale = $$props.yScale ?? (isVertical ? scaleLinear() : scaleBand().padding(bandPadding));
|
|
81
81
|
$: yBaseline = isVertical ? 0 : undefined;
|
|
82
82
|
|
|
83
83
|
let x1Scale: ChartProps['x1Scale'];
|
|
@@ -74,7 +74,8 @@
|
|
|
74
74
|
>;
|
|
75
75
|
|
|
76
76
|
// Default xScale based on first data's `x` value
|
|
77
|
-
$: xScale =
|
|
77
|
+
$: xScale =
|
|
78
|
+
$$props.xScale ?? (accessor(x)(chartData[0]) instanceof Date ? scaleTime() : scaleLinear());
|
|
78
79
|
|
|
79
80
|
function getSplineProps(s: (typeof series)[number], i: number) {
|
|
80
81
|
const splineProps: ComponentProps<Spline> = {
|
|
@@ -204,13 +204,13 @@ declare class __sveltets_Render<TData> {
|
|
|
204
204
|
height?: number | undefined;
|
|
205
205
|
ticks?: number | undefined;
|
|
206
206
|
tickFormat?: import("@layerstack/utils").FormatType | undefined;
|
|
207
|
-
tickValues?: any[] | undefined;
|
|
207
|
+
tickValues?: any[] | undefined | undefined;
|
|
208
208
|
tickFontSize?: number | undefined;
|
|
209
209
|
tickLength?: number | undefined;
|
|
210
210
|
placement?: ("center" | "left" | "right" | "bottom" | "top" | "top-left" | "top-right" | "bottom-left" | "bottom-right") | undefined;
|
|
211
|
-
orientation?:
|
|
212
|
-
onClick?: ((tick: any) => any) | undefined;
|
|
213
|
-
variant?:
|
|
211
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
212
|
+
onClick?: ((tick: any) => any) | undefined | undefined;
|
|
213
|
+
variant?: "ramp" | "swatches" | undefined;
|
|
214
214
|
classes?: {
|
|
215
215
|
root?: string;
|
|
216
216
|
title?: string;
|
|
@@ -56,7 +56,14 @@
|
|
|
56
56
|
} = {};
|
|
57
57
|
|
|
58
58
|
// Default xScale based on first data's `x` value
|
|
59
|
-
$: xScale =
|
|
59
|
+
$: xScale =
|
|
60
|
+
$$props.xScale ??
|
|
61
|
+
(accessor(x)(chartDataArray(data)[0]) instanceof Date ? scaleTime() : scaleLinear());
|
|
62
|
+
|
|
63
|
+
// Default yScale based on first data's `y` value
|
|
64
|
+
$: yScale =
|
|
65
|
+
$$props.yScale ??
|
|
66
|
+
(accessor(y)(chartDataArray(data)[0]) instanceof Date ? scaleTime() : scaleLinear());
|
|
60
67
|
|
|
61
68
|
$: chartData = series
|
|
62
69
|
.flatMap((s) => s.data?.map((d) => ({ seriesKey: s.key, ...d })))
|
|
@@ -81,6 +88,7 @@
|
|
|
81
88
|
{x}
|
|
82
89
|
{xScale}
|
|
83
90
|
{y}
|
|
91
|
+
{yScale}
|
|
84
92
|
yNice
|
|
85
93
|
padding={axis === false
|
|
86
94
|
? undefined
|
|
@@ -6,11 +6,11 @@ declare const __propDef: {
|
|
|
6
6
|
context?: CanvasRenderingContext2D | undefined;
|
|
7
7
|
willReadFrequently?: boolean | undefined;
|
|
8
8
|
zIndex?: undefined;
|
|
9
|
-
pointerEvents?: boolean | undefined;
|
|
9
|
+
pointerEvents?: boolean | undefined | undefined;
|
|
10
10
|
fallback?: string | undefined;
|
|
11
|
-
label?: string | undefined;
|
|
12
|
-
labelledBy?: string | undefined;
|
|
13
|
-
describedBy?: string | undefined;
|
|
11
|
+
label?: string | undefined | undefined;
|
|
12
|
+
labelledBy?: string | undefined | undefined;
|
|
13
|
+
describedBy?: string | undefined | undefined;
|
|
14
14
|
};
|
|
15
15
|
events: {
|
|
16
16
|
pointerenter: PointerEvent;
|
|
@@ -4,11 +4,11 @@ declare const __propDef: {
|
|
|
4
4
|
[x: string]: any;
|
|
5
5
|
element?: HTMLDivElement | undefined;
|
|
6
6
|
zIndex?: undefined;
|
|
7
|
-
pointerEvents?: boolean | undefined;
|
|
8
|
-
role?: string | undefined;
|
|
9
|
-
label?: string | undefined;
|
|
10
|
-
labelledBy?: string | undefined;
|
|
11
|
-
describedBy?: string | undefined;
|
|
7
|
+
pointerEvents?: boolean | undefined | undefined;
|
|
8
|
+
role?: string | undefined | undefined;
|
|
9
|
+
label?: string | undefined | undefined;
|
|
10
|
+
labelledBy?: string | undefined | undefined;
|
|
11
|
+
describedBy?: string | undefined | undefined;
|
|
12
12
|
};
|
|
13
13
|
events: {
|
|
14
14
|
[evt: string]: CustomEvent<any>;
|
|
@@ -5,13 +5,13 @@ declare const __propDef: {
|
|
|
5
5
|
element?: SVGElement | undefined;
|
|
6
6
|
innerElement?: SVGGElement | undefined;
|
|
7
7
|
zIndex?: undefined;
|
|
8
|
-
pointerEvents?: boolean | undefined;
|
|
9
|
-
viewBox?: string | undefined;
|
|
10
|
-
label?: string | undefined;
|
|
11
|
-
labelledBy?: string | undefined;
|
|
12
|
-
describedBy?: string | undefined;
|
|
13
|
-
title?: string | undefined;
|
|
14
|
-
center?:
|
|
8
|
+
pointerEvents?: boolean | undefined | undefined;
|
|
9
|
+
viewBox?: string | undefined | undefined;
|
|
10
|
+
label?: string | undefined | undefined;
|
|
11
|
+
labelledBy?: string | undefined | undefined;
|
|
12
|
+
describedBy?: string | undefined | undefined;
|
|
13
|
+
title?: string | undefined | undefined;
|
|
14
|
+
center?: boolean | "x" | "y" | undefined;
|
|
15
15
|
};
|
|
16
16
|
events: {
|
|
17
17
|
click: MouseEvent;
|
|
@@ -2,13 +2,13 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
4
|
[x: string]: any;
|
|
5
|
-
x?: "pointer" | "data" | number | undefined;
|
|
6
|
-
y?: "pointer" | "data" | number | undefined;
|
|
5
|
+
x?: "pointer" | "data" | number | undefined | undefined;
|
|
6
|
+
y?: "pointer" | "data" | number | undefined | undefined;
|
|
7
7
|
xOffset?: number | undefined;
|
|
8
8
|
yOffset?: number | undefined;
|
|
9
9
|
anchor?: ("center" | "left" | "right" | "bottom" | "top" | "top-left" | "top-right" | "bottom-left" | "bottom-right") | undefined;
|
|
10
|
-
contained?:
|
|
11
|
-
variant?:
|
|
10
|
+
contained?: "container" | false | undefined;
|
|
11
|
+
variant?: "default" | "invert" | "none" | undefined;
|
|
12
12
|
motion?: boolean | undefined;
|
|
13
13
|
classes?: {
|
|
14
14
|
root?: string;
|
|
@@ -6,8 +6,8 @@ declare const __propDef: {
|
|
|
6
6
|
label: any;
|
|
7
7
|
value?: any;
|
|
8
8
|
format?: FormatType | undefined;
|
|
9
|
-
valueAlign?:
|
|
10
|
-
color?: string | undefined;
|
|
9
|
+
valueAlign?: "left" | "right" | "center" | undefined;
|
|
10
|
+
color?: string | undefined | undefined;
|
|
11
11
|
classes?: {
|
|
12
12
|
root?: string;
|
|
13
13
|
label?: string;
|
package/package.json
CHANGED
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
"author": "Sean Lynch <techniq35@gmail.com>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "techniq/layerchart",
|
|
7
|
-
"version": "0.60.
|
|
7
|
+
"version": "0.60.2",
|
|
8
8
|
"devDependencies": {
|
|
9
9
|
"@changesets/cli": "^2.27.10",
|
|
10
10
|
"@mdi/js": "^7.4.47",
|
|
11
11
|
"@rollup/plugin-dsv": "^3.0.5",
|
|
12
|
-
"@sveltejs/adapter-cloudflare": "^4.
|
|
13
|
-
"@sveltejs/kit": "^2.
|
|
12
|
+
"@sveltejs/adapter-cloudflare": "^4.8.0",
|
|
13
|
+
"@sveltejs/kit": "^2.11.1",
|
|
14
14
|
"@sveltejs/package": "^2.3.7",
|
|
15
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
15
|
+
"@sveltejs/vite-plugin-svelte": "^5.0.2",
|
|
16
16
|
"@svitejs/changesets-changelog-github-compact": "^1.2.0",
|
|
17
17
|
"@tailwindcss/typography": "^0.5.15",
|
|
18
18
|
"@types/d3-array": "^3.2.1",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"@types/d3-random": "^3.0.3",
|
|
30
30
|
"@types/d3-sankey": "^0.12.4",
|
|
31
31
|
"@types/d3-scale": "^4.0.8",
|
|
32
|
-
"@types/d3-scale-chromatic": "^3.0
|
|
32
|
+
"@types/d3-scale-chromatic": "^3.1.0",
|
|
33
33
|
"@types/d3-shape": "^3.1.6",
|
|
34
|
-
"@types/d3-time": "^3.0.
|
|
34
|
+
"@types/d3-time": "^3.0.4",
|
|
35
35
|
"@types/lodash-es": "^4.17.12",
|
|
36
36
|
"@types/prismjs": "^1.26.5",
|
|
37
37
|
"@types/shapefile": "^0.6.4",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"@types/topojson-simplify": "^3.0.3",
|
|
40
40
|
"@types/topojson-specification": "^1.0.5",
|
|
41
41
|
"autoprefixer": "^10.4.20",
|
|
42
|
-
"marked": "^15.0.
|
|
42
|
+
"marked": "^15.0.3",
|
|
43
43
|
"mdsvex": "^0.12.3",
|
|
44
44
|
"posthog-js": "^1.95.1",
|
|
45
|
-
"prettier": "^3.
|
|
45
|
+
"prettier": "^3.4.2",
|
|
46
46
|
"prettier-plugin-svelte": "^3.3.2",
|
|
47
47
|
"prism-svelte": "^0.5.0",
|
|
48
48
|
"prism-themes": "^1.9.0",
|
|
@@ -50,20 +50,20 @@
|
|
|
50
50
|
"rehype-slug": "^6.0.0",
|
|
51
51
|
"shapefile": "^0.6.6",
|
|
52
52
|
"solar-calculator": "^0.3.0",
|
|
53
|
-
"svelte": "^5.
|
|
54
|
-
"svelte-check": "^4.1.
|
|
53
|
+
"svelte": "^5.13.0",
|
|
54
|
+
"svelte-check": "^4.1.1",
|
|
55
55
|
"svelte-json-tree": "^2.2.0",
|
|
56
|
-
"svelte-ux": "^0.
|
|
57
|
-
"svelte2tsx": "^0.7.
|
|
58
|
-
"tailwindcss": "^3.4.
|
|
56
|
+
"svelte-ux": "^0.76.0",
|
|
57
|
+
"svelte2tsx": "^0.7.30",
|
|
58
|
+
"tailwindcss": "^3.4.16",
|
|
59
59
|
"topojson-client": "^3.1.0",
|
|
60
60
|
"topojson-simplify": "^3.0.3",
|
|
61
61
|
"tslib": "^2.8.1",
|
|
62
|
-
"typescript": "^5.
|
|
62
|
+
"typescript": "^5.7.2",
|
|
63
63
|
"unist-util-visit": "^5.0.0",
|
|
64
64
|
"us-atlas": "^3.0.1",
|
|
65
|
-
"vite": "^
|
|
66
|
-
"vitest": "^2.1.
|
|
65
|
+
"vite": "^6.0.3",
|
|
66
|
+
"vitest": "^2.1.8"
|
|
67
67
|
},
|
|
68
68
|
"type": "module",
|
|
69
69
|
"dependencies": {
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"date-fns": "^4.1.0",
|
|
95
95
|
"layercake": "^8.4.2",
|
|
96
96
|
"lodash-es": "^4.17.21",
|
|
97
|
-
"posthog-js": "^1.
|
|
97
|
+
"posthog-js": "^1.200.1",
|
|
98
98
|
"shapefile": "^0.6.6",
|
|
99
99
|
"topojson-client": "^3.1.0"
|
|
100
100
|
},
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type { SVGAttributes } from 'svelte/elements';
|
|
3
|
-
import type { spring as springStore, tweened as tweenedStore } from 'svelte/motion';
|
|
4
|
-
import type { TooltipContextValue } from './tooltip/TooltipContext.svelte';
|
|
5
|
-
declare const __propDef: {
|
|
6
|
-
props: {
|
|
7
|
-
[x: string]: any;
|
|
8
|
-
spring?: boolean | Parameters<typeof springStore>[1];
|
|
9
|
-
tweened?: boolean | Parameters<typeof tweenedStore>[1];
|
|
10
|
-
value?: number | undefined;
|
|
11
|
-
initialValue?: number | undefined;
|
|
12
|
-
domain?: number[] | undefined;
|
|
13
|
-
range?: number[] | undefined;
|
|
14
|
-
startAngle?: number | undefined;
|
|
15
|
-
endAngle?: number | undefined;
|
|
16
|
-
innerRadius?: number | undefined;
|
|
17
|
-
outerRadius?: number | undefined;
|
|
18
|
-
cornerRadius?: number | undefined;
|
|
19
|
-
padAngle?: number | undefined;
|
|
20
|
-
track?: (boolean | SVGAttributes<SVGPathElement>) | undefined;
|
|
21
|
-
offset?: number | undefined;
|
|
22
|
-
tooltip?: TooltipContextValue | undefined;
|
|
23
|
-
data?: any;
|
|
24
|
-
};
|
|
25
|
-
events: {
|
|
26
|
-
click: MouseEvent;
|
|
27
|
-
pointerenter: PointerEvent;
|
|
28
|
-
pointermove: PointerEvent;
|
|
29
|
-
pointerleave: PointerEvent;
|
|
30
|
-
touchmove: TouchEvent;
|
|
31
|
-
} & {
|
|
32
|
-
[evt: string]: CustomEvent<any>;
|
|
33
|
-
};
|
|
34
|
-
slots: {
|
|
35
|
-
default: {
|
|
36
|
-
value: number;
|
|
37
|
-
centroid: any;
|
|
38
|
-
boundingBox: DOMRect;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
export type ArcProps = typeof __propDef.props;
|
|
43
|
-
export type ArcEvents = typeof __propDef.events;
|
|
44
|
-
export type ArcSlots = typeof __propDef.slots;
|
|
45
|
-
export default class Arc extends SvelteComponentTyped<ArcProps, ArcEvents, ArcSlots> {
|
|
46
|
-
}
|
|
47
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import { type ComponentProps } from 'svelte';
|
|
3
|
-
import type { tweened as tweenedStore } from 'svelte/motion';
|
|
4
|
-
import { type Area } from 'd3-shape';
|
|
5
|
-
import type { CurveFactory } from 'd3-shape';
|
|
6
|
-
import Spline from './Spline.svelte';
|
|
7
|
-
import { type Accessor } from '../utils/common.js';
|
|
8
|
-
declare const __propDef: {
|
|
9
|
-
props: {
|
|
10
|
-
[x: string]: any;
|
|
11
|
-
data?: any;
|
|
12
|
-
pathData?: string | undefined | null;
|
|
13
|
-
x?: Accessor;
|
|
14
|
-
y0?: Accessor;
|
|
15
|
-
y1?: Accessor;
|
|
16
|
-
tweened?: boolean | Parameters<typeof tweenedStore>[1];
|
|
17
|
-
clipPath?: string | undefined;
|
|
18
|
-
curve?: CurveFactory | undefined;
|
|
19
|
-
defined?: Parameters<Area<any>["defined"]>[0] | undefined;
|
|
20
|
-
line?: (boolean | Partial<ComponentProps<Spline>>) | undefined;
|
|
21
|
-
};
|
|
22
|
-
events: {
|
|
23
|
-
click: MouseEvent;
|
|
24
|
-
pointermove: PointerEvent;
|
|
25
|
-
pointerleave: PointerEvent;
|
|
26
|
-
} & {
|
|
27
|
-
[evt: string]: CustomEvent<any>;
|
|
28
|
-
};
|
|
29
|
-
slots: {};
|
|
30
|
-
};
|
|
31
|
-
export type AreaProps = typeof __propDef.props;
|
|
32
|
-
export type AreaEvents = typeof __propDef.events;
|
|
33
|
-
export type AreaSlots = typeof __propDef.slots;
|
|
34
|
-
export default class Area extends SvelteComponentTyped<AreaProps, AreaEvents, AreaSlots> {
|
|
35
|
-
}
|
|
36
|
-
export {};
|