Thanks to visit codestin.com
Credit goes to github.com

Skip to content

De-circularize Colorbar and Colorscale modules #136

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

Merged
merged 6 commits into from
Dec 21, 2015
Merged

Conversation

etpinard
Copy link
Contributor

@cldougl @mdtusz @alexcjohnson

Before this PR Colorbar and Colorscale had a circular dependencies.

By breaking both modules into smaller 1-file-per-method pieces, both modules can be required without any issues.

Most of this PR only moved content around. Real changes are highlighted below.

var attributes = require('./attributes');


module.exports = function draw(gd, id) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Plotly.Colorbar used to be a function with .attributes and .supplyDefaults attached to it which was rather confusing.

Now, the main Colorbar method is call draw.

@cldougl
Copy link
Member

cldougl commented Dec 18, 2015

Looks good to me. Thanks for highlighting & commenting on real changes @etpinard ! 💃

@mdtusz
Copy link
Contributor

mdtusz commented Dec 18, 2015

Oh man, these will make huge improvements for read/maintainability. 👍 💃

etpinard added a commit that referenced this pull request Dec 21, 2015
De-circularize Colorbar and Colorscale modules
@etpinard etpinard merged commit 1ef217e into master Dec 21, 2015
@etpinard etpinard deleted the de-circularize branch December 21, 2015 15:09
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