satori 0.13.2 → 0.14.0

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 CHANGED
@@ -429,6 +429,20 @@ const svg = await satori(
429
429
  )
430
430
  ```
431
431
 
432
+ ### Pixel Grid Rounding
433
+
434
+ Set `pointScaleFactor` to control how layout values are rounded to the pixel grid. This parameter is passed directly to [Yoga’s `pointScaleFactor`](https://www.yogalayout.dev/docs/getting-started/configuring-yoga#point-scale-factor) and improves rendering precision on high-DPI displays.
435
+
436
+ ```jsx
437
+ const svg = await satori(
438
+ <div style={{ color: 'black' }}>hello, world</div>,
439
+ {
440
+ ...,
441
+ pointScaleFactor: 2,
442
+ },
443
+ )
444
+ ```
445
+
432
446
  ### Debug
433
447
 
434
448
  To draw the bounding box for debugging, you can pass `debug: true` as an option: