@pixldocs/canvas-renderer 0.5.355 → 0.5.356
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-DWxht-v_.cjs → index-CcfKFBH1.cjs} +108 -5
- package/dist/index-CcfKFBH1.cjs.map +1 -0
- package/dist/{index-CJNRmC-X.js → index-SmBKCsve.js} +108 -5
- package/dist/index-SmBKCsve.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-BtRK4LgQ.cjs → vectorPdfExport-CVOo3V8_.cjs} +4 -4
- package/dist/{vectorPdfExport-BtRK4LgQ.cjs.map → vectorPdfExport-CVOo3V8_.cjs.map} +1 -1
- package/dist/{vectorPdfExport-CIYQWsck.js → vectorPdfExport-Dg5IQ77x.js} +4 -4
- package/dist/{vectorPdfExport-CIYQWsck.js.map → vectorPdfExport-Dg5IQ77x.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-CJNRmC-X.js.map +0 -1
- package/dist/index-DWxht-v_.cjs.map +0 -1
|
@@ -11215,6 +11215,37 @@ function applyWarpAwareSelectionBorders(selection) {
|
|
|
11215
11215
|
selection.setCoords();
|
|
11216
11216
|
selection.dirty = true;
|
|
11217
11217
|
selection.__pixldocsAlignedAngle = targetAngle;
|
|
11218
|
+
try {
|
|
11219
|
+
const kidSummary = kids.map((c) => ({
|
|
11220
|
+
id: c.id ?? c.__pixldocsId,
|
|
11221
|
+
type: c.type,
|
|
11222
|
+
left: c.left,
|
|
11223
|
+
top: c.top,
|
|
11224
|
+
angle: c.angle,
|
|
11225
|
+
scaleX: c.scaleX,
|
|
11226
|
+
scaleY: c.scaleY,
|
|
11227
|
+
originX: c.originX,
|
|
11228
|
+
originY: c.originY,
|
|
11229
|
+
width: c.width,
|
|
11230
|
+
height: c.height
|
|
11231
|
+
}));
|
|
11232
|
+
console.info("[Pixldocs][rot-group-image-drift] aligned-on-select", {
|
|
11233
|
+
targetAngle,
|
|
11234
|
+
selection: {
|
|
11235
|
+
left: selection.left,
|
|
11236
|
+
top: selection.top,
|
|
11237
|
+
angle: selection.angle,
|
|
11238
|
+
scaleX: selection.scaleX,
|
|
11239
|
+
scaleY: selection.scaleY,
|
|
11240
|
+
width: selection.width,
|
|
11241
|
+
height: selection.height,
|
|
11242
|
+
originX: selection.originX,
|
|
11243
|
+
originY: selection.originY
|
|
11244
|
+
},
|
|
11245
|
+
kids: kidSummary
|
|
11246
|
+
});
|
|
11247
|
+
} catch {
|
|
11248
|
+
}
|
|
11218
11249
|
}
|
|
11219
11250
|
}
|
|
11220
11251
|
}
|
|
@@ -14228,6 +14259,42 @@ const PageCanvas = forwardRef(
|
|
|
14228
14259
|
markSimpleTransform(e);
|
|
14229
14260
|
didTransformRef.current = true;
|
|
14230
14261
|
const tr = e.target;
|
|
14262
|
+
try {
|
|
14263
|
+
const t = tr;
|
|
14264
|
+
if (t) {
|
|
14265
|
+
const childSummary = (t._objects ?? []).map((c) => ({
|
|
14266
|
+
id: getObjectId(c),
|
|
14267
|
+
type: c.type,
|
|
14268
|
+
left: c.left,
|
|
14269
|
+
top: c.top,
|
|
14270
|
+
angle: c.angle,
|
|
14271
|
+
scaleX: c.scaleX,
|
|
14272
|
+
scaleY: c.scaleY,
|
|
14273
|
+
originX: c.originX,
|
|
14274
|
+
originY: c.originY,
|
|
14275
|
+
width: c.width,
|
|
14276
|
+
height: c.height
|
|
14277
|
+
}));
|
|
14278
|
+
console.info("[Pixldocs][rot-group-image-drift] rotating", {
|
|
14279
|
+
targetType: t.type,
|
|
14280
|
+
isAS: t instanceof fabric.ActiveSelection,
|
|
14281
|
+
isGroup: t instanceof fabric.Group,
|
|
14282
|
+
targetId: getObjectId(t),
|
|
14283
|
+
left: t.left,
|
|
14284
|
+
top: t.top,
|
|
14285
|
+
angle: t.angle,
|
|
14286
|
+
scaleX: t.scaleX,
|
|
14287
|
+
scaleY: t.scaleY,
|
|
14288
|
+
width: t.width,
|
|
14289
|
+
height: t.height,
|
|
14290
|
+
originX: t.originX,
|
|
14291
|
+
originY: t.originY,
|
|
14292
|
+
childCount: (t._objects ?? []).length,
|
|
14293
|
+
children: childSummary
|
|
14294
|
+
});
|
|
14295
|
+
}
|
|
14296
|
+
} catch {
|
|
14297
|
+
}
|
|
14231
14298
|
try {
|
|
14232
14299
|
const getCursor = fabricCanvas.__pixldocsGetRotateCursor;
|
|
14233
14300
|
const upper = fabricCanvas.upperCanvasEl;
|
|
@@ -14260,6 +14327,42 @@ const PageCanvas = forwardRef(
|
|
|
14260
14327
|
prepareGroupSelectionTransformStart(e.target);
|
|
14261
14328
|
markTransforming(e.target);
|
|
14262
14329
|
didTransformRef.current = true;
|
|
14330
|
+
try {
|
|
14331
|
+
const t = e.target;
|
|
14332
|
+
if (t && (t.angle ?? 0) !== 0) {
|
|
14333
|
+
const childSummary = (t._objects ?? []).map((c) => ({
|
|
14334
|
+
id: getObjectId(c),
|
|
14335
|
+
type: c.type,
|
|
14336
|
+
left: c.left,
|
|
14337
|
+
top: c.top,
|
|
14338
|
+
angle: c.angle,
|
|
14339
|
+
scaleX: c.scaleX,
|
|
14340
|
+
scaleY: c.scaleY,
|
|
14341
|
+
originX: c.originX,
|
|
14342
|
+
originY: c.originY,
|
|
14343
|
+
width: c.width,
|
|
14344
|
+
height: c.height
|
|
14345
|
+
}));
|
|
14346
|
+
console.info("[Pixldocs][rot-group-image-drift] moving", {
|
|
14347
|
+
targetType: t.type,
|
|
14348
|
+
isAS: t instanceof fabric.ActiveSelection,
|
|
14349
|
+
isGroup: t instanceof fabric.Group,
|
|
14350
|
+
targetId: getObjectId(t),
|
|
14351
|
+
left: t.left,
|
|
14352
|
+
top: t.top,
|
|
14353
|
+
angle: t.angle,
|
|
14354
|
+
scaleX: t.scaleX,
|
|
14355
|
+
scaleY: t.scaleY,
|
|
14356
|
+
width: t.width,
|
|
14357
|
+
height: t.height,
|
|
14358
|
+
originX: t.originX,
|
|
14359
|
+
originY: t.originY,
|
|
14360
|
+
childCount: (t._objects ?? []).length,
|
|
14361
|
+
children: childSummary
|
|
14362
|
+
});
|
|
14363
|
+
}
|
|
14364
|
+
} catch {
|
|
14365
|
+
}
|
|
14263
14366
|
const activeDuringMove = fabricCanvas.getActiveObject();
|
|
14264
14367
|
const movingLogicalGroupId = activeDuringMove instanceof fabric.ActiveSelection ? activeDuringMove.__pixldocsGroupSelection : void 0;
|
|
14265
14368
|
const pendingMoveDrill = pendingGroupDrillInRef.current;
|
|
@@ -24364,9 +24467,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
24364
24467
|
}
|
|
24365
24468
|
return svgString;
|
|
24366
24469
|
}
|
|
24367
|
-
const resolvedPackageVersion = "0.5.
|
|
24470
|
+
const resolvedPackageVersion = "0.5.356";
|
|
24368
24471
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
24369
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
24472
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.356";
|
|
24370
24473
|
const roundParityValue = (value) => {
|
|
24371
24474
|
if (typeof value !== "number") return value;
|
|
24372
24475
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25180,7 +25283,7 @@ class PixldocsRenderer {
|
|
|
25180
25283
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25181
25284
|
}
|
|
25182
25285
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25183
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
25286
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-Dg5IQ77x.js");
|
|
25184
25287
|
const prepared = preparePagesForExport(
|
|
25185
25288
|
cloned.pages,
|
|
25186
25289
|
canvasWidth,
|
|
@@ -27500,7 +27603,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
27500
27603
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
27501
27604
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
27502
27605
|
try {
|
|
27503
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
27606
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-Dg5IQ77x.js");
|
|
27504
27607
|
try {
|
|
27505
27608
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
27506
27609
|
} catch {
|
|
@@ -27900,4 +28003,4 @@ export {
|
|
|
27900
28003
|
buildTeaserBlurFlatKeys as y,
|
|
27901
28004
|
collectFontDescriptorsFromConfig as z
|
|
27902
28005
|
};
|
|
27903
|
-
//# sourceMappingURL=index-
|
|
28006
|
+
//# sourceMappingURL=index-SmBKCsve.js.map
|