layerchart 0.93.9 → 0.94.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/dist/components/Bar.svelte +2 -2
- package/dist/components/charts/AreaChart.svelte +4 -0
- package/dist/components/charts/BarChart.svelte +4 -0
- package/dist/components/charts/LineChart.svelte +4 -0
- package/dist/components/charts/PieChart.svelte +4 -2
- package/dist/components/charts/PieChart.svelte.d.ts +2 -0
- package/dist/components/charts/ScatterChart.svelte +4 -0
- package/package.json +2 -2
|
@@ -117,14 +117,14 @@
|
|
|
117
117
|
const renderContext = canvasContext ? 'canvas' : 'svg';
|
|
118
118
|
</script>
|
|
119
119
|
|
|
120
|
-
{#if
|
|
120
|
+
{#if _rounded === 'all' || _rounded === 'none' || radius === 0}
|
|
121
121
|
<Rect
|
|
122
122
|
{fill}
|
|
123
123
|
{spring}
|
|
124
124
|
{tweened}
|
|
125
125
|
{stroke}
|
|
126
126
|
{strokeWidth}
|
|
127
|
-
rx={radius}
|
|
127
|
+
rx={_rounded === 'none' ? 0 : radius}
|
|
128
128
|
{onclick}
|
|
129
129
|
{onpointerenter}
|
|
130
130
|
{onpointermove}
|
|
@@ -339,6 +339,8 @@
|
|
|
339
339
|
}}
|
|
340
340
|
|
|
341
341
|
<slot {...slotProps}>
|
|
342
|
+
<slot name="belowContext" {...slotProps} />
|
|
343
|
+
|
|
342
344
|
<svelte:component this={renderContext === 'canvas' ? Canvas : Svg} center={radial} {debug}>
|
|
343
345
|
<slot name="grid" {...slotProps}>
|
|
344
346
|
{#if grid}
|
|
@@ -432,6 +434,8 @@
|
|
|
432
434
|
</ChartClipPath>
|
|
433
435
|
</svelte:component>
|
|
434
436
|
|
|
437
|
+
<slot name="aboveContext" {...slotProps} />
|
|
438
|
+
|
|
435
439
|
<slot name="legend" {...slotProps}>
|
|
436
440
|
{#if legend}
|
|
437
441
|
<Legend
|
|
@@ -345,6 +345,8 @@
|
|
|
345
345
|
getLabelsProps,
|
|
346
346
|
}}
|
|
347
347
|
<slot {...slotProps}>
|
|
348
|
+
<slot name="belowContext" {...slotProps} />
|
|
349
|
+
|
|
348
350
|
<svelte:component this={renderContext === 'canvas' ? Canvas : Svg} {debug}>
|
|
349
351
|
<slot name="grid" {...slotProps}>
|
|
350
352
|
{#if grid}
|
|
@@ -421,6 +423,8 @@
|
|
|
421
423
|
{/if}
|
|
422
424
|
</svelte:component>
|
|
423
425
|
|
|
426
|
+
<slot name="aboveContext" {...slotProps} />
|
|
427
|
+
|
|
424
428
|
<slot name="legend" {...slotProps}>
|
|
425
429
|
{#if legend}
|
|
426
430
|
<Legend
|
|
@@ -269,6 +269,8 @@
|
|
|
269
269
|
getSplineProps,
|
|
270
270
|
}}
|
|
271
271
|
<slot {...slotProps}>
|
|
272
|
+
<slot name="belowContext" {...slotProps} />
|
|
273
|
+
|
|
272
274
|
<svelte:component this={renderContext === 'canvas' ? Canvas : Svg} center={radial} {debug}>
|
|
273
275
|
<slot name="grid" {...slotProps}>
|
|
274
276
|
{#if grid}
|
|
@@ -355,6 +357,8 @@
|
|
|
355
357
|
</ChartClipPath>
|
|
356
358
|
</svelte:component>
|
|
357
359
|
|
|
360
|
+
<slot name="aboveContext" {...slotProps} />
|
|
361
|
+
|
|
358
362
|
<slot name="legend" {...slotProps}>
|
|
359
363
|
{#if legend}
|
|
360
364
|
<Legend
|
|
@@ -206,6 +206,8 @@
|
|
|
206
206
|
visibleData,
|
|
207
207
|
}}
|
|
208
208
|
<slot {...slotProps}>
|
|
209
|
+
<slot name="belowContext" {...slotProps} />
|
|
210
|
+
|
|
209
211
|
<svelte:component this={renderContext === 'canvas' ? Canvas : Svg} {center} {debug}>
|
|
210
212
|
<slot name="belowMarks" {...slotProps} />
|
|
211
213
|
|
|
@@ -293,6 +295,8 @@
|
|
|
293
295
|
<slot name="aboveMarks" {...slotProps} />
|
|
294
296
|
</svelte:component>
|
|
295
297
|
|
|
298
|
+
<slot name="aboveContext" {...slotProps} />
|
|
299
|
+
|
|
296
300
|
<slot name="legend" {...slotProps}>
|
|
297
301
|
{#if legend}
|
|
298
302
|
<Legend
|
|
@@ -321,8 +325,6 @@
|
|
|
321
325
|
|
|
322
326
|
<slot name="tooltip" {...slotProps}>
|
|
323
327
|
<Tooltip.Root {...props.tooltip?.root} let:data>
|
|
324
|
-
<!-- Workaround Svelte `5.9.4` regression as it's not seeing `keyAccessor(data)` to reactively update -->
|
|
325
|
-
{@const key = keyAccessor(data)}
|
|
326
328
|
<Tooltip.List {...props.tooltip?.list}>
|
|
327
329
|
<Tooltip.Item
|
|
328
330
|
label={labelAccessor(data) || keyAccessor(data)}
|
|
@@ -235,6 +235,8 @@
|
|
|
235
235
|
: null}
|
|
236
236
|
|
|
237
237
|
<slot {...slotProps}>
|
|
238
|
+
<slot name="belowContext" {...slotProps} />
|
|
239
|
+
|
|
238
240
|
<svelte:component this={renderContext === 'canvas' ? Canvas : Svg} {debug}>
|
|
239
241
|
<slot name="grid" {...slotProps}>
|
|
240
242
|
{#if grid}
|
|
@@ -299,6 +301,8 @@
|
|
|
299
301
|
</ChartClipPath>
|
|
300
302
|
</svelte:component>
|
|
301
303
|
|
|
304
|
+
<slot name="aboveContext" {...slotProps} />
|
|
305
|
+
|
|
302
306
|
<slot name="legend" {...slotProps}>
|
|
303
307
|
{#if legend}
|
|
304
308
|
<Legend
|
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": "0.
|
|
7
|
+
"version": "0.94.0",
|
|
8
8
|
"devDependencies": {
|
|
9
9
|
"@changesets/cli": "^2.27.12",
|
|
10
10
|
"@mdi/js": "^7.4.47",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"rehype-slug": "^6.0.0",
|
|
51
51
|
"shapefile": "^0.6.6",
|
|
52
52
|
"solar-calculator": "^0.3.0",
|
|
53
|
-
"svelte": "^5.19.
|
|
53
|
+
"svelte": "^5.19.9",
|
|
54
54
|
"svelte-check": "^4.1.4",
|
|
55
55
|
"svelte-json-tree": "^2.2.0",
|
|
56
56
|
"svelte-ux": "^0.90.0",
|