feat(handle): add type and position

This commit is contained in:
moklick
2019-09-11 20:27:53 +02:00
parent a3d476c78a
commit 54af33afc7
13 changed files with 173 additions and 74 deletions
+16 -4
View File
@@ -104,21 +104,33 @@
width: 10px;
height: 8px;
background: rgba(255, 255, 255, 0.4);
cursor: crosshair;
&.source {
&.bottom {
top: auto;
left: 50%;
bottom: 0;
transform: translate(-50%, 0);
cursor: crosshair;
}
&.target {
&.top {
left: 50%;
top: 0;
cursor: crosshair;
transform: translate(-50%, 0);
}
&.left {
top: 50%;
left: 0;
transform: translate(0, -50%);
}
&.right {
right: 0;
top: 50%;
transform: translate(0, -50%);
}
}
.react-graph__nodesselection {