File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 519
519
{/if }
520
520
</FacetGrid >
521
521
</svg >
522
- {#if overlay }<div class ="plot-overlay" >{@render overlay ?.()}</div >{/if }
522
+ {#if overlay }<div class =" plot-overlay" >
523
+ {@render overlay ?.({
524
+ width ,
525
+ height ,
526
+ options: plotOptions ,
527
+ scales: plotState .scales ,
528
+ mapXY ,
529
+ hasProjection ,
530
+ hasExplicitAxisX ,
531
+ hasExplicitAxisY ,
532
+ hasExplicitGridX ,
533
+ hasExplicitGridY
534
+ })}
535
+ </div >{/if }
523
536
</div >
524
537
{#if footer }
525
538
<figcaption class =" plot-footer" >
Original file line number Diff line number Diff line change @@ -466,7 +466,7 @@ export type PlotOptions = {
466
466
* The overlay snippet is useful for adding a layer of custom HTML markup
467
467
* in front of the SVG body of your plot, e.g. for HTML tooltips.
468
468
*/
469
- overlay : Snippet ;
469
+ overlay : Snippet < [ { width : number ; height : number ; options : PlotOptions ; scales : PlotScales } ] > ;
470
470
facetAxes : Snippet ;
471
471
/**
472
472
* if you set testid, the plot container will get a data-testid attribute which
You can’t perform that action at this time.
0 commit comments