@pixldocs/canvas-renderer 0.5.427 → 0.5.429
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-DKaw5wif.cjs → index-CKx2zlez.cjs} +33 -8
- package/dist/index-CKx2zlez.cjs.map +1 -0
- package/dist/{index-BMuhbMdO.js → index-bV8nKwDW.js} +33 -8
- package/dist/index-bV8nKwDW.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-BUi4rX_J.cjs → vectorPdfExport-DmvWFSzg.cjs} +4 -4
- package/dist/{vectorPdfExport-BUi4rX_J.cjs.map → vectorPdfExport-DmvWFSzg.cjs.map} +1 -1
- package/dist/{vectorPdfExport-Bc2upktw.js → vectorPdfExport-DrAjSe3O.js} +4 -4
- package/dist/{vectorPdfExport-Bc2upktw.js.map → vectorPdfExport-DrAjSe3O.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-BMuhbMdO.js.map +0 -1
- package/dist/index-DKaw5wif.cjs.map +0 -1
|
@@ -11326,9 +11326,15 @@ try {
|
|
|
11326
11326
|
} catch (e) {
|
|
11327
11327
|
}
|
|
11328
11328
|
};
|
|
11329
|
-
const
|
|
11330
|
-
|
|
11331
|
-
|
|
11329
|
+
const canPatchControlsUtils = (key) => {
|
|
11330
|
+
const desc = Object.getOwnPropertyDescriptor(cu, key);
|
|
11331
|
+
return !desc || desc.writable === true || typeof desc.set === "function";
|
|
11332
|
+
};
|
|
11333
|
+
if (canPatchControlsUtils("createObjectDefaultControls")) {
|
|
11334
|
+
const origObj = cu.createObjectDefaultControls.bind(cu);
|
|
11335
|
+
cu.createObjectDefaultControls = () => installPillRenders(origObj());
|
|
11336
|
+
}
|
|
11337
|
+
if (typeof cu.createTextboxDefaultControls === "function" && canPatchControlsUtils("createTextboxDefaultControls")) {
|
|
11332
11338
|
const origTb = cu.createTextboxDefaultControls.bind(cu);
|
|
11333
11339
|
cu.createTextboxDefaultControls = () => installPillRenders(origTb());
|
|
11334
11340
|
}
|
|
@@ -16491,6 +16497,25 @@ const PageCanvas = react.forwardRef(
|
|
|
16491
16497
|
}
|
|
16492
16498
|
updateElement(objId, elementUpdate, { recordHistory: false, skipLayoutRecalc: true });
|
|
16493
16499
|
obj.setCoords();
|
|
16500
|
+
try {
|
|
16501
|
+
const isImg = obj instanceof fabric__namespace.FabricImage || obj.__cropGroup;
|
|
16502
|
+
if (isImg) {
|
|
16503
|
+
console.log("[Pixldocs:rotation-persist]", {
|
|
16504
|
+
objId,
|
|
16505
|
+
fabricType: obj.type,
|
|
16506
|
+
isCropGroup: !!obj.__cropGroup,
|
|
16507
|
+
isActiveSelection,
|
|
16508
|
+
objAngle: obj.angle,
|
|
16509
|
+
activeAngle: activeObj == null ? void 0 : activeObj.angle,
|
|
16510
|
+
decomposedAngle: decomposed == null ? void 0 : decomposed.angle,
|
|
16511
|
+
persistedAngle: elementUpdate.angle,
|
|
16512
|
+
persistedLeft: elementUpdate.left,
|
|
16513
|
+
persistedTop: elementUpdate.top,
|
|
16514
|
+
sourceElementAngle: sourceElement == null ? void 0 : sourceElement.angle
|
|
16515
|
+
});
|
|
16516
|
+
}
|
|
16517
|
+
} catch {
|
|
16518
|
+
}
|
|
16494
16519
|
}
|
|
16495
16520
|
const pageChildrenForReflow = ((_j = useEditorStore.getState().canvas.pages.find((p) => p.id === pageId)) == null ? void 0 : _j.children) ?? [];
|
|
16496
16521
|
const stackGroupsToReflow = /* @__PURE__ */ new Set();
|
|
@@ -25700,9 +25725,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
25700
25725
|
}
|
|
25701
25726
|
return svgString;
|
|
25702
25727
|
}
|
|
25703
|
-
const resolvedPackageVersion = "0.5.
|
|
25728
|
+
const resolvedPackageVersion = "0.5.429";
|
|
25704
25729
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
25705
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
25730
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.429";
|
|
25706
25731
|
const roundParityValue = (value) => {
|
|
25707
25732
|
if (typeof value !== "number") return value;
|
|
25708
25733
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -26516,7 +26541,7 @@ class PixldocsRenderer {
|
|
|
26516
26541
|
await this.waitForCanvasScene(container, cloned, i);
|
|
26517
26542
|
}
|
|
26518
26543
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
26519
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
26544
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-DmvWFSzg.cjs"));
|
|
26520
26545
|
const prepared = preparePagesForExport(
|
|
26521
26546
|
cloned.pages,
|
|
26522
26547
|
canvasWidth,
|
|
@@ -28836,7 +28861,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
28836
28861
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
28837
28862
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
28838
28863
|
try {
|
|
28839
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
28864
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-DmvWFSzg.cjs"));
|
|
28840
28865
|
try {
|
|
28841
28866
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
28842
28867
|
} catch {
|
|
@@ -29233,4 +29258,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
29233
29258
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
29234
29259
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
29235
29260
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
29236
|
-
//# sourceMappingURL=index-
|
|
29261
|
+
//# sourceMappingURL=index-CKx2zlez.cjs.map
|