(path)
| 2683 | } |
| 2684 | |
| 2685 | function safeSymbolFromPath(path) { |
| 2686 | const raw = String(path || "").replace(/\\/g, "/"); |
| 2687 | const base = raw.split("/").pop() || raw; |
| 2688 | const noExt = base.replace(/\.[a-z0-9]+$/i, ""); |
| 2689 | const sym = noExt.replace(/[^a-zA-Z0-9_]/g, "_"); |
| 2690 | return sym || "icon"; |
| 2691 | } |
| 2692 | |
| 2693 | function imageDataToRgb565(data, w, h, bgHex) { |
| 2694 | const rgb565 = new Array(w * h); |
no outgoing calls
no test coverage detected