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[] =[]
Collection of points.
get id():
bigint
Returns object id.
bigint
get numberOfPoints():
number
Returns the number of points currently composing the element.
Use points.length instead.
number
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).
`${string}-${string}-${string}-${string}-${string}` | null
set uuid(
uuid):void
Sets uuid of the drawing element.
Uuid of the drawing element.
`${string}-${string}-${string}-${string}-${string}` | null
void
accept(
visitor):void
Accepts a drawing element visitor.
Accepted drawing element visitor.
void
addPoint(
point):void
Adds the point to the element.
Added point.
void
Use points.push(`point`) instead.
point(
index):Point2d
Returns the specified point of the element.
Throws exception if index is not in range [0, numberOfPoints()-1].
number
Point index.
index must be in the range [0, numberOfPoints()-1].
Use points[`index`] instead.