layerchart 0.59.6 → 0.60.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/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 +151 -0
- package/dist/components/Dagre.svelte.d.ts +85 -0
- 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/Spline.svelte +0 -2
- package/dist/components/TransformControls.svelte +8 -1
- package/dist/components/TransformControls.svelte.d.ts +2 -1
- package/dist/components/charts/PieChart.svelte.d.ts +4 -4
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- 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/CurveMenuField.svelte +8 -1
- package/dist/docs/CurveMenuField.svelte.d.ts +2 -1
- package/dist/docs/Preview.svelte.d.ts +1 -1
- package/dist/utils/graph.d.ts +9 -0
- package/dist/utils/graph.js +29 -0
- package/dist/utils/graph.test.d.ts +1 -0
- package/dist/utils/graph.test.js +84 -0
- package/package.json +18 -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
|
@@ -1,78 +0,0 @@
|
|
|
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 Bar from './Bar.svelte';
|
|
6
|
-
import Rect from './Rect.svelte';
|
|
7
|
-
import { type Accessor } from '../utils/common.js';
|
|
8
|
-
declare const __propDef: {
|
|
9
|
-
props: {
|
|
10
|
-
/** Highlight specific data (annotate), espect uses tooltip data */ data?: any;
|
|
11
|
-
/**
|
|
12
|
-
* Override `x` from context
|
|
13
|
-
*/ x?: Accessor;
|
|
14
|
-
/**
|
|
15
|
-
* Override `y` from context
|
|
16
|
-
*/ y?: Accessor;
|
|
17
|
-
axis?: "x" | "y" | "both" | "none" | undefined;
|
|
18
|
-
/** Show points and pass props to Circles */ points?: boolean | Partial<ComponentProps<Circle>>;
|
|
19
|
-
/** Show lines and pass props to Lines */ lines?: boolean | Partial<ComponentProps<Line>>;
|
|
20
|
-
/** Show area and pass props to Rect */ area?: boolean | Partial<ComponentProps<Rect>>;
|
|
21
|
-
/** Show bar and pass props to Rect */ bar?: boolean | Partial<ComponentProps<Bar>>;
|
|
22
|
-
/** Set to false to disable spring transitions */ motion?: boolean;
|
|
23
|
-
};
|
|
24
|
-
events: {
|
|
25
|
-
click: MouseEvent;
|
|
26
|
-
} & {
|
|
27
|
-
[evt: string]: CustomEvent<any>;
|
|
28
|
-
};
|
|
29
|
-
slots: {
|
|
30
|
-
area: {
|
|
31
|
-
area: {
|
|
32
|
-
x: number;
|
|
33
|
-
y: number;
|
|
34
|
-
width: number;
|
|
35
|
-
height: number;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
bar: {
|
|
39
|
-
bar: boolean | Partial<{
|
|
40
|
-
[x: string]: any;
|
|
41
|
-
bar: Object;
|
|
42
|
-
x?: Accessor;
|
|
43
|
-
y?: Accessor;
|
|
44
|
-
x1?: Accessor;
|
|
45
|
-
y1?: Accessor;
|
|
46
|
-
fill?: string | undefined;
|
|
47
|
-
stroke?: string | undefined;
|
|
48
|
-
strokeWidth?: number | undefined;
|
|
49
|
-
radius?: number | undefined;
|
|
50
|
-
rounded?: ("all" | "none" | "edge" | "top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right") | undefined;
|
|
51
|
-
inset?: number | undefined;
|
|
52
|
-
spring?: ComponentProps<Rect>["spring"];
|
|
53
|
-
tweened?: ComponentProps<Rect>["tweened"];
|
|
54
|
-
}>;
|
|
55
|
-
};
|
|
56
|
-
lines: {
|
|
57
|
-
lines: {
|
|
58
|
-
x1: number;
|
|
59
|
-
y1: number;
|
|
60
|
-
x2: number;
|
|
61
|
-
y2: number;
|
|
62
|
-
}[];
|
|
63
|
-
};
|
|
64
|
-
points: {
|
|
65
|
-
points: {
|
|
66
|
-
x: number;
|
|
67
|
-
y: number;
|
|
68
|
-
fill: string;
|
|
69
|
-
}[];
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
export type HighlightProps = typeof __propDef.props;
|
|
74
|
-
export type HighlightEvents = typeof __propDef.events;
|
|
75
|
-
export type HighlightSlots = typeof __propDef.slots;
|
|
76
|
-
export default class Highlight extends SvelteComponentTyped<HighlightProps, HighlightEvents, HighlightSlots> {
|
|
77
|
-
}
|
|
78
|
-
export {};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import { type ComponentProps } from 'svelte';
|
|
3
|
-
import type { spring as springStore, tweened as tweenedStore } from 'svelte/motion';
|
|
4
|
-
import Marker from './Marker.svelte';
|
|
5
|
-
declare const __propDef: {
|
|
6
|
-
props: {
|
|
7
|
-
[x: string]: any;
|
|
8
|
-
x1: number;
|
|
9
|
-
initialX1?: number | undefined;
|
|
10
|
-
y1: number;
|
|
11
|
-
initialY1?: number | undefined;
|
|
12
|
-
x2: number;
|
|
13
|
-
initialX2?: number | undefined;
|
|
14
|
-
y2: number;
|
|
15
|
-
initialY2?: number | undefined;
|
|
16
|
-
marker?: ComponentProps<Marker>["type"] | ComponentProps<Marker> | undefined;
|
|
17
|
-
markerStart?: ComponentProps<Marker>["type"] | ComponentProps<Marker> | undefined;
|
|
18
|
-
markerEnd?: ComponentProps<Marker>["type"] | ComponentProps<Marker> | undefined;
|
|
19
|
-
spring?: boolean | Parameters<typeof springStore>[1];
|
|
20
|
-
tweened?: boolean | Parameters<typeof tweenedStore>[1];
|
|
21
|
-
};
|
|
22
|
-
events: {
|
|
23
|
-
click: MouseEvent;
|
|
24
|
-
pointermove: PointerEvent;
|
|
25
|
-
pointerleave: PointerEvent;
|
|
26
|
-
} & {
|
|
27
|
-
[evt: string]: CustomEvent<any>;
|
|
28
|
-
};
|
|
29
|
-
slots: {
|
|
30
|
-
markerStart: {
|
|
31
|
-
id: string;
|
|
32
|
-
};
|
|
33
|
-
markerEnd: {
|
|
34
|
-
id: string;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
export type LineProps = typeof __propDef.props;
|
|
39
|
-
export type LineEvents = typeof __propDef.events;
|
|
40
|
-
export type LineSlots = typeof __propDef.slots;
|
|
41
|
-
export default class Line extends SvelteComponentTyped<LineProps, LineEvents, LineSlots> {
|
|
42
|
-
}
|
|
43
|
-
export {};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type { ComponentProps } from 'svelte';
|
|
3
|
-
import type { tweened as tweenedStore } from 'svelte/motion';
|
|
4
|
-
import Marker from './Marker.svelte';
|
|
5
|
-
declare const __propDef: {
|
|
6
|
-
props: {
|
|
7
|
-
[x: string]: any;
|
|
8
|
-
data?: any;
|
|
9
|
-
sankey?: boolean | undefined;
|
|
10
|
-
source?: ((d: any) => any) | undefined;
|
|
11
|
-
target?: ((d: any) => any) | undefined;
|
|
12
|
-
orientation?: ("vertical" | "horizontal") | undefined;
|
|
13
|
-
x?: ((d: any) => any) | undefined;
|
|
14
|
-
y?: ((d: any) => any) | undefined;
|
|
15
|
-
curve?: import("d3-shape").CurveFactory | undefined;
|
|
16
|
-
marker?: ComponentProps<Marker>["type"] | ComponentProps<Marker> | undefined;
|
|
17
|
-
markerStart?: ComponentProps<Marker>["type"] | ComponentProps<Marker> | undefined;
|
|
18
|
-
markerMid?: ComponentProps<Marker>["type"] | ComponentProps<Marker> | undefined;
|
|
19
|
-
markerEnd?: ComponentProps<Marker>["type"] | ComponentProps<Marker> | undefined;
|
|
20
|
-
tweened?: boolean | Parameters<typeof tweenedStore>[1];
|
|
21
|
-
};
|
|
22
|
-
events: {
|
|
23
|
-
click: MouseEvent;
|
|
24
|
-
pointerover: PointerEvent;
|
|
25
|
-
pointermove: PointerEvent;
|
|
26
|
-
pointerout: PointerEvent;
|
|
27
|
-
pointerleave: PointerEvent;
|
|
28
|
-
} & {
|
|
29
|
-
[evt: string]: CustomEvent<any>;
|
|
30
|
-
};
|
|
31
|
-
slots: {
|
|
32
|
-
markerStart: {
|
|
33
|
-
id: string;
|
|
34
|
-
};
|
|
35
|
-
markerMid: {
|
|
36
|
-
id: string;
|
|
37
|
-
};
|
|
38
|
-
markerEnd: {
|
|
39
|
-
id: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
export type LinkProps = typeof __propDef.props;
|
|
44
|
-
export type LinkEvents = typeof __propDef.events;
|
|
45
|
-
export type LinkSlots = typeof __propDef.slots;
|
|
46
|
-
export default class Link extends SvelteComponentTyped<LinkProps, LinkEvents, LinkSlots> {
|
|
47
|
-
}
|
|
48
|
-
export {};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import { type SpringOptions, type TweenedOptions } from '../stores/motionStore.js';
|
|
3
|
-
declare const __propDef: {
|
|
4
|
-
props: {
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
x?: number | undefined;
|
|
7
|
-
initialX?: number | undefined;
|
|
8
|
-
y?: number | undefined;
|
|
9
|
-
initialY?: number | undefined;
|
|
10
|
-
width: number;
|
|
11
|
-
initialWidth?: number | undefined;
|
|
12
|
-
height: number;
|
|
13
|
-
initialHeight?: number | undefined;
|
|
14
|
-
spring?: boolean | SpringOptions | {
|
|
15
|
-
[prop: string]: SpringOptions;
|
|
16
|
-
};
|
|
17
|
-
tweened?: boolean | TweenedOptions | {
|
|
18
|
-
[prop: string]: TweenedOptions;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
events: {
|
|
22
|
-
click: MouseEvent;
|
|
23
|
-
pointerenter: PointerEvent;
|
|
24
|
-
pointerover: PointerEvent;
|
|
25
|
-
pointermove: PointerEvent;
|
|
26
|
-
pointerout: PointerEvent;
|
|
27
|
-
pointerleave: PointerEvent;
|
|
28
|
-
dblclick: MouseEvent;
|
|
29
|
-
} & {
|
|
30
|
-
[evt: string]: CustomEvent<any>;
|
|
31
|
-
};
|
|
32
|
-
slots: {};
|
|
33
|
-
};
|
|
34
|
-
export type RectProps = typeof __propDef.props;
|
|
35
|
-
export type RectEvents = typeof __propDef.events;
|
|
36
|
-
export type RectSlots = typeof __propDef.slots;
|
|
37
|
-
export default class Rect extends SvelteComponentTyped<RectProps, RectEvents, RectSlots> {
|
|
38
|
-
}
|
|
39
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type { ComponentProps } from 'svelte';
|
|
3
|
-
import Rect from './Rect.svelte';
|
|
4
|
-
declare const __propDef: {
|
|
5
|
-
props: {
|
|
6
|
-
[x: string]: any;
|
|
7
|
-
id?: string | undefined;
|
|
8
|
-
x?: number | undefined;
|
|
9
|
-
y?: number | undefined;
|
|
10
|
-
width: number;
|
|
11
|
-
height: number;
|
|
12
|
-
spring?: ComponentProps<Rect>["spring"];
|
|
13
|
-
tweened?: ComponentProps<Rect>["tweened"];
|
|
14
|
-
};
|
|
15
|
-
events: {
|
|
16
|
-
[evt: string]: CustomEvent<any>;
|
|
17
|
-
};
|
|
18
|
-
slots: {
|
|
19
|
-
default: {
|
|
20
|
-
id: string;
|
|
21
|
-
url: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
export type RectClipPathProps = typeof __propDef.props;
|
|
26
|
-
export type RectClipPathEvents = typeof __propDef.events;
|
|
27
|
-
export type RectClipPathSlots = typeof __propDef.slots;
|
|
28
|
-
export default class RectClipPath extends SvelteComponentTyped<RectClipPathProps, RectClipPathEvents, RectClipPathSlots> {
|
|
29
|
-
}
|
|
30
|
-
export {};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import { type ComponentProps } from 'svelte';
|
|
3
|
-
import { tweened as tweenedStore } from 'svelte/motion';
|
|
4
|
-
import { draw as _drawTransition } from 'svelte/transition';
|
|
5
|
-
import type { CurveFactory, CurveFactoryLineOnly, Line } from 'd3-shape';
|
|
6
|
-
import Marker from './Marker.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
|
-
y?: Accessor;
|
|
15
|
-
tweened?: boolean | Parameters<typeof tweenedStore>[1];
|
|
16
|
-
draw?: boolean | Parameters<typeof _drawTransition>[1];
|
|
17
|
-
curve?: CurveFactory | CurveFactoryLineOnly | undefined;
|
|
18
|
-
defined?: Parameters<Line<any>["defined"]>[0] | undefined;
|
|
19
|
-
marker?: ComponentProps<Marker>["type"] | ComponentProps<Marker> | undefined;
|
|
20
|
-
markerStart?: ComponentProps<Marker>["type"] | ComponentProps<Marker> | undefined;
|
|
21
|
-
markerMid?: ComponentProps<Marker>["type"] | ComponentProps<Marker> | undefined;
|
|
22
|
-
markerEnd?: ComponentProps<Marker>["type"] | ComponentProps<Marker> | undefined;
|
|
23
|
-
};
|
|
24
|
-
events: {
|
|
25
|
-
click: MouseEvent;
|
|
26
|
-
pointerenter: PointerEvent;
|
|
27
|
-
pointermove: PointerEvent;
|
|
28
|
-
pointerleave: PointerEvent;
|
|
29
|
-
} & {
|
|
30
|
-
[evt: string]: CustomEvent<any>;
|
|
31
|
-
};
|
|
32
|
-
slots: {
|
|
33
|
-
markerStart: {
|
|
34
|
-
id: string;
|
|
35
|
-
};
|
|
36
|
-
markerMid: {
|
|
37
|
-
id: string;
|
|
38
|
-
};
|
|
39
|
-
markerEnd: {
|
|
40
|
-
id: string;
|
|
41
|
-
};
|
|
42
|
-
start: {
|
|
43
|
-
point: DOMPoint | undefined;
|
|
44
|
-
};
|
|
45
|
-
end: {
|
|
46
|
-
point: DOMPoint | undefined;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
export type SplineProps = typeof __propDef.props;
|
|
51
|
-
export type SplineEvents = typeof __propDef.events;
|
|
52
|
-
export type SplineSlots = typeof __propDef.slots;
|
|
53
|
-
export default class Spline extends SvelteComponentTyped<SplineProps, SplineEvents, SplineSlots> {
|
|
54
|
-
}
|
|
55
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import type { spring as springStore, tweened as tweenedStore } from 'svelte/motion';
|
|
3
|
-
declare const __propDef: {
|
|
4
|
-
props: {
|
|
5
|
-
[x: string]: any;
|
|
6
|
-
value?: (string | number) | undefined;
|
|
7
|
-
width?: number | undefined;
|
|
8
|
-
x?: (string | number) | undefined;
|
|
9
|
-
initialX?: (string | number) | undefined;
|
|
10
|
-
y?: (string | number) | undefined;
|
|
11
|
-
initialY?: (string | number) | undefined;
|
|
12
|
-
dx?: (string | number) | undefined;
|
|
13
|
-
dy?: (string | number) | undefined;
|
|
14
|
-
lineHeight?: string | undefined;
|
|
15
|
-
capHeight?: string | undefined;
|
|
16
|
-
scaleToFit?: boolean | undefined;
|
|
17
|
-
textAnchor?: ("start" | "middle" | "end" | "inherit") | undefined;
|
|
18
|
-
verticalAnchor?: ("start" | "middle" | "end" | "inherit") | undefined;
|
|
19
|
-
rotate?: number | undefined;
|
|
20
|
-
spring?: boolean | Parameters<typeof springStore>[1];
|
|
21
|
-
tweened?: boolean | Parameters<typeof tweenedStore>[1];
|
|
22
|
-
};
|
|
23
|
-
events: {
|
|
24
|
-
[evt: string]: CustomEvent<any>;
|
|
25
|
-
};
|
|
26
|
-
slots: {};
|
|
27
|
-
};
|
|
28
|
-
export type TextProps = typeof __propDef.props;
|
|
29
|
-
export type TextEvents = typeof __propDef.events;
|
|
30
|
-
export type TextSlots = typeof __propDef.slots;
|
|
31
|
-
export default class Text extends SvelteComponentTyped<TextProps, TextEvents, TextSlots> {
|
|
32
|
-
}
|
|
33
|
-
export {};
|
|
@@ -1,334 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import { type ComponentProps } from 'svelte';
|
|
3
|
-
import Area from '../Area.svelte';
|
|
4
|
-
import Axis from '../Axis.svelte';
|
|
5
|
-
import Grid from '../Grid.svelte';
|
|
6
|
-
import Highlight from '../Highlight.svelte';
|
|
7
|
-
import Labels from '../Labels.svelte';
|
|
8
|
-
import Legend from '../Legend.svelte';
|
|
9
|
-
import Line from '../Line.svelte';
|
|
10
|
-
import Points from '../Points.svelte';
|
|
11
|
-
import Rule from '../Rule.svelte';
|
|
12
|
-
import { type Accessor } from '../../utils/common.js';
|
|
13
|
-
declare class __sveltets_Render<TData> {
|
|
14
|
-
props(): {
|
|
15
|
-
ssr?: boolean;
|
|
16
|
-
pointerEvents?: boolean;
|
|
17
|
-
position?: string;
|
|
18
|
-
percentRange?: boolean;
|
|
19
|
-
width?: number;
|
|
20
|
-
height?: number;
|
|
21
|
-
containerWidth?: number;
|
|
22
|
-
containerHeight?: number;
|
|
23
|
-
element?: HTMLDivElement;
|
|
24
|
-
data?: import("d3-sankey").SankeyGraph<any, any> | import("d3-hierarchy").HierarchyNode<TData> | TData[] | undefined;
|
|
25
|
-
flatData?: any[];
|
|
26
|
-
x?: Accessor<TData>;
|
|
27
|
-
y?: Accessor<TData>;
|
|
28
|
-
z?: Accessor<TData>;
|
|
29
|
-
r?: Accessor<TData>;
|
|
30
|
-
x1?: Accessor<TData>;
|
|
31
|
-
y1?: Accessor<TData>;
|
|
32
|
-
c?: Accessor<TData>;
|
|
33
|
-
xDomain?: import("../../utils/scales").DomainType;
|
|
34
|
-
yDomain?: import("../../utils/scales").DomainType;
|
|
35
|
-
zDomain?: import("../../utils/scales").DomainType;
|
|
36
|
-
rDomain?: import("../../utils/scales").DomainType;
|
|
37
|
-
x1Domain?: import("../../utils/scales").DomainType;
|
|
38
|
-
y1Domain?: import("../../utils/scales").DomainType;
|
|
39
|
-
cDomain?: import("../../utils/scales").DomainType;
|
|
40
|
-
xNice?: boolean | number;
|
|
41
|
-
yNice?: boolean | number;
|
|
42
|
-
zNice?: boolean | number;
|
|
43
|
-
rNice?: boolean | number;
|
|
44
|
-
xPadding?: [number, number];
|
|
45
|
-
yPadding?: [number, number];
|
|
46
|
-
zPadding?: [number, number];
|
|
47
|
-
rPadding?: [number, number];
|
|
48
|
-
xScale?: import("../../utils/scales").AnyScale;
|
|
49
|
-
yScale?: import("../../utils/scales").AnyScale;
|
|
50
|
-
zScale?: import("../../utils/scales").AnyScale;
|
|
51
|
-
rScale?: import("../../utils/scales").AnyScale;
|
|
52
|
-
x1Scale?: import("../../utils/scales").AnyScale;
|
|
53
|
-
y1Scale?: import("../../utils/scales").AnyScale;
|
|
54
|
-
cScale?: import("../../utils/scales").AnyScale;
|
|
55
|
-
xRange?: string[] | number[] | ((args: {
|
|
56
|
-
width: number;
|
|
57
|
-
height: number;
|
|
58
|
-
}) => number[] | string[]) | undefined;
|
|
59
|
-
yRange?: string[] | number[] | ((args: {
|
|
60
|
-
width: number;
|
|
61
|
-
height: number;
|
|
62
|
-
}) => number[] | string[]) | undefined;
|
|
63
|
-
zRange?: string[] | number[] | ((args: {
|
|
64
|
-
width: number;
|
|
65
|
-
height: number;
|
|
66
|
-
}) => number[] | string[]) | undefined;
|
|
67
|
-
rRange?: string[] | number[] | ((args: {
|
|
68
|
-
width: number;
|
|
69
|
-
height: number;
|
|
70
|
-
}) => number[] | string[]) | undefined;
|
|
71
|
-
x1Range?: string[] | number[] | ((args: {
|
|
72
|
-
xScale: import("../../utils/scales").AnyScale;
|
|
73
|
-
width: number;
|
|
74
|
-
height: number;
|
|
75
|
-
}) => number[] | string[]) | undefined;
|
|
76
|
-
y1Range?: string[] | number[] | ((args: {
|
|
77
|
-
yScale: import("../../utils/scales").AnyScale;
|
|
78
|
-
width: number;
|
|
79
|
-
height: number;
|
|
80
|
-
}) => number[] | string[]) | undefined;
|
|
81
|
-
cRange?: string[] | readonly string[];
|
|
82
|
-
xReverse?: boolean;
|
|
83
|
-
yReverse?: boolean;
|
|
84
|
-
zReverse?: boolean;
|
|
85
|
-
rReverse?: boolean;
|
|
86
|
-
xDomainSort?: boolean;
|
|
87
|
-
yDomainSort?: boolean;
|
|
88
|
-
zDomainSort?: boolean;
|
|
89
|
-
rDomainSort?: boolean;
|
|
90
|
-
padding?: {
|
|
91
|
-
top?: Number;
|
|
92
|
-
right?: Number;
|
|
93
|
-
bottom?: Number;
|
|
94
|
-
left?: Number;
|
|
95
|
-
} | undefined;
|
|
96
|
-
extents?: {
|
|
97
|
-
x?: [min: Number, max: Number];
|
|
98
|
-
y?: [min: Number, max: Number];
|
|
99
|
-
r?: [min: Number, max: Number];
|
|
100
|
-
z?: [min: Number, max: Number];
|
|
101
|
-
} | undefined;
|
|
102
|
-
custom?: Record<string, any>;
|
|
103
|
-
debug?: boolean;
|
|
104
|
-
verbose?: boolean;
|
|
105
|
-
xBaseline?: number | null;
|
|
106
|
-
yBaseline?: number | null;
|
|
107
|
-
radial?: boolean;
|
|
108
|
-
geo?: Partial<{
|
|
109
|
-
projection?: (() => import("d3-geo").GeoProjection) | undefined;
|
|
110
|
-
fitGeojson?: import("d3-geo").GeoPermissibleObjects | undefined;
|
|
111
|
-
fixedAspectRatio?: number | undefined;
|
|
112
|
-
clipAngle?: number | undefined;
|
|
113
|
-
clipExtent?: [[number, number], [number, number]] | undefined;
|
|
114
|
-
rotate?: {
|
|
115
|
-
yaw: number;
|
|
116
|
-
pitch: number;
|
|
117
|
-
roll: number;
|
|
118
|
-
} | undefined;
|
|
119
|
-
scale?: number | undefined;
|
|
120
|
-
translate?: [number, number] | undefined;
|
|
121
|
-
center?: [number, number] | undefined;
|
|
122
|
-
applyTransform?: ("scale" | "translate" | "rotate")[];
|
|
123
|
-
reflectX?: boolean | undefined;
|
|
124
|
-
reflectY?: boolean | undefined;
|
|
125
|
-
geo?: import("svelte/store").Writable<import("d3-geo").GeoProjection>;
|
|
126
|
-
}> | undefined;
|
|
127
|
-
tooltip?: boolean | Partial<{
|
|
128
|
-
mode?: "bisect-x" | "bisect-y" | "band" | "bisect-band" | "bounds" | "voronoi" | "quadtree" | "manual";
|
|
129
|
-
findTooltipData?: "closest" | "left" | "right";
|
|
130
|
-
raiseTarget?: boolean;
|
|
131
|
-
radius?: number;
|
|
132
|
-
debug?: boolean;
|
|
133
|
-
onClick?: ({ data }: {
|
|
134
|
-
data: any;
|
|
135
|
-
}) => any;
|
|
136
|
-
tooltip?: import("svelte/store").Writable<{
|
|
137
|
-
y: number;
|
|
138
|
-
x: number;
|
|
139
|
-
data: any;
|
|
140
|
-
show: (e: PointerEvent, tooltipData?: any) => void;
|
|
141
|
-
hide: () => void;
|
|
142
|
-
}>;
|
|
143
|
-
}> | undefined;
|
|
144
|
-
transform?: Partial<{
|
|
145
|
-
mode?: "canvas" | "manual" | "none";
|
|
146
|
-
translateOnScale?: boolean;
|
|
147
|
-
spring?: boolean | Parameters<typeof import("../../stores/motionStore").motionStore>[1]["spring"];
|
|
148
|
-
tweened?: boolean | Parameters<typeof import("../../stores/motionStore").motionStore>[1]["tweened"];
|
|
149
|
-
processTranslate?: (x: number, y: number, deltaX: number, deltaY: number, scale: number) => {
|
|
150
|
-
x: number;
|
|
151
|
-
y: number;
|
|
152
|
-
};
|
|
153
|
-
disablePointer?: boolean;
|
|
154
|
-
initialScrollMode?: "none" | "scale" | "translate";
|
|
155
|
-
clickDistance?: number;
|
|
156
|
-
initialTranslate?: {
|
|
157
|
-
x: number;
|
|
158
|
-
y: number;
|
|
159
|
-
} | undefined;
|
|
160
|
-
translate?: import("svelte/motion").Spring<{
|
|
161
|
-
x: number;
|
|
162
|
-
y: number;
|
|
163
|
-
}> | import("svelte/motion").Tweened<{
|
|
164
|
-
x: number;
|
|
165
|
-
y: number;
|
|
166
|
-
}> | import("svelte/store").Writable<{
|
|
167
|
-
x: number;
|
|
168
|
-
y: number;
|
|
169
|
-
}>;
|
|
170
|
-
initialScale?: number | undefined;
|
|
171
|
-
scale?: import("svelte/store").Writable<number> | import("svelte/motion").Spring<number> | import("svelte/motion").Tweened<number>;
|
|
172
|
-
setScrollMode?: (mode: "none" | "scale" | "translate") => void;
|
|
173
|
-
reset?: () => void;
|
|
174
|
-
zoomIn?: () => void;
|
|
175
|
-
zoomOut?: () => void;
|
|
176
|
-
translateCenter?: () => void;
|
|
177
|
-
zoomTo?: (center: {
|
|
178
|
-
x: number;
|
|
179
|
-
y: number;
|
|
180
|
-
}, rect?: {
|
|
181
|
-
width: number;
|
|
182
|
-
height: number;
|
|
183
|
-
}) => void;
|
|
184
|
-
setTranslate?: (point: {
|
|
185
|
-
x: number;
|
|
186
|
-
y: number;
|
|
187
|
-
}, options?: import("../../stores/motionStore").MotionOptions) => void;
|
|
188
|
-
setScale?: (value: number, options?: import("../../stores/motionStore").MotionOptions) => void;
|
|
189
|
-
}> | undefined;
|
|
190
|
-
transformContext?: import("..").TransformContext;
|
|
191
|
-
geoProjection?: import("svelte/store").Writable<import("d3-geo").GeoProjection> | undefined;
|
|
192
|
-
tooltipContext?: import("svelte/store").Writable<{
|
|
193
|
-
y: number;
|
|
194
|
-
x: number;
|
|
195
|
-
data: any;
|
|
196
|
-
show: (e: PointerEvent, tooltipData?: any) => void;
|
|
197
|
-
hide: () => void;
|
|
198
|
-
}> | undefined;
|
|
199
|
-
} & {
|
|
200
|
-
axis?: boolean | "x" | "y" | {
|
|
201
|
-
[x: string]: any;
|
|
202
|
-
placement: "top" | "bottom" | "left" | "right" | "angle" | "radius";
|
|
203
|
-
label?: string | undefined;
|
|
204
|
-
labelPlacement?: ("start" | "middle" | "end") | undefined;
|
|
205
|
-
labelProps?: Partial<ComponentProps<import("..").Text>> | undefined;
|
|
206
|
-
rule?: (boolean | Partial<ComponentProps<Rule>>) | undefined;
|
|
207
|
-
grid?: (boolean | Pick<import("svelte/elements").SVGAttributes<SVGElement>, "class" | "style">) | undefined;
|
|
208
|
-
ticks?: number | any[] | ((scale: import("../../utils/scales").AnyScale) => any) | null | undefined;
|
|
209
|
-
tickLength?: number | undefined;
|
|
210
|
-
format?: import("@layerstack/utils").FormatType | undefined;
|
|
211
|
-
tickLabelProps?: Partial<ComponentProps<import("..").Text>> | undefined;
|
|
212
|
-
spring?: boolean | Parameters<typeof import("svelte/motion").spring>[1];
|
|
213
|
-
tweened?: boolean | Parameters<typeof import("svelte/motion").tweened>[1];
|
|
214
|
-
transitionIn?: (typeof import("svelte/transition").fade | (() => {})) | undefined;
|
|
215
|
-
transitionInParams?: import("svelte-ux").TransitionParams | undefined;
|
|
216
|
-
scale?: any;
|
|
217
|
-
classes?: {
|
|
218
|
-
root?: string;
|
|
219
|
-
label?: string;
|
|
220
|
-
} | undefined;
|
|
221
|
-
};
|
|
222
|
-
grid?: boolean | {
|
|
223
|
-
[x: string]: any;
|
|
224
|
-
x?: (boolean | Pick<import("svelte/elements").SVGAttributes<SVGElement>, "class" | "style">) | undefined;
|
|
225
|
-
y?: (boolean | Pick<import("svelte/elements").SVGAttributes<SVGElement>, "class" | "style">) | undefined;
|
|
226
|
-
xTicks?: number | any[] | ((scale: import("../../utils/scales").AnyScale) => any) | null | undefined;
|
|
227
|
-
yTicks?: number | any[] | ((scale: import("../../utils/scales").AnyScale) => any) | null | undefined;
|
|
228
|
-
bandAlign?: ("center" | "between") | undefined;
|
|
229
|
-
radialY?: ("circle" | "linear") | undefined;
|
|
230
|
-
spring?: boolean | Parameters<typeof import("svelte/motion").spring>[1];
|
|
231
|
-
tweened?: boolean | Parameters<typeof import("svelte/motion").tweened>[1];
|
|
232
|
-
transitionIn?: (typeof import("svelte/transition").fade | (() => {})) | undefined;
|
|
233
|
-
transitionInParams?: import("svelte-ux").TransitionParams | undefined;
|
|
234
|
-
classes?: {
|
|
235
|
-
root?: string;
|
|
236
|
-
line?: string;
|
|
237
|
-
} | undefined;
|
|
238
|
-
};
|
|
239
|
-
labels?: boolean | {
|
|
240
|
-
[x: string]: any;
|
|
241
|
-
value?: Accessor;
|
|
242
|
-
placement?: ("inside" | "outside" | "center") | undefined;
|
|
243
|
-
offset?: number | undefined;
|
|
244
|
-
format?: import("@layerstack/utils").FormatType | undefined;
|
|
245
|
-
key?: ((d: any, index: number) => any) | undefined;
|
|
246
|
-
};
|
|
247
|
-
legend?: boolean | {
|
|
248
|
-
[x: string]: any;
|
|
249
|
-
scale?: any;
|
|
250
|
-
title?: string | undefined;
|
|
251
|
-
width?: number | undefined;
|
|
252
|
-
height?: number | undefined;
|
|
253
|
-
ticks?: number | undefined;
|
|
254
|
-
tickFormat?: import("@layerstack/utils").FormatType | undefined;
|
|
255
|
-
tickValues?: any[] | undefined;
|
|
256
|
-
tickFontSize?: number | undefined;
|
|
257
|
-
tickLength?: number | undefined;
|
|
258
|
-
placement?: ("center" | "left" | "right" | "bottom" | "top" | "top-left" | "top-right" | "bottom-left" | "bottom-right") | undefined;
|
|
259
|
-
orientation?: ("horizontal" | "vertical") | undefined;
|
|
260
|
-
onClick?: ((tick: any) => any) | undefined;
|
|
261
|
-
variant?: ("ramp" | "swatches") | undefined;
|
|
262
|
-
classes?: {
|
|
263
|
-
root?: string;
|
|
264
|
-
title?: string;
|
|
265
|
-
label?: string;
|
|
266
|
-
tick?: string;
|
|
267
|
-
swatches?: string;
|
|
268
|
-
swatch?: string;
|
|
269
|
-
} | undefined;
|
|
270
|
-
};
|
|
271
|
-
points?: boolean | {
|
|
272
|
-
[x: string]: any;
|
|
273
|
-
data?: any;
|
|
274
|
-
r?: number | undefined;
|
|
275
|
-
offsetX?: number | ((value: number, context: any) => number) | undefined;
|
|
276
|
-
offsetY?: number | ((value: number, context: any) => number) | undefined;
|
|
277
|
-
links?: (boolean | Partial<ComponentProps<import("..").Link>>) | undefined;
|
|
278
|
-
fill?: string | undefined;
|
|
279
|
-
stroke?: string | undefined;
|
|
280
|
-
strokeWidth?: number | string | undefined;
|
|
281
|
-
render?: ((ctx: CanvasRenderingContext2D, points: import("../Points.svelte").Point[]) => any) | undefined;
|
|
282
|
-
class?: string | undefined;
|
|
283
|
-
};
|
|
284
|
-
props?: {
|
|
285
|
-
xAxis?: Partial<ComponentProps<Axis>>;
|
|
286
|
-
yAxis?: Partial<ComponentProps<Axis>>;
|
|
287
|
-
grid?: Partial<ComponentProps<Grid>>;
|
|
288
|
-
rule?: Partial<ComponentProps<Rule>>;
|
|
289
|
-
area?: Partial<ComponentProps<Area>>;
|
|
290
|
-
line?: Partial<ComponentProps<Line>>;
|
|
291
|
-
legend?: Partial<ComponentProps<Legend>>;
|
|
292
|
-
points?: Partial<ComponentProps<Points>>;
|
|
293
|
-
highlight?: Partial<ComponentProps<Highlight>>;
|
|
294
|
-
labels?: Partial<ComponentProps<Labels>>;
|
|
295
|
-
} | undefined;
|
|
296
|
-
rule?: boolean | {
|
|
297
|
-
[x: string]: any;
|
|
298
|
-
x?: (number | Date | boolean | "left" | "right") | undefined;
|
|
299
|
-
xOffset?: number | undefined;
|
|
300
|
-
y?: (number | Date | boolean | "top" | "bottom") | undefined;
|
|
301
|
-
yOffset?: number | undefined;
|
|
302
|
-
};
|
|
303
|
-
series?: {
|
|
304
|
-
key: string;
|
|
305
|
-
label?: string;
|
|
306
|
-
value?: Accessor<TData>;
|
|
307
|
-
/** Provider series data, else uses chart data (with value/key accessor) */
|
|
308
|
-
data?: TData[] | undefined;
|
|
309
|
-
color?: string;
|
|
310
|
-
props?: Partial<ComponentProps<Area>>;
|
|
311
|
-
}[] | undefined;
|
|
312
|
-
seriesLayout?: "overlap" | "stack" | "stackExpand" | "stackDiverging";
|
|
313
|
-
};
|
|
314
|
-
events(): {} & {
|
|
315
|
-
[evt: string]: CustomEvent<any>;
|
|
316
|
-
};
|
|
317
|
-
slots(): {
|
|
318
|
-
default: any;
|
|
319
|
-
grid: any;
|
|
320
|
-
belowMarks: any;
|
|
321
|
-
marks: any;
|
|
322
|
-
aboveMarks: any;
|
|
323
|
-
axis: any;
|
|
324
|
-
highlight: any;
|
|
325
|
-
legend: any;
|
|
326
|
-
tooltip: any;
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
|
-
export type AreaChartProps<TData> = ReturnType<__sveltets_Render<TData>['props']>;
|
|
330
|
-
export type AreaChartEvents<TData> = ReturnType<__sveltets_Render<TData>['events']>;
|
|
331
|
-
export type AreaChartSlots<TData> = ReturnType<__sveltets_Render<TData>['slots']>;
|
|
332
|
-
export default class AreaChart<TData> extends SvelteComponentTyped<AreaChartProps<TData>, AreaChartEvents<TData>, AreaChartSlots<TData>> {
|
|
333
|
-
}
|
|
334
|
-
export {};
|