3.0.0-alpha.3 • Published 5 months ago

@d3plus/export v3.0.0-alpha.3

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@d3plus/export

Export methods for transforming and downloading SVG.

Installing

If using npm, npm install @d3plus/export. Otherwise, you can download the latest release from GitHub or load from a CDN.

import modules from "@d3plus/export";

In vanilla JavaScript, a d3plus global is exported from the pre-bundled version:

<script src="https://cdn.jsdelivr.net/npm/@d3plus/export@3.0.0-alpha.3"></script>
<script>
  console.log(d3plus);
</script>

Examples

Live examples can be found on d3plus.org, which includes a collection of example visualizations using @d3plus/react.

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


3.0.0-alpha.3

5 months ago

3.0.0-alpha.2

7 months ago

3.0.0-alpha.1

7 months ago

3.0.0-alpha.0

8 months ago