@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
|
@@ -11233,6 +11233,37 @@ function applyWarpAwareSelectionBorders(selection) {
|
|
|
11233
11233
|
selection.setCoords();
|
|
11234
11234
|
selection.dirty = true;
|
|
11235
11235
|
selection.__pixldocsAlignedAngle = targetAngle;
|
|
11236
|
+
try {
|
|
11237
|
+
const kidSummary = kids.map((c) => ({
|
|
11238
|
+
id: c.id ?? c.__pixldocsId,
|
|
11239
|
+
type: c.type,
|
|
11240
|
+
left: c.left,
|
|
11241
|
+
top: c.top,
|
|
11242
|
+
angle: c.angle,
|
|
11243
|
+
scaleX: c.scaleX,
|
|
11244
|
+
scaleY: c.scaleY,
|
|
11245
|
+
originX: c.originX,
|
|
11246
|
+
originY: c.originY,
|
|
11247
|
+
width: c.width,
|
|
11248
|
+
height: c.height
|
|
11249
|
+
}));
|
|
11250
|
+
console.info("[Pixldocs][rot-group-image-drift] aligned-on-select", {
|
|
11251
|
+
targetAngle,
|
|
11252
|
+
selection: {
|
|
11253
|
+
left: selection.left,
|
|
11254
|
+
top: selection.top,
|
|
11255
|
+
angle: selection.angle,
|
|
11256
|
+
scaleX: selection.scaleX,
|
|
11257
|
+
scaleY: selection.scaleY,
|
|
11258
|
+
width: selection.width,
|
|
11259
|
+
height: selection.height,
|
|
11260
|
+
originX: selection.originX,
|
|
11261
|
+
originY: selection.originY
|
|
11262
|
+
},
|
|
11263
|
+
kids: kidSummary
|
|
11264
|
+
});
|
|
11265
|
+
} catch {
|
|
11266
|
+
}
|
|
11236
11267
|
}
|
|
11237
11268
|
}
|
|
11238
11269
|
}
|
|
@@ -14246,6 +14277,42 @@ const PageCanvas = react.forwardRef(
|
|
|
14246
14277
|
markSimpleTransform(e);
|
|
14247
14278
|
didTransformRef.current = true;
|
|
14248
14279
|
const tr = e.target;
|
|
14280
|
+
try {
|
|
14281
|
+
const t = tr;
|
|
14282
|
+
if (t) {
|
|
14283
|
+
const childSummary = (t._objects ?? []).map((c) => ({
|
|
14284
|
+
id: getObjectId(c),
|
|
14285
|
+
type: c.type,
|
|
14286
|
+
left: c.left,
|
|
14287
|
+
top: c.top,
|
|
14288
|
+
angle: c.angle,
|
|
14289
|
+
scaleX: c.scaleX,
|
|
14290
|
+
scaleY: c.scaleY,
|
|
14291
|
+
originX: c.originX,
|
|
14292
|
+
originY: c.originY,
|
|
14293
|
+
width: c.width,
|
|
14294
|
+
height: c.height
|
|
14295
|
+
}));
|
|
14296
|
+
console.info("[Pixldocs][rot-group-image-drift] rotating", {
|
|
14297
|
+
targetType: t.type,
|
|
14298
|
+
isAS: t instanceof fabric__namespace.ActiveSelection,
|
|
14299
|
+
isGroup: t instanceof fabric__namespace.Group,
|
|
14300
|
+
targetId: getObjectId(t),
|
|
14301
|
+
left: t.left,
|
|
14302
|
+
top: t.top,
|
|
14303
|
+
angle: t.angle,
|
|
14304
|
+
scaleX: t.scaleX,
|
|
14305
|
+
scaleY: t.scaleY,
|
|
14306
|
+
width: t.width,
|
|
14307
|
+
height: t.height,
|
|
14308
|
+
originX: t.originX,
|
|
14309
|
+
originY: t.originY,
|
|
14310
|
+
childCount: (t._objects ?? []).length,
|
|
14311
|
+
children: childSummary
|
|
14312
|
+
});
|
|
14313
|
+
}
|
|
14314
|
+
} catch {
|
|
14315
|
+
}
|
|
14249
14316
|
try {
|
|
14250
14317
|
const getCursor = fabricCanvas.__pixldocsGetRotateCursor;
|
|
14251
14318
|
const upper = fabricCanvas.upperCanvasEl;
|
|
@@ -14278,6 +14345,42 @@ const PageCanvas = react.forwardRef(
|
|
|
14278
14345
|
prepareGroupSelectionTransformStart(e.target);
|
|
14279
14346
|
markTransforming(e.target);
|
|
14280
14347
|
didTransformRef.current = true;
|
|
14348
|
+
try {
|
|
14349
|
+
const t = e.target;
|
|
14350
|
+
if (t && (t.angle ?? 0) !== 0) {
|
|
14351
|
+
const childSummary = (t._objects ?? []).map((c) => ({
|
|
14352
|
+
id: getObjectId(c),
|
|
14353
|
+
type: c.type,
|
|
14354
|
+
left: c.left,
|
|
14355
|
+
top: c.top,
|
|
14356
|
+
angle: c.angle,
|
|
14357
|
+
scaleX: c.scaleX,
|
|
14358
|
+
scaleY: c.scaleY,
|
|
14359
|
+
originX: c.originX,
|
|
14360
|
+
originY: c.originY,
|
|
14361
|
+
width: c.width,
|
|
14362
|
+
height: c.height
|
|
14363
|
+
}));
|
|
14364
|
+
console.info("[Pixldocs][rot-group-image-drift] moving", {
|
|
14365
|
+
targetType: t.type,
|
|
14366
|
+
isAS: t instanceof fabric__namespace.ActiveSelection,
|
|
14367
|
+
isGroup: t instanceof fabric__namespace.Group,
|
|
14368
|
+
targetId: getObjectId(t),
|
|
14369
|
+
left: t.left,
|
|
14370
|
+
top: t.top,
|
|
14371
|
+
angle: t.angle,
|
|
14372
|
+
scaleX: t.scaleX,
|
|
14373
|
+
scaleY: t.scaleY,
|
|
14374
|
+
width: t.width,
|
|
14375
|
+
height: t.height,
|
|
14376
|
+
originX: t.originX,
|
|
14377
|
+
originY: t.originY,
|
|
14378
|
+
childCount: (t._objects ?? []).length,
|
|
14379
|
+
children: childSummary
|
|
14380
|
+
});
|
|
14381
|
+
}
|
|
14382
|
+
} catch {
|
|
14383
|
+
}
|
|
14281
14384
|
const activeDuringMove = fabricCanvas.getActiveObject();
|
|
14282
14385
|
const movingLogicalGroupId = activeDuringMove instanceof fabric__namespace.ActiveSelection ? activeDuringMove.__pixldocsGroupSelection : void 0;
|
|
14283
14386
|
const pendingMoveDrill = pendingGroupDrillInRef.current;
|
|
@@ -24382,9 +24485,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
24382
24485
|
}
|
|
24383
24486
|
return svgString;
|
|
24384
24487
|
}
|
|
24385
|
-
const resolvedPackageVersion = "0.5.
|
|
24488
|
+
const resolvedPackageVersion = "0.5.356";
|
|
24386
24489
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
24387
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
24490
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.356";
|
|
24388
24491
|
const roundParityValue = (value) => {
|
|
24389
24492
|
if (typeof value !== "number") return value;
|
|
24390
24493
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25198,7 +25301,7 @@ class PixldocsRenderer {
|
|
|
25198
25301
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25199
25302
|
}
|
|
25200
25303
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25201
|
-
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
25304
|
+
const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-CVOo3V8_.cjs"));
|
|
25202
25305
|
const prepared = preparePagesForExport(
|
|
25203
25306
|
cloned.pages,
|
|
25204
25307
|
canvasWidth,
|
|
@@ -27518,7 +27621,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
27518
27621
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
27519
27622
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
27520
27623
|
try {
|
|
27521
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-
|
|
27624
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-CVOo3V8_.cjs"));
|
|
27522
27625
|
try {
|
|
27523
27626
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
27524
27627
|
} catch {
|
|
@@ -27915,4 +28018,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
|
|
|
27915
28018
|
exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
|
|
27916
28019
|
exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
|
|
27917
28020
|
exports.warmTemplateFromForm = warmTemplateFromForm;
|
|
27918
|
-
//# sourceMappingURL=index-
|
|
28021
|
+
//# sourceMappingURL=index-CcfKFBH1.cjs.map
|