MCPcopy Create free account
hub / github.com/cifertech/DisplayKit / place

Function place

app.js:577–584  ·  view source on GitHub ↗
(val, ax, ay)

Source from the content-addressed store, hash-verified

575 }
576
577 function place(val, ax, ay) {
578 const s = document.createElement("div");
579 s.className = "distance-hint";
580 s.textContent = String(Math.round(val));
581 s.style.left = ax * scale + "px";
582 s.style.top = ay * scale + "px";
583 preview.appendChild(s);
584 }
585
586 if (bestH) place(bestH.g, bestH.mx, bestH.my);
587 if (bestV) place(bestV.g, bestV.mx, bestV.my);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected