LineEntity
- class Communicator.Selection.LineEntity()
Encapsulates a line selection.
Methods
Methods
forJson
- LineEntity.forJson()
- Deprecated
Use
toJson
instead.- Return type
Object
getBestVertex
getBounding
getLineBits
- LineEntity.getLineBits()
Gets the kine bits for the selection Point.
- Return type
number
- Returns
The bits set on the line/edge.
getLineId
- LineEntity.getLineId()
Gets the line identifier
- Return type
number
- Returns
the identifier of the line that was selected
getPoints
getPosition
isCappingGeometry
- LineEntity.isCappingGeometry()
- Return type
boolean
overlayIndex
- LineEntity.overlayIndex()
- Return type
- Returns
The index of the overlay the entity belongs to.
toJson
- LineEntity.toJson()
Creates an object ready for JSON serialization.
- Return type
Object
- Returns
The prepared object.
static construct
- LineEntity.construct(obj)
- Deprecated
Use
fromJson
instead.- Arguments
obj (
any()
) –
- Return type
static fromJson
- LineEntity.fromJson(objData)
Creates a new
LineEntity
from an object given bytoJson
- Arguments
objData (
any()
) – An object given bytoJson
- Return type
- Returns
The prepared object.