datastake-daf 0.6.457 → 0.6.458

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.
@@ -14580,7 +14580,7 @@ function PdfView(_ref2) {
14580
14580
  accountId = 'IDD-0000000',
14581
14581
  documentId = 'IDD-0000000',
14582
14582
  downloadId = 'DWL-00000123',
14583
- isEvaluation = false
14583
+ customMarginBottom = ''
14584
14584
  } = _ref2;
14585
14585
  const [sectionsConfig, setSectionsConfig] = React.useState({});
14586
14586
  const [pages, setPages] = React.useState([1]);
@@ -14619,7 +14619,7 @@ function PdfView(_ref2) {
14619
14619
  const {
14620
14620
  ref: topRef
14621
14621
  } = sectionsConfig[keys[i - 1]];
14622
- topRef.current.style.marginBottom = isEvaluation ? '5%' : "".concat(dif + HEADER_HEIGHT - 24, "px");
14622
+ topRef.current.style.marginBottom = customMarginBottom || "".concat(dif + HEADER_HEIGHT - 24, "px");
14623
14623
  incrHeight = height + 24 + HEADER_HEIGHT;
14624
14624
  // console.log('margin', dif);
14625
14625
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.457",
3
+ "version": "0.6.458",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -46,7 +46,7 @@ export default function PdfView({
46
46
  accountId = 'IDD-0000000',
47
47
  documentId = 'IDD-0000000',
48
48
  downloadId = 'DWL-00000123',
49
- isEvaluation = false,
49
+ customMarginBottom = '',
50
50
  }) {
51
51
  const [sectionsConfig, setSectionsConfig] = useState({});
52
52
  const [pages, setPages] = useState([1]);
@@ -87,7 +87,7 @@ export default function PdfView({
87
87
 
88
88
  if (sectionsConfig[keys[i - 1]]) {
89
89
  const { ref: topRef } = sectionsConfig[keys[i - 1]];
90
- topRef.current.style.marginBottom = isEvaluation ? '5%' : `${dif + HEADER_HEIGHT - 24}px`;
90
+ topRef.current.style.marginBottom = customMarginBottom || `${dif + HEADER_HEIGHT - 24}px`;
91
91
  incrHeight = height + 24 + HEADER_HEIGHT;
92
92
  // console.log('margin', dif);
93
93
  }