Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
d3plus-export
Advanced tools
Export methods for transforming and downloading SVG.
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";
d3plus-export can be loaded as a standalone library or bundled 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>
Live examples can be found on d3plus.org, which includes a collection of example visualizations using d3plus-react. These examples are powered by the d3plus-storybook repo, and PRs are always welcome. :beers:
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. |
FAQs
Export methods for transforming and downloading SVG.
The npm package d3plus-export receives a total of 632 weekly downloads. As such, d3plus-export popularity was classified as not popular.
We found that d3plus-export demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.