From c59803e6cc5112411d29291fbdcc5f5c2ab7df90 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Tue, 28 May 2024 13:20:11 +0200 Subject: [PATCH] fix(minimap): allow `PanelPositionType` as position value --- packages/minimap/src/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/minimap/src/types.ts b/packages/minimap/src/types.ts index b5c53b58..c4e812c7 100644 --- a/packages/minimap/src/types.ts +++ b/packages/minimap/src/types.ts @@ -1,4 +1,4 @@ -import type { Dimensions, GraphNode, NodeMouseEvent, PanelPosition, XYPosition } from '@vue-flow/core' +import type { Dimensions, GraphNode, NodeMouseEvent, PanelPosition, PanelPositionType, XYPosition } from '@vue-flow/core' import type { CSSProperties, InjectionKey } from 'vue' /** expects a node and returns a color value */ @@ -24,7 +24,7 @@ export interface MiniMapProps { /** Border width of minimap mask */ maskStrokeWidth?: number /** Position of the minimap {@link PanelPosition} */ - position?: PanelPosition + position?: PanelPositionType | PanelPosition /** Enable drag minimap to drag viewport */ pannable?: boolean /** Enable zoom minimap to zoom viewport */