Skip to content

fix: issue-4 implementation - #7

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

dragonfruit-blue wants to merge 2 commits into
swe-productivity:mainfrom
dragonfruit-blue:issue-4

Conversation

@dragonfruit-blue

Copy link
Copy Markdown

##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

@anomolous-lemur anomolous-lemur left a comment

Copy link
Copy Markdown

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.

Comment thread .gitignore Outdated
__pycache__/
*.pytest_cache/

data/* No newline at end of file

Copy link
Copy Markdown

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")) {

Copy link
Copy Markdown

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;
// }
// }

Copy link
Copy Markdown

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
Copy Markdown

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

@github-actions

Copy link
Copy Markdown

Thanks for helping improve FreeCAD!
This pull request hasn’t seen activity in a while. We automatically check each PR after 120 days without activity to keep the repository tidy.

If the PR is still relevant, let us know by adding a comment.
Otherwise, we’ll close this PR automatically in 60 days.

If you would like to keep working on this pull request, we advice to rebase it on current main branch, ask feedback from users or maintainers and engage with the community to get it forward.

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