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

Fixup misinterpreted clip-path by some programs after export #5686

Merged
merged 2 commits into from
May 26, 2021

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented May 26, 2021

Fixes #5685.

@plotly/plotly_js

@archmoj archmoj added bug something broken status: reviewable labels May 26, 2021
@archmoj archmoj added this to the NEXT milestone May 26, 2021
@@ -1270,7 +1270,7 @@ function getFullUrl(localId, gd) {

var context = gd._context;
var baseUrl = context._exportedPlot ? '' : (context._baseUrl || '');
return 'url(\'' + baseUrl + '#' + localId + '\')';
return 'url(' + baseUrl + '#' + localId + ')';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Per #5685 (comment) I think it's safer to keep the quotes when baseUrl is truthy (noting that the _exportedPlot condition appropriately clears it vs context._baseUrl).

@archmoj archmoj requested review from alexcjohnson and antoinerg May 26, 2021 16:50
Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

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

💃 LGTM!

@archmoj archmoj merged commit 04b45eb into master May 26, 2021
@archmoj archmoj deleted the no-quote-around-url branch May 26, 2021 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

clip-path misinterpreted by some programs after export
2 participants