export class ConnectionLayoutSpec {

    /**
     *
     * @type {ConnectionEndpointLayoutSpec}
     */
    source = null;
    /**
     *
     * @type {ConnectionEndpointLayoutSpec}
     */
    target = null;


    /**
     * @param {ConnectionEndpointLayoutSpec} source
     * @param {ConnectionEndpointLayoutSpec} target
     * @returns {ConnectionLayoutSpec}
     */
    static from(source, target) {
        const r = new ConnectionLayoutSpec();

        r.source = source;
        r.target = target;

        return r;
    }
}
