Skip to content

Commit

Permalink
Release v3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kumilingus authored Jun 17, 2019
1 parent 20f2ea8 commit 18de6b1
Show file tree
Hide file tree
Showing 35 changed files with 98 additions and 93 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
17-06-2019 (v3.0.1)

* remove all global variables
* dia.LinkView - fix `cell:pointerup` event

07-06-2019 (v3.0.0)

* dia.Paper - async mode revamped (viewport matching, rendering progress) [breaking change]
Expand Down
18 changes: 9 additions & 9 deletions dist/geometry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v3.0.0 (2019-06-08) - JavaScript diagramming library
/*! JointJS v3.0.1 (2019-06-17) - JavaScript diagramming library
This Source Code Form is subject to the terms of the Mozilla Public
Expand Down Expand Up @@ -1338,7 +1338,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
// @returns the angle of incline of the line.
angle: function() {

var horizontalPoint = new g.Point(this.start.x + 1, this.start.y);
var horizontalPoint = new Point(this.start.x + 1, this.start.y);
return this.start.angleBetween(this.end, horizontalPoint);
},

Expand Down Expand Up @@ -1420,8 +1420,8 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
// else: cross product of 0 indicates that this line and the vector to `p` are collinear

var length = this.length();
if ((new g.Line(start, p)).length() > length) { return false; }
if ((new g.Line(p, end)).length() > length) { return false; }
if ((new Line(start, p)).length() > length) { return false; }
if ((new Line(p, end)).length() > length) { return false; }
// else: `p` lies between start and end of the line

return true;
Expand All @@ -1432,7 +1432,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.

var dividerPoint = this.pointAt(ratio);

// return array with two new lines
// return array with two lines
return [
new Line(this.start, dividerPoint),
new Line(dividerPoint, this.end)
Expand Down Expand Up @@ -1568,7 +1568,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
pointOffset: function(p) {

// Find the sign of the determinant of vectors (start,end), where p is the query point.
p = new g.Point(p);
p = new Point(p);
var start = this.start;
var end = this.end;
var determinant = ((end.x - start.x) * (p.y - start.y) - (end.y - start.y) * (p.x - start.x));
Expand Down Expand Up @@ -2137,7 +2137,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.

// insert a Moveto segment to ensure secondPath will be valid:
var movetoEnd = pathCopy.getSegment(divisionMidIndex).start;
pathCopy.insertSegment(divisionMidIndex, g.Path.createSegment('M', movetoEnd));
pathCopy.insertSegment(divisionMidIndex, Path.createSegment('M', movetoEnd));
divisionEndIndex += 1;

// do not insert the part if it looks like a point
Expand All @@ -2157,7 +2157,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
if ((segment.type === 'Z') && !originalSegment.subpathStartSegment.end.equals(segment.subpathStartSegment.end)) {
// pathCopy segment's subpathStartSegment is different from original segment's one
// convert this Closepath segment to a Lineto and replace it in pathCopy
var convertedSegment = g.Path.createSegment('L', originalSegment.end);
var convertedSegment = Path.createSegment('L', originalSegment.end);
pathCopy.replaceSegment(i, convertedSegment);
}
}
Expand Down Expand Up @@ -3164,7 +3164,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
// Angle is flipped because this is a left-handed coord system (y-axis points downward).
rotate: function(origin, angle) {

origin = origin || new g.Point(0, 0);
origin = origin || new Point(0, 0);

angle = toRad(normalizeAngle(-angle));
var cosAngle = cos(angle);
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.

26 changes: 13 additions & 13 deletions dist/joint.core.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v3.0.0 (2019-06-08) - JavaScript diagramming library
/*! JointJS v3.0.1 (2019-06-17) - JavaScript diagramming library


This Source Code Form is subject to the terms of the Mozilla Public
Expand Down Expand Up @@ -1733,7 +1733,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
// @returns the angle of incline of the line.
angle: function() {

var horizontalPoint = new g.Point(this.start.x + 1, this.start.y);
var horizontalPoint = new Point(this.start.x + 1, this.start.y);
return this.start.angleBetween(this.end, horizontalPoint);
},

Expand Down Expand Up @@ -1815,8 +1815,8 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
// else: cross product of 0 indicates that this line and the vector to `p` are collinear

var length = this.length();
if ((new g.Line(start, p)).length() > length) { return false; }
if ((new g.Line(p, end)).length() > length) { return false; }
if ((new Line(start, p)).length() > length) { return false; }
if ((new Line(p, end)).length() > length) { return false; }
// else: `p` lies between start and end of the line

return true;
Expand All @@ -1827,7 +1827,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.

var dividerPoint = this.pointAt(ratio);

// return array with two new lines
// return array with two lines
return [
new Line(this.start, dividerPoint),
new Line(dividerPoint, this.end)
Expand Down Expand Up @@ -1963,7 +1963,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
pointOffset: function(p) {

// Find the sign of the determinant of vectors (start,end), where p is the query point.
p = new g.Point(p);
p = new Point(p);
var start = this.start;
var end = this.end;
var determinant = ((end.x - start.x) * (p.y - start.y) - (end.y - start.y) * (p.x - start.x));
Expand Down Expand Up @@ -2532,7 +2532,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.

// insert a Moveto segment to ensure secondPath will be valid:
var movetoEnd = pathCopy.getSegment(divisionMidIndex).start;
pathCopy.insertSegment(divisionMidIndex, g.Path.createSegment('M', movetoEnd));
pathCopy.insertSegment(divisionMidIndex, Path.createSegment('M', movetoEnd));
divisionEndIndex += 1;

// do not insert the part if it looks like a point
Expand All @@ -2552,7 +2552,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
if ((segment.type === 'Z') && !originalSegment.subpathStartSegment.end.equals(segment.subpathStartSegment.end)) {
// pathCopy segment's subpathStartSegment is different from original segment's one
// convert this Closepath segment to a Lineto and replace it in pathCopy
var convertedSegment = g.Path.createSegment('L', originalSegment.end);
var convertedSegment = Path.createSegment('L', originalSegment.end);
pathCopy.replaceSegment(i, convertedSegment);
}
}
Expand Down Expand Up @@ -3559,7 +3559,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
// Angle is flipped because this is a left-handed coord system (y-axis points downward).
rotate: function(origin, angle) {

origin = origin || new g.Point(0, 0);
origin = origin || new Point(0, 0);

angle = toRad(normalizeAngle(-angle));
var cosAngle = cos(angle);
Expand Down Expand Up @@ -18412,11 +18412,11 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
// (one of the partial routes returns null)
fallbackRouter: function(vertices, opt, linkView) {

if (!isFunction(joint.routers.orthogonal)) {
if (!isFunction(orthogonal)) {
throw new Error('Manhattan requires the orthogonal router as default fallback.');
}

return joint.routers.orthogonal(vertices, assign({}, config, opt), linkView);
return orthogonal(vertices, assign({}, config, opt), linkView);
},

/* Deprecated */
Expand Down Expand Up @@ -21896,7 +21896,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.

var path = this.path;
if (!path) { return null; }
if (joint.util.isPercentage(ratio)) { ratio = parseFloat(ratio) / 100; }
if (isPercentage(ratio)) { ratio = parseFloat(ratio) / 100; }
return path.pointAt(ratio, { segmentSubdivisions: this.getConnectionSubdivisions() });
},

Expand Down Expand Up @@ -22110,7 +22110,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.

notifyPointerup: function notifyPointerup(evt, x, y) {
this.notify('link:pointerup', evt, x, y);
CellView.prototype.pointermove.call(this, evt, x, y);
CellView.prototype.pointerup.call(this, evt, x, y);
},

pointerdblclick: function(evt, x, y) {
Expand Down
2 changes: 1 addition & 1 deletion dist/joint.core.min.css

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

4 changes: 2 additions & 2 deletions dist/joint.core.min.js

Large diffs are not rendered by default.

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

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

2 changes: 1 addition & 1 deletion dist/joint.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v3.0.0 (2019-06-08) - JavaScript diagramming library
/*! JointJS v3.0.1 (2019-06-17) - JavaScript diagramming library
This Source Code Form is subject to the terms of the Mozilla Public
Expand Down
26 changes: 13 additions & 13 deletions dist/joint.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v3.0.0 (2019-06-08) - JavaScript diagramming library
/*! JointJS v3.0.1 (2019-06-17) - JavaScript diagramming library


This Source Code Form is subject to the terms of the Mozilla Public
Expand Down Expand Up @@ -1733,7 +1733,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
// @returns the angle of incline of the line.
angle: function() {

var horizontalPoint = new g.Point(this.start.x + 1, this.start.y);
var horizontalPoint = new Point(this.start.x + 1, this.start.y);
return this.start.angleBetween(this.end, horizontalPoint);
},

Expand Down Expand Up @@ -1815,8 +1815,8 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
// else: cross product of 0 indicates that this line and the vector to `p` are collinear

var length = this.length();
if ((new g.Line(start, p)).length() > length) { return false; }
if ((new g.Line(p, end)).length() > length) { return false; }
if ((new Line(start, p)).length() > length) { return false; }
if ((new Line(p, end)).length() > length) { return false; }
// else: `p` lies between start and end of the line

return true;
Expand All @@ -1827,7 +1827,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.

var dividerPoint = this.pointAt(ratio);

// return array with two new lines
// return array with two lines
return [
new Line(this.start, dividerPoint),
new Line(dividerPoint, this.end)
Expand Down Expand Up @@ -1963,7 +1963,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
pointOffset: function(p) {

// Find the sign of the determinant of vectors (start,end), where p is the query point.
p = new g.Point(p);
p = new Point(p);
var start = this.start;
var end = this.end;
var determinant = ((end.x - start.x) * (p.y - start.y) - (end.y - start.y) * (p.x - start.x));
Expand Down Expand Up @@ -2532,7 +2532,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.

// insert a Moveto segment to ensure secondPath will be valid:
var movetoEnd = pathCopy.getSegment(divisionMidIndex).start;
pathCopy.insertSegment(divisionMidIndex, g.Path.createSegment('M', movetoEnd));
pathCopy.insertSegment(divisionMidIndex, Path.createSegment('M', movetoEnd));
divisionEndIndex += 1;

// do not insert the part if it looks like a point
Expand All @@ -2552,7 +2552,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
if ((segment.type === 'Z') && !originalSegment.subpathStartSegment.end.equals(segment.subpathStartSegment.end)) {
// pathCopy segment's subpathStartSegment is different from original segment's one
// convert this Closepath segment to a Lineto and replace it in pathCopy
var convertedSegment = g.Path.createSegment('L', originalSegment.end);
var convertedSegment = Path.createSegment('L', originalSegment.end);
pathCopy.replaceSegment(i, convertedSegment);
}
}
Expand Down Expand Up @@ -3559,7 +3559,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
// Angle is flipped because this is a left-handed coord system (y-axis points downward).
rotate: function(origin, angle) {

origin = origin || new g.Point(0, 0);
origin = origin || new Point(0, 0);

angle = toRad(normalizeAngle(-angle));
var cosAngle = cos(angle);
Expand Down Expand Up @@ -17475,11 +17475,11 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
// (one of the partial routes returns null)
fallbackRouter: function(vertices, opt, linkView) {

if (!isFunction(joint.routers.orthogonal)) {
if (!isFunction(orthogonal)) {
throw new Error('Manhattan requires the orthogonal router as default fallback.');
}

return joint.routers.orthogonal(vertices, assign({}, config, opt), linkView);
return orthogonal(vertices, assign({}, config, opt), linkView);
},

/* Deprecated */
Expand Down Expand Up @@ -20111,7 +20111,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.

var path = this.path;
if (!path) { return null; }
if (joint.util.isPercentage(ratio)) { ratio = parseFloat(ratio) / 100; }
if (isPercentage(ratio)) { ratio = parseFloat(ratio) / 100; }
return path.pointAt(ratio, { segmentSubdivisions: this.getConnectionSubdivisions() });
},

Expand Down Expand Up @@ -20325,7 +20325,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.

notifyPointerup: function notifyPointerup(evt, x, y) {
this.notify('link:pointerup', evt, x, y);
CellView.prototype.pointermove.call(this, evt, x, y);
CellView.prototype.pointerup.call(this, evt, x, y);
},

pointerdblclick: function(evt, x, y) {
Expand Down
2 changes: 1 addition & 1 deletion dist/joint.layout.DirectedGraph.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v3.0.0 (2019-06-08) - JavaScript diagramming library
/*! JointJS v3.0.1 (2019-06-17) - JavaScript diagramming library
This Source Code Form is subject to the terms of the Mozilla Public
Expand Down
2 changes: 1 addition & 1 deletion dist/joint.layout.DirectedGraph.min.js

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

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

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

4 changes: 2 additions & 2 deletions dist/joint.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 18de6b1

Please sign in to comment.