feat: Derek/export png (#95)

* Attempting to use more lightweight version

* Did not work.

* This is not what I wanted

* The image saves correctly. Needs padding

* Padding !!

* Removed downloadjs

* Padding more
This commit is contained in:
2024-02-17 19:09:41 -06:00
committed by doprz
parent a30fecf8ec
commit 58c2b4634a
3 changed files with 47 additions and 10 deletions

7
pnpm-lock.yaml generated
View File

@@ -37,6 +37,9 @@ dependencies:
highcharts-react-official:
specifier: ^3.2.1
version: 3.2.1(highcharts@11.3.0)(react@18.2.0)
html-to-image:
specifier: ^1.11.11
version: 1.11.11
html2canvas:
specifier: ^1.4.1
version: 1.4.1
@@ -8670,6 +8673,10 @@ packages:
engines: {node: '>=8'}
dev: true
/html-to-image@1.11.11:
resolution: {integrity: sha512-9gux8QhvjRO/erSnDPv28noDZcPZmYE7e1vFsBLKLlRlKDSqNJYebj6Qz1TGd5lsRV+X+xYyjCKjuZdABinWjA==}
dev: false
/html2canvas@1.4.1:
resolution: {integrity: sha512-fPU6BHNpsyIhr8yyMpTLLxAbkaK8ArIBcmZIRiBLiDhjeqvXolaEmDGmELFuX9I4xDcaKKcJl+TKZLqruBbmWA==}
engines: {node: '>=8.0.0'}