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

Shadow dom breaks svg+canvas hack #39

Closed
nstrayer opened this issue Jun 15, 2018 · 1 comment
Closed

Shadow dom breaks svg+canvas hack #39

nstrayer opened this issue Jun 15, 2018 · 1 comment

Comments

@nstrayer
Copy link
Collaborator

This is really more of an observation and not an issue. Frequently I combine canvas and svg in the same plot to get the performance of canvas and the interactivity of svg. How I do it is like this:

const container = d3.select(canvas.node().parentElement);
container.style('position', 'relative');

const svg = container.selectAppend('svg')
  .st({
    position: 'absolute',
    bottom: div_padding_bottom, 
    left: div_padding_left,
    width: width, 
    height: height
  });

I noticed that when I updated to the new r2d3 version the shadow dom breaks this workflow. I see that there is an option to disable the shadow dom from 4081f1b but can't find documentation on how to use it. Is it around somewhere?

Thanks!

@jjallaire
Copy link
Member

I think you'd have to execute this:

options(r2d3.shadow = FALSE)

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

No branches or pull requests

2 participants