@pixldocs/canvas-renderer 0.5.328 → 0.5.329
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-36ORX_k2.js → index-K53gPk1O.js} +13 -69
- package/dist/{index-36ORX_k2.js.map → index-K53gPk1O.js.map} +1 -1
- package/dist/{index-DhowYy-T.cjs → index-_B1EJq7R.cjs} +13 -69
- package/dist/{index-DhowYy-T.cjs.map → index-_B1EJq7R.cjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-CKg43wpe.js → vectorPdfExport-BhmhaCT1.js} +4 -4
- package/dist/{vectorPdfExport-CKg43wpe.js.map → vectorPdfExport-BhmhaCT1.js.map} +1 -1
- package/dist/{vectorPdfExport-B4Vpz8di.cjs → vectorPdfExport-DNaP0TIk.cjs} +4 -4
- package/dist/{vectorPdfExport-B4Vpz8di.cjs.map → vectorPdfExport-DNaP0TIk.cjs.map} +1 -1
- package/package.json +1 -1
|
@@ -13805,73 +13805,17 @@ const PageCanvas = react.forwardRef(
|
|
|
13805
13805
|
const childCounterScale = hasRotatedChild ? 1 : 1 / sAxis;
|
|
13806
13806
|
for (const child of obj.getObjects()) {
|
|
13807
13807
|
if (child instanceof fabric__namespace.Group && (child.__cropGroup || ((_d = child._ct) == null ? void 0 : _d.isCropGroup))) {
|
|
13808
|
-
|
|
13809
|
-
|
|
13810
|
-
|
|
13811
|
-
|
|
13812
|
-
const baseW = child.width ?? ct.frameW ?? 0;
|
|
13813
|
-
child.__asLiveOrigW = baseW * (child.scaleX ?? 1);
|
|
13814
|
-
}
|
|
13815
|
-
const origW = child.__asLiveOrigW;
|
|
13816
|
-
const newW = Math.max(20, origW * sAxis);
|
|
13817
|
-
if (Math.abs((child.width ?? 0) - newW) > 0.5) {
|
|
13818
|
-
ct.frameW = newW;
|
|
13819
|
-
child._set("width", newW);
|
|
13820
|
-
child._set("scaleX", childCounterScale);
|
|
13821
|
-
try {
|
|
13822
|
-
updateCoverLayout(child);
|
|
13823
|
-
} catch {
|
|
13824
|
-
}
|
|
13825
|
-
child.setCoords();
|
|
13826
|
-
child.dirty = true;
|
|
13827
|
-
}
|
|
13828
|
-
} else {
|
|
13829
|
-
if (child.__asLiveOrigH == null) {
|
|
13830
|
-
const baseH = child.height ?? ct.frameH ?? 0;
|
|
13831
|
-
child.__asLiveOrigH = baseH * (child.scaleY ?? 1);
|
|
13832
|
-
}
|
|
13833
|
-
const origH = child.__asLiveOrigH;
|
|
13834
|
-
const newH = Math.max(20, origH * sAxis);
|
|
13835
|
-
if (Math.abs((child.height ?? 0) - newH) > 0.5) {
|
|
13836
|
-
ct.frameH = newH;
|
|
13837
|
-
child._set("height", newH);
|
|
13838
|
-
child._set("scaleY", childCounterScale);
|
|
13839
|
-
try {
|
|
13840
|
-
updateCoverLayout(child);
|
|
13841
|
-
} catch {
|
|
13842
|
-
}
|
|
13843
|
-
child.setCoords();
|
|
13844
|
-
child.dirty = true;
|
|
13845
|
-
}
|
|
13846
|
-
}
|
|
13808
|
+
if (isXSide) child._set("scaleX", childCounterScale);
|
|
13809
|
+
else child._set("scaleY", childCounterScale);
|
|
13810
|
+
child.setCoords();
|
|
13811
|
+
child.dirty = true;
|
|
13847
13812
|
continue;
|
|
13848
13813
|
}
|
|
13849
13814
|
if (child instanceof fabric__namespace.FabricImage && !child.__cropGroup && !child.smartElementType) {
|
|
13850
|
-
if (isXSide)
|
|
13851
|
-
|
|
13852
|
-
|
|
13853
|
-
|
|
13854
|
-
const origW = child.__asLiveOrigW;
|
|
13855
|
-
const newW = Math.max(1, origW * sAxis);
|
|
13856
|
-
if (Math.abs((child.width ?? 0) - newW) > 0.5) {
|
|
13857
|
-
child._set("width", newW);
|
|
13858
|
-
child._set("scaleX", childCounterScale);
|
|
13859
|
-
child.setCoords();
|
|
13860
|
-
child.dirty = true;
|
|
13861
|
-
}
|
|
13862
|
-
} else {
|
|
13863
|
-
if (child.__asLiveOrigH == null) {
|
|
13864
|
-
child.__asLiveOrigH = (child.height ?? 0) * (child.scaleY ?? 1);
|
|
13865
|
-
}
|
|
13866
|
-
const origH = child.__asLiveOrigH;
|
|
13867
|
-
const newH = Math.max(1, origH * sAxis);
|
|
13868
|
-
if (Math.abs((child.height ?? 0) - newH) > 0.5) {
|
|
13869
|
-
child._set("height", newH);
|
|
13870
|
-
child._set("scaleY", childCounterScale);
|
|
13871
|
-
child.setCoords();
|
|
13872
|
-
child.dirty = true;
|
|
13873
|
-
}
|
|
13874
|
-
}
|
|
13815
|
+
if (isXSide) child._set("scaleX", childCounterScale);
|
|
13816
|
+
else child._set("scaleY", childCounterScale);
|
|
13817
|
+
child.setCoords();
|
|
13818
|
+
child.dirty = true;
|
|
13875
13819
|
continue;
|
|
13876
13820
|
}
|
|
13877
13821
|
if (!(child instanceof fabric__namespace.Textbox)) continue;
|
|
@@ -24286,9 +24230,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
24286
24230
|
}
|
|
24287
24231
|
return svgString;
|
|
24288
24232
|
}
|
|
24289
|
-
const resolvedPackageVersion = "0.5.
|
|
24233
|
+
const resolvedPackageVersion = "0.5.329";
|
|
24290
24234
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
24291
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
24235
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.329";
|
|
24292
24236
|
const roundParityValue = (value) => {
|
|
24293
24237
|
if (typeof value !== "number") return value;
|
|
24294
24238
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25102,7 +25046,7 @@ class PixldocsRenderer {
|
|
|
25102
25046
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25103
25047
|
}
|
|
25104
25048
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25105
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
25049
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-DNaP0TIk.cjs"));
|
|
25106
25050
|
const prepared = preparePagesForExport(
|
|
25107
25051
|
cloned.pages,
|
|
25108
25052
|
canvasWidth,
|
|
@@ -27422,7 +27366,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
27422
27366
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
27423
27367
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
27424
27368
|
try {
|
|
27425
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
27369
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-DNaP0TIk.cjs"));
|
|
27426
27370
|
try {
|
|
27427
27371
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
27428
27372
|
} catch {
|
|
@@ -27819,4 +27763,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
27819
27763
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
27820
27764
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
27821
27765
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
27822
|
-
//# sourceMappingURL=index-
|
|
27766
|
+
//# sourceMappingURL=index-_B1EJq7R.cjs.map
|