@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.
@@ -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 payload = {
11238
+ targetAngle,
11239
+ selection: {
11240
+ left: selection.left,
11241
+ top: selection.top,
11242
+ angle: selection.angle,
11243
+ scaleX: selection.scaleX,
11244
+ scaleY: selection.scaleY,
11245
+ width: selection.width,
11246
+ height: selection.height,
11247
+ originX: selection.originX,
11248
+ originY: selection.originY
11249
+ },
11250
+ kids: kids.map((c) => ({
11251
+ id: c.id ?? c.__pixldocsId,
11252
+ type: c.type,
11253
+ left: c.left,
11254
+ top: c.top,
11255
+ angle: c.angle,
11256
+ scaleX: c.scaleX,
11257
+ scaleY: c.scaleY,
11258
+ originX: c.originX,
11259
+ originY: c.originY,
11260
+ width: c.width,
11261
+ height: c.height
11262
+ }))
11263
+ };
11264
+ console.info("[Pixldocs][rot-group-image-drift] aligned-on-select " + JSON.stringify(payload));
11265
+ } catch {
11266
+ }
11236
11267
  }
11237
11268
  }
11238
11269
  }
@@ -14246,6 +14277,40 @@ 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 payload = {
14284
+ targetType: t.type,
14285
+ isAS: t instanceof fabric__namespace.ActiveSelection,
14286
+ left: t.left,
14287
+ top: t.top,
14288
+ angle: t.angle,
14289
+ scaleX: t.scaleX,
14290
+ scaleY: t.scaleY,
14291
+ width: t.width,
14292
+ height: t.height,
14293
+ originX: t.originX,
14294
+ originY: t.originY,
14295
+ childCount: (t._objects ?? []).length,
14296
+ children: (t._objects ?? []).map((c) => ({
14297
+ id: getObjectId(c),
14298
+ type: c.type,
14299
+ left: c.left,
14300
+ top: c.top,
14301
+ angle: c.angle,
14302
+ scaleX: c.scaleX,
14303
+ scaleY: c.scaleY,
14304
+ originX: c.originX,
14305
+ originY: c.originY,
14306
+ width: c.width,
14307
+ height: c.height
14308
+ }))
14309
+ };
14310
+ console.info("[Pixldocs][rot-group-image-drift] rotating " + JSON.stringify(payload));
14311
+ }
14312
+ } catch {
14313
+ }
14249
14314
  try {
14250
14315
  const getCursor = fabricCanvas.__pixldocsGetRotateCursor;
14251
14316
  const upper = fabricCanvas.upperCanvasEl;
@@ -14278,6 +14343,40 @@ const PageCanvas = react.forwardRef(
14278
14343
  prepareGroupSelectionTransformStart(e.target);
14279
14344
  markTransforming(e.target);
14280
14345
  didTransformRef.current = true;
14346
+ try {
14347
+ const t = e.target;
14348
+ if (t && (t.angle ?? 0) !== 0) {
14349
+ const payload = {
14350
+ targetType: t.type,
14351
+ isAS: t instanceof fabric__namespace.ActiveSelection,
14352
+ left: t.left,
14353
+ top: t.top,
14354
+ angle: t.angle,
14355
+ scaleX: t.scaleX,
14356
+ scaleY: t.scaleY,
14357
+ width: t.width,
14358
+ height: t.height,
14359
+ originX: t.originX,
14360
+ originY: t.originY,
14361
+ childCount: (t._objects ?? []).length,
14362
+ children: (t._objects ?? []).map((c) => ({
14363
+ id: getObjectId(c),
14364
+ type: c.type,
14365
+ left: c.left,
14366
+ top: c.top,
14367
+ angle: c.angle,
14368
+ scaleX: c.scaleX,
14369
+ scaleY: c.scaleY,
14370
+ originX: c.originX,
14371
+ originY: c.originY,
14372
+ width: c.width,
14373
+ height: c.height
14374
+ }))
14375
+ };
14376
+ console.info("[Pixldocs][rot-group-image-drift] moving " + JSON.stringify(payload));
14377
+ }
14378
+ } catch {
14379
+ }
14281
14380
  const activeDuringMove = fabricCanvas.getActiveObject();
14282
14381
  const movingLogicalGroupId = activeDuringMove instanceof fabric__namespace.ActiveSelection ? activeDuringMove.__pixldocsGroupSelection : void 0;
14283
14382
  const pendingMoveDrill = pendingGroupDrillInRef.current;
@@ -24382,9 +24481,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
24382
24481
  }
24383
24482
  return svgString;
24384
24483
  }
24385
- const resolvedPackageVersion = "0.5.355";
24484
+ const resolvedPackageVersion = "0.5.357";
24386
24485
  const PACKAGE_VERSION = resolvedPackageVersion;
24387
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.355";
24486
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.357";
24388
24487
  const roundParityValue = (value) => {
24389
24488
  if (typeof value !== "number") return value;
24390
24489
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -25198,7 +25297,7 @@ class PixldocsRenderer {
25198
25297
  await this.waitForCanvasScene(container, cloned, i);
25199
25298
  }
25200
25299
  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-BtRK4LgQ.cjs"));
25300
+ const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-Ure_JliT.cjs"));
25202
25301
  const prepared = preparePagesForExport(
25203
25302
  cloned.pages,
25204
25303
  canvasWidth,
@@ -27518,7 +27617,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
27518
27617
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
27519
27618
  sanitizeSvgTreeForPdf(svgToDraw);
27520
27619
  try {
27521
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-BtRK4LgQ.cjs"));
27620
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-Ure_JliT.cjs"));
27522
27621
  try {
27523
27622
  await logTextMeasurementDiagnostic(svgToDraw);
27524
27623
  } catch {
@@ -27915,4 +28014,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
27915
28014
  exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
27916
28015
  exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
27917
28016
  exports.warmTemplateFromForm = warmTemplateFromForm;
27918
- //# sourceMappingURL=index-DWxht-v_.cjs.map
28017
+ //# sourceMappingURL=index-DH3qeHgQ.cjs.map