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

Ensure that all point position calls pass the data index. #852

Merged
merged 2 commits into from
Jul 12, 2018

Conversation

manthey
Copy link
Contributor

@manthey manthey commented Jun 20, 2018

We want position to be a function that takes (data, dataIndex), but in several places we were only calling it with (data). Also, data entries don't have to be objects, so guard against that -- you can set a point feature with data just equal to {length: <number of points>}, and then generate the positions purely based on the index.

We want position to be a function that takes `(data, dataIndex)`, but in
several places we were only calling it with `(data)`.  Also, data
entries don't have to be objects, so guard against that -- you can set a
point feature with data just equal to `{length: <number of points>}`,
and then generate the positions purely based on the index.
@manthey manthey force-pushed the point-position-calls branch from 5dc8a95 to cf5b12f Compare July 2, 2018 14:30
@manthey manthey merged commit 91f4095 into master Jul 12, 2018
@manthey manthey deleted the point-position-calls branch July 12, 2018 17:26
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