Skip to content

manhattanize the connection lines - #1667

Merged
arun3688 merged 2 commits into
OpenModelica:masterfrom
arun3688:connection_lines
Oct 5, 2026
Merged

arun3688 merged 2 commits into
OpenModelica:masterfrom
arun3688:connection_lines

Conversation

@arun3688

@arun3688 arun3688 commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Purpose

GUI: manhattanize steered connections into the target port

Add manhattanize() to snap a connection route to horizontal/vertical
segments like OMEdit: ports stay fixed and the waypoint next to the end
port is moved onto the port's row/column, so the last leg is straight.

Apply it when a connection drawn by dragging is released on a port and
when waypoints of an existing connection are dragged, inserted or removed.
Connections without waypoints keep the default route; files are not
modified on load.

Co-Authored-By: Claude Sonnet 5.5 noreply@anthropic.com

@codecov

codecov Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 27.57%. Comparing base (100fbc8) to head (b2a8500).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1667   +/-   ##
=======================================
  Coverage   27.57%   27.57%           
=======================================
  Files          72       72           
  Lines       13917    13917           
  Branches     8982     8982           
=======================================
  Hits         3838     3838           
  Misses       8865     8865           
  Partials     1214     1214           
Flag Coverage Δ
linux 27.57% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@arun3688
arun3688 merged commit ffc28b1 into OpenModelica:master Oct 5, 2026
6 checks passed
@arun3688
arun3688 deleted the connection_lines branch October 5, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant