@pixldocs/canvas-renderer 0.5.296 → 0.5.297
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-JckTC23Z.js → index-BDVGR-oo.js} +16 -16
- package/dist/index-BDVGR-oo.js.map +1 -0
- package/dist/{index-QphA136A.cjs → index-CrvU0g7N.cjs} +16 -16
- package/dist/index-CrvU0g7N.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-Lo1YQq71.js → vectorPdfExport-DOAlZclW.js} +4 -4
- package/dist/{vectorPdfExport-Lo1YQq71.js.map → vectorPdfExport-DOAlZclW.js.map} +1 -1
- package/dist/{vectorPdfExport-BhdvkuRF.cjs → vectorPdfExport-hvIfS0b3.cjs} +4 -4
- package/dist/{vectorPdfExport-BhdvkuRF.cjs.map → vectorPdfExport-hvIfS0b3.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index-JckTC23Z.js.map +0 -1
- package/dist/index-QphA136A.cjs.map +0 -1
|
@@ -13955,7 +13955,7 @@ const PageCanvas = react.forwardRef(
|
|
|
13955
13955
|
});
|
|
13956
13956
|
let cropGroupSaveTimer = null;
|
|
13957
13957
|
fabricCanvas.on("object:modified", (e) => {
|
|
13958
|
-
var _a2, _b2, _c, _d, _e, _f, _g;
|
|
13958
|
+
var _a2, _b2, _c, _d, _e, _f, _g, _h;
|
|
13959
13959
|
try {
|
|
13960
13960
|
dragStarted = false;
|
|
13961
13961
|
setGuides([]);
|
|
@@ -14602,16 +14602,16 @@ const PageCanvas = react.forwardRef(
|
|
|
14602
14602
|
obj.initDimensions();
|
|
14603
14603
|
obj.objectCaching = prevObjCaching;
|
|
14604
14604
|
if (sx > 0 && sy > 0) {
|
|
14605
|
-
|
|
14606
|
-
const
|
|
14607
|
-
|
|
14608
|
-
const
|
|
14609
|
-
const
|
|
14610
|
-
const localWidth = bakedWidth *
|
|
14611
|
-
const localHeight = (obj.height ?? intrinsicHeight) *
|
|
14605
|
+
const localScaleX = 1 / sx;
|
|
14606
|
+
const localScaleY = 1 / sy;
|
|
14607
|
+
obj.set({ scaleX: localScaleX, scaleY: localScaleY });
|
|
14608
|
+
const selectionMatrix = (_g = activeObj == null ? void 0 : activeObj.calcTransformMatrix) == null ? void 0 : _g.call(activeObj);
|
|
14609
|
+
const localCenter = selectionMatrix ? fabric__namespace.util.transformPoint(preBakeCenter, fabric__namespace.util.invertTransform(selectionMatrix)) : preBakeCenter;
|
|
14610
|
+
const localWidth = bakedWidth * localScaleX;
|
|
14611
|
+
const localHeight = (obj.height ?? intrinsicHeight) * localScaleY;
|
|
14612
14612
|
obj.set({
|
|
14613
|
-
left:
|
|
14614
|
-
top:
|
|
14613
|
+
left: localCenter.x - localWidth / 2,
|
|
14614
|
+
top: localCenter.y - localHeight / 2
|
|
14615
14615
|
});
|
|
14616
14616
|
} else {
|
|
14617
14617
|
obj.setPositionByOrigin(preBakeCenter, "center", "center");
|
|
@@ -14757,7 +14757,7 @@ const PageCanvas = react.forwardRef(
|
|
|
14757
14757
|
updateElement(objId, elementUpdate, { recordHistory: false, skipLayoutRecalc: true });
|
|
14758
14758
|
obj.setCoords();
|
|
14759
14759
|
}
|
|
14760
|
-
const pageChildrenForReflow = ((
|
|
14760
|
+
const pageChildrenForReflow = ((_h = useEditorStore.getState().canvas.pages.find((p) => p.id === pageId)) == null ? void 0 : _h.children) ?? [];
|
|
14761
14761
|
const stackGroupsToReflow = /* @__PURE__ */ new Set();
|
|
14762
14762
|
for (const id of modifiedIdsThisRound) {
|
|
14763
14763
|
const parent = findParentGroup(pageChildrenForReflow, id);
|
|
@@ -23857,9 +23857,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
23857
23857
|
}
|
|
23858
23858
|
return svgString;
|
|
23859
23859
|
}
|
|
23860
|
-
const resolvedPackageVersion = "0.5.
|
|
23860
|
+
const resolvedPackageVersion = "0.5.297";
|
|
23861
23861
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
23862
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
23862
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.297";
|
|
23863
23863
|
const roundParityValue = (value) => {
|
|
23864
23864
|
if (typeof value !== "number") return value;
|
|
23865
23865
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -24673,7 +24673,7 @@ class PixldocsRenderer {
|
|
|
24673
24673
|
await this.waitForCanvasScene(container, cloned, i);
|
|
24674
24674
|
}
|
|
24675
24675
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
24676
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
24676
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-hvIfS0b3.cjs"));
|
|
24677
24677
|
const prepared = preparePagesForExport(
|
|
24678
24678
|
cloned.pages,
|
|
24679
24679
|
canvasWidth,
|
|
@@ -26993,7 +26993,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
26993
26993
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
26994
26994
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
26995
26995
|
try {
|
|
26996
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
26996
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-hvIfS0b3.cjs"));
|
|
26997
26997
|
try {
|
|
26998
26998
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
26999
26999
|
} catch {
|
|
@@ -27390,4 +27390,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
27390
27390
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
27391
27391
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
27392
27392
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
27393
|
-
//# sourceMappingURL=index-
|
|
27393
|
+
//# sourceMappingURL=index-CrvU0g7N.cjs.map
|