layerchart 0.11.0 → 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.
Files changed (53) hide show
  1. package/components/Arc.svelte.d.ts +3 -3
  2. package/components/Area.svelte.d.ts +3 -3
  3. package/components/AreaStack.svelte.d.ts +3 -3
  4. package/components/AxisX.svelte +1 -1
  5. package/components/AxisX.svelte.d.ts +3 -3
  6. package/components/AxisY.svelte +1 -1
  7. package/components/AxisY.svelte.d.ts +3 -3
  8. package/components/Bars.svelte.d.ts +3 -3
  9. package/components/Baseline.svelte.d.ts +3 -3
  10. package/components/Bounds.svelte.d.ts +3 -3
  11. package/components/Chart.svelte +7 -2
  12. package/components/Chart.svelte.d.ts +7 -5
  13. package/components/ChartClipPath.svelte.d.ts +4 -4
  14. package/components/Circle.svelte.d.ts +3 -3
  15. package/components/CircleClipPath.svelte.d.ts +3 -3
  16. package/components/ClipPath.svelte.d.ts +3 -3
  17. package/components/ConnectedPoints.svelte.d.ts +3 -3
  18. package/components/Group.svelte.d.ts +3 -3
  19. package/components/HighlightLine.svelte.d.ts +3 -3
  20. package/components/HighlightRect.svelte.d.ts +3 -3
  21. package/components/Labels.svelte +1 -1
  22. package/components/Labels.svelte.d.ts +3 -3
  23. package/components/Legend.svelte.d.ts +3 -3
  24. package/components/Line.svelte.d.ts +3 -3
  25. package/components/LinearGradient.svelte.d.ts +3 -3
  26. package/components/Link.svelte.d.ts +3 -3
  27. package/components/Pack.svelte.d.ts +3 -3
  28. package/components/Partition.svelte.d.ts +3 -3
  29. package/components/Path.svelte.d.ts +3 -3
  30. package/components/Pattern.svelte.d.ts +3 -3
  31. package/components/Pie.svelte.d.ts +3 -3
  32. package/components/Points.svelte.d.ts +3 -3
  33. package/components/RectClipPath.svelte.d.ts +3 -3
  34. package/components/Sankey.svelte.d.ts +5 -5
  35. package/components/Text.svelte.d.ts +3 -3
  36. package/components/Threshold.svelte.d.ts +3 -3
  37. package/components/Tooltip.svelte.d.ts +3 -3
  38. package/components/TooltipContainer.svelte.d.ts +3 -3
  39. package/components/TooltipItem.svelte.d.ts +3 -3
  40. package/components/TooltipSeparator.svelte.d.ts +6 -2
  41. package/components/Tree.svelte.d.ts +3 -3
  42. package/components/Treemap.svelte.d.ts +3 -3
  43. package/components/Zoom.svelte.d.ts +3 -3
  44. package/docs/Blockquote.svelte.d.ts +6 -2
  45. package/docs/Code.svelte.d.ts +6 -2
  46. package/docs/Header1.svelte.d.ts +2 -2
  47. package/docs/Layout.svelte +4 -4
  48. package/docs/Layout.svelte.d.ts +8 -8
  49. package/docs/Link.svelte.d.ts +2 -2
  50. package/docs/Preview.svelte.d.ts +3 -3
  51. package/package.json +20 -18
  52. package/stores/motionStore.d.ts +4 -4
  53. package/utils/stack.d.ts +2 -2
@@ -30,9 +30,9 @@ declare const __propDef: {
30
30
  };
31
31
  };
32
32
  };
33
- export declare type ArcProps = typeof __propDef.props;
34
- export declare type ArcEvents = typeof __propDef.events;
35
- export declare type ArcSlots = typeof __propDef.slots;
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 declare type AreaProps = typeof __propDef.props;
27
- export declare type AreaEvents = typeof __propDef.events;
28
- export declare type AreaSlots = typeof __propDef.slots;
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 declare type AreaStackProps = typeof __propDef.props;
17
- export declare type AreaStackEvents = typeof __propDef.events;
18
- export declare type AreaStackSlots = typeof __propDef.slots;
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 {};
@@ -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: 2px] font-light"
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 declare type AxisXProps = typeof __propDef.props;
22
- export declare type AxisXEvents = typeof __propDef.events;
23
- export declare type AxisXSlots = typeof __propDef.slots;
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 {};
@@ -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: 2px] font-light"
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 declare type AxisYProps = typeof __propDef.props;
22
- export declare type AxisYEvents = typeof __propDef.events;
23
- export declare type AxisYSlots = typeof __propDef.slots;
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 declare type BarsProps = typeof __propDef.props;
36
- export declare type BarsEvents = typeof __propDef.events;
37
- export declare type BarsSlots = typeof __propDef.slots;
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 declare type BaselineProps = typeof __propDef.props;
13
- export declare type BaselineEvents = typeof __propDef.events;
14
- export declare type BaselineSlots = typeof __propDef.slots;
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 declare type BoundsProps = typeof __propDef.props;
47
- export declare type BoundsEvents = typeof __propDef.events;
48
- export declare type BoundsSlots = typeof __propDef.slots;
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 {};
@@ -1,5 +1,10 @@
1
- <script context="module">import { LayerCake, Svg, Html } from 'layercake';
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 { Svg, Html };
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 declare type ChartProps = typeof __propDef.props;
29
- export declare type ChartEvents = typeof __propDef.events;
30
- export declare type ChartSlots = typeof __propDef.slots;
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]: any;
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 declare type ChartClipPathProps = typeof __propDef.props;
16
- export declare type ChartClipPathEvents = typeof __propDef.events;
17
- export declare type ChartClipPathSlots = typeof __propDef.slots;
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 declare type CircleProps = typeof __propDef.props;
18
- export declare type CircleEvents = typeof __propDef.events;
19
- export declare type CircleSlots = typeof __propDef.slots;
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 declare type CircleClipPathProps = typeof __propDef.props;
24
- export declare type CircleClipPathEvents = typeof __propDef.events;
25
- export declare type CircleClipPathSlots = typeof __propDef.slots;
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 declare type ClipPathProps = typeof __propDef.props;
17
- export declare type ClipPathEvents = typeof __propDef.events;
18
- export declare type ClipPathSlots = typeof __propDef.slots;
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 declare type ConnectedPointsProps = typeof __propDef.props;
14
- export declare type ConnectedPointsEvents = typeof __propDef.events;
15
- export declare type ConnectedPointsSlots = typeof __propDef.slots;
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 declare type GroupProps = typeof __propDef.props;
22
- export declare type GroupEvents = typeof __propDef.events;
23
- export declare type GroupSlots = typeof __propDef.slots;
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 declare type HighlightLineProps = typeof __propDef.props;
14
- export declare type HighlightLineEvents = typeof __propDef.events;
15
- export declare type HighlightLineSlots = typeof __propDef.slots;
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 declare type HighlightRectProps = typeof __propDef.props;
15
- export declare type HighlightRectEvents = typeof __propDef.events;
16
- export declare type HighlightRectSlots = typeof __propDef.slots;
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 {};
@@ -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: 2px]"
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 declare type LabelsProps = typeof __propDef.props;
20
- export declare type LabelsEvents = typeof __propDef.events;
21
- export declare type LabelsSlots = typeof __propDef.slots;
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 declare type LegendProps = typeof __propDef.props;
19
- export declare type LegendEvents = typeof __propDef.events;
20
- export declare type LegendSlots = typeof __propDef.slots;
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 declare type LineProps = typeof __propDef.props;
19
- export declare type LineEvents = typeof __propDef.events;
20
- export declare type LineSlots = typeof __propDef.slots;
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 declare type LinearGradientProps = typeof __propDef.props;
24
- export declare type LinearGradientEvents = typeof __propDef.events;
25
- export declare type LinearGradientSlots = typeof __propDef.slots;
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 declare type LinkProps = typeof __propDef.props;
28
- export declare type LinkEvents = typeof __propDef.events;
29
- export declare type LinkSlots = typeof __propDef.slots;
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 declare type PackProps = typeof __propDef.props;
19
- export declare type PackEvents = typeof __propDef.events;
20
- export declare type PackSlots = typeof __propDef.slots;
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 declare type PartitionProps = typeof __propDef.props;
23
- export declare type PartitionEvents = typeof __propDef.events;
24
- export declare type PartitionSlots = typeof __propDef.slots;
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 declare type PathProps = typeof __propDef.props;
23
- export declare type PathEvents = typeof __propDef.events;
24
- export declare type PathSlots = typeof __propDef.slots;
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 declare type PatternProps = typeof __propDef.props;
17
- export declare type PatternEvents = typeof __propDef.events;
18
- export declare type PatternSlots = typeof __propDef.slots;
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 declare type PieProps = typeof __propDef.props;
50
- export declare type PieEvents = typeof __propDef.events;
51
- export declare type PieSlots = typeof __propDef.slots;
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 declare type PointsProps = typeof __propDef.props;
24
- export declare type PointsEvents = typeof __propDef.events;
25
- export declare type PointsSlots = typeof __propDef.slots;
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 declare type RectClipPathProps = typeof __propDef.props;
25
- export declare type RectClipPathEvents = typeof __propDef.events;
26
- export declare type RectClipPathSlots = typeof __propDef.slots;
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: any;
24
- links: any;
23
+ nodes: import("d3-sankey").SankeyNodeMinimal<{}, {}>[];
24
+ links: import("d3-sankey").SankeyLinkMinimal<{}, {}>[];
25
25
  };
26
26
  };
27
27
  };
28
- export declare type SankeyProps = typeof __propDef.props;
29
- export declare type SankeyEvents = typeof __propDef.events;
30
- export declare type SankeySlots = typeof __propDef.slots;
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 declare type TextProps = typeof __propDef.props;
24
- export declare type TextEvents = typeof __propDef.events;
25
- export declare type TextSlots = typeof __propDef.slots;
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 declare type ThresholdProps = typeof __propDef.props;
31
- export declare type ThresholdEvents = typeof __propDef.events;
32
- export declare type ThresholdSlots = typeof __propDef.slots;
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 declare type TooltipProps = typeof __propDef.props;
32
- export declare type TooltipEvents = typeof __propDef.events;
33
- export declare type TooltipSlots = typeof __propDef.slots;
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 declare type TooltipContainerProps = typeof __propDef.props;
15
- export declare type TooltipContainerEvents = typeof __propDef.events;
16
- export declare type TooltipContainerSlots = typeof __propDef.slots;
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 declare type TooltipItemProps = typeof __propDef.props;
17
- export declare type TooltipItemEvents = typeof __propDef.events;
18
- export declare type TooltipItemSlots = typeof __propDef.slots;
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 declare type TreeProps = typeof __propDef.props;
28
- export declare type TreeEvents = typeof __propDef.events;
29
- export declare type TreeSlots = typeof __propDef.slots;
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 declare type TreemapProps = typeof __propDef.props;
25
- export declare type TreemapEvents = typeof __propDef.events;
26
- export declare type TreemapSlots = typeof __propDef.slots;
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 declare type ZoomProps = typeof __propDef.props;
32
- export declare type ZoomEvents = typeof __propDef.events;
33
- export declare type ZoomSlots = typeof __propDef.slots;
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
  };
@@ -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
  };
@@ -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]: any;
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]: any;
18
+ [x: string]: never;
19
19
  };
20
20
  events: {
21
21
  [evt: string]: CustomEvent<any>;
@@ -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}
@@ -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: any;
6
- sourceUrl: any;
7
- docUrl: any;
8
- description: any;
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: any;
26
- sourceUrl: any;
27
- docUrl: any;
28
- description: any;
25
+ name?: any;
26
+ sourceUrl?: any;
27
+ docUrl?: any;
28
+ description?: any;
29
29
  };
30
30
  events: {
31
31
  [evt: string]: CustomEvent<any>;
@@ -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]: any;
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]: any;
18
+ [x: string]: never;
19
19
  };
20
20
  events: {
21
21
  [evt: string]: CustomEvent<any>;
@@ -14,9 +14,9 @@ declare const __propDef: {
14
14
  default: {};
15
15
  };
16
16
  };
17
- export declare type PreviewProps = typeof __propDef.props;
18
- export declare type PreviewEvents = typeof __propDef.events;
19
- export declare type PreviewSlots = typeof __propDef.slots;
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.11.0",
6
+ "version": "0.12.0",
7
7
  "devDependencies": {
8
- "@rollup/plugin-dsv": "^2.0.3",
9
- "@sveltejs/adapter-vercel": "^1.0.0-next.59",
10
- "@sveltejs/kit": "^1.0.0-next.354",
11
- "@tailwindcss/typography": "^0.5.7",
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.11.2",
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.12",
22
+ "autoprefixer": "^10.4.13",
22
23
  "mdsvex": "^0.10.6",
23
- "prettier": "^2.7.1",
24
- "prettier-plugin-svelte": "^2.7.1",
24
+ "prettier": "^2.8.0",
25
+ "prettier-plugin-svelte": "^2.8.1",
25
26
  "prism-themes": "^1.9.0",
26
- "rehype-slug": "^5.0.1",
27
- "svelte": "^3.50.1",
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.19",
31
- "tailwindcss": "^3.1.8",
32
- "tslib": "^2.4.0",
33
- "typescript": "^4.8.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-plugin-sveld": "^1.0.3"
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-ux": ">=0.10"
54
+ "svelte": "^3.53.1",
55
+ "svelte-ux": ">=0.21"
54
56
  },
55
57
  "exports": {
56
58
  "./package.json": "./package.json",
@@ -1,11 +1,11 @@
1
1
  import { spring, tweened } from 'svelte/motion';
2
- export declare type SpringOptions = Parameters<typeof spring>[1];
3
- export declare type TweenedOptions = Parameters<typeof tweened>[1];
4
- export declare type MotionOptions = {
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 declare type PropMotionOptions = {
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
- declare type OrderType = typeof stackOrderNone;
3
- declare type OffsetType = typeof stackOffsetNone;
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;