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