gem.d3Scene. MarkerRef

new MarkerRef()

vector class

Methods

addPoint(coordinates, nIndex) → {number}

Add Point by coordinates

Parameters:
NameTypeDescription
coordinatesgem.core.Coordinates
nIndexnumber
Returns:
  • index of the point
Type: 
number

getCoordinatesPartAt(nId) → {object}

Parameters:
NameTypeDescription
nIdnumber

index of coordinates part

Returns:
  • vector of coordinates
Type: 
object

getId() → {number}

Get id of the vector

Returns:
Type: 
number

getInfo() → {string}

get information about the vector

Returns:
  • information about vector
Type: 
string

movePoint(pointId, coordinates)

Change position of a point

Parameters:
NameTypeDescription
pointIdnumber

id of the point

coordinatesgem.core.Coordinates

coordinates where to move the point

removePoint(nId)

Remove point at index location

Parameters:
NameTypeDescription
nIdnumber

size() → {number}

size of the vector

Returns:
  • size of the vector
Type: 
number