The one place a number becomes SVG text. NaN/Infinity stringify
verbatim through toFixed, which a conforming renderer must reject, so
every coordinate/size/rotation routes through here (mirrors the DXF
writer's single fmt()). Non-finite becomes 0: the document stays
parseable and the degenerate geometry collapses at the visible origin.
The one place a number becomes SVG text.
NaN/Infinitystringify verbatim throughtoFixed, which a conforming renderer must reject, so every coordinate/size/rotation routes through here (mirrors the DXF writer's singlefmt()). Non-finite becomes0: the document stays parseable and the degenerate geometry collapses at the visible origin.