Skip to content

Commit

Permalink
Release v3.7.6 (#2362)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumilingus authored Oct 20, 2023
1 parent 7aca426 commit 739c7c1
Show file tree
Hide file tree
Showing 37 changed files with 2,634 additions and 698 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
20-10-2023 (v3.7.6)

* dia.Cell - make prop()'s internal set() call more efficient
* dia.LinkView - fix to prevent hidden doubleLinkTools to affect link bounding box
* dia.attributes - fix to read all breakText options in textWrap attribute
* dia.attributes - fix ambiguous order of cache keys in text attribute
* connectors.Curve - fix wrong target tangent right direction
* linkTools.Segments - throw explicit error when incompatible router in use
* shapes.standard - fix cursor style on DoubleLink and ShadowLink
* util.breakText - fix to use the defined separator to join words
* util.breakText - fix to allow empty string to be separator
* Geometry - prevent unnecessary object instantiation in Rect.prototype.containsPoint()
* Geometry - prevent rounding errors in simplify() of Polyline

02-08-2023 (v3.7.5)

* layout.PortLabel - fix passing of `label.position.args.attrs` in `inside`, `outside`, `radial` layouts
Expand Down
12 changes: 9 additions & 3 deletions dist/geometry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v3.7.5 (2023-08-02) - JavaScript diagramming library
/*! JointJS v3.7.6 (2023-10-20) - JavaScript diagramming library
This Source Code Form is subject to the terms of the Mozilla Public
Expand Down Expand Up @@ -1219,7 +1219,10 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.

// @return {bool} true if point p is inside me.
containsPoint: function(p) {
p = new Point(p);

if (!(p instanceof Point)) {
p = new Point(p);
}
return p.x >= this.x && p.x <= this.x + this.width && p.y >= this.y && p.y <= this.y + this.height;
},

Expand Down Expand Up @@ -2230,7 +2233,10 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
if (points.length < 3) { return this; } // we need at least 3 points

// TODO: we may also accept startIndex and endIndex to specify where to start and end simplification
var threshold = opt.threshold || 0; // = max distance of middle point from chord to be simplified

// Due to the nature of the algorithm, we do not use 0 as the default value for `threshold`
// because of the rounding errors that can occur when comparing distances.
var threshold = opt.threshold || 1e-10; // = max distance of middle point from chord to be simplified

// start at the beginning of the polyline and go forward
var currentIndex = 0;
Expand Down
4 changes: 2 additions & 2 deletions dist/geometry.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/joint.core.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 739c7c1

Please sign in to comment.