fix: Minimap

This commit is contained in:
Braks
2021-10-20 22:39:54 +02:00
parent 29c6df1755
commit 6b4e7ab3ce
4 changed files with 65 additions and 52 deletions
+8 -3
View File
@@ -1,7 +1,7 @@
import { CSSProperties, HTMLAttributes } from 'vue'
import { Edge, EdgeType } from './edge'
import { Node, NodeExtent, NodeType, TranslateExtent } from './node'
import { ConnectionLineComponent, ConnectionLineType, ConnectionMode } from '~/types/connection'
import { CustomConnectionLine, ConnectionLineType, ConnectionMode } from '~/types/connection'
import { KeyCode, PanOnScrollMode } from '~/types/panel'
export type ElementId = string
@@ -29,6 +29,11 @@ export interface Dimensions {
height: number
}
export interface Box extends XYPosition {
x2: number
y2: number
}
export interface Rect extends Dimensions, XYPosition {}
export type SnapGrid = [number, number]
@@ -85,13 +90,13 @@ export type OnLoadParams<T = any> = {
export type OnLoadFunc<T = any> = (params: OnLoadParams<T>) => void
export interface RevueFlowOptions extends Omit<HTMLAttributes, 'onLoad'> {
export interface FlowOptions extends Omit<HTMLAttributes, 'onLoad'> {
nodeTypes?: Record<string, NodeType>
edgeTypes?: Record<string, EdgeType>
connectionMode?: ConnectionMode
connectionLineType?: ConnectionLineType
connectionLineStyle?: CSSProperties
connectionLineComponent?: ConnectionLineComponent
connectionLineComponent?: CustomConnectionLine
deleteKeyCode?: KeyCode
selectionKeyCode?: KeyCode
multiSelectionKeyCode?: KeyCode