Skip to content

[Feature]: Save port positions in the elk graph #19

Description

@LudoBroche

Tip

The Feature

  • As a: Developer integrating ewoksdraw with pyelk for automatic graph layout
  • I want to: Save the computed input/output port positions (x, y) as part of the elk graph output
  • So that: SVG link routing between tasks can use the actual port positions as anchor points instead of generic box edges

Note

Scope & Boundaries

  • In Scope: Persisting x/y position for each port returned by elk_ports() (both WEST input ports and EAST output ports) alongside existing id, size, and layout options
  • Out of Scope: Recalculating or altering the layout algorithm itself, manual/drag-based repositioning of ports, changes to edge routing or box positioning

Important

Acceptance Criteria
The feature is considered complete and ready to ship when:

  • Each port entry returned by elk_ports() includes its saved x/y position for both input and output ports
  • Existing SVG/elk conversion tests pass unchanged, and a test confirms saved port positions match the computed input_port_position/output_port_position values

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions