Hide menu
Loading...
Searching...
No Matches
Element

Base class for drawing elements.

Drawing elements are objects contained in views that define the contents of a drawing. They include 2D geometry and view instances.

Extends

Extended by

Constructors

Constructor

new Element(): Element

Returns

Element

Inherited from

BaseObject.constructor

Accessors

id

Get Signature

get id(): bigint

Returns the unique identifier of the object.

Returns

bigint

Inherited from

BaseObject.id


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

Methods

accept()

abstract accept(visitor): void

Accepts a drawing element visitor.

Parameters

visitor

ElementVisitor

Visitor to accept.

Returns

void