SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.
JavaScript a2aagentic-aiai-agentsdevtoolsmcp-clientn8n-alternativeno-codeopen-sourceorchestrationsmythosvisual-builder
Move default zoom for remixed templates after agent card creation
samme-abdul0040d704583b
diff --git a/packages/app/src/builder-ui/workspace/Workspace.class.ts b/packages/app/src/builder-ui/workspace/Workspace.class.tsindex bd643fff..a47d751e 100644--- a/packages/app/src/builder-ui/workspace/Workspace.class.ts+++ b/packages/app/src/builder-ui/workspace/Workspace.class.ts@@ -671,10 +671,6 @@ export class Workspace extends EventEmitter {await delay(100);this.domElement.style.opacity = '1';zoomElement.style.transition = origTransition;- } else if (isRemixedTemplate) {- // For remixed templates, set a default zoom level to show more of the canvas- await delay(100);- await this.zoomTo(0.5); // Zoom out to 50% to see more components}// triggered when agent is loaded ONLY@@ -1887,6 +1883,8 @@ export class Workspace extends EventEmitter {// it will always be triggered after initialization of the agent card since redraw() is an async operation (next tick)this.agentCard.addEventListener('AgentCardCreated', () => {this.scrollToAgentCard();+ // For remixed templates, set a default zoom level to show more of the canvas after the agent card is created+ setTimeout(() => this.zoomTo(0.5), 100);});}