bobbai00 opened a new issue, #4577:
URL: https://github.com/apache/texera/issues/4577

   ### What happened?
   
   `agent-service/src/agent/util/auto-layout.ts` and 
`frontend/src/app/workspace/service/workflow-graph/model/joint-graph-wrapper.ts`
 both use dagre for auto-layout, but with different `ranksep` values:
   
   - Frontend (`autoLayoutJoint`): `rankSep: 80`
   - Agent-service (`LAYOUT_CONFIG`): `ranksep: 100`
   
   Result: workflows laid out by the agent have visibly larger horizontal gaps 
between operators than workflows laid out by the user via the frontend's 
auto-layout button. `nodesep` (100) and `edgesep` (150) already match.
   
   ### How to reproduce?
   
   1. Build the same workflow twice — once via the frontend's auto-layout, once 
via an agent-service tool that calls `autoLayoutWorkflow`.
   2. Compare operator positions; the agent-laid-out version is wider.
   
   ### Version
   
   1.1.0-incubating (Pre-release/Master)
   
   ### Possible fix
   
   Change `ranksep` in `agent-service/src/agent/util/auto-layout.ts` from `100` 
to `80` to match the frontend.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to