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

Base class for drawing elements.

Drawing elements are objects that are contained in views and 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 object id.

Returns

bigint

Inherited from

BaseObject.id


uuid

Get Signature

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).

Returns

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

Set Signature

set uuid(uuid): void

Sets uuid of the drawing element.

Parameters

uuid

Uuid of the drawing element.

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

Returns

void

Methods

accept()

abstract accept(visitor): void

Accepts a drawing element visitor.

Parameters

visitor

ElementVisitor

Accepted drawing element visitor.

Returns

void