bitbybit.dev v1.0.0-rc.1
    Preparing search index...

    Class Dimensions

    Index

    Constructors

    dimensions

    • Creates linear dimension - a measurement line between two points with extension lines and text label. The dimension shows the distance between the points and can be styled with DimensionStyleDto.

      Parameters

      Returns LinearDimensionEntity

      Create linear dimension

      Dimensions.linearDimension({ name: "Length", startPoint: [0, 0, 0], endPoint: [5, 0, 0], direction: [0, 1, 0] });
      

      linear dimension

      true

    • Creates angular dimension - a measurement arc between two direction vectors with extension lines and text label. The dimension shows the angle between the directions and can be styled with DimensionStyleDto.

      Parameters

      Returns AngularDimensionEntity

      Create angular dimension

      Dimensions.angularDimension({ name: "Angle", centerPoint: [0, 0, 0], direction1: [1, 0, 0], direction2: [0, 1, 0], radius: 2 });
      

      angular dimension

      true

    • Creates radial dimension - a measurement line from center to perimeter showing radius or diameter. Shows 'R' prefix for radius or '⌀' prefix for diameter with optional center mark.

      Parameters

      Returns RadialDimensionEntity

      Create radial dimension

      Dimensions.radialDimension({ centerPoint: [0, 0, 0], radiusPoint: [2, 0, 0], showDiameter: false });
      

      radial dimension

      true

    • Creates diametral dimension - a measurement line spanning full diameter of circular features. Shows '⌀' prefix with optional center mark and arrows at both ends.

      Parameters

      Returns DiametralDimensionEntity

      Create diametral dimension

      Dimensions.diametralDimension({ centerPoint: [0, 0, 0], direction: [1, 0, 0], diameter: 4 });
      

      diametral dimension

      true

    • Creates ordinate dimension - shows X, Y, or Z coordinate from a reference point with leader line. Useful for coordinate annotations and datum referencing in technical drawings.

      Parameters

      Returns OrdinateDimensionEntity

      Create ordinate dimension

      Dimensions.ordinateDimension({ measurementPoint: [5, 3, 2], referencePoint: [0, 0, 0], axis: "X" });
      

      ordinate dimension

      true

    style

    • Create dimension style - used to style dimension lines, arrows, and text in 3D space. You can customize line colors, thickness, text size, arrow size, and background colors.

      Parameters

      Returns DimensionStyleDto

      Create dimension style

      dimension style

      false