Merge pull request #3400 from wbkd/svelte-flow-minimap-style

[fix](svelte) exposed style for MiniMap
This commit is contained in:
Moritz Klack
2023-09-18 13:57:24 +02:00
committed by GitHub
2 changed files with 3 additions and 0 deletions

View File

@@ -34,6 +34,7 @@
export let zoomable: $$Props['zoomable'] = true;
export let inversePan: $$Props['inversePan'] = undefined;
export let zoomStep: $$Props['zoomStep'] = undefined;
export let style: $$Props['style'] = '';
let className: $$Props['class'] = '';
export { className as class };
@@ -82,6 +83,7 @@
<Panel
{position}
{style}
class={cc(['svelte-flow__minimap', className])}
data-testid="svelte-flow__minimap"
>

View File

@@ -16,6 +16,7 @@ export type MiniMapProps = {
maskStrokeWidth?: number;
position?: PanelPosition;
class?: string;
style?: string;
ariaLabel?: string | null;
width?: number;
height?: number;