1.3.0 • Published 12 months ago
d3plus-export v1.3.0
d3plus-export
Export methods for transforming and downloading SVG.
Installing
If you use NPM, npm install d3plus-export
. Otherwise, download the latest release. You can also load d3plus-export as a standalone library or as part of D3plus. ES modules, AMD, CommonJS, and vanilla environments are supported. In vanilla, a d3plus
global is exported:
<script src="https://cdn.jsdelivr.net/npm/d3plus-export@1"></script>
<script>
console.log(d3plus);
</script>
API Reference
- saveElement - Downloads an HTML Element as a bitmap PNG image.
d3plus.saveElement(elem, options, renderOptions) <>
Downloads an HTML Element as a bitmap PNG image.
This is a global function.
Param | Type | Default | Description |
---|---|---|---|
elem | HTMLElement | A single element to be saved to one file. | |
options | Object | Additional options to specify. | |
options.filename | String | "download" | Filename for the downloaded file, without the extension. |
options.type | String | "png" | File type of the saved document. Accepted values are "png" and "jpg" . |
options.callback | function | Function to be invoked after saving is complete. | |
renderOptions | Object | Custom options to be passed to the html-to-image function. |
Documentation generated on Fri, 12 May 2023 19:21:45 GMT
1.1.1
12 months ago
1.3.0
1 year ago
1.2.0
1 year ago
1.1.0
2 years ago
1.0.1
3 years ago
1.0.0
3 years ago
0.3.19
4 years ago
0.3.18
4 years ago
0.3.17
4 years ago
0.3.16
5 years ago
0.3.15
5 years ago
0.3.14
5 years ago
0.3.13
5 years ago
0.3.12
5 years ago
0.3.11
5 years ago
0.3.10
5 years ago
0.3.9
5 years ago
0.3.8
5 years ago
0.3.7
5 years ago
0.3.6
5 years ago
0.3.5
5 years ago
0.3.4
6 years ago
0.3.3
6 years ago
0.3.2
7 years ago
0.3.1
7 years ago
0.3.0
7 years ago
0.2.1
7 years ago
0.2.0
7 years ago
0.1.1
7 years ago
0.1.0
7 years ago