@pixldocs/canvas-renderer 0.5.435 → 0.5.437
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-BtkdFbJD.js → index-CiXC9Gkl.js} +12 -10
- package/dist/index-CiXC9Gkl.js.map +1 -0
- package/dist/{index-B5NWvDlD.cjs → index-DCwSB2lw.cjs} +12 -10
- package/dist/index-DCwSB2lw.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-BXT74Jwl.cjs → vectorPdfExport-BlzQOLVd.cjs} +4 -4
- package/dist/{vectorPdfExport-BXT74Jwl.cjs.map → vectorPdfExport-BlzQOLVd.cjs.map} +1 -1
- package/dist/{vectorPdfExport-DaUbsdKS.js → vectorPdfExport-Go5IZl-i.js} +4 -4
- package/dist/{vectorPdfExport-DaUbsdKS.js.map → vectorPdfExport-Go5IZl-i.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-B5NWvDlD.cjs.map +0 -1
- package/dist/index-BtkdFbJD.js.map +0 -1
|
@@ -14054,7 +14054,7 @@ const PageCanvas = react.forwardRef(
|
|
|
14054
14054
|
};
|
|
14055
14055
|
fabricCanvas.__updateDrilledGroupOutline = updateDrilledGroupOutline;
|
|
14056
14056
|
fabricCanvas.on("mouse:down:before", (opt) => {
|
|
14057
|
-
var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
|
14057
|
+
var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
|
14058
14058
|
const activeBeforeMouseDown = fabricCanvas.getActiveObject();
|
|
14059
14059
|
if (editLockRef.current) {
|
|
14060
14060
|
const active = fabricCanvas.getActiveObject();
|
|
@@ -14183,8 +14183,9 @@ const PageCanvas = react.forwardRef(
|
|
|
14183
14183
|
try {
|
|
14184
14184
|
const activeForCornerCheck = fabricCanvas.getActiveObject();
|
|
14185
14185
|
if (activeForCornerCheck) {
|
|
14186
|
-
const
|
|
14187
|
-
const
|
|
14186
|
+
const vpPtr = ((_n = fabricCanvas.getViewportPoint) == null ? void 0 : _n.call(fabricCanvas, opt.e)) ?? fabricCanvas.getPointer(opt.e);
|
|
14187
|
+
const scenePtr = fabricCanvas.getPointer(opt.e);
|
|
14188
|
+
const cornerHit = ((_o = activeForCornerCheck.findControl) == null ? void 0 : _o.call(activeForCornerCheck, vpPtr)) || ((_p = activeForCornerCheck.findControl) == null ? void 0 : _p.call(activeForCornerCheck, scenePtr)) || ((_q = activeForCornerCheck._findTargetCorner) == null ? void 0 : _q.call(activeForCornerCheck, scenePtr));
|
|
14188
14189
|
if (cornerHit) {
|
|
14189
14190
|
return;
|
|
14190
14191
|
}
|
|
@@ -14384,10 +14385,11 @@ const PageCanvas = react.forwardRef(
|
|
|
14384
14385
|
const pending = pendingGroupPromotionRef.current;
|
|
14385
14386
|
if (!pending) return;
|
|
14386
14387
|
const activeNow = fabricCanvas.getActiveObject();
|
|
14387
|
-
if (activeNow === pending.selection) return;
|
|
14388
14388
|
isSyncingSelectionToFabricRef.current = true;
|
|
14389
14389
|
try {
|
|
14390
|
-
|
|
14390
|
+
if (activeNow !== pending.selection) {
|
|
14391
|
+
fabricCanvas.setActiveObject(pending.selection);
|
|
14392
|
+
}
|
|
14391
14393
|
pending.selection.setCoords();
|
|
14392
14394
|
fabricCanvas._target = pending.selection;
|
|
14393
14395
|
if (pending.selection instanceof fabric__namespace.ActiveSelection) {
|
|
@@ -25846,9 +25848,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
25846
25848
|
}
|
|
25847
25849
|
return svgString;
|
|
25848
25850
|
}
|
|
25849
|
-
const resolvedPackageVersion = "0.5.
|
|
25851
|
+
const resolvedPackageVersion = "0.5.437";
|
|
25850
25852
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
25851
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
25853
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.437";
|
|
25852
25854
|
const roundParityValue = (value) => {
|
|
25853
25855
|
if (typeof value !== "number") return value;
|
|
25854
25856
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -26662,7 +26664,7 @@ class PixldocsRenderer {
|
|
|
26662
26664
|
await this.waitForCanvasScene(container, cloned, i);
|
|
26663
26665
|
}
|
|
26664
26666
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
26665
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
26667
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-BlzQOLVd.cjs"));
|
|
26666
26668
|
const prepared = preparePagesForExport(
|
|
26667
26669
|
cloned.pages,
|
|
26668
26670
|
canvasWidth,
|
|
@@ -28982,7 +28984,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
28982
28984
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
28983
28985
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
28984
28986
|
try {
|
|
28985
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
28987
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-BlzQOLVd.cjs"));
|
|
28986
28988
|
try {
|
|
28987
28989
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
28988
28990
|
} catch {
|
|
@@ -29379,4 +29381,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
29379
29381
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
29380
29382
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
29381
29383
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
29382
|
-
//# sourceMappingURL=index-
|
|
29384
|
+
//# sourceMappingURL=index-DCwSB2lw.cjs.map
|