fix: make planty work
📊 Benchmark the Runtime / benchmark (push) Successful in 1m18s
🚀 Lint & Test & Deploy / quality (push) Successful in 2m9s
🚀 Lint & Test & Deploy / test-unit (push) Successful in 33s
🚀 Lint & Test & Deploy / test-e2e (push) Successful in 1m54s
🚀 Lint & Test & Deploy / deploy (push) Successful in 2m4s

This commit is contained in:
2026-05-05 22:42:47 +02:00
parent 1e28ded99b
commit 2d9eb0c087
+4 -2
View File
@@ -172,6 +172,7 @@
config={tutorialConfig} config={tutorialConfig}
actions={{ actions={{
'setup-default': () => { 'setup-default': () => {
console.log('setup-default');
const ts = new Date().toLocaleTimeString('en-US', { hour: '2-digit', minute: '2-digit' }); const ts = new Date().toLocaleTimeString('en-US', { hour: '2-digit', minute: '2-digit' });
pm.handleCreateProject( pm.handleCreateProject(
structuredClone(templates.defaultPlant) as unknown as Graph, structuredClone(templates.defaultPlant) as unknown as Graph,
@@ -179,15 +180,16 @@
); );
}, },
'load-tutorial-template': () => { 'load-tutorial-template': () => {
console.log('load-tutorial-template');
if (!pm.graph) return; if (!pm.graph) return;
const g = structuredClone(templates.tutorial) as unknown as Graph; const g = structuredClone(templates.tutorial) as unknown as Graph;
g.id = pm.graph.id; g.id = pm.graph.id;
g.meta = { ...pm.graph.meta }; g.meta = { ...pm.graph.meta };
pm.graph = g; manager.load(g);
pm.saveGraph(g);
graphInterface.state.centerNode(graphInterface.manager.getAllNodes()[0]); graphInterface.state.centerNode(graphInterface.manager.getAllNodes()[0]);
}, },
'open-github-nodes': () => { 'open-github-nodes': () => {
console.log('open-github-nodes');
window.open( window.open(
'https://github.com/jim-fx/nodarium/tree/main/nodes/max/plantarium', 'https://github.com/jim-fx/nodarium/tree/main/nodes/max/plantarium',
'__blank' '__blank'