layerchart 1.0.7 → 1.0.9
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/Spline.svelte +14 -10
- package/dist/utils/array.d.ts +2 -1
- package/dist/utils/stack.d.ts +2 -3
- package/dist/utils/stack.js +1 -1
- package/package.json +2 -4
|
@@ -303,19 +303,23 @@
|
|
|
303
303
|
</slot>
|
|
304
304
|
|
|
305
305
|
<slot name="markerMid" id={markerMidId}>
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
306
|
+
{#if markerMid}
|
|
307
|
+
<Marker
|
|
308
|
+
id={markerMidId}
|
|
309
|
+
type={typeof markerMid === 'string' ? markerMid : undefined}
|
|
310
|
+
{...typeof markerMid === 'object' ? markerMid : null}
|
|
311
|
+
/>
|
|
312
|
+
{/if}
|
|
311
313
|
</slot>
|
|
312
314
|
|
|
313
315
|
<slot name="markerEnd" id={markerEndId}>
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
316
|
+
{#if markerEnd}
|
|
317
|
+
<Marker
|
|
318
|
+
id={markerEndId}
|
|
319
|
+
type={typeof markerEnd === 'string' ? markerEnd : undefined}
|
|
320
|
+
{...typeof markerEnd === 'object' ? markerEnd : null}
|
|
321
|
+
/>
|
|
322
|
+
{/if}
|
|
319
323
|
</slot>
|
|
320
324
|
|
|
321
325
|
{#if $$slots.start && $startPoint}
|
package/dist/utils/array.d.ts
CHANGED
package/dist/utils/stack.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
type
|
|
3
|
-
type OffsetType = typeof stackOffsetNone;
|
|
1
|
+
type OrderType = typeof import('d3-shape').stackOrderNone;
|
|
2
|
+
type OffsetType = typeof import('d3-shape').stackOffsetNone;
|
|
4
3
|
export declare function groupStackData<TData>(data: TData[], options: {
|
|
5
4
|
xKey: string;
|
|
6
5
|
groupBy?: string;
|
package/dist/utils/stack.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { flatGroup, group, max, rollup, sum } from 'd3-array';
|
|
2
|
-
import { stack
|
|
2
|
+
import { stack } from 'd3-shape';
|
|
3
3
|
import { pivotWider } from './pivot.js';
|
|
4
4
|
export function groupStackData(data, options) {
|
|
5
5
|
const dataByKey = group(data, (d) => d[options.xKey]);
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"author": "Sean Lynch <techniq35@gmail.com>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "techniq/layerchart",
|
|
7
|
-
"version": "1.0.
|
|
7
|
+
"version": "1.0.9",
|
|
8
8
|
"devDependencies": {
|
|
9
9
|
"@changesets/cli": "^2.28.1",
|
|
10
10
|
"@mdi/js": "^7.4.47",
|
|
@@ -93,9 +93,7 @@
|
|
|
93
93
|
"d3-time": "^3.1.0",
|
|
94
94
|
"date-fns": "^4.1.0",
|
|
95
95
|
"layercake": "^8.4.2",
|
|
96
|
-
"lodash-es": "^4.17.21"
|
|
97
|
-
"shapefile": "^0.6.6",
|
|
98
|
-
"topojson-client": "^3.1.0"
|
|
96
|
+
"lodash-es": "^4.17.21"
|
|
99
97
|
},
|
|
100
98
|
"peerDependencies": {
|
|
101
99
|
"svelte": "^3.56.0 || ^4.0.0 || ^5.0.0"
|