@zumer/snapdom 1.9.6-dev.0 → 1.9.6-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -2
- package/dist/snapdom.js +386 -219
- package/dist/snapdom.min.js +8 -8
- package/dist/snapdom.min.mjs +13 -13
- package/dist/snapdom.mjs +137 -100
- package/package.json +4 -1
- package/types/snapdom.d.ts +1 -1
package/README.md
CHANGED
|
@@ -185,7 +185,7 @@ Forces exact dimensions, potentially distorting the image if the aspect ratio di
|
|
|
185
185
|
```js
|
|
186
186
|
const result = await snapdom(element, {
|
|
187
187
|
width: 800, // Outputs an 800px × 200px image (may stretch/squish content)
|
|
188
|
-
height: 200
|
|
188
|
+
height: 200
|
|
189
189
|
});
|
|
190
190
|
```
|
|
191
191
|
|
|
@@ -330,6 +330,9 @@ npm install
|
|
|
330
330
|
# Compile the library (ESM, CJS, and minified versions)
|
|
331
331
|
npm run compile
|
|
332
332
|
|
|
333
|
+
# Install playwright browsers (necessary for running tests)
|
|
334
|
+
npx playwright install
|
|
335
|
+
|
|
333
336
|
# Run tests
|
|
334
337
|
npm test
|
|
335
338
|
|
|
@@ -361,7 +364,7 @@ For detailed contribution guidelines, please see [CONTRIBUTING](https://github.c
|
|
|
361
364
|
|
|
362
365
|
## 💖 Sponsors
|
|
363
366
|
|
|
364
|
-
Special thanks to [@megaphonecolin](https://github.com/megaphonecolin) for supporting this project!
|
|
367
|
+
Special thanks to [@megaphonecolin](https://github.com/megaphonecolin) for supporting this project!
|
|
365
368
|
|
|
366
369
|
If you'd like to support this project too, you can [become a sponsor](https://github.com/sponsors/tinchox5).
|
|
367
370
|
|