Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Refactoring of Node Drawing #3170

Merged
merged 3 commits into from
Jun 20, 2017
Merged

Conversation

wimrijnders
Copy link
Contributor

The methods draw() in all classes derived from NodeBase contain the same recurring blocks of code.
These have been consolidated into method instances in NodeBase.

In addition, the common instances of method updateBoundingBox() has been moved to NodeBase.

A lot of source files have been touched, but if you diff, you'll see that it's mostly the common code blocks replaced by a single call.

This refactoring can be taken further, but I didn't want to make the review overly hard.

Copy link
Contributor

@yotamberk yotamberk left a comment

Choose a reason for hiding this comment

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

Squeaky clean! Nice!

@yotamberk yotamberk merged commit a820ec4 into almende:develop Jun 20, 2017
@wimrijnders
Copy link
Contributor Author

Thanks! ❤️

@wimrijnders wimrijnders deleted the refactorNodeDrawing branch June 20, 2017 17:38
primozs pushed a commit to primozs/vis that referenced this pull request Jan 3, 2019
* Consolidated common code for drawing in nodes

* Consolidated updateBoundingBox(), default version

* Setting bounding box margin in separate method
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants