Bitbybit Docs
    Preparing search index...

    Class DxfToSvgDto (Inputs.IO)

    A DXF file for io.drawing.dxfToSvg, which reads it as io.dxf.dxfRead does and writes it as io.svg.svgCreate does, with the options of both.

    Index

    Constructors

    • Parameters

      • Optionaldxf: string | Uint8Array<ArrayBufferLike>
      • OptionalincludeHiddenLayers: boolean
      • OptionalstrokeWidth: number
      • Optionalmargin: number
      • Optionaltolerance: number

      Returns DxfToSvgDto

    Properties

    dxf: string | Uint8Array<ArrayBufferLike>

    An ASCII DXF file from R12 on, as text or bytes; older bytes not in UTF-8 are read in the header's code page, or as Windows-1252.

    undefined
    
    includeHiddenLayers?: boolean

    When true, layers the file has switched off or frozen are written as well.

    false
    
    strokeWidth?: number

    How wide the lines are, in drawing units. Left out, a five-hundredth of the drawing's larger side.

    undefined
    

    true

    0

    true

    margin?: number

    The empty border around the drawing, in drawing units. Left out, a fortieth of the drawing's larger side.

    undefined
    

    true

    0

    tolerance?: number

    The largest distance, in drawing units, between a curve SVG cannot draw exactly (a rational or higher degree spline) and the cubic curves that stand in for it.

    0.01
    

    0

    true