Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating the way of calculate the midPoint #519

Merged
merged 2 commits into from
Jul 28, 2023
Merged

Conversation

jogaj
Copy link
Contributor

@jogaj jogaj commented Jul 27, 2023

What kind of change does this PR introduce? (check one with "x")

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior? (You can also link to an open issue here)

What is the new behavior?

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

let _secondX = null;
let _firstY = null;
let _secondY = null;
const dirRight = (this.layout as Layout).settings?.properties['elk.direction'] === 'RIGHT';
Copy link
Contributor

@steveblue steveblue Jul 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The layout won't always be Elk, so this check needs to be more generic.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also change the name of this variable to orientation and make the direction more explicit.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, thanks

Please also change the name of this variable to orientation and make the direction more explicit.

Done, thanks

@jogaj jogaj requested a review from steveblue July 27, 2023 22:03
@jogaj jogaj merged commit 29d2eb5 into master Jul 28, 2023
2 checks passed
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.

2 participants