feat: add array and sum node

This commit is contained in:
2024-04-10 23:50:41 +02:00
parent e2940183f1
commit 644bcd6997
26 changed files with 377 additions and 11 deletions

View File

@@ -51,6 +51,9 @@ export class RemoteNodeRegistry implements NodeRegistry {
const a = performance.now();
nodeIds.push("max/plantarium/random");
nodeIds.push("max/plantarium/float");
nodeIds.push("max/plantarium/array");
nodeIds.push("max/plantarium/sum");
for (const id of nodeIds) {
const nodeUrl = `${this.url}/n/${id}`;
const response = await fetch(nodeUrl);
@@ -96,6 +99,8 @@ wasm = val;`);
export class MemoryNodeRegistry implements NodeRegistry {
status: "loading" | "ready" | "error" = "ready";
async load(nodeIds: string[]) {
// Do nothing
}