Hide menu
Loading...
Searching...
No Matches
LinearDimension

Linear dimensions with horizontal, vertical, and aligned dimension lines.

Extends

Constructors

Constructor

new LinearDimension(firstReferencePoint, secondReferencePoint, dimensionLinePoint, measurementValue?, rotation?): LinearDimension

Parameters

firstReferencePoint

Point2d = ...

First reference point on the drawing geometry that are being measured.

secondReferencePoint

Point2d = ...

Second reference point on the drawing geometry that are being measured.

dimensionLinePoint

Point2d = ...

Dimension line point.

measurementValue?

number

Actual measurement value.

rotation?

RotationType = RotationType.HORIZONTAL

Rotation of the dimension. Determines the type of the linear dimension.

Returns

LinearDimension

Overrides

Dimension.constructor

Properties

arrowheadPlacement

arrowheadPlacement: ArrowheadPlacementType = ArrowheadPlacementType.INTERNAL

Arrowhead placement.

Inherited from

AngularDimension.arrowheadPlacement


dimensionLinePoint

dimensionLinePoint: Point2d

Dimension line point.


firstArrowType

firstArrowType: ArrowType = ArrowType.CLOSED_FILLED

First arrow type.

Inherited from

AngularDimension.firstArrowType


firstReferencePoint

firstReferencePoint: Point2d

First reference point on the drawing geometry that are being measured.


isTextAlignedHorizontally

isTextAlignedHorizontally: boolean = false

Indicates whether the measurement text is align horizontally

Inherited from

AngularDimension.isTextAlignedHorizontally


measurementValue

measurementValue: number = 0

Actual measurement value.

Inherited from

Dimension.measurementValue


rotation

rotation: RotationType = RotationType.HORIZONTAL

Rotation of the dimension. Determines the type of the linear dimension.


secondArrowType

secondArrowType: ArrowType = ArrowType.CLOSED_FILLED

Second arrow type.

Inherited from

AngularDimension.secondArrowType


secondReferencePoint

secondReferencePoint: Point2d

Second reference point on the drawing geometry that are being measured.


text

text: Text

Dimension text.

Inherited from

AngularDimension.text

Accessors

id

Get Signature

get id(): bigint

Returns object id.

Returns

bigint

Inherited from

Dimension.id


uuid

Get Signature

get uuid(): `${string}-${string}-${string}-${string}-${string}` | null

Returns uuid of the drawing element. null if the drawing element has no assigned uuid (by default).

Returns

`${string}-${string}-${string}-${string}-${string}` | null

Set Signature

set uuid(uuid): void

Sets uuid of the drawing element.

Parameters

uuid

Uuid of the drawing element.

`${string}-${string}-${string}-${string}-${string}` | null

Returns

void

Inherited from

Dimension.uuid

Methods

accept()

accept(visitor): void

Accepts a drawing element visitor.

Parameters

visitor

ElementVisitor

Accepted drawing element visitor.

Returns

void

Overrides

Dimension.accept