connect()
Closes the current polyline: draws a bridge from the current position back to the polyline's start (the last absolutely-positioned statement — an absolute move() or an explicit-start segment).
Returns: Geometry
Signatures
connect(mode?: ConnectMode): Geometry
Closes the current polyline: draws a bridge from the current position back to the polyline's start (the last absolutely-positioned statement — an absolute move() or an explicit-start segment).
| Parameter | Type | Description |
|---|---|---|
mode | ConnectMode | The connection mode (optional) |