API / geotoolkit / scene / shapes / PolylineSegment / PolylineSegment
shapes.PolylineSegment.PolylineSegment
Define a segment of polyline set
Constructors
| [new PolylineSegment(options)](/solutions/geotoolkit/apis/classes/geotoolkit.scene.shapes.polylinesegment.polylinesegment.md#new polylinesegment(options)) | [new PolylineSegment(x, y)](/solutions/geotoolkit/apis/classes/geotoolkit.scene.shapes.polylinesegment.polylinesegment.md#new polylinesegment(x, y)) |
|---|
Css Properties
| Name | Type | Description |
|---|---|---|
bounds | Rect | Shape bounds |
bounds-height | number | Height |
bounds-readonly | boolean | Readonly |
bounds-width | number | Width |
bounds-x | number | Left |
bounds-y | number | Top |
Constructors
• new PolylineSegment(options)
| Name | Type | Description |
|---|---|---|
options | Options | options |
• new PolylineSegment(x, y)
| Name | Type | Description |
|---|---|---|
x | number[] | set of x coordinates |
y | number[] | set of y coordinates |
Methods
▸ getBounds(): Rect
Return bounds
bounds
▸ getProperties(): OptionsOut
Gets all the properties pertaining to this object
properties
▸ setProperties(properties?): PolylineSegment
Sets all the properties pertaining to this object
| Name | Type | Description |
|---|---|---|
Optional properties | Options | object containing the properties to set |