Skip to content

Seamless subplots #554

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
May 20, 2016
Merged

Seamless subplots #554

merged 6 commits into from
May 20, 2016

Conversation

etpinard
Copy link
Contributor

@mdtusz

This PR continues on #491 and comes in preparation for our mapbox-gl integration.

This PR creates an interface for subplot-specific steps during to-svg and supply-defaults such that Plotly.plot and Plotly.toImage are agnostic to which subplot types are registered.

Important commits

  • 6344fa4 where gl3d, gl2d, geo to-svg routines are moved to their corresponding basePlotModule.
  • 68a6a96 where trace subplot attributes (e.g. trace.scene for gl3d subplots, trace.geo for geo subplots) are coerced by looping over the registered subplot types - replacing the slew of hard coded coerce('scene') ... statements.

etpinard added 5 commits May 19, 2016 10:30
- rm unnecessary 'window'
- rm commented out line (ne need to attach canvas to window)
- so that the WebGL -> to <image> step can be generalize
  to custom base plot modules
- rm obsolete '|| scene' condition
- merge multiple if-visible into one

canvasContainer.appendChild(canvas);
// no need to attach canvas container to DOM
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably can ⚡ the comment.

Also, do we even the canvasContainer? Can't we just use the canvas element directly? Not 🚫 but it's always nice to remove code.

@mdtusz
Copy link
Contributor

mdtusz commented May 19, 2016

Up to you on the canvasContainer thing, but I'm happy with this.

💃 whenever you're happy!

@etpinard etpinard merged commit 96887ac into master May 20, 2016
@etpinard etpinard deleted the seamless-subplots branch May 20, 2016 14:59
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