From a4250fb52fcdab8af992b8a724d95533aaebf3fe Mon Sep 17 00:00:00 2001 From: gka Date: Tue, 8 Jul 2025 17:14:13 +0200 Subject: [PATCH] feat: pass scales and options to overlay snippet --- src/lib/core/Plot.svelte | 15 ++++++++++++++- src/lib/types/plot.ts | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/lib/core/Plot.svelte b/src/lib/core/Plot.svelte index 915f1837..01db56b6 100644 --- a/src/lib/core/Plot.svelte +++ b/src/lib/core/Plot.svelte @@ -519,7 +519,20 @@ {/if} - {#if overlay}
{@render overlay?.()}
{/if} + {#if overlay}
+ {@render overlay?.({ + width, + height, + options: plotOptions, + scales: plotState.scales, + mapXY, + hasProjection, + hasExplicitAxisX, + hasExplicitAxisY, + hasExplicitGridX, + hasExplicitGridY + })} +
{/if} {#if footer}