Skip to content

Commit

Permalink
fix: Straighten target edge
Browse files Browse the repository at this point in the history
  • Loading branch information
huyenngn committed Nov 18, 2024
1 parent 730d43b commit ec09614
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions capellambse_context_diagrams/collectors/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from __future__ import annotations

import collections.abc as cabc
import copy
import typing as t

import capellambse.model as m
Expand Down Expand Up @@ -54,6 +55,10 @@ def __init__(

def __call__(self) -> _elkjs.ELKInputData:
self._make_target(self.target)
if target_edge := self.edges.get(self.target.uuid):
target_edge.layoutOptions = copy.deepcopy(
_elkjs.EDGE_STRAIGHTENING_LAYOUT_OPTIONS
)
if not self.instructions:
return self._get_data()
if self.diagram._unify_edge_direction == "UNIFORM":
Expand Down

0 comments on commit ec09614

Please sign in to comment.