@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
29 lines (23 loc) • 560 B
JavaScript
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;
}
}