[fix](svelte) exposed style for MiniMap
This commit is contained in:
@@ -34,6 +34,7 @@
|
|||||||
export let zoomable: $$Props['zoomable'] = true;
|
export let zoomable: $$Props['zoomable'] = true;
|
||||||
export let inversePan: $$Props['inversePan'] = undefined;
|
export let inversePan: $$Props['inversePan'] = undefined;
|
||||||
export let zoomStep: $$Props['zoomStep'] = undefined;
|
export let zoomStep: $$Props['zoomStep'] = undefined;
|
||||||
|
export let style: $$Props['style'] = '';
|
||||||
|
|
||||||
let className: $$Props['class'] = '';
|
let className: $$Props['class'] = '';
|
||||||
export { className as class };
|
export { className as class };
|
||||||
@@ -82,6 +83,7 @@
|
|||||||
|
|
||||||
<Panel
|
<Panel
|
||||||
{position}
|
{position}
|
||||||
|
{style}
|
||||||
class={cc(['svelte-flow__minimap', className])}
|
class={cc(['svelte-flow__minimap', className])}
|
||||||
data-testid="svelte-flow__minimap"
|
data-testid="svelte-flow__minimap"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ export type MiniMapProps = {
|
|||||||
maskStrokeWidth?: number;
|
maskStrokeWidth?: number;
|
||||||
position?: PanelPosition;
|
position?: PanelPosition;
|
||||||
class?: string;
|
class?: string;
|
||||||
|
style?: string;
|
||||||
ariaLabel?: string | null;
|
ariaLabel?: string | null;
|
||||||
width?: number;
|
width?: number;
|
||||||
height?: number;
|
height?: number;
|
||||||
|
|||||||
Reference in New Issue
Block a user