@solid-integrations/html2canvas
v0.0.200
Published
An integration with html2canvas
Downloads
2
Readme
@solid-integrations/html2canvas
An integration for html2canvas, which contains the following functions:
makeScreenshotURL
- Makes an object URL to an image of the given html element.createScreenshotURL
- Creates a resource
Installation
npm install @solid-integrations/html2canvas
# or
yarn add @solid-integrations/html2canvas
# or
pnpm add @solid-integrations/html2canvas
How to use it
makeScreenshotURL
const imgURL: string = makeScreenshotURL(document.getElementById("root"));
createScreenshotURL
const imgURL: Resource<string> = createScreenshotURL(document.getElementById("root"));
Changelog
See CHANGELOG.md