Features2D SketchingconnectOn this pageconnect() Connects the current position back to the start to close the sketch. Returns: Geometry Signatures connect(mode?: ConnectMode): Geometry Connects the current position back to the start to close the sketch. ParameterTypeDescriptionmodeConnectModeThe connection mode (optional)