fix: missing mouseevent on minimap node click
This commit is contained in:
@@ -29,14 +29,16 @@ const MiniMapNode: FunctionalComponent<MiniMapNodeProps> = function (
|
|||||||
stroke: strokeColor,
|
stroke: strokeColor,
|
||||||
strokeWidth,
|
strokeWidth,
|
||||||
shapeRendering,
|
shapeRendering,
|
||||||
onClick: emit('click'),
|
onClick: (e: MouseEvent) => emit('click', e),
|
||||||
onDblClick: emit('dbl-click'),
|
onDblClick: (e: MouseEvent) => emit('dbl-click', e),
|
||||||
}),
|
}),
|
||||||
slots?.default?.(),
|
slots?.default?.(),
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
MiniMapNode.props = ['position', 'dimensions', 'strokeWidth', 'strokeColor', 'borderRadius', 'color', 'shapeRendering']
|
MiniMapNode.props = ['position', 'dimensions', 'strokeWidth', 'strokeColor', 'borderRadius', 'color', 'shapeRendering']
|
||||||
|
|
||||||
|
// @todo add mouseover events
|
||||||
MiniMapNode.emits = ['click', 'dbl-click']
|
MiniMapNode.emits = ['click', 'dbl-click']
|
||||||
|
|
||||||
export default MiniMapNode
|
export default MiniMapNode
|
||||||
|
|||||||
Reference in New Issue
Block a user