IFClite TypeScript API
    Preparing search index...

    Function svgNum

    • 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.

      Parameters

      • n: number
      • Optionaldigits: number

      Returns string