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

Scale classes. #122

Open
mbostock opened this issue Oct 26, 2017 · 0 comments
Open

Scale classes. #122

mbostock opened this issue Oct 26, 2017 · 0 comments
Milestone

Comments

@mbostock
Copy link
Member

What if rather than being closures, scales were object instances and invoked via scale.apply(x) (as opposed to scale(x))? Then it would be easier to augment a scale’s prototype, to reuse code in implementations, and make scales cheaper to instantiate. (The latter is especially relevant if we want immutable scales #121.)

@mbostock mbostock added this to the 2.0 milestone Oct 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant