Gets or set the target of the Connection.
This object can be a Point for a floating endpoint (i.e. not attached to a shape), a Shape or a Connector of a Shape. You can use the Shape.getConnector() method to fetch a Connector on the basis of its name. If a Shape is specified the Connection will attach to the "Auto" connector.
- Point: any Point on the canvas. This creates an unattached floating endpoint.
- Shape: will bind the endpoint to the"Auto" Connector which will switch between the other connectors to minimize the length of the connection.
- Connector: the connection's endpoint will remain fixed attached to the specified Connector.
If no source is specified the method will return the current object to which the Connection's endpoint is attached.
Object the connection target.