Commit 0da314a
authored
fix: remove unnecessary static method (#8)
This pull request includes changes to the `IDWatermark` class in
`src/index.js` to improve the image loading process and simplify the
codebase. The most important changes include replacing the `loadImage`
method with a direct call to `createImageBitmap` and removing the now
redundant `loadImage` method.
Improvements to image loading process:
*
[`src/index.js`](diffhunk://#diff-bfe9874d239014961b1ae4e89875a6155667db834a410aaaa2ebe3cf89820556L80-R80):
Replaced the call to `IDWatermark.loadImage` with a direct call to
`createImageBitmap` in the `addWatermark` method.
Codebase simplification:
*
[`src/index.js`](diffhunk://#diff-bfe9874d239014961b1ae4e89875a6155667db834a410aaaa2ebe3cf89820556L212-L222):
Removed the `loadImage` static method from the `IDWatermark` class as it
is no longer needed.1 file changed
Lines changed: 1 addition & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | 212 | | |
224 | 213 | | |
225 | 214 | | |
| |||
0 commit comments