IGeometryEditorModel

Extends IEventEmitter.

Interface for the data model of the geometry editor.

Constructor | Fields | Methods

Constructor

IGeometryEditorModel(geometry, editor)

Parameters:

ParameterDefault valueDescription
geometry *

Type: IBaseGeometry

The geometry being edited.

editor *

Type: IGeometryEditor

Link to the geometry editor.

* Mandatory parameter/option.

Fields

NameTypeDescription
eventsIEventManager

Event manager.

Inherited from IEventEmitter.

Methods

NameReturnsDescription
destroy()

Destructor.

getPixels()

Number[]

Returns the model's pixel data.

Methods details

destroy

{} destroy()

Destructor.

getPixels

{Number[]} getPixels()

Returns the model's pixel data.