Files
ueblueprint/js/graph/GraphLink.js
2021-12-12 20:35:41 +01:00

23 lines
570 B
JavaScript
Executable File

import GraphElement from "./GraphElement"
import LinkTemplate from "../template/LinkTemplate"
export default class GraphLink extends GraphElement {
/**
*
* @typedef {{
* node: String,
* pin: String
* }} PinReference
* @param {?PinReference} source
* @param {?PinReference} destination
*/
constructor(source, destination) {
super(this, new LinkTemplate())
this.source = source
this.destination = destination
}
}
customElements.define("ueb-link", GraphLink)