layerchart 0.13.2 → 0.13.3
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/Area.svelte
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script>import { getContext } from 'svelte';
|
|
2
|
-
import {
|
|
2
|
+
import { area as d3Area } from 'd3-shape';
|
|
3
3
|
import { min, max } from 'd3-array';
|
|
4
4
|
import { interpolatePath } from 'd3-interpolate-path';
|
|
5
5
|
import { motionStore } from '../stores/motionStore';
|
package/components/Labels.svelte
CHANGED
|
@@ -7,10 +7,10 @@ import { getContext } from 'svelte';
|
|
|
7
7
|
import { scaleBand } from 'd3-scale';
|
|
8
8
|
import { max, min } from 'd3-array';
|
|
9
9
|
import Text from './Text.svelte';
|
|
10
|
-
import { formatNumberAsStyle
|
|
10
|
+
import { formatNumberAsStyle } from 'svelte-ux/utils/number';
|
|
11
11
|
import { isScaleBand } from '../utils/scales';
|
|
12
12
|
import { greatestAbs, unique } from 'svelte-ux/utils/array';
|
|
13
|
-
import { format as formatValue
|
|
13
|
+
import { format as formatValue } from 'svelte-ux/utils/format';
|
|
14
14
|
const { flatData, xGet, yRange, xScale, yScale, x, y, custom } = getContext('LayerCake');
|
|
15
15
|
export let orientation = 'auto';
|
|
16
16
|
export let significantDigits = 3;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
import { FormatNumberStyle } from 'svelte-ux/utils/number';
|
|
3
|
-
import { FormatType } from 'svelte-ux/utils/format';
|
|
2
|
+
import { type FormatNumberStyle } from 'svelte-ux/utils/number';
|
|
3
|
+
import { type FormatType } from 'svelte-ux/utils/format';
|
|
4
4
|
declare const __propDef: {
|
|
5
5
|
props: {
|
|
6
6
|
[x: string]: any;
|
package/components/Rect.svelte
CHANGED
package/components/Tree.svelte
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script>import { getContext } from 'svelte';
|
|
2
|
-
import {
|
|
2
|
+
import { tree as d3Tree } from 'd3-hierarchy';
|
|
3
3
|
const { data, width, height, padding } = getContext('LayerCake');
|
|
4
4
|
/**
|
|
5
5
|
* Sets this tree layout’s node size to the specified two-element array of numbers `[width, height]`.
|
package/package.json
CHANGED