Skip to content

Typescript: drawHTML is not exported by node_modules/rasterizehtml/dist/rasterizeHTML.js #215

Description

@nhatlang19

Any helps?

I using rollup to build my system
Screen Shot 2021-10-24 at 1 09 37 AM

This is my code

import * as rasterizeHTML from 'rasterizehtml’;
const canvas = document.createElement('canvas');
canvas.height = el.offsetHeight;
 canvas.width = el.offsetWidth;
            
rasterizeHTML.drawHTML(el.outerHTML, canvas);
reviewImage = canvas.toDataURL('image/jpeg');

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions