Skip to content

fix: issue-4 implementation#7

Open
dragonfruit-blue wants to merge 2 commits intoswe-productivity:mainfrom
dragonfruit-blue:issue-4
Open

fix: issue-4 implementation#7
dragonfruit-blue wants to merge 2 commits intoswe-productivity:mainfrom
dragonfruit-blue:issue-4

Conversation

@dragonfruit-blue
Copy link

##Summary
This PR implements the changes required for issue #4.

##Changes

  • Updated DrawViewDimension implementation
  • Adjusted QGIViewDimension behaviour
  • Updated ViewProviderDimension handling
  • Minor cleanup in related files

Issues

Closes #4

Copy link

@anomolous-lemur anomolous-lemur left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, @dragonfruit-blue -- just a few minor comments below.

.gitignore Outdated
__pycache__/
*.pytest_cache/

data/* No newline at end of file

Choose a reason for hiding this comment

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

This change is out-of-place in this PR.

// }

// Apply angle mode transformations for angle dimensions
if (Type.isValue("Angle") || Type.isValue("Angle3Pt")) {

Choose a reason for hiding this comment

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

You're missing the else clause here - the original code negated things that were marked as Inverted but were not "Angle" or "Angle3Pt".

Comment on lines +700 to +707
// if (Inverted.getValue()) {
// if (Type.isValue("Angle") || Type.isValue("Angle3Pt")) {
// result = CircleDegrees - result;
// }
// else {
// result = -result;
// }
// }

Choose a reason for hiding this comment

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

Drop all of the commented out code blocks.

@anomolous-lemur
Copy link

Thanks for the changes -- .gitignore is still touched. Do you need help removing that change from this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TechDraw: Add Complementary and Supplementary Angle Support

2 participants