chore(svelte): rename showInteractive to showLock
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user