(x, y, end)
| 1618 | if (this.editorMode && me.isAdmin()) { |
| 1619 | const handleSize = 16 |
| 1620 | const makeHandle = (x, y, end) => { |
| 1621 | const $handle = $('<div class="visual-connection-handle">') |
| 1622 | .css({ |
| 1623 | left: (x - handleSize / 2) + 'px', |
| 1624 | top: (y - handleSize / 2) + 'px', |
| 1625 | width: handleSize, |
| 1626 | height: handleSize, |
| 1627 | }) |
| 1628 | .attr({ |
| 1629 | 'data-connection-index': connectionIndex, |
| 1630 | 'data-connection-end': end, |
| 1631 | }) |
| 1632 | map.append($handle) |
| 1633 | } |
| 1634 | makeHandle(x1, y1, 'from') |
| 1635 | makeHandle(x2, y2, 'to') |
| 1636 |
nothing calls this directly
no outgoing calls
no test coverage detected