mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-13 00:24:48 +08:00
23 lines
570 B
JavaScript
Executable File
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)
|