fix(minimap): add missing dragging and selected flags to minimap node slots

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2022-12-12 21:32:17 +01:00
committed by Braks
parent 639245b1e2
commit dbeba2e7c8
2 changed files with 15 additions and 1 deletions
@@ -215,6 +215,8 @@ export default {
:position="node.computedPosition"
:dimensions="node.dimensions"
:style="node.style"
:selected="node.selected"
:dragging="node.dragging"
:class="nodeClassNameFunc(node)"
:color="nodeColorFunc(node)"
:border-radius="nodeBorderRadius"
@@ -4,7 +4,19 @@ import { MiniMapSlots } from './types'
export default defineComponent({
name: 'MiniMapNode',
props: ['id', 'position', 'dimensions', 'strokeWidth', 'strokeColor', 'borderRadius', 'color', 'shapeRendering', 'type'],
props: [
'id',
'position',
'dimensions',
'strokeWidth',
'strokeColor',
'borderRadius',
'color',
'shapeRendering',
'type',
'selected',
'dragging',
],
emits: ['click', 'dblclick', 'mouseenter', 'mousemove', 'mouseleave'],
setup(props: MiniMapNodeProps, { attrs, emit }) {
const miniMapSlots: Slots = inject(MiniMapSlots)!