revert(minimap): inherit attrs

This commit is contained in:
braks
2024-01-21 14:35:35 +01:00
committed by Braks
parent 3364144b85
commit 45b4326f72
-2
View File
@@ -206,7 +206,6 @@ function onNodeMouseLeave(event: MouseEvent, node: GraphNode) {
export default { export default {
name: 'MiniMap', name: 'MiniMap',
compatConfig: { MODE: 3 }, compatConfig: { MODE: 3 },
inheritAttrs: false,
} }
</script> </script>
@@ -214,7 +213,6 @@ export default {
<Panel :position="position" class="vue-flow__minimap" :class="{ pannable, zoomable }"> <Panel :position="position" class="vue-flow__minimap" :class="{ pannable, zoomable }">
<svg <svg
ref="el" ref="el"
v-bind="attrs"
:width="elementWidth" :width="elementWidth"
:height="elementHeight" :height="elementHeight"
:viewBox="[viewBox.x, viewBox.y, viewBox.width, viewBox.height].join(' ')" :viewBox="[viewBox.x, viewBox.y, viewBox.width, viewBox.height].join(' ')"