layerchart 0.93.8 → 0.93.10
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.
|
@@ -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}
|
|
@@ -421,8 +421,20 @@
|
|
|
421
421
|
e.stopPropagation();
|
|
422
422
|
})}
|
|
423
423
|
onclick={onpointclick && ((e) => onpointclick(e, { point, data: highlightData }))}
|
|
424
|
-
onpointerenter={onpointenter &&
|
|
425
|
-
|
|
424
|
+
onpointerenter={onpointenter &&
|
|
425
|
+
((e) => {
|
|
426
|
+
if (onpointclick) {
|
|
427
|
+
(e.target as HTMLElement | SVGElement).style.cursor = 'pointer';
|
|
428
|
+
}
|
|
429
|
+
onpointenter(e, { point, data: highlightData });
|
|
430
|
+
})}
|
|
431
|
+
onpointerleave={onpointleave &&
|
|
432
|
+
((e) => {
|
|
433
|
+
if (onpointclick) {
|
|
434
|
+
(e.target as HTMLElement | SVGElement).style.cursor = 'default';
|
|
435
|
+
}
|
|
436
|
+
onpointleave(e, { point, data: highlightData });
|
|
437
|
+
})}
|
|
426
438
|
/>
|
|
427
439
|
{/each}
|
|
428
440
|
</slot>
|
|
@@ -321,8 +321,6 @@
|
|
|
321
321
|
|
|
322
322
|
<slot name="tooltip" {...slotProps}>
|
|
323
323
|
<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
324
|
<Tooltip.List {...props.tooltip?.list}>
|
|
327
325
|
<Tooltip.Item
|
|
328
326
|
label={labelAccessor(data) || keyAccessor(data)}
|
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.93.
|
|
7
|
+
"version": "0.93.10",
|
|
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",
|