datastake-daf 0.6.356 → 0.6.358

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.
@@ -52659,8 +52659,7 @@ function positionDataNodes(_ref2) {
52659
52659
  total,
52660
52660
  mainNode,
52661
52661
  type,
52662
- hasContent,
52663
- isPdf = false
52662
+ hasContent
52664
52663
  } = _ref2;
52665
52664
  const DATA_NODE_WIDTH = DATA_NODE_SIZE[type].width;
52666
52665
  const DATA_NODE_HEIGHT = DATA_NODE_SIZE[type].height;
@@ -52682,7 +52681,7 @@ function positionDataNodes(_ref2) {
52682
52681
  const X_SPACE_FROM_ICON_NODE = 130;
52683
52682
  const MIN_SPACE_REQUIRED = Y_SPACE_FROM_SIBLINGS + DATA_NODE_HEIGHT;
52684
52683
  const totalHeight = total * MIN_SPACE_REQUIRED;
52685
- const iconNodeCenterY = iconNode.position.y + ICON_NODE_HEIGHT / 2 + (hasContent ? isPdf ? 30 : 26.5 : type === "primaryNode" ? 15 : 16.5);
52684
+ const iconNodeCenterY = iconNode.position.y + ICON_NODE_HEIGHT / 2 + (hasContent ? 26.5 : type === "primaryNode" ? 15 : 16.5);
52686
52685
  const startY = iconNodeCenterY - totalHeight / 2;
52687
52686
  const END_Y = startY + totalHeight;
52688
52687
  const yOffset = index * MIN_SPACE_REQUIRED;
@@ -52842,8 +52841,7 @@ function StakeholderMappings(_ref3) {
52842
52841
  total: 1,
52843
52842
  mainNode,
52844
52843
  type: "nameNode",
52845
- hasContent: (node === null || node === void 0 || (_node$data4 = node.data) === null || _node$data4 === void 0 ? void 0 : _node$data4.content) !== undefined && (node === null || node === void 0 || (_node$data5 = node.data) === null || _node$data5 === void 0 ? void 0 : _node$data5.content) !== null ? true : false,
52846
- isPdf: isPdf
52844
+ hasContent: (node === null || node === void 0 || (_node$data4 = node.data) === null || _node$data4 === void 0 ? void 0 : _node$data4.content) !== undefined && (node === null || node === void 0 || (_node$data5 = node.data) === null || _node$data5 === void 0 ? void 0 : _node$data5.content) !== null ? true : false
52847
52845
  })
52848
52846
  }];
52849
52847
  }
@@ -52883,8 +52881,7 @@ function StakeholderMappings(_ref3) {
52883
52881
  total: 1,
52884
52882
  mainNode,
52885
52883
  type: "nameNode",
52886
- hasContent: (node === null || node === void 0 || (_node$data13 = node.data) === null || _node$data13 === void 0 ? void 0 : _node$data13.content) !== undefined && (node === null || node === void 0 || (_node$data14 = node.data) === null || _node$data14 === void 0 ? void 0 : _node$data14.content) !== null ? true : false,
52887
- isPdf: isPdf
52884
+ hasContent: (node === null || node === void 0 || (_node$data13 = node.data) === null || _node$data13 === void 0 ? void 0 : _node$data13.content) !== undefined && (node === null || node === void 0 || (_node$data14 = node.data) === null || _node$data14 === void 0 ? void 0 : _node$data14.content) !== null ? true : false
52888
52885
  })
52889
52886
  }];
52890
52887
  }
@@ -52938,8 +52935,7 @@ function StakeholderMappings(_ref3) {
52938
52935
  total,
52939
52936
  mainNode,
52940
52937
  type: child.type || "primaryNode",
52941
- hasContent: node !== null && node !== void 0 && (_node$data15 = node.data) !== null && _node$data15 !== void 0 && _node$data15.content ? true : false,
52942
- isPdf: isPdf
52938
+ hasContent: node !== null && node !== void 0 && (_node$data15 = node.data) !== null && _node$data15 !== void 0 && _node$data15.content ? true : false
52943
52939
  })
52944
52940
  };
52945
52941
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.356",
3
+ "version": "0.6.358",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -72,7 +72,6 @@ function positionDataNodes({
72
72
  mainNode,
73
73
  type,
74
74
  hasContent,
75
- isPdf = false,
76
75
  }) {
77
76
  const DATA_NODE_WIDTH = DATA_NODE_SIZE[type].width;
78
77
  const DATA_NODE_HEIGHT = DATA_NODE_SIZE[type].height;
@@ -99,7 +98,7 @@ function positionDataNodes({
99
98
  const iconNodeCenterY =
100
99
  iconNode.position.y +
101
100
  ICON_NODE_HEIGHT / 2 +
102
- (hasContent ? (isPdf ? 30 : 26.5) : type === "primaryNode" ? 15 : 16.5);
101
+ (hasContent ? 26.5 : type === "primaryNode" ? 15 : 16.5);
103
102
  const startY = iconNodeCenterY - totalHeight / 2;
104
103
  const END_Y = startY + totalHeight;
105
104
 
@@ -287,7 +286,6 @@ function StakeholderMappings({
287
286
  node?.data?.content !== undefined && node?.data?.content !== null
288
287
  ? true
289
288
  : false,
290
- isPdf: isPdf,
291
289
  }),
292
290
  },
293
291
  ];
@@ -336,7 +334,6 @@ function StakeholderMappings({
336
334
  node?.data?.content !== undefined && node?.data?.content !== null
337
335
  ? true
338
336
  : false,
339
- isPdf: isPdf,
340
337
  }),
341
338
  },
342
339
  ];
@@ -396,7 +393,6 @@ function StakeholderMappings({
396
393
  mainNode,
397
394
  type: child.type || "primaryNode",
398
395
  hasContent: node?.data?.content ? true : false,
399
- isPdf: isPdf,
400
396
  }),
401
397
  };
402
398
  });