docs: update minimap-node.md
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
# MiniMap Node
|
# 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
|
## Usage
|
||||||
|
|
||||||
To use the component pass the `MiniMapNode` as a child to the [`MiniMap`](/guide/components/minimap.html/) component.
|
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
|
## 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 |
|
| Name | Definition | Type | Optional | Default |
|
||||||
|----------------|---------------------------------|-----------------------------------------------------|----------|---------|
|
|----------------|---------------------------------|-----------------------------------------------------|----------|---------|
|
||||||
| id | Node id | string | false | - |
|
| id | Node id | string | false | - |
|
||||||
|
|||||||
Reference in New Issue
Block a user