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

Support deriving from DefaultLabelModel #621

Merged
merged 1 commit into from
Apr 25, 2020

Conversation

SteveRuble
Copy link
Contributor

Checklist

  • [X ] The code has been run through pretty yarn run pretty
  • The tests pass on CircleCI // I don't know how to check this, but I bet they do
  • You have referenced the issue(s) or other PR(s) this fixes/relates-to
  • The PR Template has been filled out (see below)
  • Had a beer/coffee because you are awesome

What?

The DefaultLabelModel constructor deviated from pattern followed by the other Default*Model types, where ...options is merged after the hardcoded values so that derived classes can override the options.

Why?

I wanted to derive from DefaultLabelModel and was very confused when it just didn't work, since it had just worked perfectly for DefaultNodeModel.

How?

This change makes it conform to the "...options after defaults" pattern.

Feel good stuff

I have no image handy, but I'd like to say that this library is fantastic. I was a little nervous when I saw the minimal extant documentation, but after looking and the demos and digging into the code I really like it. This feels like the kind of framework that makes you into a better developer by learning it. Thanks to everyone who created it!

The DefaultLabelModel constructor deviated from pattern followed by the other Default*Model types, where `...options` is merged after the hardcoded values so that derived classes can override the options. This change makes it conform to that pattern.
@dylanvorster dylanvorster merged commit 1aa1058 into projectstorm:master Apr 25, 2020
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