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 as HTMLElement | SVGElement).style.cursor = 'pointer';
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 as HTMLElement | SVGElement).style.cursor = 'default';
435
+ asAny(e.target).style.cursor = 'default';
435
436
  }
436
437
  onpointleave(e, { point, data: highlightData });
437
438
  })}
@@ -5,7 +5,7 @@
5
5
  <div
6
6
  class={cls(
7
7
  'TooltipList',
8
- 'grid grid-cols-[1fr,auto] gap-x-2 gap-y-1 items-center',
8
+ 'grid grid-cols-[1fr_auto] gap-x-2 gap-y-1 items-center',
9
9
  $$props.class
10
10
  )}
11
11
  >
@@ -30,7 +30,7 @@
30
30
  {/each}
31
31
  </div>
32
32
 
33
- <div class="grid grid-cols-[auto,1fr]">
33
+ <div class="grid grid-cols-[auto_1fr]">
34
34
  <span class="opacity-50">center:</span>
35
35
  <span class="text-right">
36
36
  {$geo.center?.()}
@@ -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-[1fr,auto] gap-3 items-center p-4">
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-[1fr,auto] gap-3 items-center p-4">
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>
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.94.1",
7
+ "version": "0.94.3",
8
8
  "devDependencies": {
9
9
  "@changesets/cli": "^2.27.12",
10
10
  "@mdi/js": "^7.4.47",