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

Function imgToCanvas

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

Source from the content-addressed store, hash-verified

294}
295
296function imgToCanvas(node, p) {
297 const s = getScale(node);
298 return { x: p.x * s, y: p.y * s };
299}
300
301function canvasToImg(node, p) {
302 const s = getScale(node);

Callers 2

hitTestPointFunction · 0.85
renderFunction · 0.85

Calls 1

getScaleFunction · 0.85

Tested by

no test coverage detected