satoru-render 1.0.4 → 1.0.5

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.
@@ -442,7 +442,8 @@ var SatoruBase = class {
442
442
  cropHeight: options.crop?.height ?? 0,
443
443
  fitPositionX: options.fitPosition?.x ?? .5,
444
444
  fitPositionY: options.fitPosition?.y ?? .5,
445
- backgroundColor: this.parseColor(options.backgroundColor)
445
+ backgroundColor: this.parseColor(options.backgroundColor),
446
+ mediaType: options.mediaType === "print" ? 1 : 0
446
447
  });
447
448
  if (!result) {
448
449
  if (options.format === "svg") return "";
@@ -634,7 +635,8 @@ var SatoruBase = class {
634
635
  cropHeight: options.crop?.height ?? 0,
635
636
  fitPositionX: options.fitPosition?.x ?? .5,
636
637
  fitPositionY: options.fitPosition?.y ?? .5,
637
- backgroundColor: this.parseColor(options.backgroundColor)
638
+ backgroundColor: this.parseColor(options.backgroundColor),
639
+ mediaType: options.mediaType === "print" ? 1 : 0
638
640
  });
639
641
  if (!result) {
640
642
  if (format === "svg") return "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "satoru-render",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "High-fidelity HTML/CSS to SVG/PNG/PDF converter running in WebAssembly",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",