Skip to content

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
Discussion options

You must be logged in to vote

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

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@bcakmakoglu
Comment options

@bcakmakoglu
Comment options

@Congyuwang
Comment options

@bcakmakoglu
Comment options

@bcakmakoglu
Comment options

Answer selected by Congyuwang
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants