Package Exports
- @solid-integrations/html2canvas
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