Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Use URLs directly for layout images #7199

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 3 commits into from
Oct 8, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
use url directly for layout images when not in static mode
The data uri is necessary for export only, which should always use staticPlot
  • Loading branch information
alexcjohnson committed Oct 2, 2024
commit cf57b3966d4dfceed6a4ccf6265d6332d6bff97a
2 changes: 1 addition & 1 deletion 2 src/components/images/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ module.exports = function draw(gd) {

thisImage.attr('xmlns', xmlnsNamespaces.svg);

if(d.source && d.source.slice(0, 5) === 'data:') {
if(!gd._context.staticPlot || (d.source && d.source.slice(0, 5) === 'data:')) {
thisImage.attr('xlink:href', d.source);
this._imgSrc = d.source;
} else {
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.