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

Fix layout images add / remove #672

Merged
merged 2 commits into from
Jun 22, 2016
Merged

Fix layout images add / remove #672

merged 2 commits into from
Jun 22, 2016

Conversation

etpinard
Copy link
Contributor

@etpinard etpinard commented Jun 20, 2016

fixes #670

@mdtusz on master we can have multiple images of the same source on a given graph.

- so that multiple images can share the same source field
@etpinard
Copy link
Contributor Author

I think there are a few more issue with relayout for layout images. I'll investigate a few more things before the next release.

function keyFunction(d) {
return d.source;
function keyFunction(d, i) {
return d.source + i;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mdtusz does this look right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

or maybe we give all _isLinkedToArray (e.g. annotations, shapes, image, mapbox layers) containers a uid?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should be sufficient.

@mdtusz
Copy link
Contributor

mdtusz commented Jun 21, 2016

💃

@etpinard
Copy link
Contributor Author

Ok. I'll merge this in for v1.14.0

Combining relayout logic for all _isLinkedToArray attributes will be for another PR.

@etpinard etpinard merged commit e8b9ca2 into master Jun 22, 2016
@etpinard etpinard deleted the images-add-remove branch June 22, 2016 14:02
@EvertS3
Copy link

EvertS3 commented Jun 25, 2016

Hi guys, seems like the bug has been resolved? Will I need to download v1.14.0 now?

@etpinard
Copy link
Contributor Author

@EvertS3

Will I need to download v1.14.0 now?

Yes. This bug fix is part of v1.14.0. You can download it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Something is up with relayout while adding/removing layout images
3 participants