@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.
- package/dist/{index-CcfKFBH1.cjs → index-DH3qeHgQ.cjs} +53 -57
- package/dist/index-DH3qeHgQ.cjs.map +1 -0
- package/dist/{index-SmBKCsve.js → index-ErPNn7zc.js} +53 -57
- package/dist/index-ErPNn7zc.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-CVOo3V8_.cjs → vectorPdfExport-Ure_JliT.cjs} +4 -4
- package/dist/{vectorPdfExport-CVOo3V8_.cjs.map → vectorPdfExport-Ure_JliT.cjs.map} +1 -1
- package/dist/{vectorPdfExport-Dg5IQ77x.js → vectorPdfExport-yx-dKQqT.js} +4 -4
- package/dist/{vectorPdfExport-Dg5IQ77x.js.map → vectorPdfExport-yx-dKQqT.js.map} +1 -1
- package/package.json +1 -1
- package/dist/index-CcfKFBH1.cjs.map +0 -1
- package/dist/index-SmBKCsve.js.map +0 -1
|
@@ -11216,20 +11216,7 @@ function applyWarpAwareSelectionBorders(selection) {
|
|
|
11216
11216
|
selection.dirty = true;
|
|
11217
11217
|
selection.__pixldocsAlignedAngle = targetAngle;
|
|
11218
11218
|
try {
|
|
11219
|
-
const
|
|
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", {
|
|
11219
|
+
const payload = {
|
|
11233
11220
|
targetAngle,
|
|
11234
11221
|
selection: {
|
|
11235
11222
|
left: selection.left,
|
|
@@ -11242,8 +11229,21 @@ function applyWarpAwareSelectionBorders(selection) {
|
|
|
11242
11229
|
originX: selection.originX,
|
|
11243
11230
|
originY: selection.originY
|
|
11244
11231
|
},
|
|
11245
|
-
kids:
|
|
11246
|
-
|
|
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
11247
|
} catch {
|
|
11248
11248
|
}
|
|
11249
11249
|
}
|
|
@@ -14262,24 +14262,9 @@ const PageCanvas = forwardRef(
|
|
|
14262
14262
|
try {
|
|
14263
14263
|
const t = tr;
|
|
14264
14264
|
if (t) {
|
|
14265
|
-
const
|
|
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", {
|
|
14265
|
+
const payload = {
|
|
14279
14266
|
targetType: t.type,
|
|
14280
14267
|
isAS: t instanceof fabric.ActiveSelection,
|
|
14281
|
-
isGroup: t instanceof fabric.Group,
|
|
14282
|
-
targetId: getObjectId(t),
|
|
14283
14268
|
left: t.left,
|
|
14284
14269
|
top: t.top,
|
|
14285
14270
|
angle: t.angle,
|
|
@@ -14290,8 +14275,21 @@ const PageCanvas = forwardRef(
|
|
|
14290
14275
|
originX: t.originX,
|
|
14291
14276
|
originY: t.originY,
|
|
14292
14277
|
childCount: (t._objects ?? []).length,
|
|
14293
|
-
children:
|
|
14294
|
-
|
|
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));
|
|
14295
14293
|
}
|
|
14296
14294
|
} catch {
|
|
14297
14295
|
}
|
|
@@ -14330,24 +14328,9 @@ const PageCanvas = forwardRef(
|
|
|
14330
14328
|
try {
|
|
14331
14329
|
const t = e.target;
|
|
14332
14330
|
if (t && (t.angle ?? 0) !== 0) {
|
|
14333
|
-
const
|
|
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", {
|
|
14331
|
+
const payload = {
|
|
14347
14332
|
targetType: t.type,
|
|
14348
14333
|
isAS: t instanceof fabric.ActiveSelection,
|
|
14349
|
-
isGroup: t instanceof fabric.Group,
|
|
14350
|
-
targetId: getObjectId(t),
|
|
14351
14334
|
left: t.left,
|
|
14352
14335
|
top: t.top,
|
|
14353
14336
|
angle: t.angle,
|
|
@@ -14358,8 +14341,21 @@ const PageCanvas = forwardRef(
|
|
|
14358
14341
|
originX: t.originX,
|
|
14359
14342
|
originY: t.originY,
|
|
14360
14343
|
childCount: (t._objects ?? []).length,
|
|
14361
|
-
children:
|
|
14362
|
-
|
|
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));
|
|
14363
14359
|
}
|
|
14364
14360
|
} catch {
|
|
14365
14361
|
}
|
|
@@ -24467,9 +24463,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
24467
24463
|
}
|
|
24468
24464
|
return svgString;
|
|
24469
24465
|
}
|
|
24470
|
-
const resolvedPackageVersion = "0.5.
|
|
24466
|
+
const resolvedPackageVersion = "0.5.357";
|
|
24471
24467
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
24472
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
24468
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.357";
|
|
24473
24469
|
const roundParityValue = (value) => {
|
|
24474
24470
|
if (typeof value !== "number") return value;
|
|
24475
24471
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -25283,7 +25279,7 @@ class PixldocsRenderer {
|
|
|
25283
25279
|
await this.waitForCanvasScene(container, cloned, i);
|
|
25284
25280
|
}
|
|
25285
25281
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
25286
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
25282
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-yx-dKQqT.js");
|
|
25287
25283
|
const prepared = preparePagesForExport(
|
|
25288
25284
|
cloned.pages,
|
|
25289
25285
|
canvasWidth,
|
|
@@ -27603,7 +27599,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
27603
27599
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
27604
27600
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
27605
27601
|
try {
|
|
27606
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
27602
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-yx-dKQqT.js");
|
|
27607
27603
|
try {
|
|
27608
27604
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
27609
27605
|
} catch {
|
|
@@ -28003,4 +27999,4 @@ export {
|
|
|
28003
27999
|
buildTeaserBlurFlatKeys as y,
|
|
28004
28000
|
collectFontDescriptorsFromConfig as z
|
|
28005
28001
|
};
|
|
28006
|
-
//# sourceMappingURL=index-
|
|
28002
|
+
//# sourceMappingURL=index-ErPNn7zc.js.map
|