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