docs: update minimap-node.md

This commit is contained in:
bcakmakoglu
2022-06-19 21:30:26 +02:00
parent 597cfad39b
commit 1dcfb2dfce
+3 -12
View File
@@ -1,5 +1,8 @@
# MiniMap Node
The minimap node component can be used to extend the default minimap nodes.
You can use it to add an icon to your node, or to add a custom tooltip etc.
## Usage
To use the component pass the `MiniMapNode` as a child to the [`MiniMap`](/guide/components/minimap.html/) component.
@@ -18,18 +21,6 @@ To use the component pass the `MiniMapNode` as a child to the [`MiniMap`](/guide
## Props
id: string
parentNode?: string
selected?: boolean
dragging?: boolean
position: XYPosition
dimensions: Dimensions
borderRadius?: number
color?: string
shapeRendering?: ShapeRendering
strokeColor?: string
strokeWidth?: number
| Name | Definition | Type | Optional | Default |
|----------------|---------------------------------|-----------------------------------------------------|----------|---------|
| id | Node id | string | false | - |