Skip to content

Commit

Permalink
Release v3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kumilingus authored Jun 4, 2020
1 parent 909634f commit a27cf94
Show file tree
Hide file tree
Showing 37 changed files with 1,672 additions and 750 deletions.
28 changes: 28 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
04-6-2020 (v3.2.0)
* add Sequence Diagram demo
* add HTML Elements demo
* upgrade jQuery dependency
* dia.Paper - add beforeRender and afterRender options, add hasScheduledUpdates(), trigger `render:done` in sync mode
* dia.Paper - fix missing initial render:done event
* dia.Paper - prevent the prototype options modification, persist functions passed as options
* dia.Paper - scaleContentToFit() padding option accepts object
* dia.Paper - fix isMounted argument of viewport() option
* dia.Paper - dynamic link update priorities (fix for "link connected to other two links" update bug)
* dia.Element - port removal runs in batch
* dia.Element - add getGroupPorts()
* dia.Element - prevent exception in getPointFromConnectedLink() when port does not exist
* dia.LinkView - fix never ending batch for legacy link tools
* dia.LinkView - add requestConnectionUpdate()
* dia.LinkView - trigger link:snap:connect and link:snap:disconnect events
* dia.LinkView - prevent exception when labels and connection require update
* dia.LinkView - measure snap distance for links from magnet's boundary
* dia.LinkView - add getEndConnectionPoint()
* mvc.View - add DETACHABLE property to ignore viewport matching, FLAG_INSERT & FLAG_REMOVE defined on per view basis
* linkTools.Anchor: add resetAnchor option
* linkTools.Segments: add stopPropagation option
* connectionPoints.anchor - add align and alignOffset options
* attributes.textWrap: add maxLineCount option
* util.breakText - retain new line characters, add maxLineCount option
* util.sanitizeHTML: sanitize attribute values with "data:" and "vbscript:"
* Geometry - add parallel() to Line, add serialize() to Point and Line

28-11-2019 (v3.1.1)

* dia.CellView - prevent DOM exceptions when invalid attrs provided
Expand Down
24 changes: 23 additions & 1 deletion dist/geometry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v3.1.1 (2019-10-28) - JavaScript diagramming library
/*! JointJS v3.2.0 (2020-06-04) - JavaScript diagramming library
This Source Code Form is subject to the terms of the Mozilla Public
Expand Down Expand Up @@ -1535,6 +1535,18 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
);
},

parallel: function(distance) {
var l = this.clone();
if (!this.isDifferentiable()) { return l; }
var start = l.start;
var end = l.end;
var eRef = start.clone().rotate(end, 270);
var sRef = end.clone().rotate(start, 90);
start.move(sRef, distance);
end.move(eRef, distance);
return l;
},

// @return {point} my point at 't' <0,1>
pointAt: function(t) {

Expand Down Expand Up @@ -1656,6 +1668,11 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
return this.start.toString() + ' ' + this.end.toString();
},

serialize: function() {

return this.start.serialize() + ' ' + this.end.serialize();
},

translate: function(tx, ty) {

this.start.translate(tx, ty);
Expand Down Expand Up @@ -3249,6 +3266,11 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
return this.x + '@' + this.y;
},

serialize: function() {

return this.x + ',' + this.y;
},

update: function(x, y) {

this.x = x || 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 a27cf94

Please sign in to comment.