Bitbybit Docs
    Preparing search index...

    Class SvgLayersDto<T> (Inputs.OCCT)

    Layers of shapes and file options for io.svgCreate, which draws them into one SVG file.

    Type Parameters

    • T
    Index

    Constructors

    • Type Parameters

      • T

      Parameters

      • Optionallayers: SvgLayerDto<T>[]
      • Optionalunit: unitOfLengthEnum
      • OptionalstrokeWidth: number
      • Optionalmargin: number
      • Optionaltolerance: number
      • OptionalfileName: string
      • OptionaltryDownload: boolean

      Returns SvgLayersDto<T>

    Properties

    layers: SvgLayerDto<T>[]

    The layers from io.svgLayer; each becomes a group Inkscape reads as a layer.

    undefined
    

    The unit the shapes are modelled in, which gives the file its true width and height. Left out, the file states no size and viewers fit it to the window.

    undefined
    

    true

    strokeWidth?: number

    How wide the lines are, in model 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 model units. Left out, a fortieth of the drawing's larger side.

    undefined
    

    true

    0

    tolerance?: number

    The largest distance, in model units, between a curve SVG cannot draw exactly and the cubic curves that stand in for it.

    0.01
    

    0

    true

    fileName?: string

    The name the downloaded file gets.

    bitbybit-dev.svg
    
    tryDownload?: boolean

    When true, a browser download of the file is started where that is possible; the kernel itself only returns the text.

    true