()
| 7679 | return { id: newId(), type, bbox, desc: "", text: "", color_palette: [], boxColor: nextBoxColor(), linkId: null, groupId: null, enabled: true }; |
| 7680 | } |
| 7681 | function emptyState() { |
| 7682 | return { |
| 7683 | high_level_description: "", |
| 7684 | width: 1024, |
| 7685 | height: 1024, |
| 7686 | style: emptyStyle(), |
| 7687 | background: "", |
| 7688 | elements: [], |
| 7689 | overlay: emptyOverlay(), |
| 7690 | ui: emptyUi() |
| 7691 | }; |
| 7692 | } |
| 7693 | const HEX_RE = /^#[0-9A-F]{6}$/; |
| 7694 | function normalizeHex(raw) { |
| 7695 | let h2 = (raw || "").trim().toUpperCase(); |
no test coverage detected