(el)
| 4682 | } |
| 4683 | |
| 4684 | function getLayerLabel(el) { |
| 4685 | const t = String(el.type || "element"); |
| 4686 | if (t === "text" || t === "label" || t === "button" || t === "header") { |
| 4687 | const v = (el.text || "").trim(); |
| 4688 | return v ? `${t}: ${v}` : t; |
| 4689 | } |
| 4690 | if (t === "path") return "path"; |
| 4691 | if (t === "triangle") return "triangle"; |
| 4692 | if (t === "polygon") return `polygon ${el.sides || 6}`; |
| 4693 | if (t === "arc") return "arc"; |
| 4694 | if (t === "gauge") return "gauge"; |
| 4695 | if (t === "icon") return el.iconFile ? `icon: ${safeSymbolFromPath(el.iconFile)}` : "icon"; |
| 4696 | if (t === "image") return el.imageName ? `image: ${el.imageName}` : "image"; |
| 4697 | return t; |
| 4698 | } |
| 4699 | |
| 4700 | function formatAssetMeta(a) { |
| 4701 | const bits = []; |
no test coverage detected