• Create and return a dimension line with its closing lines and text element. With the options you can decide if the text should be shown at the inside or outside of the line, and you can set the dimension line to be vertical or horizontal. Also pass the css class for each dimension element, the unit the dimensions should be measured in (default: 'cm') and the fontsize of the dimension text.

    Parameters

    • length: number
    • Optional options: DimensionOptions = {}
    • Optional onAfterCreate: ((dimensionsGroup, text) => void)
        • (dimensionsGroup, text): void
        • Parameters

          • dimensionsGroup: G
          • text: Text

          Returns void

    Returns G