Skip to content

Commit fa138ea

Browse files
authored
Release v2.1.2
1 parent 10f1a46 commit fa138ea

36 files changed

+71
-49
lines changed

CHANGELOG

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
8-5-2018 (v2.1.2)
2+
* dia.CellView - fix magnet lookup based on the port property
3+
* docs - fix broken links
4+
15
7-5-2018 (v2.1.1)
2-
* layout.PortLabel: fix manual position
3-
* anchors: prevent exception when reference node not in the DOM
6+
* layout.PortLabel - fix manual position
7+
* anchors - prevent exception when reference node not in the DOM
48

59
27-4-2018 (v2.1.0)
610
* update Tutorials

dist/geometry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! JointJS v2.1.1 (2018-05-07) - JavaScript diagramming library
1+
/*! JointJS v2.1.2 (2018-05-08) - JavaScript diagramming library
22
33
44
This Source Code Form is subject to the terms of the Mozilla Public

dist/geometry.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.core.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.core.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! JointJS v2.1.1 (2018-05-07) - JavaScript diagramming library
1+
/*! JointJS v2.1.2 (2018-05-08) - JavaScript diagramming library
22

33

44
This Source Code Form is subject to the terms of the Mozilla Public
@@ -7745,7 +7745,7 @@ V = Vectorizer = (function() {
77457745

77467746
var joint = {
77477747

7748-
version: '2.1.1',
7748+
version: '2.1.2',
77497749

77507750
config: {
77517751
// The class name prefix config is for advanced use only.
@@ -12557,7 +12557,13 @@ joint.dia.CellView = joint.mvc.View.extend({
1255712557
if (port != null && this.model.hasPort(port)) {
1255812558
magnet = this.findPortNode(port, selector) || root;
1255912559
} else {
12560-
magnet = this.findBySelector(selector || end.selector, root, this.selectors)[0];
12560+
if (!selector) selector = end.selector;
12561+
if (!selector && port != null) {
12562+
// link end has only `id` and `port` property referencing
12563+
// a port created via the `port` attribute (not API).
12564+
selector = '[port="' + port + '"]';
12565+
}
12566+
magnet = this.findBySelector(selector, root, this.selectors)[0];
1256112567
}
1256212568

1256312569
return magnet;

dist/joint.core.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.core.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! JointJS v2.1.1 (2018-05-07) - JavaScript diagramming library
1+
/*! JointJS v2.1.2 (2018-05-08) - JavaScript diagramming library
22
33
44
This Source Code Form is subject to the terms of the Mozilla Public

dist/joint.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! JointJS v2.1.1 (2018-05-07) - JavaScript diagramming library
1+
/*! JointJS v2.1.2 (2018-05-08) - JavaScript diagramming library
22

33

44
This Source Code Form is subject to the terms of the Mozilla Public
@@ -7745,7 +7745,7 @@ V = Vectorizer = (function() {
77457745

77467746
var joint = {
77477747

7748-
version: '2.1.1',
7748+
version: '2.1.2',
77497749

77507750
config: {
77517751
// The class name prefix config is for advanced use only.
@@ -12557,7 +12557,13 @@ joint.dia.CellView = joint.mvc.View.extend({
1255712557
if (port != null && this.model.hasPort(port)) {
1255812558
magnet = this.findPortNode(port, selector) || root;
1255912559
} else {
12560-
magnet = this.findBySelector(selector || end.selector, root, this.selectors)[0];
12560+
if (!selector) selector = end.selector;
12561+
if (!selector && port != null) {
12562+
// link end has only `id` and `port` property referencing
12563+
// a port created via the `port` attribute (not API).
12564+
selector = '[port="' + port + '"]';
12565+
}
12566+
magnet = this.findBySelector(selector, root, this.selectors)[0];
1256112567
}
1256212568

1256312569
return magnet;

0 commit comments

Comments
 (0)