Hide menu
Loading...
Searching...
No Matches
DrawingPointSet

Describes drawing elements composed of 2D points.

This geometric element encapsulates the portion of the view's geometry described with 2D points.

Extends

Constructors

Constructor

new DrawingPointSet(): PointSet

Returns

PointSet

Inherited from

DrawingGeometry.constructor

Properties

points

readonly points: Point2d[] = []

Points composing the element.

Accessors

id

Get Signature

get id(): bigint

Returns the unique identifier of the object.

Returns

bigint

Inherited from

DrawingGeometry.id


numberOfPoints

Get Signature

get numberOfPoints(): number

Returns the number of points currently composing the element.

Deprecated

Use PointSet.points and points.length instead.

Returns

number


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

DrawingGeometry.uuid

Methods

accept()

accept(visitor): void

Accepts an element visitor.

Parameters

visitor

ElementVisitor

Element visitor to accept.

Returns

void

Overrides

DrawingGeometry.accept


addPoint()

addPoint(point): void

Adds a copy of the point to the element.

Parameters

point

Point2d

Point to copy and add.

Returns

void

Deprecated

Use PointSet.points and points.push(point.clone()) instead.


point()

point(index): Point2d

Returns the specified point of the element.

Throws a RangeError if index is not in the range [0, numberOfPoints - 1].

Parameters

index

number

Point index.

Returns

Point2d

Deprecated

Use PointSet.points and points[index] instead.