MCPcopy Index your code
hub / github.com/cifertech/DisplayKit / elementShowsRotationHandle

Function elementShowsRotationHandle

app.js:590–594  ·  view source on GitHub ↗
(el, isOLED, oledCanvasOk)

Source from the content-addressed store, hash-verified

588}
589
590function elementShowsRotationHandle(el, isOLED, oledCanvasOk) {
591 if (el.type === "line") return false;
592 if (isOLED && oledCanvasOk) return el.type === "image" || el.type === "icon";
593 return true;
594}
595
596function applyPreviewElementTransform(div, el, isSelected) {
597 const rot = Number(el.rotation) || 0;

Callers 1

addResizeHandlesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected