@@ -43,27 +43,29 @@ export default {
4343 </script >
4444
4545<template >
46- <component :is =" miniMapSlots[`node-${props.type}`]" v-if =" miniMapSlots[`node-${props.type}`]" v-bind =" props" />
46+ <template v-if =" ! hidden && dimensions .width !== 0 && dimensions .height !== 0 " >
47+ <component :is =" miniMapSlots[`node-${props.type}`]" v-if =" miniMapSlots[`node-${props.type}`]" v-bind =" props" />
4748
48- <rect
49- v-else
50- :id =" id"
51- class =" vue-flow__minimap-node"
52- :class =" { selected, dragging }"
53- :x =" position.x"
54- :y =" position.y"
55- :rx =" borderRadius"
56- :ry =" borderRadius"
57- :width =" dimensions.width"
58- :height =" dimensions.height"
59- :fill =" color || (style.background as string) || style.backgroundColor"
60- :stroke =" strokeColor"
61- :stroke-width =" strokeWidth"
62- :shape-rendering =" shapeRendering"
63- @click =" onClick"
64- @dblclick =" onDblclick"
65- @mouseenter =" onMouseEnter"
66- @mousemove =" onMouseMove"
67- @mouseleave =" onMouseLeave"
68- />
49+ <rect
50+ v-else
51+ :id =" id"
52+ class =" vue-flow__minimap-node"
53+ :class =" { selected, dragging }"
54+ :x =" position.x"
55+ :y =" position.y"
56+ :rx =" borderRadius"
57+ :ry =" borderRadius"
58+ :width =" dimensions.width"
59+ :height =" dimensions.height"
60+ :fill =" color || (style.background as string) || style.backgroundColor"
61+ :stroke =" strokeColor"
62+ :stroke-width =" strokeWidth"
63+ :shape-rendering =" shapeRendering"
64+ @click =" onClick"
65+ @dblclick =" onDblclick"
66+ @mouseenter =" onMouseEnter"
67+ @mousemove =" onMouseMove"
68+ @mouseleave =" onMouseLeave"
69+ />
70+ </template >
6971</template >
0 commit comments