IGeometryEditorModel

Extends IEventEmitter.

Interface for the data model of the geometry editor.

Constructor | Fields | Methods

Constructor

IGeometryEditorModel(geometry, editor)

Parameters:

Parameter Default value Description
geometry *

Type: IBaseGeometry

The geometry being edited.

editor *

Type: IGeometryEditor

Link to the geometry editor.

* Mandatory parameter/option.

Fields

Name Type Description
events IEventManager

Event manager.

Inherited from IEventEmitter.

Methods

Name Returns Description
destroy()

Destructor.

getPixels()

Number[]

Returns the model's pixel data.

Methods details

destroy

{} destroy()

Destructor.

getPixels

{Number[]} getPixels()

Returns the model's pixel data.