Skip to content

fixes 3d thumbnail clone when no xaxis in scene #1327

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 1 commit into from
Jan 25, 2017

Conversation

bpostlethwaite
Copy link
Member

The test case that now (should) be passing was failing before this fix. This impacted Plotly image server thumbnail generation.


extendFlat(newLayout[sceneId].xaxis || {}, axesImageOverride);
extendFlat(newLayout[sceneId].yaxis || {}, axesImageOverride);
extendFlat(newLayout[sceneId].zaxis || {}, axesImageOverride);
Copy link
Collaborator

Choose a reason for hiding this comment

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

|| {} is unnecessary here (and would have been confusingly useless by itself)

I'd probably also do var scene = newLayout[sceneIds[i]] instead of var sceneId = sceneIds[i] to be more concise, but that's more of a style issue.

@bpostlethwaite
Copy link
Member Author

@alexcjohnson changes made ready for review

@alexcjohnson
Copy link
Collaborator

💃 Thanks!

@bpostlethwaite bpostlethwaite merged commit 2070279 into master Jan 25, 2017
@bpostlethwaite bpostlethwaite deleted the fix-Thumbnail-Clone branch January 25, 2017 15:21
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.

None yet

2 participants