layerchart 0.94.1 → 0.94.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.
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
import { isScaleBand } from '../utils/scales.js';
|
|
20
20
|
import { accessor, type Accessor } from '../utils/common.js';
|
|
21
|
+
import { asAny } from '../utils/types.js';
|
|
21
22
|
|
|
22
23
|
const {
|
|
23
24
|
data: contextData,
|
|
@@ -424,14 +425,14 @@
|
|
|
424
425
|
onpointerenter={onpointenter &&
|
|
425
426
|
((e) => {
|
|
426
427
|
if (onpointclick) {
|
|
427
|
-
(e.target
|
|
428
|
+
asAny(e.target).style.cursor = 'pointer';
|
|
428
429
|
}
|
|
429
430
|
onpointenter(e, { point, data: highlightData });
|
|
430
431
|
})}
|
|
431
432
|
onpointerleave={onpointleave &&
|
|
432
433
|
((e) => {
|
|
433
434
|
if (onpointclick) {
|
|
434
|
-
(e.target
|
|
435
|
+
asAny(e.target).style.cursor = 'default';
|
|
435
436
|
}
|
|
436
437
|
onpointleave(e, { point, data: highlightData });
|
|
437
438
|
})}
|
package/dist/docs/Preview.svelte
CHANGED
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
on:close={toggleOff}
|
|
73
73
|
class="max-h-[98dvh] md:max-h-[90dvh] max-w-[98vw] md:max-w-[90vw] grid grid-rows-[auto,1fr,auto]"
|
|
74
74
|
>
|
|
75
|
-
<div class="grid grid-cols-[
|
|
75
|
+
<div class="grid grid-cols-[1fr_auto] gap-3 items-center p-4">
|
|
76
76
|
<div class="overflow-auto">
|
|
77
77
|
<div class="text-lg font-semibold">Chart data</div>
|
|
78
78
|
</div>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
on:close={toggleOff}
|
|
20
20
|
class="max-h-[98dvh] md:max-h-[90dvh] max-w-[98vw] md:max-w-[90vw] grid grid-rows-[auto,1fr,auto]"
|
|
21
21
|
>
|
|
22
|
-
<div class="grid grid-cols-[
|
|
22
|
+
<div class="grid grid-cols-[1fr_auto] gap-3 items-center p-4">
|
|
23
23
|
<div class="overflow-auto">
|
|
24
24
|
<div class="text-lg font-semibold">{label}</div>
|
|
25
25
|
<div class="text-xs text-surface-content/50 truncate">{href}</div>
|