@joint/core 4.2.2 → 4.2.4

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.
Files changed (42) hide show
  1. package/README.md +2 -2
  2. package/dist/geometry.js +1 -1
  3. package/dist/geometry.min.js +1 -1
  4. package/dist/joint.d.ts +4 -3
  5. package/dist/joint.js +133 -89
  6. package/dist/joint.min.js +2 -2
  7. package/dist/joint.nowrap.js +133 -89
  8. package/dist/joint.nowrap.min.js +2 -2
  9. package/dist/vectorizer.js +26 -4
  10. package/dist/vectorizer.min.js +2 -2
  11. package/dist/version.mjs +1 -1
  12. package/package.json +6 -14
  13. package/src/V/transform.mjs +25 -3
  14. package/src/cellTools/Button.mjs +3 -1
  15. package/src/cellTools/Control.mjs +1 -1
  16. package/src/connectionPoints/index.mjs +1 -1
  17. package/src/connectors/curve.mjs +2 -4
  18. package/src/dia/Cell.mjs +5 -6
  19. package/src/dia/Graph.mjs +13 -13
  20. package/src/dia/GraphLayerCollection.mjs +2 -3
  21. package/src/dia/HighlighterView.mjs +5 -5
  22. package/src/dia/LayerView.mjs +1 -1
  23. package/src/dia/LinkView.mjs +1 -1
  24. package/src/dia/Paper.mjs +25 -15
  25. package/src/dia/attributes/eval.mjs +1 -1
  26. package/src/dia/ports.mjs +2 -2
  27. package/src/elementTools/HoverConnect.mjs +4 -3
  28. package/src/layout/ports/port.mjs +1 -1
  29. package/src/linkTools/RotateLabel.mjs +2 -1
  30. package/src/linkTools/Segments.mjs +1 -1
  31. package/src/mvc/Dom/Dom.mjs +2 -2
  32. package/src/mvc/Dom/animations.mjs +2 -6
  33. package/src/mvc/Dom/methods.mjs +3 -3
  34. package/src/mvc/Dom/props.mjs +1 -1
  35. package/src/mvc/Listener.mjs +1 -0
  36. package/src/mvc/Model.mjs +3 -1
  37. package/src/routers/rightAngle.mjs +9 -9
  38. package/src/util/calc.mjs +1 -1
  39. package/src/util/util.mjs +2 -4
  40. package/src/util/utilHelpers.mjs +5 -5
  41. package/types/joint.d.ts +5 -4
  42. package/types/vectorizer.d.ts +1 -1
package/README.md CHANGED
@@ -65,7 +65,7 @@ Make sure you have the following dependencies installed on your system:
65
65
 
66
66
  The installation requires Node version >= 20.19.3, to avoid syntax errors during installation.
67
67
 
68
- Make sure that you are using Yarn version >= 2.0.0, so that you have access to [Yarn workspace ranges](https://yarnpkg.com/features/workspaces#workspace-ranges-workspace) functionality. If you are using [Volta](https://volta.sh/), it will automatically read this restriction from `package.json`.
68
+ Make sure that you are using Yarn version >= 2.0.0, so that you have access to [Yarn workspace ranges](https://yarnpkg.com/features/workspaces#workspace-ranges-workspace) functionality. If you are using [Volta](https://volta.sh/), it will automatically read this restriction from `package.json`.
69
69
 
70
70
  ### Setup
71
71
 
@@ -159,4 +159,4 @@ The output for all unit tests will be saved in the `packages/joint-core/coverage
159
159
 
160
160
  The *JointJS* library is licensed under the [Mozilla Public License 2.0](https://github.com/clientIO/joint/blob/master/LICENSE).
161
161
 
162
- Copyright © 2013-2025 client IO
162
+ Copyright © 2013-2026 client IO
package/dist/geometry.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! JointJS v4.2.2 (2025-12-16) - JavaScript diagramming library
1
+ /*! JointJS v4.2.4 (2026-02-13) - 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.2 (2025-12-16) - JavaScript diagramming library
1
+ /*! JointJS v4.2.4 (2026-02-13) - 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.2 (2025-12-16) - JavaScript diagramming library
1
+ /*! JointJS v4.2.4 (2026-02-13) - 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
@@ -2271,8 +2271,8 @@ export declare namespace dia {
2271
2271
  moveThreshold?: number;
2272
2272
  magnetThreshold?: number | string;
2273
2273
  // views
2274
- elementView?: typeof ElementView | ((element: Element) => typeof ElementView);
2275
- linkView?: typeof LinkView | ((link: Link) => typeof LinkView);
2274
+ elementView?: typeof ElementView<any> | ((element: Element) => typeof ElementView<any> | null | undefined);
2275
+ linkView?: typeof LinkView<any> | ((link: Link) => typeof LinkView<any> | null | undefined);
2276
2276
  measureNode?: MeasureNodeCallback;
2277
2277
  // embedding
2278
2278
  embeddingMode?: boolean;
@@ -5862,6 +5862,7 @@ export declare namespace util {
5862
5862
 
5863
5863
  export function toArray(value: any): any[];
5864
5864
 
5865
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
5865
5866
  export function debounce<T extends Function>(func: T, wait?: number, options?: { leading?: boolean, maxWait?: number, trailing?: boolean }): T & Cancelable;
5866
5867
 
5867
5868
  export function groupBy(collection: Collection, iteratee?: IterateeFunction<any>): object;