Skip to main content

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).

ParameterTypeDescription
modeConnectModeThe connection mode (optional)