@pixldocs/canvas-renderer 0.5.436 → 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-BNFF4r0P.js → index-CiXC9Gkl.js} +9 -8
- package/dist/index-CiXC9Gkl.js.map +1 -0
- package/dist/{index-MlXEe3pb.cjs → index-DCwSB2lw.cjs} +9 -8
- package/dist/index-DCwSB2lw.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-DssOdenf.cjs → vectorPdfExport-BlzQOLVd.cjs} +4 -4
- package/dist/{vectorPdfExport-DssOdenf.cjs.map → vectorPdfExport-BlzQOLVd.cjs.map} +1 -1
- package/dist/{vectorPdfExport-BoB0l9eY.js → vectorPdfExport-Go5IZl-i.js} +4 -4
- package/dist/{vectorPdfExport-BoB0l9eY.js.map → vectorPdfExport-Go5IZl-i.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-BNFF4r0P.js.map +0 -1
- package/dist/index-MlXEe3pb.cjs.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
|
}
|
|
@@ -25847,9 +25848,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
25847
25848
|
}
|
|
25848
25849
|
return svgString;
|
|
25849
25850
|
}
|
|
25850
|
-
const resolvedPackageVersion = "0.5.
|
|
25851
|
+
const resolvedPackageVersion = "0.5.437";
|
|
25851
25852
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
25852
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
25853
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.437";
|
|
25853
25854
|
const roundParityValue = (value) => {
|
|
25854
25855
|
if (typeof value !== "number") return value;
|
|
25855
25856
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -26663,7 +26664,7 @@ class PixldocsRenderer {
|
|
|
26663
26664
|
await this.waitForCanvasScene(container, cloned, i);
|
|
26664
26665
|
}
|
|
26665
26666
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
26666
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
26667
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-BlzQOLVd.cjs"));
|
|
26667
26668
|
const prepared = preparePagesForExport(
|
|
26668
26669
|
cloned.pages,
|
|
26669
26670
|
canvasWidth,
|
|
@@ -28983,7 +28984,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
28983
28984
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
28984
28985
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
28985
28986
|
try {
|
|
28986
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
28987
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-BlzQOLVd.cjs"));
|
|
28987
28988
|
try {
|
|
28988
28989
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
28989
28990
|
} catch {
|
|
@@ -29380,4 +29381,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
29380
29381
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
29381
29382
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
29382
29383
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
29383
|
-
//# sourceMappingURL=index-
|
|
29384
|
+
//# sourceMappingURL=index-DCwSB2lw.cjs.map
|