survey-pdf 2.2.5 → 2.2.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-pdf",
3
- "version": "2.2.5",
3
+ "version": "2.2.6",
4
4
  "description": "survey.pdf.js is a SurveyJS PDF Library. It is a easy way to export SurveyJS surveys to PDF. It uses JSON for survey metadata.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "typings": "./typings/entries/pdf.d.ts",
21
21
  "peerDependencies": {
22
- "survey-core": "2.2.5"
22
+ "survey-core": "2.2.6"
23
23
  },
24
24
  "dependencies": {
25
25
  "jspdf": "^2.3.0 || ^3"
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS PDF library v2.2.5
2
+ * surveyjs - SurveyJS PDF library v2.2.6
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS PDF library v2.2.5
2
+ * surveyjs - SurveyJS PDF library v2.2.6
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS PDF library v2.2.5
2
+ * surveyjs - SurveyJS PDF library v2.2.6
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS PDF library v2.2.5
2
+ * surveyjs - SurveyJS PDF library v2.2.6
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS PDF library v2.2.5
2
+ * surveyjs - SurveyJS PDF library v2.2.6
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS PDF library v2.2.5
2
+ * surveyjs - SurveyJS PDF library v2.2.6
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/survey.pdf.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - SurveyJS PDF library v2.2.5
2
+ * surveyjs - SurveyJS PDF library v2.2.6
3
3
  * Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -1558,7 +1558,7 @@ __webpack_require__.r(__webpack_exports__);
1558
1558
 
1559
1559
 
1560
1560
 
1561
- (0,survey_core__WEBPACK_IMPORTED_MODULE_50__.checkLibraryVersion)("".concat("2.2.5"), 'survey-pdf');
1561
+ (0,survey_core__WEBPACK_IMPORTED_MODULE_50__.checkLibraryVersion)("".concat("2.2.6"), 'survey-pdf');
1562
1562
 
1563
1563
 
1564
1564
  /***/ }),
@@ -4690,13 +4690,12 @@ var FlatSelectBase = /** @class */ (function (_super) {
4690
4690
  if (!(_i < rows_1.length)) return [3 /*break*/, 7];
4691
4691
  row = rows_1[_i];
4692
4692
  rowFlat = new _pdf_render_pdf_composite__WEBPACK_IMPORTED_MODULE_4__.CompositeBrick();
4693
- this.controller.pushMargins(this.controller.margins.left, this.controller.margins.right);
4694
4693
  colIndex = 0;
4695
4694
  _b.label = 2;
4696
4695
  case 2:
4697
4696
  if (!(colIndex < row.length)) return [3 /*break*/, 5];
4698
4697
  item = row[colIndex];
4699
- this.controller.pushMargins(this.controller.margins.left, this.controller.margins.right);
4698
+ this.controller.pushMargins();
4700
4699
  _helper_survey__WEBPACK_IMPORTED_MODULE_5__.SurveyHelper.setColumnMargins(this.controller, colCount, colIndex);
4701
4700
  currPoint.xLeft = this.controller.margins.left;
4702
4701
  return [4 /*yield*/, this.generateFlatComposite(currPoint, item, visibleChoices.indexOf(item))];