svelteplot 0.4.2-pr-186.2 → 0.4.2-pr-192.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/core/Plot.svelte
CHANGED
|
@@ -499,8 +499,7 @@
|
|
|
499
499
|
width={fixedWidth || width}
|
|
500
500
|
{height}
|
|
501
501
|
fill="currentColor"
|
|
502
|
-
viewBox="0 0 {width} {height}"
|
|
503
|
-
font-family="system-ui, sans-serif">
|
|
502
|
+
viewBox="0 0 {width} {height}">
|
|
504
503
|
{@render facetAxes?.()}
|
|
505
504
|
<FacetGrid marks={explicitMarks}>
|
|
506
505
|
{#if children}
|
|
@@ -67,7 +67,7 @@ export function addEventHandlers(node, { options, datum, getPlotState }) {
|
|
|
67
67
|
break;
|
|
68
68
|
facetEl = facetEl.parentElement;
|
|
69
69
|
}
|
|
70
|
-
const facetRect = (facetEl?.
|
|
70
|
+
const facetRect = (facetEl?.firstElementChild ?? body).getBoundingClientRect();
|
|
71
71
|
const relativeX = origEvent.clientX - facetRect.left + (options.marginLeft ?? 0);
|
|
72
72
|
const relativeY = origEvent.clientY - facetRect.top + (options.marginTop ?? 0);
|
|
73
73
|
if (scales.projection) {
|