@pixldocs/canvas-renderer 0.5.355 → 0.5.357

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.
@@ -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 payload = {
11220
+ targetAngle,
11221
+ selection: {
11222
+ left: selection.left,
11223
+ top: selection.top,
11224
+ angle: selection.angle,
11225
+ scaleX: selection.scaleX,
11226
+ scaleY: selection.scaleY,
11227
+ width: selection.width,
11228
+ height: selection.height,
11229
+ originX: selection.originX,
11230
+ originY: selection.originY
11231
+ },
11232
+ kids: kids.map((c) => ({
11233
+ id: c.id ?? c.__pixldocsId,
11234
+ type: c.type,
11235
+ left: c.left,
11236
+ top: c.top,
11237
+ angle: c.angle,
11238
+ scaleX: c.scaleX,
11239
+ scaleY: c.scaleY,
11240
+ originX: c.originX,
11241
+ originY: c.originY,
11242
+ width: c.width,
11243
+ height: c.height
11244
+ }))
11245
+ };
11246
+ console.info("[Pixldocs][rot-group-image-drift] aligned-on-select " + JSON.stringify(payload));
11247
+ } catch {
11248
+ }
11218
11249
  }
11219
11250
  }
11220
11251
  }
@@ -14228,6 +14259,40 @@ 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 payload = {
14266
+ targetType: t.type,
14267
+ isAS: t instanceof fabric.ActiveSelection,
14268
+ left: t.left,
14269
+ top: t.top,
14270
+ angle: t.angle,
14271
+ scaleX: t.scaleX,
14272
+ scaleY: t.scaleY,
14273
+ width: t.width,
14274
+ height: t.height,
14275
+ originX: t.originX,
14276
+ originY: t.originY,
14277
+ childCount: (t._objects ?? []).length,
14278
+ children: (t._objects ?? []).map((c) => ({
14279
+ id: getObjectId(c),
14280
+ type: c.type,
14281
+ left: c.left,
14282
+ top: c.top,
14283
+ angle: c.angle,
14284
+ scaleX: c.scaleX,
14285
+ scaleY: c.scaleY,
14286
+ originX: c.originX,
14287
+ originY: c.originY,
14288
+ width: c.width,
14289
+ height: c.height
14290
+ }))
14291
+ };
14292
+ console.info("[Pixldocs][rot-group-image-drift] rotating " + JSON.stringify(payload));
14293
+ }
14294
+ } catch {
14295
+ }
14231
14296
  try {
14232
14297
  const getCursor = fabricCanvas.__pixldocsGetRotateCursor;
14233
14298
  const upper = fabricCanvas.upperCanvasEl;
@@ -14260,6 +14325,40 @@ const PageCanvas = forwardRef(
14260
14325
  prepareGroupSelectionTransformStart(e.target);
14261
14326
  markTransforming(e.target);
14262
14327
  didTransformRef.current = true;
14328
+ try {
14329
+ const t = e.target;
14330
+ if (t && (t.angle ?? 0) !== 0) {
14331
+ const payload = {
14332
+ targetType: t.type,
14333
+ isAS: t instanceof fabric.ActiveSelection,
14334
+ left: t.left,
14335
+ top: t.top,
14336
+ angle: t.angle,
14337
+ scaleX: t.scaleX,
14338
+ scaleY: t.scaleY,
14339
+ width: t.width,
14340
+ height: t.height,
14341
+ originX: t.originX,
14342
+ originY: t.originY,
14343
+ childCount: (t._objects ?? []).length,
14344
+ children: (t._objects ?? []).map((c) => ({
14345
+ id: getObjectId(c),
14346
+ type: c.type,
14347
+ left: c.left,
14348
+ top: c.top,
14349
+ angle: c.angle,
14350
+ scaleX: c.scaleX,
14351
+ scaleY: c.scaleY,
14352
+ originX: c.originX,
14353
+ originY: c.originY,
14354
+ width: c.width,
14355
+ height: c.height
14356
+ }))
14357
+ };
14358
+ console.info("[Pixldocs][rot-group-image-drift] moving " + JSON.stringify(payload));
14359
+ }
14360
+ } catch {
14361
+ }
14263
14362
  const activeDuringMove = fabricCanvas.getActiveObject();
14264
14363
  const movingLogicalGroupId = activeDuringMove instanceof fabric.ActiveSelection ? activeDuringMove.__pixldocsGroupSelection : void 0;
14265
14364
  const pendingMoveDrill = pendingGroupDrillInRef.current;
@@ -24364,9 +24463,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
24364
24463
  }
24365
24464
  return svgString;
24366
24465
  }
24367
- const resolvedPackageVersion = "0.5.355";
24466
+ const resolvedPackageVersion = "0.5.357";
24368
24467
  const PACKAGE_VERSION = resolvedPackageVersion;
24369
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.355";
24468
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.357";
24370
24469
  const roundParityValue = (value) => {
24371
24470
  if (typeof value !== "number") return value;
24372
24471
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -25180,7 +25279,7 @@ class PixldocsRenderer {
25180
25279
  await this.waitForCanvasScene(container, cloned, i);
25181
25280
  }
25182
25281
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
25183
- const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-CIYQWsck.js");
25282
+ const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-yx-dKQqT.js");
25184
25283
  const prepared = preparePagesForExport(
25185
25284
  cloned.pages,
25186
25285
  canvasWidth,
@@ -27500,7 +27599,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
27500
27599
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
27501
27600
  sanitizeSvgTreeForPdf(svgToDraw);
27502
27601
  try {
27503
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-CIYQWsck.js");
27602
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-yx-dKQqT.js");
27504
27603
  try {
27505
27604
  await logTextMeasurementDiagnostic(svgToDraw);
27506
27605
  } catch {
@@ -27900,4 +27999,4 @@ export {
27900
27999
  buildTeaserBlurFlatKeys as y,
27901
28000
  collectFontDescriptorsFromConfig as z
27902
28001
  };
27903
- //# sourceMappingURL=index-CJNRmC-X.js.map
28002
+ //# sourceMappingURL=index-ErPNn7zc.js.map