MCPcopy
hub / github.com/Lightricks/ComfyUI-LTXVideo / canvasToImg

Function canvasToImg

web/js/sparse_track_editor.js:301–304  ·  view source on GitHub ↗
(node, p)

Source from the content-addressed store, hash-verified

299}
300
301function canvasToImg(node, p) {
302 const s = getScale(node);
303 return { x: p.x / s, y: p.y / s };
304}
305
306function mouseToCanvas(node, e) {
307 const rect = node._ed.canvas.getBoundingClientRect();

Callers 1

setupEventsFunction · 0.85

Calls 1

getScaleFunction · 0.85

Tested by

no test coverage detected