Bitbybit Docs
    Preparing search index...

    Class DrawingDimensionDtoBeta (Inputs.IO)

    A dimension in the drawing's plane for io.drawing.dimensionPicture, which draws it, and io.drawing.dimensionExtent, which measures the box it fills: what it measures, between which points, and the size of its text and arrows.

    Index

    Constructors

    • Beta

      Parameters

      • Optionalkind: dimensionKindEnum
      • Optionalstart: Bit.Inputs.Base.Point2
      • Optionalend: Bit.Inputs.Base.Point2
      • Optionaldirection: Vector2
      • Optionaloffset: number
      • Optionalangle: number
      • Optionalvalue: number
      • OptionaldecimalPlaces: number
      • OptionalupperTolerance: number
      • OptionallowerTolerance: number
      • OptionaltextHeight: number
      • OptionalarrowLength: number

      Returns DrawingDimensionDto

    Properties

    What the dimension measures; it decides what start, end, offset and angle mean.

    linear
    

    For linear, the first point measured; for diameter, radius and angular, the center of the circle or the point where the two arms of the angle meet.

    undefined
    

    For linear, the second point measured; for diameter and radius, a point on the circle; for angular, a point on the first arm, where the arc passes.

    undefined
    
    direction?: Vector2

    For linear, the direction measured along, such as [1, 0] for a horizontal dimension; left out, from start to end. Other kinds ignore it.

    undefined
    

    true

    offset?: number

    For linear, how far the dimension line stands from start, in drawing units, to the left of direction; negative puts it right. Other kinds ignore it.

    10
    

    -Infinity

    Infinity

    angle?: number

    For angular, the angle in degrees from the first arm, the one through end, counterclockwise to the second arm. Other kinds ignore it.

    90
    

    0

    360

    true

    true

    value?: number

    The number written; left out, the one measured. A diameter is written after the diameter sign, a radius after R, an angle before the degree sign.

    undefined
    

    true

    decimalPlaces?: number

    How many decimals the value keeps; trailing zeros are dropped, so 15.50 shows as 15.5.

    2
    

    0

    15

    1

    upperTolerance?: number

    How far above the value the measure may lie, written +0.1, or ±0.1 when equal to lowerTolerance; 0 when only lowerTolerance is given.

    undefined
    

    true

    0

    lowerTolerance?: number

    How far below the value the measure may lie, as an amount, written -0.05; 0 when only upperTolerance is given. Without either, no tolerance is written.

    undefined
    

    true

    0

    textHeight?: number

    The height of the text's digits, in drawing units; the gaps around the lines are sized from it.

    3.5
    

    0

    true

    arrowLength?: number

    The length of each arrowhead, in drawing units; each is a third as wide as it is long. Left out, it is textHeight.

    undefined
    

    true

    0

    true