MiniMapNodeProps

Source on GitHub

The MiniMapNodeProps type defines the props for nodes in the MiniMap component. This is only relevant if you pass a custom node type to the MiniMap.

Fields

The props that are passed to the MiniMapNode component

  • id: string
  • x: number
  • y: number
  • width: number
  • height: number
  • borderRadius: number
  • className: string
  • color?: string
  • shapeRendering: string
  • strokeColor?: string
  • strokeWidth?: number
  • style?: CSSProperties
  • selected: boolean
  • onClick?: (event: MouseEvent<Element, MouseEvent>, id: string) => void