-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Unnecessary clipPaths #2595
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
Comments
These "unnecessary" clip paths are added to the DOM in plotly.js/src/plots/cartesian/axes.js Lines 1457 to 1495 in a132b85
Some benchmarks using https://codepen.io/etpinard/pen/wjmqmO:, at 50 dimensions, That said, as far as I can tell, these per-axes clip paths are only used for shapes and layout images. So, we could easily skip Lines 431 to 440 in a132b85
is turned on. Alternatively, we could call |
Good to know, thanks for benchmarking it. Sounds like adding a Down the line though we should be able to do even better by only making the ones we need period, by building up the required list during |
Done in #2628 |
Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson |
Potential 🐎 issue with many-subplot graphs: seems like we’re making

clipPath.axesclip
for every possible combination of axes… even thoughclipPath.plotclip
only gets the subplots we use. Dunno if maybe shapes can require other combinations? In any event we should be able to be more discriminating in which of these we make.The text was updated successfully, but these errors were encountered: