@pixldocs/canvas-renderer 0.5.204 → 0.5.205
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-pfkM2NbI.cjs → index-CGi2L90_.cjs} +9 -7
- package/dist/{index-pfkM2NbI.cjs.map → index-CGi2L90_.cjs.map} +1 -1
- package/dist/{index-BfLA9Iqt.js → index-DBuMPh9u.js} +9 -7
- package/dist/{index-BfLA9Iqt.js.map → index-DBuMPh9u.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1 -1
- package/dist/{vectorPdfExport-NpBdL1eb.js → vectorPdfExport-CZyBCnFF.js} +4 -4
- package/dist/{vectorPdfExport-NpBdL1eb.js.map → vectorPdfExport-CZyBCnFF.js.map} +1 -1
- package/dist/{vectorPdfExport-BzQh8tO6.cjs → vectorPdfExport-LmnOwVt3.cjs} +4 -4
- package/dist/{vectorPdfExport-BzQh8tO6.cjs.map → vectorPdfExport-LmnOwVt3.cjs.map} +1 -1
- package/package.json +1 -1
|
@@ -15718,7 +15718,7 @@ async function resolveTemplateData(options) {
|
|
|
15718
15718
|
}
|
|
15719
15719
|
}
|
|
15720
15720
|
if (repeatableSectionsInput.length > 0) {
|
|
15721
|
-
paintRepeatableSections(config, repeatableSectionsInput);
|
|
15721
|
+
paintRepeatableSections(config, repeatableSectionsInput, inlineFormSchema == null ? void 0 : inlineFormSchema.entryFilters);
|
|
15722
15722
|
}
|
|
15723
15723
|
}
|
|
15724
15724
|
const mergedFormData = {
|
|
@@ -15789,7 +15789,7 @@ async function resolveFromForm(options) {
|
|
|
15789
15789
|
normalizeLayoutModes(templateConfig);
|
|
15790
15790
|
const repeatableFromSchema = templateFormSchema == null ? void 0 : templateFormSchema.repeatableSections;
|
|
15791
15791
|
if ((repeatableFromSchema == null ? void 0 : repeatableFromSchema.length) && templateConfig.pages) {
|
|
15792
|
-
paintRepeatableSections(templateConfig, repeatableFromSchema);
|
|
15792
|
+
paintRepeatableSections(templateConfig, repeatableFromSchema, templateFormSchema == null ? void 0 : templateFormSchema.entryFilters);
|
|
15793
15793
|
}
|
|
15794
15794
|
const schemaSections = getRenderableFormSections(formSchema);
|
|
15795
15795
|
const repeatableNodeMap = /* @__PURE__ */ new Map();
|
|
@@ -15813,6 +15813,7 @@ async function resolveFromForm(options) {
|
|
|
15813
15813
|
} else {
|
|
15814
15814
|
inferredSections = [];
|
|
15815
15815
|
}
|
|
15816
|
+
const templateDefaultMetaSectionState = templateRow.default_data && isDefaultDataV2(templateRow.default_data) ? templateRow.default_data.sectionState : extractSectionStateCandidate(templateRow.default_data, inferredSections);
|
|
15816
15817
|
const defaultFormMetaSectionState = extractSectionStateCandidate(defaultForm == null ? void 0 : defaultForm.values, inferredSections) ?? extractSectionStateCandidate(defaultForm == null ? void 0 : defaultForm.saved_data, inferredSections);
|
|
15817
15818
|
let mergedSectionState = { ...sectionState };
|
|
15818
15819
|
const templateDefaultData = templateRow.default_data;
|
|
@@ -15824,6 +15825,7 @@ async function resolveFromForm(options) {
|
|
|
15824
15825
|
}
|
|
15825
15826
|
}
|
|
15826
15827
|
}
|
|
15828
|
+
mergedSectionState = mergeRepeatableEntryMeta(mergedSectionState, templateDefaultMetaSectionState, inferredSections);
|
|
15827
15829
|
mergedSectionState = mergeRepeatableEntryMeta(mergedSectionState, defaultFormMetaSectionState, inferredSections);
|
|
15828
15830
|
const flatFormData = flattenSectionStateToFormData(mergedSectionState, inferredSections);
|
|
15829
15831
|
const dynamicFields = templateConfig.dynamicFields || [];
|
|
@@ -16950,9 +16952,9 @@ function captureFabricCanvasSvgForPdf(fabricInstance, canvasWidth, canvasHeight)
|
|
|
16950
16952
|
}
|
|
16951
16953
|
return svgString;
|
|
16952
16954
|
}
|
|
16953
|
-
const resolvedPackageVersion = "0.5.
|
|
16955
|
+
const resolvedPackageVersion = "0.5.205";
|
|
16954
16956
|
const PACKAGE_VERSION = resolvedPackageVersion;
|
|
16955
|
-
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.
|
|
16957
|
+
const DEPLOYMENT_VERSION_MARKER = "__PIXLDOCS_CANVAS_RENDERER_VERSION__:0.5.205";
|
|
16956
16958
|
const roundParityValue = (value) => {
|
|
16957
16959
|
if (typeof value !== "number") return value;
|
|
16958
16960
|
return Number.isFinite(value) ? Number(value.toFixed(3)) : value;
|
|
@@ -17631,7 +17633,7 @@ class PixldocsRenderer {
|
|
|
17631
17633
|
await this.waitForCanvasScene(container, cloned, i);
|
|
17632
17634
|
}
|
|
17633
17635
|
console.log(`[canvas-renderer][pdf-unified] mounted ${cloned.pages.length} page(s), handing off to client exportMultiPagePdf`);
|
|
17634
|
-
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-
|
|
17636
|
+
const { exportMultiPagePdf, preparePagesForExport } = await import("./vectorPdfExport-CZyBCnFF.js");
|
|
17635
17637
|
const prepared = preparePagesForExport(
|
|
17636
17638
|
cloned.pages,
|
|
17637
17639
|
canvasWidth,
|
|
@@ -19815,7 +19817,7 @@ async function prepareLiveCanvasSvgForPdf(rawSvg, pageWidth, pageHeight, pageKey
|
|
|
19815
19817
|
if (options == null ? void 0 : options.stripPageBackground) stripRootPageBackgroundFromSvg(svgToDraw);
|
|
19816
19818
|
sanitizeSvgTreeForPdf(svgToDraw);
|
|
19817
19819
|
try {
|
|
19818
|
-
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-
|
|
19820
|
+
const { bakeTextAnchorPositionsFromLiveSvg, logTextMeasurementDiagnostic } = await import("./vectorPdfExport-CZyBCnFF.js");
|
|
19819
19821
|
try {
|
|
19820
19822
|
await logTextMeasurementDiagnostic(svgToDraw);
|
|
19821
19823
|
} catch {
|
|
@@ -20215,4 +20217,4 @@ export {
|
|
|
20215
20217
|
buildTeaserBlurFlatKeys as y,
|
|
20216
20218
|
collectFontDescriptorsFromConfig as z
|
|
20217
20219
|
};
|
|
20218
|
-
//# sourceMappingURL=index-
|
|
20220
|
+
//# sourceMappingURL=index-DBuMPh9u.js.map
|