Skip to content

Commit c59803e

Browse files
committed
fix(minimap): allow PanelPositionType as position value
1 parent 6bf4107 commit c59803e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/minimap/src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Dimensions, GraphNode, NodeMouseEvent, PanelPosition, XYPosition } from '@vue-flow/core'
1+
import type { Dimensions, GraphNode, NodeMouseEvent, PanelPosition, PanelPositionType, XYPosition } from '@vue-flow/core'
22
import type { CSSProperties, InjectionKey } from 'vue'
33

44
/** expects a node and returns a color value */
@@ -24,7 +24,7 @@ export interface MiniMapProps {
2424
/** Border width of minimap mask */
2525
maskStrokeWidth?: number
2626
/** Position of the minimap {@link PanelPosition} */
27-
position?: PanelPosition
27+
position?: PanelPositionType | PanelPosition
2828
/** Enable drag minimap to drag viewport */
2929
pannable?: boolean
3030
/** Enable zoom minimap to zoom viewport */

0 commit comments

Comments
 (0)