satoru-render 1.0.3 → 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.
- package/README.md +1 -0
- package/dist/cli.js +5 -0
- package/dist/core.d.ts +3 -0
- package/dist/core.js +2 -0
- package/dist/satoru-single.js +0 -0
- package/dist/satoru.js +1 -1
- package/dist/satoru.wasm +0 -0
- package/dist/web-workers.js +72 -70
- package/dist/workers-parent.js +4 -2
- package/package.json +1 -1
package/dist/workers-parent.js
CHANGED
|
@@ -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 "";
|