datastake-daf 0.6.355 → 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.
@@ -51746,14 +51746,19 @@ function ToolTipEdge({
51746
51746
  targetPosition
51747
51747
  }) {
51748
51748
  console.log({
51749
- data
51749
+ sourcePosition,
51750
+ sourceX,
51751
+ sourceY,
51752
+ targetX,
51753
+ targetY,
51754
+ targetPosition
51750
51755
  });
51751
51756
  const [smoothPath] = react.getSmoothStepPath({
51752
51757
  sourceX,
51753
51758
  sourceY,
51754
51759
  sourcePosition,
51755
51760
  targetX,
51756
- targetY,
51761
+ targetY: data?.isPdf ? targetY : targetY + 20,
51757
51762
  targetPosition,
51758
51763
  borderRadius: 15
51759
51764
  });
@@ -51763,9 +51768,6 @@ function ToolTipEdge({
51763
51768
  targetX,
51764
51769
  targetY
51765
51770
  });
51766
- console.log({
51767
- center: center[0]
51768
- });
51769
51771
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
51770
51772
  children: [/*#__PURE__*/jsxRuntime.jsx(react.BaseEdge, {
51771
51773
  path: smoothPath
@@ -51773,7 +51775,7 @@ function ToolTipEdge({
51773
51775
  children: /*#__PURE__*/jsxRuntime.jsx("div", {
51774
51776
  className: "button-edge__label nodrag nopan",
51775
51777
  style: {
51776
- transform: `translate(-50%, -50%) translate(${data?.isPdf ? center[0] + -30 : data?.isOnlyOne ? center[0] : center[0] + (sourcePosition === "right" ? 30 : -30)}px, ${targetY}px)`,
51778
+ transform: `translate(-50%, -50%) translate(${data?.isOnlyOne ? center[0] : center[0] + (sourcePosition === "right" ? 30 : -30)}px, ${targetY}px)`,
51777
51779
  position: "absolute",
51778
51780
  zIndex: 1000
51779
51781
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.355",
3
+ "version": "0.6.357",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -30,13 +30,13 @@ export default function ToolTipEdge({
30
30
  data,
31
31
  targetPosition,
32
32
  }) {
33
- console.log({data})
33
+ console.log({sourcePosition, sourceX, sourceY, targetX, targetY, targetPosition})
34
34
  const [smoothPath] = getSmoothStepPath({
35
35
  sourceX,
36
36
  sourceY,
37
37
  sourcePosition,
38
38
  targetX,
39
- targetY,
39
+ targetY: data?.isPdf ? targetY : targetY + 20,
40
40
  targetPosition,
41
41
  borderRadius: 15,
42
42
  });
@@ -47,7 +47,6 @@ console.log({data})
47
47
  targetX,
48
48
  targetY,
49
49
  });
50
- console.log({center: center[0]})
51
50
 
52
51
  return (
53
52
  <>
@@ -57,7 +56,7 @@ console.log({data})
57
56
  className="button-edge__label nodrag nopan"
58
57
  style={{
59
58
  transform: `translate(-50%, -50%) translate(${
60
- data?.isPdf ? center[0] + (-30) : data?.isOnlyOne
59
+ data?.isOnlyOne
61
60
  ? center[0]
62
61
  : center[0] + (sourcePosition === "right" ? 30 : -30)
63
62
  }px, ${targetY}px)`,