orcasvn-react-diagrams 0.1.74 → 0.1.77
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 +4 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -8906,6 +8906,10 @@ var Element = React.forwardRef(function (props, forwardedRef) {
|
|
|
8906
8906
|
//if (!newPortState.hasNormalizedPosition && elementRef.current) {
|
|
8907
8907
|
var newPosition = normalizePortPosition(newPortState.position);
|
|
8908
8908
|
newPortState.position = newPosition;
|
|
8909
|
+
if (!checkSamePosition(newPortState.position, newPosition, 0)) {
|
|
8910
|
+
onPortMoved === null || onPortMoved === void 0 ? void 0 : onPortMoved(p, id, newPortState.position, newPosition);
|
|
8911
|
+
_paperEventEmitterContext.emitPortMoved(p, id, newPortState.position, newPosition);
|
|
8912
|
+
}
|
|
8909
8913
|
//newPortState.hasNormalizedPosition = true;
|
|
8910
8914
|
//}
|
|
8911
8915
|
return newPortState;
|
package/dist/esm/index.js
CHANGED
|
@@ -8902,6 +8902,10 @@ var Element = forwardRef(function (props, forwardedRef) {
|
|
|
8902
8902
|
//if (!newPortState.hasNormalizedPosition && elementRef.current) {
|
|
8903
8903
|
var newPosition = normalizePortPosition(newPortState.position);
|
|
8904
8904
|
newPortState.position = newPosition;
|
|
8905
|
+
if (!checkSamePosition(newPortState.position, newPosition, 0)) {
|
|
8906
|
+
onPortMoved === null || onPortMoved === void 0 ? void 0 : onPortMoved(p, id, newPortState.position, newPosition);
|
|
8907
|
+
_paperEventEmitterContext.emitPortMoved(p, id, newPortState.position, newPosition);
|
|
8908
|
+
}
|
|
8905
8909
|
//newPortState.hasNormalizedPosition = true;
|
|
8906
8910
|
//}
|
|
8907
8911
|
return newPortState;
|