Why the connection starts from the Top Handle when I Try to Pull it From the Right Handle? #471
Answered
by
Congyuwang
Congyuwang
asked this question in
Q&A
-
2022-12-05.16.03.32.mov |
Beta Was this translation helpful? Give feedback.
Answered by
Congyuwang
Dec 5, 2022
Replies: 3 comments 6 replies
-
You probably didn't pass the handles unique ids, did you? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, the handles have unique ids within their Nodes. I have them numbered as 0, 1, 2, 3. <div class="circle-text" ref="circle" :style="circleStyle">
<span ref="labelText" v-text="props.label" class="label-span"
:style="labelStyle"></span>
</div>
<Handle :id="0" :position="Position.Top" class="handle"
:style="{top: '0', left: `${width / 2}px`, ...handleStyle}"/>
<Handle :id="1" :position="Position.Bottom" class="handle"
:style="{top: `${height}px`, left: `${width / 2}px`, ...handleStyle}"/>
<Handle :id="2" :position="Position.Left" class="handle"
:style="{top: `${height / 2}px`, left: '0', ...handleStyle}"/>
<Handle :id="3" :position="Position.Right" class="handle"
:style="{left: `${width}px`, top: `${height / 2}px`, ...handleStyle}"/> |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
Congyuwang
-
It is strange that they just start from the wrong handle but end up connecting the right handles. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, the handles have unique ids within their Nodes. I have them numbered as 0, 1, 2, 3.