(toolKey)
| 841 | } |
| 842 | |
| 843 | function 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 | |
| 862 | function parsePixelForgeHeaderToRgb565(text) { |
| 863 | if (!text || typeof text !== "string") { |
no outgoing calls
no test coverage detected