MCPcopy Create free account
hub / github.com/codecombat/codecombat / makeHandle

Method makeHandle

app/views/play/CampaignView.js:1620–1633  ·  view source on GitHub ↗
(x, y, end)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected