@foblex/flow 12.6.9 → 12.7.0

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.
@@ -3127,11 +3127,12 @@
3127
3127
  }());
3128
3128
 
3129
3129
  var FReassignConnectionEvent = /** @class */ (function () {
3130
- function FReassignConnectionEvent(fConnectionId, fOutputId, oldFInputId, newFInputId) {
3130
+ function FReassignConnectionEvent(fConnectionId, fOutputId, oldFInputId, newFInputId, fDropPosition) {
3131
3131
  this.fConnectionId = fConnectionId;
3132
3132
  this.fOutputId = fOutputId;
3133
3133
  this.oldFInputId = oldFInputId;
3134
3134
  this.newFInputId = newFInputId;
3135
+ this.fDropPosition = fDropPosition;
3135
3136
  }
3136
3137
  return FReassignConnectionEvent;
3137
3138
  }());
@@ -3162,10 +3163,10 @@
3162
3163
  };
3163
3164
  ReassignConnectionFinalizeExecution.prototype.emitEvent = function (event) {
3164
3165
  var input = this.getInputUnderPointer(event);
3165
- if (!input || !this.isReassignToDifferentInput(input)) {
3166
+ if (!!input && !this.isReassignToDifferentInput(input)) {
3166
3167
  return;
3167
3168
  }
3168
- this.fDraggable.fReassignConnection.emit(new FReassignConnectionEvent(this.dragHandler.fConnection.fId, this.dragHandler.fConnection.fOutputId, this.dragHandler.fConnection.fInputId, input.id));
3169
+ this.fDraggable.fReassignConnection.emit(new FReassignConnectionEvent(this.dragHandler.fConnection.fId, this.dragHandler.fConnection.fOutputId, this.dragHandler.fConnection.fInputId, input === null || input === void 0 ? void 0 : input.id, event.getPosition()));
3169
3170
  };
3170
3171
  ReassignConnectionFinalizeExecution.prototype.getInputUnderPointer = function (event) {
3171
3172
  return this.fMediator.send(new GetInputUnderPointerRequest(event, this.dragHandler));
@@ -8679,11 +8680,18 @@
8679
8680
  FCanvasComponent.prototype.redrawWithAnimation = function () {
8680
8681
  var _this = this;
8681
8682
  var _a;
8683
+ var duration = F_CANVAS_ANIMATION_DURATION;
8684
+ if (this.isMobile()) {
8685
+ duration = 80;
8686
+ }
8682
8687
  (_a = this.fComponentsStore.fBackground) === null || _a === void 0 ? void 0 : _a.setTransform(this.transform);
8683
- this.hostElement.setAttribute("style", "transition: transform " + F_CANVAS_ANIMATION_DURATION + "ms ease-in-out; transform: " + _2d.TransformModelExtensions.toString(this.transform));
8684
- setTimeout(function () {
8685
- _this.redraw();
8686
- }, F_CANVAS_ANIMATION_DURATION);
8688
+ this.hostElement.setAttribute("style", "transition: transform " + duration + "ms ease-in-out; transform: " + _2d.TransformModelExtensions.toString(this.transform));
8689
+ setTimeout(function () { return _this.redraw(); }, F_CANVAS_ANIMATION_DURATION);
8690
+ };
8691
+ FCanvasComponent.prototype.isMobile = function () {
8692
+ // @ts-ignore
8693
+ var userAgent = navigator.userAgent || navigator.vendor || window['opera'];
8694
+ return /android|iPad|iPhone|iPod/i.test(userAgent);
8687
8695
  };
8688
8696
  FCanvasComponent.prototype.centerGroupOrNode = function (id, animated) {
8689
8697
  if (animated === void 0) { animated = true; }