@wireweave/core 1.4.1-beta.1 → 1.4.1
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/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/dist/renderer.cjs +3 -3
- package/dist/renderer.js +3 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -56103,9 +56103,9 @@ function renderToSvg(document, options = {}) {
|
|
|
56103
56103
|
const pageAny = firstPage;
|
|
56104
56104
|
const explicitW = firstPage.w ?? pageAny.width;
|
|
56105
56105
|
const explicitH = firstPage.h ?? pageAny.height;
|
|
56106
|
-
if (explicitW
|
|
56107
|
-
width =
|
|
56108
|
-
height =
|
|
56106
|
+
if (typeof explicitW === "number" && typeof explicitH === "number") {
|
|
56107
|
+
width = explicitW;
|
|
56108
|
+
height = explicitH;
|
|
56109
56109
|
} else if (firstPage.viewport !== void 0 || firstPage.device !== void 0) {
|
|
56110
56110
|
const viewport = resolveViewport(firstPage.viewport, firstPage.device);
|
|
56111
56111
|
width = viewport.width;
|
package/dist/index.js
CHANGED
|
@@ -55963,9 +55963,9 @@ function renderToSvg(document, options = {}) {
|
|
|
55963
55963
|
const pageAny = firstPage;
|
|
55964
55964
|
const explicitW = firstPage.w ?? pageAny.width;
|
|
55965
55965
|
const explicitH = firstPage.h ?? pageAny.height;
|
|
55966
|
-
if (explicitW
|
|
55967
|
-
width =
|
|
55968
|
-
height =
|
|
55966
|
+
if (typeof explicitW === "number" && typeof explicitH === "number") {
|
|
55967
|
+
width = explicitW;
|
|
55968
|
+
height = explicitH;
|
|
55969
55969
|
} else if (firstPage.viewport !== void 0 || firstPage.device !== void 0) {
|
|
55970
55970
|
const viewport = resolveViewport(firstPage.viewport, firstPage.device);
|
|
55971
55971
|
width = viewport.width;
|
package/dist/renderer.cjs
CHANGED
|
@@ -49754,9 +49754,9 @@ function renderToSvg(document, options = {}) {
|
|
|
49754
49754
|
const pageAny = firstPage;
|
|
49755
49755
|
const explicitW = firstPage.w ?? pageAny.width;
|
|
49756
49756
|
const explicitH = firstPage.h ?? pageAny.height;
|
|
49757
|
-
if (explicitW
|
|
49758
|
-
width =
|
|
49759
|
-
height =
|
|
49757
|
+
if (typeof explicitW === "number" && typeof explicitH === "number") {
|
|
49758
|
+
width = explicitW;
|
|
49759
|
+
height = explicitH;
|
|
49760
49760
|
} else if (firstPage.viewport !== void 0 || firstPage.device !== void 0) {
|
|
49761
49761
|
const viewport = resolveViewport(firstPage.viewport, firstPage.device);
|
|
49762
49762
|
width = viewport.width;
|
package/dist/renderer.js
CHANGED
|
@@ -49716,9 +49716,9 @@ function renderToSvg(document, options = {}) {
|
|
|
49716
49716
|
const pageAny = firstPage;
|
|
49717
49717
|
const explicitW = firstPage.w ?? pageAny.width;
|
|
49718
49718
|
const explicitH = firstPage.h ?? pageAny.height;
|
|
49719
|
-
if (explicitW
|
|
49720
|
-
width =
|
|
49721
|
-
height =
|
|
49719
|
+
if (typeof explicitW === "number" && typeof explicitH === "number") {
|
|
49720
|
+
width = explicitW;
|
|
49721
|
+
height = explicitH;
|
|
49722
49722
|
} else if (firstPage.viewport !== void 0 || firstPage.device !== void 0) {
|
|
49723
49723
|
const viewport = resolveViewport(firstPage.viewport, firstPage.device);
|
|
49724
49724
|
width = viewport.width;
|