@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 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 !== void 0 && explicitH !== void 0) {
56107
- width = typeof explicitW === "number" ? explicitW : 800;
56108
- height = typeof explicitH === "number" ? explicitH : 600;
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 !== void 0 && explicitH !== void 0) {
55967
- width = typeof explicitW === "number" ? explicitW : 800;
55968
- height = typeof explicitH === "number" ? explicitH : 600;
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 !== void 0 && explicitH !== void 0) {
49758
- width = typeof explicitW === "number" ? explicitW : 800;
49759
- height = typeof explicitH === "number" ? explicitH : 600;
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 !== void 0 && explicitH !== void 0) {
49720
- width = typeof explicitW === "number" ? explicitW : 800;
49721
- height = typeof explicitH === "number" ? explicitH : 600;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wireweave/core",
3
- "version": "1.4.1-beta.1",
3
+ "version": "1.4.1",
4
4
  "description": "Core parser and renderer for wireweave",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",