chore(svelte): rename showInteractive to showLock

This commit is contained in:
moklick
2023-10-16 11:14:56 +02:00
parent f68d6d1066
commit 3c30fa4087
2 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@
export let position: $$Props['position'] = 'bottom-left';
export let showZoom: $$Props['showZoom'] = true;
export let showFitView: $$Props['showFitView'] = true;
export let showInteractive: $$Props['showInteractive'] = true;
export let showLock: $$Props['showLock'] = true;
export let buttonBgColor: $$Props['buttonBgColor'] = undefined;
export let buttonBgColorHover: $$Props['buttonBgColorHover'] = undefined;
export let buttonColor: $$Props['buttonColor'] = undefined;
@@ -101,7 +101,7 @@
<FitViewIcon />
</ControlButton>
{/if}
{#if showInteractive}
{#if showLock}
<ControlButton
class="svelte-flow__controls-interactive"
on:click={onToggleInteractivity}

View File

@@ -4,7 +4,7 @@ export type ControlsProps = {
position?: PanelPosition;
showZoom?: boolean;
showFitView?: boolean;
showInteractive?: boolean;
showLock?: boolean;
buttonBgColor?: string;
buttonBgColorHover?: string;
buttonColor?: string;