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 range slider svg / eps / pdf exports #1306

Merged
merged 4 commits into from Jan 17, 2017
Merged

Conversation

etpinard
Copy link
Contributor

Range slider svg / eps / pdf exports are currently failing on plot.ly.

This PR ensures that

  • all range slider <rect> elements have set x/y/width/height attributes (no setting those makes the SVG invalid)
  • RGBA color are set via fill + fill-opacity attributes (Batik doesn't like fill: ${rgba})
  • all fill: 'transparent elements are not drawn on static plots (Batik doesn't like fill: 'transparent')

- it was causing pdf/eps export to fail because the <rect>
  node didn't have x/y/width/height attributes
- remove it as the range slider bg is all we need here
- so that rgba color is set as:
  `fill: ${rgb}` + `fill-opacity: ${alpha}`
  for compatibility with eps/pdf exports
- these were also no exporting to pdf/eps well
  as they used a  `fill: 'transparent` style
@alexcjohnson
Copy link
Contributor

LGTM 💃

@etpinard etpinard merged commit 5e4bb1a into master Jan 17, 2017
@etpinard etpinard deleted the range-slider-eps-pdf branch January 17, 2017 18:05
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.

None yet

2 participants