update to node site

This commit is contained in:
2026-04-15 05:02:45 +10:00
parent 3c45406f6f
commit 7e7e6f2c22
710 changed files with 10532 additions and 8324 deletions

View File

@@ -0,0 +1,21 @@
/**
* @typedef {{ nodeId: string, pinId: string }} PinRef
*/
/**
* Represents a directional connection between two node pins.
*/
export class GraphConnection {
/**
* @param {PinRef} from Output pin reference.
* @param {PinRef} to Input pin reference.
* @param {string} kind Pin type kind.
* @param {string} [id]
*/
constructor(from, to, kind, id) {
this.id = id ?? (globalThis.crypto?.randomUUID?.() ?? `conn_${Math.random().toString(36).slice(2, 10)}`);
this.from = { ...from };
this.to = { ...to };
this.kind = kind;
}
}