"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./html2canvas.esm-D53btDlk.cjs");function l({domElement:a,fileName:o,format:n="png"}){if(a)return new Promise((r,c)=>{const e=document.createElement("a");i.default(a,{scale:2}).then(t=>{e.href=t.toDataURL(`image/${n}`),e.download=`${o}.${n}`,e.click(),e&&e.remove(),r()}).catch(t=>{console.error("Error generating image:",t),c(t)})})}exports.default=l;
