Skip to content

Commit c884521

Browse files
kumilingusvtalas
authored andcommitted
Release v2.1.1 (#875)
1 parent 711e880 commit c884521

36 files changed

+1750
-1740
lines changed

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
7-5-2018 (v2.1.1)
2+
* layout.PortLabel: fix manual position
3+
* anchors: prevent exception when reference node not in the DOM
4+
15
27-4-2018 (v2.1.0)
26
* update Tutorials
37
* shapes.Standard - add new set of high-performance elements and links

dist/geometry.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! JointJS v2.1.0 (2018-04-26) - JavaScript diagramming library
1+
/*! JointJS v2.1.1 (2018-05-07) - JavaScript diagramming library
22
33
44
This Source Code Form is subject to the terms of the Mozilla Public
@@ -1478,7 +1478,7 @@ var g = (function() {
14781478
var start = this.start;
14791479
var end = this.end;
14801480

1481-
fromStart = true;
1481+
var fromStart = true;
14821482
if (length < 0) {
14831483
fromStart = false; // negative lengths mean start calculation from end point
14841484
length = -length; // absolute value

dist/geometry.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.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 & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! JointJS v2.1.0 (2018-04-26) - JavaScript diagramming library
1+
/*! JointJS v2.1.1 (2018-05-07) - JavaScript diagramming library
22

33

44
This Source Code Form is subject to the terms of the Mozilla Public
@@ -1886,7 +1886,7 @@ var g = (function() {
18861886
var start = this.start;
18871887
var end = this.end;
18881888

1889-
fromStart = true;
1889+
var fromStart = true;
18901890
if (length < 0) {
18911891
fromStart = false; // negative lengths mean start calculation from end point
18921892
length = -length; // absolute value
@@ -7745,7 +7745,7 @@ V = Vectorizer = (function() {
77457745

77467746
var joint = {
77477747

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

77507750
config: {
77517751
// The class name prefix config is for advanced use only.
@@ -14376,7 +14376,7 @@ joint.dia.Link = joint.dia.Cell.extend({
1437614376

1437714377
// getter
1437814378
if (name === undefined) {
14379-
router = this.get('router');
14379+
var router = this.get('router');
1438014380
if (!router) {
1438114381
if (this.get('manhattan')) return { name: 'orthogonal' }; // backwards compatibility
1438214382
return null;
@@ -14397,7 +14397,7 @@ joint.dia.Link = joint.dia.Cell.extend({
1439714397

1439814398
// getter
1439914399
if (name === undefined) {
14400-
connector = this.get('connector');
14400+
var connector = this.get('connector');
1440114401
if (!connector) {
1440214402
if (this.get('smooth')) return { name: 'smooth' }; // backwards compatibility
1440314403
return null;
@@ -23089,7 +23089,7 @@ joint.connectors.jumpover = (function(_, g, util) {
2308923089
joint.layout.PortLabel = {
2309023090

2309123091
manual: function(portPosition, elBBox, opt) {
23092-
return labelAttributes(opt, portPosition)
23092+
return labelAttributes(opt, elBBox);
2309323093
},
2309423094

2309523095
left: function(portPosition, elBBox, opt) {
@@ -23352,7 +23352,9 @@ joint.highlighters.stroke = {
2335223352

2335323353
if (ref instanceof Element) {
2335423354
var refView = this.paper.findView(ref);
23355-
var refPoint = refView.getNodeBBox(ref).center();
23355+
var refPoint = (refView)
23356+
? refView.getNodeBBox(ref).center()
23357+
: new g.Point()
2335623358

2335723359
return fn.call(this, view, magnet, refPoint, opt)
2335823360
}

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: 7 additions & 7 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.0 (2018-04-26) - JavaScript diagramming library
1+
/*! JointJS v2.1.1 (2018-05-07) - 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 & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! JointJS v2.1.0 (2018-04-26) - JavaScript diagramming library
1+
/*! JointJS v2.1.1 (2018-05-07) - JavaScript diagramming library
22

33

44
This Source Code Form is subject to the terms of the Mozilla Public
@@ -1886,7 +1886,7 @@ var g = (function() {
18861886
var start = this.start;
18871887
var end = this.end;
18881888

1889-
fromStart = true;
1889+
var fromStart = true;
18901890
if (length < 0) {
18911891
fromStart = false; // negative lengths mean start calculation from end point
18921892
length = -length; // absolute value
@@ -7745,7 +7745,7 @@ V = Vectorizer = (function() {
77457745

77467746
var joint = {
77477747

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

77507750
config: {
77517751
// The class name prefix config is for advanced use only.
@@ -14376,7 +14376,7 @@ joint.dia.Link = joint.dia.Cell.extend({
1437614376

1437714377
// getter
1437814378
if (name === undefined) {
14379-
router = this.get('router');
14379+
var router = this.get('router');
1438014380
if (!router) {
1438114381
if (this.get('manhattan')) return { name: 'orthogonal' }; // backwards compatibility
1438214382
return null;
@@ -14397,7 +14397,7 @@ joint.dia.Link = joint.dia.Cell.extend({
1439714397

1439814398
// getter
1439914399
if (name === undefined) {
14400-
connector = this.get('connector');
14400+
var connector = this.get('connector');
1440114401
if (!connector) {
1440214402
if (this.get('smooth')) return { name: 'smooth' }; // backwards compatibility
1440314403
return null;
@@ -23089,7 +23089,7 @@ joint.connectors.jumpover = (function(_, g, util) {
2308923089
joint.layout.PortLabel = {
2309023090

2309123091
manual: function(portPosition, elBBox, opt) {
23092-
return labelAttributes(opt, portPosition)
23092+
return labelAttributes(opt, elBBox);
2309323093
},
2309423094

2309523095
left: function(portPosition, elBBox, opt) {
@@ -23352,7 +23352,9 @@ joint.highlighters.stroke = {
2335223352

2335323353
if (ref instanceof Element) {
2335423354
var refView = this.paper.findView(ref);
23355-
var refPoint = refView.getNodeBBox(ref).center();
23355+
var refPoint = (refView)
23356+
? refView.getNodeBBox(ref).center()
23357+
: new g.Point()
2335623358

2335723359
return fn.call(this, view, magnet, refPoint, opt)
2335823360
}

0 commit comments

Comments
 (0)