orcasvn-react-diagrams 0.1.40 → 0.1.41

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/cjs/index.js CHANGED
@@ -9343,9 +9343,10 @@ var Paper = function (props) {
9343
9343
  var rect = currentTarget.getBoundingClientRect();
9344
9344
  var offsetX = ev.clientX - rect.left;
9345
9345
  var offsetY = ev.clientY - rect.top;
9346
+ var sourceElementAbsPosition = getAbsolutePosition(tempLink.sourceElement);
9346
9347
  var sourcePosition = {
9347
- x: tempLink.sourceElement.position.x + tempLink.sourcePort.position.x,
9348
- y: tempLink.sourceElement.position.y + tempLink.sourcePort.position.y
9348
+ x: sourceElementAbsPosition.x + tempLink.sourcePort.position.x,
9349
+ y: sourceElementAbsPosition.y + tempLink.sourcePort.position.y
9349
9350
  };
9350
9351
  //reduce the position of offset to the direction of the source point 1 unit to avoid the link to reach the current mouse position
9351
9352
  var tempTargetPosition_1 = {
package/dist/esm/index.js CHANGED
@@ -9339,9 +9339,10 @@ var Paper = function (props) {
9339
9339
  var rect = currentTarget.getBoundingClientRect();
9340
9340
  var offsetX = ev.clientX - rect.left;
9341
9341
  var offsetY = ev.clientY - rect.top;
9342
+ var sourceElementAbsPosition = getAbsolutePosition(tempLink.sourceElement);
9342
9343
  var sourcePosition = {
9343
- x: tempLink.sourceElement.position.x + tempLink.sourcePort.position.x,
9344
- y: tempLink.sourceElement.position.y + tempLink.sourcePort.position.y
9344
+ x: sourceElementAbsPosition.x + tempLink.sourcePort.position.x,
9345
+ y: sourceElementAbsPosition.y + tempLink.sourcePort.position.y
9345
9346
  };
9346
9347
  //reduce the position of offset to the direction of the source point 1 unit to avoid the link to reach the current mouse position
9347
9348
  var tempTargetPosition_1 = {