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:
@@ -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)!
|
||||
|
||||
Reference in New Issue
Block a user