IFClite TypeScript API
    Preparing search index...

    Interface SVGExportOptions

    interface SVGExportOptions {
        backgroundColor?: string;
        padding?: number;
        paperSize?: PaperSize;
        projectName?: string;
        scale?: DrawingScale;
        showHatching?: boolean;
        showHiddenLines?: boolean;
        showTitleBlock?: boolean;
        title?: string;
        underlays?: SVGUnderlayOptions[];
        units?: "m" | "mm";
    }
    Index
    backgroundColor?: string

    Background color (default: white)

    padding?: number

    Padding around drawing in mm

    paperSize?: PaperSize

    Paper size

    projectName?: string

    Project name

    scale?: DrawingScale

    Drawing scale (e.g., { name: '1:100', factor: 100 })

    showHatching?: boolean

    Include hatching

    showHiddenLines?: boolean

    Include hidden lines

    showTitleBlock?: boolean

    Include title block

    title?: string

    Drawing title

    underlays?: SVGUnderlayOptions[]

    DXF reference underlays rendered beneath the drawing (issue #1782)

    units?: "m" | "mm"

    Declared but never read. export() does not destructure units and no other code path consults it, so setting it has no effect on the emitted SVG. The exporter emits no dimension annotations at all, and the sheet itself is always sized in millimetres (width="…mm"), so there is no substitute option to reach for. Slated for removal; see issue #2731.

    Ignored by the exporter — see above.