@pixldocs/canvas-renderer 0.5.356 → 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.
@@ -11234,20 +11234,7 @@ function applyWarpAwareSelectionBorders(selection) {
11234
11234
  selection.dirty = true;
11235
11235
  selection.__pixldocsAlignedAngle = targetAngle;
11236
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", {
11237
+ const payload = {
11251
11238
  targetAngle,
11252
11239
  selection: {
11253
11240
  left: selection.left,
@@ -11260,8 +11247,21 @@ function applyWarpAwareSelectionBorders(selection) {
11260
11247
  originX: selection.originX,
11261
11248
  originY: selection.originY
11262
11249
  },
11263
- kids: kidSummary
11264
- });
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
11265
  } catch {
11266
11266
  }
11267
11267
  }
@@ -14280,24 +14280,9 @@ const PageCanvas = react.forwardRef(
14280
14280
  try {
14281
14281
  const t = tr;
14282
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", {
14283
+ const payload = {
14297
14284
  targetType: t.type,
14298
14285
  isAS: t instanceof fabric__namespace.ActiveSelection,
14299
- isGroup: t instanceof fabric__namespace.Group,
14300
- targetId: getObjectId(t),
14301
14286
  left: t.left,
14302
14287
  top: t.top,
14303
14288
  angle: t.angle,
@@ -14308,8 +14293,21 @@ const PageCanvas = react.forwardRef(
14308
14293
  originX: t.originX,
14309
14294
  originY: t.originY,
14310
14295
  childCount: (t._objects ?? []).length,
14311
- children: childSummary
14312
- });
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));
14313
14311
  }
14314
14312
  } catch {
14315
14313
  }
@@ -14348,24 +14346,9 @@ const PageCanvas = react.forwardRef(
14348
14346
  try {
14349
14347
  const t = e.target;
14350
14348
  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", {
14349
+ const payload = {
14365
14350
  targetType: t.type,
14366
14351
  isAS: t instanceof fabric__namespace.ActiveSelection,
14367
- isGroup: t instanceof fabric__namespace.Group,
14368
- targetId: getObjectId(t),
14369
14352
  left: t.left,
14370
14353
  top: t.top,
14371
14354
  angle: t.angle,
@@ -14376,8 +14359,21 @@ const PageCanvas = react.forwardRef(
14376
14359
  originX: t.originX,
14377
14360
  originY: t.originY,
14378
14361
  childCount: (t._objects ?? []).length,
14379
- children: childSummary
14380
- });
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));
14381
14377
  }
14382
14378
  } catch {
14383
14379
  }
@@ -24485,9 +24481,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
24485
24481
  }
24486
24482
  return svgString;
24487
24483
  }
24488
- const resolvedPackageVersion = "0.5.356";
24484
+ const resolvedPackageVersion = "0.5.357";
24489
24485
  const PACKAGE_VERSION = resolvedPackageVersion;
24490
- const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.356";
24486
+ const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.357";
24491
24487
  const roundParityValue = (value) => {
24492
24488
  if (typeof value !== "number") return value;
24493
24489
  return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
@@ -25301,7 +25297,7 @@ class PixldocsRenderer {
25301
25297
  await this.waitForCanvasScene(container, cloned, i);
25302
25298
  }
25303
25299
  console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
25304
- const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-CVOo3V8_.cjs"));
25300
+ const { exportMultiPagePdf, preparePagesForExport } = await Promise.resolve().then(() => require("./vectorPdfExport-Ure_JliT.cjs"));
25305
25301
  const prepared = preparePagesForExport(
25306
25302
  cloned.pages,
25307
25303
  canvasWidth,
@@ -27621,7 +27617,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
27621
27617
  if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
27622
27618
  sanitizeSvgTreeForPdf(svgToDraw);
27623
27619
  try {
27624
- const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-CVOo3V8_.cjs"));
27620
+ const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await Promise.resolve().then(() => require("./vectorPdfExport-Ure_JliT.cjs"));
27625
27621
  try {
27626
27622
  await logTextMeasurementDiagnostic(svgToDraw);
27627
27623
  } catch {
@@ -28018,4 +28014,4 @@ exports.setAutoShrinkDebug = setAutoShrinkDebug;
28018
28014
  exports.setBundledAssetPrefixes = setBundledAssetPrefixes;
28019
28015
  exports.warmResolvedTemplateForPreview = warmResolvedTemplateForPreview;
28020
28016
  exports.warmTemplateFromForm = warmTemplateFromForm;
28021
- //# sourceMappingURL=index-CcfKFBH1.cjs.map
28017
+ //# sourceMappingURL=index-DH3qeHgQ.cjs.map