# API Reference Generated from JSDoc annotations in 16 source files. --- ## dom.js ### `const` svgNamespace *Line 19* SVG namespace URI, required when creating SVG elements via JS. ### `const` STORAGE_KEY *Line 22* localStorage key for workspace persistence (save/load/new). --- ## helpers.js ### `function` splitValueAndUnit *Line 29* Parses a string like "5 km" into a numeric value and an optional unit suffix. Falls back to parsing the entire string as a bare number when no suffix is present. **Parameters:** | Name | Type | Description | |------|------|------------| | `str` | `string` | - e.g. "5 km", "42", "" | | `defaultNum` | `number` | - fallback when parseFloat yields NaN | **Returns:** `{ numVal: number, unitSuffix: string|null ` — } ### `function` rebuildSelect *Line 50* Replaces all options in a