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

Function setToolOverlayAction

app.js:843–860  ·  view source on GitHub ↗
(toolKey)

Source from the content-addressed store, hash-verified

841}
842
843function setToolOverlayAction(toolKey) {
844 activeEmbeddedToolKey = toolKey;
845 pendingToolAction = null;
846 if (!toolOverlayAction) return;
847
848 if (toolKey === "pixelforge") {
849 toolOverlayAction.style.display = "inline-flex";
850 toolOverlayAction.textContent = "Import image to DisplayKit";
851 pendingToolAction = "importImage";
852 } else if (toolKey === "bitcanvas") {
853 toolOverlayAction.style.display = "inline-flex";
854 toolOverlayAction.textContent = "Copy export to clipboard";
855 pendingToolAction = "copyExport";
856 } else {
857 toolOverlayAction.style.display = "none";
858 toolOverlayAction.textContent = "Action";
859 }
860}
861
862function parsePixelForgeHeaderToRgb565(text) {
863 if (!text || typeof text !== "string") {

Callers 2

openEmbeddedToolFunction · 0.85
closeEmbeddedToolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected