Commit 3c96dad
committed
fix: resolve trim-canvas import error in SignatureCanvas
- Fixed runtime error "TypeError: (0 , import_trim_canvas.default) is not a function"
caused by incompatible default/named exports in trim-canvas.
- Updated import to a universal approach compatible with:
Node.js, TypeScript, and all package managers/bundlers.
- getTrimmedCanvas now safely trims canvas regardless of environment.1 parent bf8bd02 commit 3c96dad
3 files changed
+8952
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
0 commit comments