Bitbybit Docs
    Preparing search index...

    Class SVGResult<T> (Inputs.OCCT)

    What svg.loadSVGStructured returns: one shape per drawable element, the view box and any warnings. An output, not an input.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    shapes: SVGShape<T>[]

    One entry per drawable element, in document order.

    viewBox?: [number, number, number, number]

    The document's view box as [minX, minY, width, height], when it has one.

    true

    documentWidth?: number

    The page's width in millimetres, present when the page's width and height are both known, from width and height or from the view box.

    true

    documentHeight?: number

    The page's height in millimetres, present when the page's width and height are both known, from width and height or from the view box.

    true

    millimetresPerUserUnit?: number

    How many millimetres one SVG user unit stands for, across the page; 25.4 / 96 when the document gives no size.

    true

    warnings: string[]

    Problems met while parsing or building that did not stop the import.