Describes drawing elements composed of 2D points.
This geometric element encapsulates the portion of the view's geometry described with 2D points.
new DrawingPointSet():
PointSet
PointSet
readonlypoints:Point2d[] =[]
Points composing the element.
get id():
bigint
Returns the unique identifier of the object.
bigint
get numberOfPoints():
number
Returns the number of points currently composing the element.
Use PointSet.points and points.length instead.
number
get uuid():
`${string}-${string}-${string}-${string}-${string}`|null
UUID of the drawing element.
The value is null if no UUID is assigned.
`${string}-${string}-${string}-${string}-${string}` | null
set uuid(
uuid):void
Sets the UUID of the drawing element.
`${string}-${string}-${string}-${string}-${string}` | null
UUID to assign to the drawing element.
void
accept(
visitor):void
Accepts an element visitor.
Element visitor to accept.
void
addPoint(
point):void
Adds a copy of the point to the element.
Point to copy and add.
void
Use PointSet.points and points.push(point.clone()) instead.
point(
index):Point2d
Returns the specified point of the element.
Throws a RangeError if index is not in the range [0, numberOfPoints - 1].
number
Point index.
Use PointSet.points and points[index] instead.