ViewerPolylineAPI¶
Interface ViewerPolylineAPI
interface ViewerPolylineAPI {
changePolyline(polylineId: number, properties: PolylineProperties): void;
createPolyline(
positions: number[],
properties?: PolylineProperties,
): number;
removePolyline(polylineId: number): void;
}
changePolyline(polylineId: number, properties: PolylineProperties): void;
createPolyline(
positions: number[],
properties?: PolylineProperties,
): number;
removePolyline(polylineId: number): void;
}
Hierarchy (View Summary)
- ViewerPolylineAPI
Index
Methods
change Polyline
Changes the properties of the Polyline with the specified Id.
Parameters
- polylineId: number
The Id of the Polyline which should be removed.
- properties: PolylineProperties
The properties which should be changed.
Returns void
- polylineId: number
create Polyline
Creates a new Polyline with the specified positions and properties.
Parameters
- positions: number[]
List of 3D positions which defines the Polyline.
Optionalproperties: PolylinePropertiesThe properties of the Polyline.
Returns number
- positions: number[]
remove Polyline
Removes the Polyline with the specified Id.
Parameters
- polylineId: number
The Id of the Polyline which should be removed.
Returns void
- polylineId: number
The ViewerPolylineAPI provides basic functionalities to create and visualize Polylines.
Example