Documentation
Reference
2.1.50 (current version)
collection
interactivityModel
Interfaces
2.1.52 (release candidate)
collection
interactivityModel
Interfaces

geometryEditor.model.RootLineString

Note. The constructor of the geometryEditor.model.RootLineString class is hidden, as this class is not intended for autonomous initialization.

Extends IGeometryEditorRootModel.

Model of the root polyline. The constructor is not available in the package.full (a standard set of modules). This module is loaded on demand.

Fields | Methods

Fields

NameTypeDescription
eventsIEventManager

Event manager.

Inherited from IEventEmitter.

Methods

NameReturnsDescription
destroy()

Destructor.

Inherited from IGeometryEditorModel.

getAllVerticesNumber()

Integer

Returns the total number of vertexes in the geometry being edited.

getPixels()

Number[]

Returns the model's pixel data.

Inherited from IGeometryEditorModel.

getVertexModels()

geometryEditor.model.ChildVertex[]

Returns an array of models for child vertexes.

spliceVertices(start, deleteCount)

Number[][]

Deletes a defined number of polyline vertexes, starting from the specified index. New vertexes can be added in place of the deleted ones. Global pixel coordinates of the new vertexes can be passed as additional arguments after the "deleteCount" parameter.

Methods details

getAllVerticesNumber

{Integer} getAllVerticesNumber()

Returns the total number of vertexes in the geometry being edited.

getVertexModels

{geometryEditor.model.ChildVertex[]} getVertexModels()

Returns an array of models for child vertexes.

spliceVertices

{Number[][]} spliceVertices(start, deleteCount)

Deletes a defined number of polyline vertexes, starting from the specified index. New vertexes can be added in place of the deleted ones. Global pixel coordinates of the new vertexes can be passed as additional arguments after the "deleteCount" parameter.

Returns an array of coordinates of deleted vertexes.

Parameters:

ParameterDefault valueDescription
start*
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: Integer

The index to start from for removing and adding vertexes.

deleteCount*
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: Integer

The number of deleted vertexes.

* Mandatory parameter/option.