layerchart 0.10.1 → 0.12.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/components/Arc.svelte.d.ts +3 -3
- package/components/Area.svelte.d.ts +3 -3
- package/components/AreaStack.svelte.d.ts +3 -3
- package/components/AxisX.svelte +1 -1
- package/components/AxisX.svelte.d.ts +3 -3
- package/components/AxisY.svelte +1 -1
- package/components/AxisY.svelte.d.ts +3 -3
- package/components/Bars.svelte.d.ts +3 -3
- package/components/Baseline.svelte.d.ts +3 -3
- package/components/Bounds.svelte.d.ts +3 -3
- package/components/Chart.svelte +7 -2
- package/components/Chart.svelte.d.ts +7 -5
- package/components/ChartClipPath.svelte.d.ts +4 -4
- package/components/Circle.svelte.d.ts +3 -3
- package/components/CircleClipPath.svelte.d.ts +3 -3
- package/components/ClipPath.svelte.d.ts +3 -3
- package/components/ConnectedPoints.svelte.d.ts +3 -3
- package/components/Group.svelte.d.ts +3 -3
- package/components/HighlightLine.svelte.d.ts +3 -3
- package/components/HighlightRect.svelte.d.ts +3 -3
- package/components/Labels.svelte +1 -1
- package/components/Labels.svelte.d.ts +3 -3
- package/components/Legend.svelte.d.ts +3 -3
- package/components/Line.svelte.d.ts +3 -3
- package/components/LinearGradient.svelte.d.ts +3 -3
- package/components/Link.svelte.d.ts +3 -3
- package/components/Pack.svelte.d.ts +3 -3
- package/components/Partition.svelte.d.ts +3 -3
- package/components/Path.svelte.d.ts +3 -3
- package/components/Pattern.svelte.d.ts +3 -3
- package/components/Pie.svelte.d.ts +3 -3
- package/components/Points.svelte.d.ts +3 -3
- package/components/RectClipPath.svelte.d.ts +3 -3
- package/components/Sankey.svelte.d.ts +5 -5
- package/components/Text.svelte.d.ts +3 -3
- package/components/Threshold.svelte.d.ts +3 -3
- package/components/Tooltip.svelte.d.ts +3 -3
- package/components/TooltipContainer.svelte.d.ts +3 -3
- package/components/TooltipItem.svelte.d.ts +3 -3
- package/components/TooltipSeparator.svelte.d.ts +6 -2
- package/components/Tree.svelte.d.ts +3 -3
- package/components/Treemap.svelte.d.ts +3 -3
- package/components/Zoom.svelte.d.ts +3 -3
- package/docs/Blockquote.svelte.d.ts +6 -2
- package/docs/Code.svelte.d.ts +6 -2
- package/docs/Header1.svelte.d.ts +2 -2
- package/docs/Layout.svelte +4 -4
- package/docs/Layout.svelte.d.ts +8 -8
- package/docs/Link.svelte.d.ts +2 -2
- package/docs/Preview.svelte.d.ts +3 -3
- package/package.json +20 -18
- package/stores/motionStore.d.ts +4 -4
- package/utils/stack.d.ts +2 -2
|
@@ -30,9 +30,9 @@ declare const __propDef: {
|
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
export
|
|
34
|
-
export
|
|
35
|
-
export
|
|
33
|
+
export type ArcProps = typeof __propDef.props;
|
|
34
|
+
export type ArcEvents = typeof __propDef.events;
|
|
35
|
+
export type ArcSlots = typeof __propDef.slots;
|
|
36
36
|
export default class Arc extends SvelteComponentTyped<ArcProps, ArcEvents, ArcSlots> {
|
|
37
37
|
}
|
|
38
38
|
export {};
|
|
@@ -23,9 +23,9 @@ declare const __propDef: {
|
|
|
23
23
|
};
|
|
24
24
|
slots: {};
|
|
25
25
|
};
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
26
|
+
export type AreaProps = typeof __propDef.props;
|
|
27
|
+
export type AreaEvents = typeof __propDef.events;
|
|
28
|
+
export type AreaSlots = typeof __propDef.slots;
|
|
29
29
|
export default class Area extends SvelteComponentTyped<AreaProps, AreaEvents, AreaSlots> {
|
|
30
30
|
}
|
|
31
31
|
export {};
|
|
@@ -13,9 +13,9 @@ declare const __propDef: {
|
|
|
13
13
|
};
|
|
14
14
|
slots: {};
|
|
15
15
|
};
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
16
|
+
export type AreaStackProps = typeof __propDef.props;
|
|
17
|
+
export type AreaStackEvents = typeof __propDef.events;
|
|
18
|
+
export type AreaStackSlots = typeof __propDef.slots;
|
|
19
19
|
export default class AreaStack extends SvelteComponentTyped<AreaStackProps, AreaStackEvents, AreaStackSlots> {
|
|
20
20
|
}
|
|
21
21
|
export {};
|
package/components/AxisX.svelte
CHANGED
|
@@ -34,7 +34,7 @@ $: tickVals = Array.isArray(ticks)
|
|
|
34
34
|
rotate={315}
|
|
35
35
|
textAnchor="end"
|
|
36
36
|
verticalAnchor="middle"
|
|
37
|
-
class="text-[10px] stroke-white [stroke-width:
|
|
37
|
+
class="text-[10px] stroke-white [stroke-width:2px] font-light"
|
|
38
38
|
value={format(tick, formatTick ?? $xScale.tickFormat?.())}
|
|
39
39
|
{...labelProps}
|
|
40
40
|
/>
|
|
@@ -18,9 +18,9 @@ declare const __propDef: {
|
|
|
18
18
|
};
|
|
19
19
|
slots: {};
|
|
20
20
|
};
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
21
|
+
export type AxisXProps = typeof __propDef.props;
|
|
22
|
+
export type AxisXEvents = typeof __propDef.events;
|
|
23
|
+
export type AxisXSlots = typeof __propDef.slots;
|
|
24
24
|
export default class AxisX extends SvelteComponentTyped<AxisXProps, AxisXEvents, AxisXSlots> {
|
|
25
25
|
}
|
|
26
26
|
export {};
|
package/components/AxisY.svelte
CHANGED
|
@@ -47,7 +47,7 @@ $: tickVals = Array.isArray(ticks)
|
|
|
47
47
|
textAnchor="end"
|
|
48
48
|
verticalAnchor="middle"
|
|
49
49
|
value={format(tick, formatTick ?? $yScale.tickFormat?.())}
|
|
50
|
-
class="text-[10px] stroke-white [stroke-width:
|
|
50
|
+
class="text-[10px] stroke-white [stroke-width:2px] font-light"
|
|
51
51
|
{...labelProps}
|
|
52
52
|
/>
|
|
53
53
|
</g>
|
|
@@ -18,9 +18,9 @@ declare const __propDef: {
|
|
|
18
18
|
};
|
|
19
19
|
slots: {};
|
|
20
20
|
};
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
21
|
+
export type AxisYProps = typeof __propDef.props;
|
|
22
|
+
export type AxisYEvents = typeof __propDef.events;
|
|
23
|
+
export type AxisYSlots = typeof __propDef.slots;
|
|
24
24
|
export default class AxisY extends SvelteComponentTyped<AxisYProps, AxisYEvents, AxisYSlots> {
|
|
25
25
|
}
|
|
26
26
|
export {};
|
|
@@ -32,9 +32,9 @@ declare const __propDef: {
|
|
|
32
32
|
};
|
|
33
33
|
slots: {};
|
|
34
34
|
};
|
|
35
|
-
export
|
|
36
|
-
export
|
|
37
|
-
export
|
|
35
|
+
export type BarsProps = typeof __propDef.props;
|
|
36
|
+
export type BarsEvents = typeof __propDef.events;
|
|
37
|
+
export type BarsSlots = typeof __propDef.slots;
|
|
38
38
|
export default class Bars extends SvelteComponentTyped<BarsProps, BarsEvents, BarsSlots> {
|
|
39
39
|
}
|
|
40
40
|
export {};
|
|
@@ -9,9 +9,9 @@ declare const __propDef: {
|
|
|
9
9
|
};
|
|
10
10
|
slots: {};
|
|
11
11
|
};
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
12
|
+
export type BaselineProps = typeof __propDef.props;
|
|
13
|
+
export type BaselineEvents = typeof __propDef.events;
|
|
14
|
+
export type BaselineSlots = typeof __propDef.slots;
|
|
15
15
|
export default class Baseline extends SvelteComponentTyped<BaselineProps, BaselineEvents, BaselineSlots> {
|
|
16
16
|
}
|
|
17
17
|
export {};
|
|
@@ -43,9 +43,9 @@ declare const __propDef: {
|
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
|
-
export
|
|
47
|
-
export
|
|
48
|
-
export
|
|
46
|
+
export type BoundsProps = typeof __propDef.props;
|
|
47
|
+
export type BoundsEvents = typeof __propDef.events;
|
|
48
|
+
export type BoundsSlots = typeof __propDef.slots;
|
|
49
49
|
export default class Bounds extends SvelteComponentTyped<BoundsProps, BoundsEvents, BoundsSlots> {
|
|
50
50
|
}
|
|
51
51
|
export {};
|
package/components/Chart.svelte
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
<script context="module"
|
|
2
|
-
export { Svg, Html };
|
|
1
|
+
<script context="module">// import { LayerCake, Svg, Html } from 'layercake';
|
|
2
|
+
// export { Svg, Html };
|
|
3
|
+
// TODO: Workaround for sveld error: `Cannot read properties of null (reading 'type')` in `ComponentParser`
|
|
4
|
+
// See: https://github.com/carbon-design-system/sveld/issues/104
|
|
5
|
+
import { LayerCake, Svg as _Svg, Html as _Html } from 'layercake';
|
|
6
|
+
export const Svg = _Svg;
|
|
7
|
+
export const Html = _Html;
|
|
3
8
|
</script>
|
|
4
9
|
|
|
5
10
|
<script>import { max, min } from 'd3-array';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import { Svg, Html } from 'layercake';
|
|
3
|
-
export
|
|
2
|
+
import { Svg as _Svg, Html as _Html } from 'layercake';
|
|
3
|
+
export declare const Svg: typeof _Svg;
|
|
4
|
+
export declare const Html: typeof _Html;
|
|
4
5
|
declare const __propDef: {
|
|
5
6
|
props: {
|
|
6
7
|
[x: string]: any;
|
|
@@ -25,8 +26,9 @@ declare const __propDef: {
|
|
|
25
26
|
};
|
|
26
27
|
};
|
|
27
28
|
};
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
export
|
|
29
|
+
export type ChartProps = typeof __propDef.props;
|
|
30
|
+
export type ChartEvents = typeof __propDef.events;
|
|
31
|
+
export type ChartSlots = typeof __propDef.slots;
|
|
31
32
|
export default class Chart extends SvelteComponentTyped<ChartProps, ChartEvents, ChartSlots> {
|
|
32
33
|
}
|
|
34
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
[x: string]:
|
|
4
|
+
[x: string]: never;
|
|
5
5
|
};
|
|
6
6
|
events: {
|
|
7
7
|
click: MouseEvent;
|
|
@@ -12,9 +12,9 @@ declare const __propDef: {
|
|
|
12
12
|
default: {};
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
15
|
+
export type ChartClipPathProps = typeof __propDef.props;
|
|
16
|
+
export type ChartClipPathEvents = typeof __propDef.events;
|
|
17
|
+
export type ChartClipPathSlots = typeof __propDef.slots;
|
|
18
18
|
export default class ChartClipPath extends SvelteComponentTyped<ChartClipPathProps, ChartClipPathEvents, ChartClipPathSlots> {
|
|
19
19
|
}
|
|
20
20
|
export {};
|
|
@@ -14,9 +14,9 @@ declare const __propDef: {
|
|
|
14
14
|
};
|
|
15
15
|
slots: {};
|
|
16
16
|
};
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
17
|
+
export type CircleProps = typeof __propDef.props;
|
|
18
|
+
export type CircleEvents = typeof __propDef.events;
|
|
19
|
+
export type CircleSlots = typeof __propDef.slots;
|
|
20
20
|
export default class Circle extends SvelteComponentTyped<CircleProps, CircleEvents, CircleSlots> {
|
|
21
21
|
}
|
|
22
22
|
export {};
|
|
@@ -20,9 +20,9 @@ declare const __propDef: {
|
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
23
|
+
export type CircleClipPathProps = typeof __propDef.props;
|
|
24
|
+
export type CircleClipPathEvents = typeof __propDef.events;
|
|
25
|
+
export type CircleClipPathSlots = typeof __propDef.slots;
|
|
26
26
|
export default class CircleClipPath extends SvelteComponentTyped<CircleClipPathProps, CircleClipPathEvents, CircleClipPathSlots> {
|
|
27
27
|
}
|
|
28
28
|
export {};
|
|
@@ -13,9 +13,9 @@ declare const __propDef: {
|
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
16
|
+
export type ClipPathProps = typeof __propDef.props;
|
|
17
|
+
export type ClipPathEvents = typeof __propDef.events;
|
|
18
|
+
export type ClipPathSlots = typeof __propDef.slots;
|
|
19
19
|
export default class ClipPath extends SvelteComponentTyped<ClipPathProps, ClipPathEvents, ClipPathSlots> {
|
|
20
20
|
}
|
|
21
21
|
export {};
|
|
@@ -10,9 +10,9 @@ declare const __propDef: {
|
|
|
10
10
|
};
|
|
11
11
|
slots: {};
|
|
12
12
|
};
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
13
|
+
export type ConnectedPointsProps = typeof __propDef.props;
|
|
14
|
+
export type ConnectedPointsEvents = typeof __propDef.events;
|
|
15
|
+
export type ConnectedPointsSlots = typeof __propDef.slots;
|
|
16
16
|
export default class ConnectedPoints extends SvelteComponentTyped<ConnectedPointsProps, ConnectedPointsEvents, ConnectedPointsSlots> {
|
|
17
17
|
}
|
|
18
18
|
export {};
|
|
@@ -18,9 +18,9 @@ declare const __propDef: {
|
|
|
18
18
|
default: {};
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
21
|
+
export type GroupProps = typeof __propDef.props;
|
|
22
|
+
export type GroupEvents = typeof __propDef.events;
|
|
23
|
+
export type GroupSlots = typeof __propDef.slots;
|
|
24
24
|
export default class Group extends SvelteComponentTyped<GroupProps, GroupEvents, GroupSlots> {
|
|
25
25
|
}
|
|
26
26
|
export {};
|
|
@@ -10,9 +10,9 @@ declare const __propDef: {
|
|
|
10
10
|
};
|
|
11
11
|
slots: {};
|
|
12
12
|
};
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
13
|
+
export type HighlightLineProps = typeof __propDef.props;
|
|
14
|
+
export type HighlightLineEvents = typeof __propDef.events;
|
|
15
|
+
export type HighlightLineSlots = typeof __propDef.slots;
|
|
16
16
|
export default class HighlightLine extends SvelteComponentTyped<HighlightLineProps, HighlightLineEvents, HighlightLineSlots> {
|
|
17
17
|
}
|
|
18
18
|
export {};
|
|
@@ -11,9 +11,9 @@ declare const __propDef: {
|
|
|
11
11
|
};
|
|
12
12
|
slots: {};
|
|
13
13
|
};
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
14
|
+
export type HighlightRectProps = typeof __propDef.props;
|
|
15
|
+
export type HighlightRectEvents = typeof __propDef.events;
|
|
16
|
+
export type HighlightRectSlots = typeof __propDef.slots;
|
|
17
17
|
export default class HighlightRect extends SvelteComponentTyped<HighlightRectProps, HighlightRectEvents, HighlightRectSlots> {
|
|
18
18
|
}
|
|
19
19
|
export {};
|
package/components/Labels.svelte
CHANGED
|
@@ -98,7 +98,7 @@ $: getValue = (item) => {
|
|
|
98
98
|
textAnchor="middle"
|
|
99
99
|
verticalAnchor="middle"
|
|
100
100
|
value={getValue(item)}
|
|
101
|
-
class="group-rect text-xs stroke-white [stroke-width:
|
|
101
|
+
class="group-rect text-xs stroke-white [stroke-width:2px]"
|
|
102
102
|
{...getDimensions(item)}
|
|
103
103
|
{...$$restProps}
|
|
104
104
|
/>
|
|
@@ -16,9 +16,9 @@ declare const __propDef: {
|
|
|
16
16
|
};
|
|
17
17
|
slots: {};
|
|
18
18
|
};
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
19
|
+
export type LabelsProps = typeof __propDef.props;
|
|
20
|
+
export type LabelsEvents = typeof __propDef.events;
|
|
21
|
+
export type LabelsSlots = typeof __propDef.slots;
|
|
22
22
|
export default class Labels extends SvelteComponentTyped<LabelsProps, LabelsEvents, LabelsSlots> {
|
|
23
23
|
}
|
|
24
24
|
export {};
|
|
@@ -15,9 +15,9 @@ declare const __propDef: {
|
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
18
|
+
export type LegendProps = typeof __propDef.props;
|
|
19
|
+
export type LegendEvents = typeof __propDef.events;
|
|
20
|
+
export type LegendSlots = typeof __propDef.slots;
|
|
21
21
|
export default class Legend extends SvelteComponentTyped<LegendProps, LegendEvents, LegendSlots> {
|
|
22
22
|
}
|
|
23
23
|
export {};
|
|
@@ -15,9 +15,9 @@ declare const __propDef: {
|
|
|
15
15
|
};
|
|
16
16
|
slots: {};
|
|
17
17
|
};
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
18
|
+
export type LineProps = typeof __propDef.props;
|
|
19
|
+
export type LineEvents = typeof __propDef.events;
|
|
20
|
+
export type LineSlots = typeof __propDef.slots;
|
|
21
21
|
export default class Line extends SvelteComponentTyped<LineProps, LineEvents, LineSlots> {
|
|
22
22
|
}
|
|
23
23
|
export {};
|
|
@@ -20,9 +20,9 @@ declare const __propDef: {
|
|
|
20
20
|
default: {};
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
23
|
+
export type LinearGradientProps = typeof __propDef.props;
|
|
24
|
+
export type LinearGradientEvents = typeof __propDef.events;
|
|
25
|
+
export type LinearGradientSlots = typeof __propDef.slots;
|
|
26
26
|
export default class LinearGradient extends SvelteComponentTyped<LinearGradientProps, LinearGradientEvents, LinearGradientSlots> {
|
|
27
27
|
}
|
|
28
28
|
export {};
|
|
@@ -24,9 +24,9 @@ declare const __propDef: {
|
|
|
24
24
|
};
|
|
25
25
|
slots: {};
|
|
26
26
|
};
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
27
|
+
export type LinkProps = typeof __propDef.props;
|
|
28
|
+
export type LinkEvents = typeof __propDef.events;
|
|
29
|
+
export type LinkSlots = typeof __propDef.slots;
|
|
30
30
|
export default class Link extends SvelteComponentTyped<LinkProps, LinkEvents, LinkSlots> {
|
|
31
31
|
}
|
|
32
32
|
export {};
|
|
@@ -15,9 +15,9 @@ declare const __propDef: {
|
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
18
|
+
export type PackProps = typeof __propDef.props;
|
|
19
|
+
export type PackEvents = typeof __propDef.events;
|
|
20
|
+
export type PackSlots = typeof __propDef.slots;
|
|
21
21
|
export default class Pack extends SvelteComponentTyped<PackProps, PackEvents, PackSlots> {
|
|
22
22
|
}
|
|
23
23
|
export {};
|
|
@@ -19,9 +19,9 @@ declare const __propDef: {
|
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export
|
|
22
|
+
export type PartitionProps = typeof __propDef.props;
|
|
23
|
+
export type PartitionEvents = typeof __propDef.events;
|
|
24
|
+
export type PartitionSlots = typeof __propDef.slots;
|
|
25
25
|
export default class Partition extends SvelteComponentTyped<PartitionProps, PartitionEvents, PartitionSlots> {
|
|
26
26
|
}
|
|
27
27
|
export {};
|
|
@@ -19,9 +19,9 @@ declare const __propDef: {
|
|
|
19
19
|
};
|
|
20
20
|
slots: {};
|
|
21
21
|
};
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export
|
|
22
|
+
export type PathProps = typeof __propDef.props;
|
|
23
|
+
export type PathEvents = typeof __propDef.events;
|
|
24
|
+
export type PathSlots = typeof __propDef.slots;
|
|
25
25
|
export default class Path extends SvelteComponentTyped<PathProps, PathEvents, PathSlots> {
|
|
26
26
|
}
|
|
27
27
|
export {};
|
|
@@ -13,9 +13,9 @@ declare const __propDef: {
|
|
|
13
13
|
default: {};
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
16
|
+
export type PatternProps = typeof __propDef.props;
|
|
17
|
+
export type PatternEvents = typeof __propDef.events;
|
|
18
|
+
export type PatternSlots = typeof __propDef.slots;
|
|
19
19
|
export default class Pattern extends SvelteComponentTyped<PatternProps, PatternEvents, PatternSlots> {
|
|
20
20
|
}
|
|
21
21
|
export {};
|
|
@@ -46,9 +46,9 @@ declare const __propDef: {
|
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
|
-
export
|
|
50
|
-
export
|
|
51
|
-
export
|
|
49
|
+
export type PieProps = typeof __propDef.props;
|
|
50
|
+
export type PieEvents = typeof __propDef.events;
|
|
51
|
+
export type PieSlots = typeof __propDef.slots;
|
|
52
52
|
export default class Pie extends SvelteComponentTyped<PieProps, PieEvents, PieSlots> {
|
|
53
53
|
}
|
|
54
54
|
export {};
|
|
@@ -20,9 +20,9 @@ declare const __propDef: {
|
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
23
|
+
export type PointsProps = typeof __propDef.props;
|
|
24
|
+
export type PointsEvents = typeof __propDef.events;
|
|
25
|
+
export type PointsSlots = typeof __propDef.slots;
|
|
26
26
|
export default class Points extends SvelteComponentTyped<PointsProps, PointsEvents, PointsSlots> {
|
|
27
27
|
}
|
|
28
28
|
export {};
|
|
@@ -21,9 +21,9 @@ declare const __propDef: {
|
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
24
|
+
export type RectClipPathProps = typeof __propDef.props;
|
|
25
|
+
export type RectClipPathEvents = typeof __propDef.events;
|
|
26
|
+
export type RectClipPathSlots = typeof __propDef.slots;
|
|
27
27
|
export default class RectClipPath extends SvelteComponentTyped<RectClipPathProps, RectClipPathEvents, RectClipPathSlots> {
|
|
28
28
|
}
|
|
29
29
|
export {};
|
|
@@ -20,14 +20,14 @@ declare const __propDef: {
|
|
|
20
20
|
};
|
|
21
21
|
slots: {
|
|
22
22
|
default: {
|
|
23
|
-
nodes:
|
|
24
|
-
links:
|
|
23
|
+
nodes: import("d3-sankey").SankeyNodeMinimal<{}, {}>[];
|
|
24
|
+
links: import("d3-sankey").SankeyLinkMinimal<{}, {}>[];
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
export
|
|
28
|
+
export type SankeyProps = typeof __propDef.props;
|
|
29
|
+
export type SankeyEvents = typeof __propDef.events;
|
|
30
|
+
export type SankeySlots = typeof __propDef.slots;
|
|
31
31
|
export default class Sankey extends SvelteComponentTyped<SankeyProps, SankeyEvents, SankeySlots> {
|
|
32
32
|
}
|
|
33
33
|
export {};
|
|
@@ -20,9 +20,9 @@ declare const __propDef: {
|
|
|
20
20
|
};
|
|
21
21
|
slots: {};
|
|
22
22
|
};
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
23
|
+
export type TextProps = typeof __propDef.props;
|
|
24
|
+
export type TextEvents = typeof __propDef.events;
|
|
25
|
+
export type TextSlots = typeof __propDef.slots;
|
|
26
26
|
export default class Text extends SvelteComponentTyped<TextProps, TextEvents, TextSlots> {
|
|
27
27
|
}
|
|
28
28
|
export {};
|
|
@@ -27,9 +27,9 @@ declare const __propDef: {
|
|
|
27
27
|
default: {};
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
-
export
|
|
31
|
-
export
|
|
32
|
-
export
|
|
30
|
+
export type ThresholdProps = typeof __propDef.props;
|
|
31
|
+
export type ThresholdEvents = typeof __propDef.events;
|
|
32
|
+
export type ThresholdSlots = typeof __propDef.slots;
|
|
33
33
|
export default class Threshold extends SvelteComponentTyped<ThresholdProps, ThresholdEvents, ThresholdSlots> {
|
|
34
34
|
}
|
|
35
35
|
export {};
|
|
@@ -28,9 +28,9 @@ declare const __propDef: {
|
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
export
|
|
32
|
-
export
|
|
33
|
-
export
|
|
31
|
+
export type TooltipProps = typeof __propDef.props;
|
|
32
|
+
export type TooltipEvents = typeof __propDef.events;
|
|
33
|
+
export type TooltipSlots = typeof __propDef.slots;
|
|
34
34
|
export default class Tooltip extends SvelteComponentTyped<TooltipProps, TooltipEvents, TooltipSlots> {
|
|
35
35
|
}
|
|
36
36
|
export {};
|
|
@@ -11,9 +11,9 @@ declare const __propDef: {
|
|
|
11
11
|
default: {};
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
14
|
+
export type TooltipContainerProps = typeof __propDef.props;
|
|
15
|
+
export type TooltipContainerEvents = typeof __propDef.events;
|
|
16
|
+
export type TooltipContainerSlots = typeof __propDef.slots;
|
|
17
17
|
export default class TooltipContainer extends SvelteComponentTyped<TooltipContainerProps, TooltipContainerEvents, TooltipContainerSlots> {
|
|
18
18
|
}
|
|
19
19
|
export {};
|
|
@@ -13,9 +13,9 @@ declare const __propDef: {
|
|
|
13
13
|
default: {};
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
16
|
+
export type TooltipItemProps = typeof __propDef.props;
|
|
17
|
+
export type TooltipItemEvents = typeof __propDef.events;
|
|
18
|
+
export type TooltipItemSlots = typeof __propDef.slots;
|
|
19
19
|
export default class TooltipItem extends SvelteComponentTyped<TooltipItemProps, TooltipItemEvents, TooltipItemSlots> {
|
|
20
20
|
}
|
|
21
21
|
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/** @typedef {typeof __propDef.props} TooltipSeparatorProps */
|
|
2
2
|
/** @typedef {typeof __propDef.events} TooltipSeparatorEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} TooltipSeparatorSlots */
|
|
4
|
-
export default class TooltipSeparator extends SvelteComponentTyped<{
|
|
4
|
+
export default class TooltipSeparator extends SvelteComponentTyped<{
|
|
5
|
+
[x: string]: never;
|
|
6
|
+
}, {
|
|
5
7
|
[evt: string]: CustomEvent<any>;
|
|
6
8
|
}, {}> {
|
|
7
9
|
}
|
|
@@ -10,7 +12,9 @@ export type TooltipSeparatorEvents = typeof __propDef.events;
|
|
|
10
12
|
export type TooltipSeparatorSlots = typeof __propDef.slots;
|
|
11
13
|
import { SvelteComponentTyped } from "svelte";
|
|
12
14
|
declare const __propDef: {
|
|
13
|
-
props: {
|
|
15
|
+
props: {
|
|
16
|
+
[x: string]: never;
|
|
17
|
+
};
|
|
14
18
|
events: {
|
|
15
19
|
[evt: string]: CustomEvent<any>;
|
|
16
20
|
};
|
|
@@ -24,9 +24,9 @@ declare const __propDef: {
|
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
27
|
+
export type TreeProps = typeof __propDef.props;
|
|
28
|
+
export type TreeEvents = typeof __propDef.events;
|
|
29
|
+
export type TreeSlots = typeof __propDef.slots;
|
|
30
30
|
export default class Tree extends SvelteComponentTyped<TreeProps, TreeEvents, TreeSlots> {
|
|
31
31
|
}
|
|
32
32
|
export {};
|
|
@@ -21,9 +21,9 @@ declare const __propDef: {
|
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
24
|
+
export type TreemapProps = typeof __propDef.props;
|
|
25
|
+
export type TreemapEvents = typeof __propDef.events;
|
|
26
|
+
export type TreemapSlots = typeof __propDef.slots;
|
|
27
27
|
export default class Treemap extends SvelteComponentTyped<TreemapProps, TreemapEvents, TreemapSlots> {
|
|
28
28
|
}
|
|
29
29
|
export {};
|
|
@@ -28,9 +28,9 @@ declare const __propDef: {
|
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
export
|
|
32
|
-
export
|
|
33
|
-
export
|
|
31
|
+
export type ZoomProps = typeof __propDef.props;
|
|
32
|
+
export type ZoomEvents = typeof __propDef.events;
|
|
33
|
+
export type ZoomSlots = typeof __propDef.slots;
|
|
34
34
|
export default class Zoom extends SvelteComponentTyped<ZoomProps, ZoomEvents, ZoomSlots> {
|
|
35
35
|
get reset(): () => void;
|
|
36
36
|
get increase(): () => void;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/** @typedef {typeof __propDef.props} BlockquoteProps */
|
|
2
2
|
/** @typedef {typeof __propDef.events} BlockquoteEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} BlockquoteSlots */
|
|
4
|
-
export default class Blockquote extends SvelteComponentTyped<{
|
|
4
|
+
export default class Blockquote extends SvelteComponentTyped<{
|
|
5
|
+
[x: string]: never;
|
|
6
|
+
}, {
|
|
5
7
|
[evt: string]: CustomEvent<any>;
|
|
6
8
|
}, {
|
|
7
9
|
default: {};
|
|
@@ -12,7 +14,9 @@ export type BlockquoteEvents = typeof __propDef.events;
|
|
|
12
14
|
export type BlockquoteSlots = typeof __propDef.slots;
|
|
13
15
|
import { SvelteComponentTyped } from "svelte";
|
|
14
16
|
declare const __propDef: {
|
|
15
|
-
props: {
|
|
17
|
+
props: {
|
|
18
|
+
[x: string]: never;
|
|
19
|
+
};
|
|
16
20
|
events: {
|
|
17
21
|
[evt: string]: CustomEvent<any>;
|
|
18
22
|
};
|
package/docs/Code.svelte.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/** @typedef {typeof __propDef.props} CodeProps */
|
|
2
2
|
/** @typedef {typeof __propDef.events} CodeEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} CodeSlots */
|
|
4
|
-
export default class Code extends SvelteComponentTyped<{
|
|
4
|
+
export default class Code extends SvelteComponentTyped<{
|
|
5
|
+
[x: string]: never;
|
|
6
|
+
}, {
|
|
5
7
|
[evt: string]: CustomEvent<any>;
|
|
6
8
|
}, {
|
|
7
9
|
default: {};
|
|
@@ -12,7 +14,9 @@ export type CodeEvents = typeof __propDef.events;
|
|
|
12
14
|
export type CodeSlots = typeof __propDef.slots;
|
|
13
15
|
import { SvelteComponentTyped } from "svelte";
|
|
14
16
|
declare const __propDef: {
|
|
15
|
-
props: {
|
|
17
|
+
props: {
|
|
18
|
+
[x: string]: never;
|
|
19
|
+
};
|
|
16
20
|
events: {
|
|
17
21
|
[evt: string]: CustomEvent<any>;
|
|
18
22
|
};
|
package/docs/Header1.svelte.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} Header1Events */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} Header1Slots */
|
|
4
4
|
export default class Header1 extends SvelteComponentTyped<{
|
|
5
|
-
[x: string]:
|
|
5
|
+
[x: string]: never;
|
|
6
6
|
}, {
|
|
7
7
|
[evt: string]: CustomEvent<any>;
|
|
8
8
|
}, {
|
|
@@ -15,7 +15,7 @@ export type Header1Slots = typeof __propDef.slots;
|
|
|
15
15
|
import { SvelteComponentTyped } from "svelte";
|
|
16
16
|
declare const __propDef: {
|
|
17
17
|
props: {
|
|
18
|
-
[x: string]:
|
|
18
|
+
[x: string]: never;
|
|
19
19
|
};
|
|
20
20
|
events: {
|
|
21
21
|
[evt: string]: CustomEvent<any>;
|
package/docs/Layout.svelte
CHANGED
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
|
|
14
14
|
<script>
|
|
15
15
|
// frontmatter: https://mdsvex.com/docs#frontmatter-1
|
|
16
|
-
export let name;
|
|
17
|
-
export let sourceUrl;
|
|
18
|
-
export let docUrl;
|
|
19
|
-
export let description;
|
|
16
|
+
export let name = undefined;
|
|
17
|
+
export let sourceUrl = undefined;
|
|
18
|
+
export let docUrl = undefined;
|
|
19
|
+
export let description = undefined;
|
|
20
20
|
</script>
|
|
21
21
|
|
|
22
22
|
{#if name}
|
package/docs/Layout.svelte.d.ts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} LayoutEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} LayoutSlots */
|
|
4
4
|
export default class Layout extends SvelteComponentTyped<{
|
|
5
|
-
name
|
|
6
|
-
sourceUrl
|
|
7
|
-
docUrl
|
|
8
|
-
description
|
|
5
|
+
name?: any;
|
|
6
|
+
sourceUrl?: any;
|
|
7
|
+
docUrl?: any;
|
|
8
|
+
description?: any;
|
|
9
9
|
}, {
|
|
10
10
|
[evt: string]: CustomEvent<any>;
|
|
11
11
|
}, {
|
|
@@ -22,10 +22,10 @@ import h1 from "./Header1.svelte";
|
|
|
22
22
|
import { SvelteComponentTyped } from "svelte";
|
|
23
23
|
declare const __propDef: {
|
|
24
24
|
props: {
|
|
25
|
-
name
|
|
26
|
-
sourceUrl
|
|
27
|
-
docUrl
|
|
28
|
-
description
|
|
25
|
+
name?: any;
|
|
26
|
+
sourceUrl?: any;
|
|
27
|
+
docUrl?: any;
|
|
28
|
+
description?: any;
|
|
29
29
|
};
|
|
30
30
|
events: {
|
|
31
31
|
[evt: string]: CustomEvent<any>;
|
package/docs/Link.svelte.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} LinkEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} LinkSlots */
|
|
4
4
|
export default class Link extends SvelteComponentTyped<{
|
|
5
|
-
[x: string]:
|
|
5
|
+
[x: string]: never;
|
|
6
6
|
}, {
|
|
7
7
|
[evt: string]: CustomEvent<any>;
|
|
8
8
|
}, {
|
|
@@ -15,7 +15,7 @@ export type LinkSlots = typeof __propDef.slots;
|
|
|
15
15
|
import { SvelteComponentTyped } from "svelte";
|
|
16
16
|
declare const __propDef: {
|
|
17
17
|
props: {
|
|
18
|
-
[x: string]:
|
|
18
|
+
[x: string]: never;
|
|
19
19
|
};
|
|
20
20
|
events: {
|
|
21
21
|
[evt: string]: CustomEvent<any>;
|
package/docs/Preview.svelte.d.ts
CHANGED
|
@@ -14,9 +14,9 @@ declare const __propDef: {
|
|
|
14
14
|
default: {};
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
17
|
+
export type PreviewProps = typeof __propDef.props;
|
|
18
|
+
export type PreviewEvents = typeof __propDef.events;
|
|
19
|
+
export type PreviewSlots = typeof __propDef.slots;
|
|
20
20
|
export default class Preview extends SvelteComponentTyped<PreviewProps, PreviewEvents, PreviewSlots> {
|
|
21
21
|
}
|
|
22
22
|
export {};
|
package/package.json
CHANGED
|
@@ -3,36 +3,37 @@
|
|
|
3
3
|
"author": "Sean Lynch <techniq35@gmail.com>",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "techniq/layerchart",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.12.0",
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@rollup/plugin-dsv": "^
|
|
9
|
-
"@sveltejs/adapter-vercel": "^1.0.0-next.
|
|
10
|
-
"@sveltejs/kit": "^1.0.0-next.
|
|
11
|
-
"@
|
|
8
|
+
"@rollup/plugin-dsv": "^3.0.1",
|
|
9
|
+
"@sveltejs/adapter-vercel": "^1.0.0-next.84",
|
|
10
|
+
"@sveltejs/kit": "^1.0.0-next.567",
|
|
11
|
+
"@sveltejs/package": "^1.0.0-next.6",
|
|
12
|
+
"@tailwindcss/typography": "^0.5.8",
|
|
12
13
|
"@types/d3-array": "^3.0.3",
|
|
13
14
|
"@types/d3-delaunay": "^6.0.1",
|
|
14
15
|
"@types/d3-dsv": "^3.0.0",
|
|
15
16
|
"@types/d3-hierarchy": "^3.1.0",
|
|
16
17
|
"@types/d3-quadtree": "^3.0.2",
|
|
17
|
-
"@types/d3-sankey": "^0.
|
|
18
|
+
"@types/d3-sankey": "^0.12.0",
|
|
18
19
|
"@types/d3-scale": "^4.0.2",
|
|
19
20
|
"@types/d3-shape": "^3.1.0",
|
|
20
21
|
"@types/lodash-es": "^4.17.6",
|
|
21
|
-
"autoprefixer": "^10.4.
|
|
22
|
+
"autoprefixer": "^10.4.13",
|
|
22
23
|
"mdsvex": "^0.10.6",
|
|
23
|
-
"prettier": "^2.
|
|
24
|
-
"prettier-plugin-svelte": "^2.
|
|
24
|
+
"prettier": "^2.8.0",
|
|
25
|
+
"prettier-plugin-svelte": "^2.8.1",
|
|
25
26
|
"prism-themes": "^1.9.0",
|
|
26
|
-
"rehype-slug": "^5.0
|
|
27
|
-
"svelte": "^
|
|
28
|
-
"svelte-check": "^2.9.1",
|
|
27
|
+
"rehype-slug": "^5.1.0",
|
|
28
|
+
"svelte-check": "^2.10.0",
|
|
29
29
|
"svelte-preprocess": "^4.10.7",
|
|
30
|
-
"svelte2tsx": "^0.5.
|
|
31
|
-
"tailwindcss": "^3.
|
|
32
|
-
"tslib": "^2.4.
|
|
33
|
-
"typescript": "^4.
|
|
30
|
+
"svelte2tsx": "^0.5.21",
|
|
31
|
+
"tailwindcss": "^3.2.4",
|
|
32
|
+
"tslib": "^2.4.1",
|
|
33
|
+
"typescript": "^4.9.3",
|
|
34
34
|
"unist-util-visit": "^4.1.1",
|
|
35
|
-
"vite
|
|
35
|
+
"vite": "^3.2.4",
|
|
36
|
+
"vite-plugin-sveld": "^1.1.0"
|
|
36
37
|
},
|
|
37
38
|
"type": "module",
|
|
38
39
|
"dependencies": {
|
|
@@ -50,7 +51,8 @@
|
|
|
50
51
|
"date-fns": "^2.29.3",
|
|
51
52
|
"layercake": "^7.1.0",
|
|
52
53
|
"lodash-es": "^4.17.21",
|
|
53
|
-
"svelte
|
|
54
|
+
"svelte": "^3.53.1",
|
|
55
|
+
"svelte-ux": ">=0.21"
|
|
54
56
|
},
|
|
55
57
|
"exports": {
|
|
56
58
|
"./package.json": "./package.json",
|
package/stores/motionStore.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { spring, tweened } from 'svelte/motion';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type SpringOptions = Parameters<typeof spring>[1];
|
|
3
|
+
export type TweenedOptions = Parameters<typeof tweened>[1];
|
|
4
|
+
export type MotionOptions = {
|
|
5
5
|
spring?: boolean | SpringOptions;
|
|
6
6
|
tweened?: boolean | TweenedOptions;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type PropMotionOptions = {
|
|
9
9
|
spring?: boolean | SpringOptions | {
|
|
10
10
|
[prop: string]: SpringOptions;
|
|
11
11
|
};
|
package/utils/stack.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { stackOffsetNone, stackOrderNone } from 'd3-shape';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type OrderType = typeof stackOrderNone;
|
|
3
|
+
type OffsetType = typeof stackOffsetNone;
|
|
4
4
|
export declare function createStackData(data: any[], options: {
|
|
5
5
|
xKey: string;
|
|
6
6
|
groupBy?: string;
|