datastake-daf 0.6.356 → 0.6.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/components/index.js
CHANGED
|
@@ -51745,12 +51745,20 @@ function ToolTipEdge({
|
|
|
51745
51745
|
data,
|
|
51746
51746
|
targetPosition
|
|
51747
51747
|
}) {
|
|
51748
|
+
console.log({
|
|
51749
|
+
sourcePosition,
|
|
51750
|
+
sourceX,
|
|
51751
|
+
sourceY,
|
|
51752
|
+
targetX,
|
|
51753
|
+
targetY,
|
|
51754
|
+
targetPosition
|
|
51755
|
+
});
|
|
51748
51756
|
const [smoothPath] = react.getSmoothStepPath({
|
|
51749
51757
|
sourceX,
|
|
51750
51758
|
sourceY,
|
|
51751
51759
|
sourcePosition,
|
|
51752
51760
|
targetX,
|
|
51753
|
-
targetY,
|
|
51761
|
+
targetY: data?.isPdf ? targetY : targetY + 20,
|
|
51754
51762
|
targetPosition,
|
|
51755
51763
|
borderRadius: 15
|
|
51756
51764
|
});
|
|
@@ -52659,8 +52667,7 @@ function positionDataNodes(_ref2) {
|
|
|
52659
52667
|
total,
|
|
52660
52668
|
mainNode,
|
|
52661
52669
|
type,
|
|
52662
|
-
hasContent
|
|
52663
|
-
isPdf = false
|
|
52670
|
+
hasContent
|
|
52664
52671
|
} = _ref2;
|
|
52665
52672
|
const DATA_NODE_WIDTH = DATA_NODE_SIZE[type].width;
|
|
52666
52673
|
const DATA_NODE_HEIGHT = DATA_NODE_SIZE[type].height;
|
|
@@ -52682,7 +52689,7 @@ function positionDataNodes(_ref2) {
|
|
|
52682
52689
|
const X_SPACE_FROM_ICON_NODE = 130;
|
|
52683
52690
|
const MIN_SPACE_REQUIRED = Y_SPACE_FROM_SIBLINGS + DATA_NODE_HEIGHT;
|
|
52684
52691
|
const totalHeight = total * MIN_SPACE_REQUIRED;
|
|
52685
|
-
const iconNodeCenterY = iconNode.position.y + ICON_NODE_HEIGHT / 2 + (hasContent ?
|
|
52692
|
+
const iconNodeCenterY = iconNode.position.y + ICON_NODE_HEIGHT / 2 + (hasContent ? 26.5 : type === "primaryNode" ? 15 : 16.5);
|
|
52686
52693
|
const startY = iconNodeCenterY - totalHeight / 2;
|
|
52687
52694
|
const END_Y = startY + totalHeight;
|
|
52688
52695
|
const yOffset = index * MIN_SPACE_REQUIRED;
|
|
@@ -52842,8 +52849,7 @@ function StakeholderMappings(_ref3) {
|
|
|
52842
52849
|
total: 1,
|
|
52843
52850
|
mainNode,
|
|
52844
52851
|
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
|
|
52852
|
+
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
52853
|
})
|
|
52848
52854
|
}];
|
|
52849
52855
|
}
|
|
@@ -52883,8 +52889,7 @@ function StakeholderMappings(_ref3) {
|
|
|
52883
52889
|
total: 1,
|
|
52884
52890
|
mainNode,
|
|
52885
52891
|
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
|
|
52892
|
+
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
52893
|
})
|
|
52889
52894
|
}];
|
|
52890
52895
|
}
|
|
@@ -52938,8 +52943,7 @@ function StakeholderMappings(_ref3) {
|
|
|
52938
52943
|
total,
|
|
52939
52944
|
mainNode,
|
|
52940
52945
|
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
|
|
52946
|
+
hasContent: node !== null && node !== void 0 && (_node$data15 = node.data) !== null && _node$data15 !== void 0 && _node$data15.content ? true : false
|
|
52943
52947
|
})
|
|
52944
52948
|
};
|
|
52945
52949
|
});
|
package/package.json
CHANGED
|
@@ -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 ?
|
|
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
|
});
|
|
@@ -30,12 +30,13 @@ export default function ToolTipEdge({
|
|
|
30
30
|
data,
|
|
31
31
|
targetPosition,
|
|
32
32
|
}) {
|
|
33
|
+
console.log({sourcePosition, sourceX, sourceY, targetX, targetY, targetPosition})
|
|
33
34
|
const [smoothPath] = getSmoothStepPath({
|
|
34
35
|
sourceX,
|
|
35
36
|
sourceY,
|
|
36
37
|
sourcePosition,
|
|
37
38
|
targetX,
|
|
38
|
-
targetY,
|
|
39
|
+
targetY: data?.isPdf ? targetY : targetY + 20,
|
|
39
40
|
targetPosition,
|
|
40
41
|
borderRadius: 15,
|
|
41
42
|
});
|