Files
ueblueprint/js/graph/GraphLink.js
2021-12-10 21:05:44 +01:00

23 lines
568 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("u-link", GraphLink)