MLightCAD
    Preparing search index...
    • Builds a browser download file name from a drawing name.

      The first export keeps the drawing base name (for example floor-plan.svg). Subsequent exports with the same base name and extension receive numeric suffixes (floor-plan-2.svg, floor-plan-3.svg, …) within the session.

      Parameters

      • sourceName: string | undefined

        Drawing file name or title.

      • extension: string

        Target extension, with or without a leading dot.

      • fallbackBaseName: string = 'drawing'

        Base name when sourceName is empty.

      Returns string