@joint/core 4.2.0-beta.3 → 4.2.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.
package/dist/geometry.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! JointJS v4.2.0-beta.3 (2025-11-04) - JavaScript diagramming library
1
+ /*! JointJS v4.2.0 (2025-11-10) - JavaScript diagramming library
2
2
 
3
3
  This Source Code Form is subject to the terms of the Mozilla Public
4
4
  License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -1,4 +1,4 @@
1
- /*! JointJS v4.2.0-beta.3 (2025-11-04) - JavaScript diagramming library
1
+ /*! JointJS v4.2.0 (2025-11-10) - JavaScript diagramming library
2
2
 
3
3
  This Source Code Form is subject to the terms of the Mozilla Public
4
4
  License, v. 2.0. If a copy of the MPL was not distributed with this
package/dist/joint.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /*! JointJS v4.2.0-beta.3 (2025-11-04) - JavaScript diagramming library
1
+ /*! JointJS v4.2.0 (2025-11-10) - JavaScript diagramming library
2
2
 
3
3
  This Source Code Form is subject to the terms of the Mozilla Public
4
4
  License, v. 2.0. If a copy of the MPL was not distributed with this
package/dist/joint.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! JointJS v4.2.0-beta.3 (2025-11-04) - JavaScript diagramming library
1
+ /*! JointJS v4.2.0 (2025-11-10) - JavaScript diagramming library
2
2
 
3
3
  This Source Code Form is subject to the terms of the Mozilla Public
4
4
  License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -34129,6 +34129,9 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
34129
34129
  const viewLike = this._getCellViewLike(cell);
34130
34130
  if (!viewLike) return;
34131
34131
  if (viewLike[CELL_VIEW_PLACEHOLDER_MARKER]) {
34132
+ // It's a cell placeholder, it must be in the unmounted list.
34133
+ // Remove it from there and unregister.
34134
+ this._updates.unmountedList.delete(viewLike.cid);
34132
34135
  this._unregisterCellViewPlaceholder(viewLike);
34133
34136
  } else {
34134
34137
  this.requestViewUpdate(viewLike, this.FLAG_REMOVE, viewLike.UPDATE_PRIORITY, opt);
@@ -34679,7 +34682,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
34679
34682
  const type = modelType + 'View';
34680
34683
 
34681
34684
  // For backward compatibility we use the LegacyGraphLayerView for the default `cells` layer.
34682
- if (this.model.layersController.legacyMode) {
34685
+ if (this.model.legacyMode) {
34683
34686
  viewConstructor = LegacyGraphLayerView;
34684
34687
  } else {
34685
34688
  viewConstructor = this.layerViewNamespace[type] || LayerView;
@@ -34849,17 +34852,21 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
34849
34852
  },
34850
34853
  requestConnectedLinksUpdate: function (view, priority, opt) {
34851
34854
  if (!view || !view[CELL_VIEW_MARKER]) return;
34852
- var model = view.model;
34853
- var links = this.model.getConnectedLinks(model);
34854
- for (var j = 0, n = links.length; j < n; j++) {
34855
- var link = links[j];
34856
- var linkView = this._getCellViewLike(link);
34855
+ const model = view.model;
34856
+ const links = this.model.getConnectedLinks(model);
34857
+ for (let j = 0, n = links.length; j < n; j++) {
34858
+ const link = links[j];
34859
+ const linkView = this._getCellViewLike(link);
34857
34860
  if (!linkView) continue;
34858
34861
  // We do not have to update placeholder views.
34859
34862
  // They will be updated on initial render.
34860
34863
  if (linkView[CELL_VIEW_PLACEHOLDER_MARKER]) continue;
34861
- var nextPriority = Math.max(priority + 1, linkView.UPDATE_PRIORITY);
34862
- this.scheduleViewUpdate(linkView, linkView.getFlag(LinkView.Flags.UPDATE), nextPriority, opt);
34864
+ const flagLabels = [LinkView.Flags.UPDATE];
34865
+ // We need to tell the link view which end requested this update.
34866
+ if (link.getTargetCell() === model) flagLabels.push(LinkView.Flags.TARGET);
34867
+ if (link.getSourceCell() === model) flagLabels.push(LinkView.Flags.SOURCE);
34868
+ const nextPriority = Math.max(priority + 1, linkView.UPDATE_PRIORITY);
34869
+ this.scheduleViewUpdate(linkView, linkView.getFlag(flagLabels), nextPriority, opt);
34863
34870
  }
34864
34871
  },
34865
34872
  forcePostponedViewUpdate: function (view, flag) {
@@ -35403,6 +35410,8 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
35403
35410
  let view = views[cid] || this._viewPlaceholders[cid];
35404
35411
  if (!view) {
35405
35412
  // This should not occur
35413
+ // Prevent looping over this invalid cid
35414
+ unmountedList.popHead();
35406
35415
  continue;
35407
35416
  }
35408
35417
  if (!this._evalCellVisibility(view, false, visibilityCb)) {
@@ -39636,7 +39645,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
39636
39645
  Remove: Remove
39637
39646
  };
39638
39647
 
39639
- var version = "4.2.0-beta.3";
39648
+ var version = "4.2.0";
39640
39649
 
39641
39650
  const Vectorizer = V;
39642
39651
  const layout$1 = {