Hide menu
Loading...
Searching...
No Matches
DiametricDimension

Describes a diametric dimension for circles.

firstChordPoint and secondChordPoint refer to points on the drawing geometry that are being measured. dimensionEndPoint defines the length of the leader of this dimension.

Extends

Constructors

Constructor

new DiametricDimension(firstChordPoint?, secondChordPoint?, dimensionEndPoint?, measurementValue?): DiametricDimension

Creates a diametric dimension.

The provided points are copied.

If measurementValue is provided, it is assigned to the dimension.

Parameters

firstChordPoint?

Point2d = ...

First chord point on the measured drawing geometry.

secondChordPoint?

Point2d = ...

Second chord point on the measured drawing geometry.

dimensionEndPoint?

Point2d = ...

End of the dimension line. Defines the length of the leader of this dimension.

measurementValue?

number

Actual measurement value.

Returns

DiametricDimension

Overrides

Dimension.constructor

Properties

arrowheadPlacement

arrowheadPlacement: ArrowheadPlacementType = ArrowheadPlacementType.INTERNAL

Arrowhead placement.

The default value is ArrowheadPlacementType.INTERNAL.

Inherited from

AngularDimension.arrowheadPlacement


firstArrowType

firstArrowType: ArrowType = ArrowType.CLOSED_FILLED

First arrow type.

The default value is ArrowType.CLOSED_FILLED.

Inherited from

AngularDimension.firstArrowType


isStartingFromCenter

isStartingFromCenter: boolean = false

Indicates whether the dimension line passes through the center of the measured entity.


isTextAlignedHorizontally

isTextAlignedHorizontally: boolean = false

Indicates whether the measurement text is aligned horizontally.

Inherited from

AngularDimension.isTextAlignedHorizontally


measurementValue

measurementValue: number = 0

Actual measurement value.

Inherited from

RadialDimension.measurementValue


secondArrowType

secondArrowType: ArrowType = ArrowType.CLOSED_FILLED

Second arrow type.

The default value is ArrowType.CLOSED_FILLED.

Inherited from

AngularDimension.secondArrowType


text

text: Text

Dimension text.

Inherited from

AngularDimension.text

Accessors

dimensionEndPoint

Get Signature

get dimensionEndPoint(): Point2d

End of the dimension line.

Returns

Point2d

Set Signature

set dimensionEndPoint(point): void

Sets the end of the dimension line.

The coordinates are copied from the provided point.

Parameters

point

Point2d

Dimension end point.

Returns

void


firstChordPoint

Get Signature

get firstChordPoint(): Point2d

First chord point on the measured drawing geometry.

Returns

Point2d

Set Signature

set firstChordPoint(point): void

Sets the first chord point on the measured drawing geometry.

The coordinates are copied from the provided point.

Parameters

point

Point2d

First chord point.

Returns

void


id

Get Signature

get id(): bigint

Returns the unique identifier of the object.

Returns

bigint

Inherited from

Dimension.id


secondChordPoint

Get Signature

get secondChordPoint(): Point2d

Second chord point on the measured drawing geometry.

Returns

Point2d

Set Signature

set secondChordPoint(point): void

Sets the second chord point on the measured drawing geometry.

The coordinates are copied from the provided point.

Parameters

point

Point2d

Second chord point.

Returns

void


uuid

Get Signature

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

UUID of the drawing element.

The value is null if no UUID is assigned.

Returns

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

Set Signature

set uuid(uuid): void

Sets the UUID of the drawing element.

Parameters

uuid

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

UUID to assign to the drawing element.

Returns

void

Inherited from

Dimension.uuid

Methods

accept()

accept(visitor): void

Accepts an element visitor.

Parameters

visitor

ElementVisitor

Element visitor to accept.

Returns

void

Overrides

Dimension.accept