Skip to content

Commit

Permalink
docs: add documentation for MiniMapNode
Browse files Browse the repository at this point in the history
  • Loading branch information
bcakmakoglu committed Jun 15, 2022
1 parent e469708 commit 3587478
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions docs/src/guide/components/minimap-node.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# MiniMap Node

## Usage

To use the component pass the `MiniMapNode` as a child to the [`MiniMap`](/guide/components/minimap.html/) component.

```vue
<template>
<VueFlow>
<MiniMap>
<template #node-input="props">
<MiniMapNode v-bind="props" />
</template>
</MiniMap>
</VueFlow>
</template>
```

## 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 | - |
| parentNode | Parent node id | string | true | - |
| selected | Is node selected | boolean | true | false |
| dragging | Is node dragging | boolean | true | false |
| position | XY position of node | [XYPosition](/typedocs/interfaces/XYPosition.html/) | false | - |
| dimensions | Node dimensions | [Dimensions](/typedocs/interfaces/Dimensions.html/) | false | - |
| borderRadius | MiniMap node css border-radius | number | true | - |
| color | MiniMap node css color | string | true | - |
| shapeRendering | MiniMap node css shapeRendering | ShapeRendering | true | - |
| strokeColor | MiniMap node css stroke-color | string | true | - |
| strokeWidth | MiniMap node css stroke-width | string | true | - |

## Slots

| Name | Definition |
|---------|------------------------------|
| default | Slot below MiniMap node rect |

0 comments on commit 3587478

Please sign in to comment.