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

Function buildContextMenu

web/js/sparse_track_editor.js:337–353  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

335// ---------------------------------------------------------------------------
336
337function buildContextMenu() {
338 const menu = document.createElement("div");
339 Object.assign(menu.style, {
340 display: "none",
341 position: "absolute",
342 background: "#252530",
343 border: "1px solid #555",
344 borderRadius: "6px",
345 padding: "4px 0",
346 zIndex: "1000",
347 boxShadow: "0 4px 12px rgba(0,0,0,0.4)",
348 minWidth: "160px",
349 fontFamily: "system-ui, sans-serif",
350 fontSize: "13px",
351 });
352 return menu;
353}
354
355function showMenu(node, canvasEvt, imgPos) {
356 const ed = node._ed;

Callers 1

initEditorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected