Skip to content

QOL: Arrows bending too early or too late#3653

Open
RogerZhang888 wants to merge 21 commits intosource-academy:masterfrom
wjh3355:master
Open

QOL: Arrows bending too early or too late#3653
RogerZhang888 wants to merge 21 commits intosource-academy:masterfrom
wjh3355:master

Conversation

@RogerZhang888
Copy link
Contributor

Description

Overview

Arrows now have a buffer of 30px.

  • before they bend from their origin
  • before they terminate at their destination

This ensures that the arrow will extend in a straight line for at least 30px before bending.

Major Changes

  • CSEMachineConfig.ts: added a constant MinTerminalSegmentLength (currently set to 30, this can be adjusted).
  • ArrowFromText.ts: calculation of arrow's path takes into account MinTerminalSegmentLength.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Code quality improvements

How to test

Checklist

  • I have tested this code
  • I have updated the documentation

Copy link
Contributor

@Akshay-2007-1 Akshay-2007-1 left a comment

Choose a reason for hiding this comment

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

Though the lack of pictures in the PR makes it hard for me to understand whats the targeted fix is, I have not noticed any bugs! Here are a few snippets of the changes I observed with and without the additions of this PR :

Image Image

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.

3 participants