Branch: refs/heads/unstable
Home: https://github.com/cytoscape/cytoscape.js
Commit: ccf0745ee9f5ce2c6e8f5778fc928617d369d236
https://github.com/cytoscape/cytoscape.js/commit/ccf0745ee9f5ce2c6e8f5778fc928617d369d236
Author: Max Franz <[email protected]>
Date: 2018-12-05 (Wed, 05 Dec 2018)
Changed paths:
A debug/FileSaver.js
M debug/index.html
M debug/tests.js
M src/extensions/renderer/canvas/export-image.js
Log Message:
-----------
Add support for png and jpg exports with option `output: 'blob-promise'`
- This doesn't seem to improve the image size limits of the browsers. For PNG:
Safari and Chrome handle around 16,000 x 16,000 images, while Firefox handles
around 10,000 x 10,000 images. This is unchanged from the manually-generated
blob from base 64.
- This does not seem to speed up image exports for blobs. However, the promise
option does not block the main browser execution thread. This could be useful
for showing a loading spinner icon while the blob is being generated.
- Add tests to the test page for exporting png. Include FileSaver.js in the
debug page for testing that downloads work properly.
Ref : For blob image exports, use `canvas.toBlob()` where available #2208
**NOTE:** This service has been marked for deprecation:
https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/cytoscape-cvs.
For more options, visit https://groups.google.com/d/optout.