Skip to content

Commit

Permalink
build JointJS v0.9.5
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidDurman committed Sep 10, 2015
1 parent 0c82a3d commit 856121b
Show file tree
Hide file tree
Showing 24 changed files with 92 additions and 47 deletions.
2 changes: 1 addition & 1 deletion dist/geometry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v0.9.4 - JavaScript diagramming library 2015-09-08
/*! JointJS v0.9.5 - JavaScript diagramming library 2015-09-10
This Source Code Form is subject to the terms of the Mozilla Public
Expand Down
2 changes: 1 addition & 1 deletion dist/geometry.min.js

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

6 changes: 3 additions & 3 deletions dist/joint.browserify-bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/joint.core.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v0.9.4 - JavaScript diagramming library 2015-09-08
/*! JointJS v0.9.5 - JavaScript diagramming library 2015-09-10
This Source Code Form is subject to the terms of the Mozilla Public
Expand Down
27 changes: 21 additions & 6 deletions dist/joint.core.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v0.9.4 - JavaScript diagramming library 2015-09-08
/*! JointJS v0.9.5 - JavaScript diagramming library 2015-09-10
This Source Code Form is subject to the terms of the Mozilla Public
Expand Down Expand Up @@ -852,8 +852,17 @@ V = Vectorizer = (function() {
return 'v-' + id;
}

// Replace all spaces with the Unicode No-break space (http://www.fileformat.info/info/unicode/char/a0/index.htm).
// IE would otherwise collapse all spaces into one. This is used in the text() method but it is
// also exposed so that the programmer can use it in case he needs to. This is useful e.g. in tests
// when you want to compare the actual DOM text content without having to add the unicode character in
// the place of all spaces.
function sanitizeText(text) {
return (text || '').replace(/ /g, '\u00A0');
}

function isObject(o) {
return Object(o) === Object(o);
return o === Object(o);
}

function isArray(o) {
Expand Down Expand Up @@ -1176,6 +1185,9 @@ V = Vectorizer = (function() {

text: function(content, opt) {

// Replace all spaces with the Unicode No-break space (http://www.fileformat.info/info/unicode/char/a0/index.htm).
// IE would otherwise collapse all spaces into one.
content = sanitizeText(content);
opt = opt || {};
var lines = content.split('\n');
var i = 0;
Expand Down Expand Up @@ -1308,11 +1320,12 @@ V = Vectorizer = (function() {

} else {

// Make sure the textContent is never empty. If it is, add an additional
// space (an invisible character) so that following lines are correctly
// Make sure the textContent is never empty. If it is, add a dummy
// character and make it invisible, making the following lines correctly
// relatively positioned. `dy=1em` won't work with empty lines otherwise.
vLine.addClass('v-empty-line');
vLine.node.textContent = ' ';
vLine.node.style.opacity = 0;
vLine.node.textContent = '-';
}

V(textNode).append(vLine);
Expand Down Expand Up @@ -2158,6 +2171,8 @@ V = Vectorizer = (function() {
return annotations;
};

V.sanitizeText = sanitizeText;

return V;

})();
Expand All @@ -2169,7 +2184,7 @@ V = Vectorizer = (function() {

var joint = {

version: '0.9.4',
version: '0.9.5',

// `joint.dia` namespace.
dia: {},
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.

6 changes: 3 additions & 3 deletions dist/joint.core.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/joint.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v0.9.4 - JavaScript diagramming library 2015-09-08
/*! JointJS v0.9.5 - JavaScript diagramming library 2015-09-10
This Source Code Form is subject to the terms of the Mozilla Public
Expand Down
27 changes: 21 additions & 6 deletions dist/joint.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v0.9.4 - JavaScript diagramming library 2015-09-08
/*! JointJS v0.9.5 - JavaScript diagramming library 2015-09-10
This Source Code Form is subject to the terms of the Mozilla Public
Expand Down Expand Up @@ -852,8 +852,17 @@ V = Vectorizer = (function() {
return 'v-' + id;
}

// Replace all spaces with the Unicode No-break space (http://www.fileformat.info/info/unicode/char/a0/index.htm).
// IE would otherwise collapse all spaces into one. This is used in the text() method but it is
// also exposed so that the programmer can use it in case he needs to. This is useful e.g. in tests
// when you want to compare the actual DOM text content without having to add the unicode character in
// the place of all spaces.
function sanitizeText(text) {
return (text || '').replace(/ /g, '\u00A0');
}

function isObject(o) {
return Object(o) === Object(o);
return o === Object(o);
}

function isArray(o) {
Expand Down Expand Up @@ -1176,6 +1185,9 @@ V = Vectorizer = (function() {

text: function(content, opt) {

// Replace all spaces with the Unicode No-break space (http://www.fileformat.info/info/unicode/char/a0/index.htm).
// IE would otherwise collapse all spaces into one.
content = sanitizeText(content);
opt = opt || {};
var lines = content.split('\n');
var i = 0;
Expand Down Expand Up @@ -1308,11 +1320,12 @@ V = Vectorizer = (function() {

} else {

// Make sure the textContent is never empty. If it is, add an additional
// space (an invisible character) so that following lines are correctly
// Make sure the textContent is never empty. If it is, add a dummy
// character and make it invisible, making the following lines correctly
// relatively positioned. `dy=1em` won't work with empty lines otherwise.
vLine.addClass('v-empty-line');
vLine.node.textContent = ' ';
vLine.node.style.opacity = 0;
vLine.node.textContent = '-';
}

V(textNode).append(vLine);
Expand Down Expand Up @@ -2158,6 +2171,8 @@ V = Vectorizer = (function() {
return annotations;
};

V.sanitizeText = sanitizeText;

return V;

})();
Expand All @@ -2169,7 +2184,7 @@ V = Vectorizer = (function() {

var joint = {

version: '0.9.4',
version: '0.9.5',

// `joint.dia` namespace.
dia: {},
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 v0.9.4 - JavaScript diagramming library 2015-09-08
/*! JointJS v0.9.5 - JavaScript diagramming library 2015-09-10
This Source Code Form is subject to the terms of the Mozilla Public
Expand Down
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.

6 changes: 3 additions & 3 deletions dist/joint.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/joint.shapes.chess.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v0.9.4 - JavaScript diagramming library 2015-09-08
/*! JointJS v0.9.5 - JavaScript diagramming library 2015-09-10
This Source Code Form is subject to the terms of the Mozilla Public
Expand Down
2 changes: 1 addition & 1 deletion dist/joint.shapes.devs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v0.9.4 - JavaScript diagramming library 2015-09-08
/*! JointJS v0.9.5 - JavaScript diagramming library 2015-09-10
This Source Code Form is subject to the terms of the Mozilla Public
Expand Down
2 changes: 1 addition & 1 deletion dist/joint.shapes.erd.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v0.9.4 - JavaScript diagramming library 2015-09-08
/*! JointJS v0.9.5 - JavaScript diagramming library 2015-09-10
This Source Code Form is subject to the terms of the Mozilla Public
Expand Down
2 changes: 1 addition & 1 deletion dist/joint.shapes.fsa.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v0.9.4 - JavaScript diagramming library 2015-09-08
/*! JointJS v0.9.5 - JavaScript diagramming library 2015-09-10
This Source Code Form is subject to the terms of the Mozilla Public
Expand Down
2 changes: 1 addition & 1 deletion dist/joint.shapes.logic.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.shapes.org.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v0.9.4 - JavaScript diagramming library 2015-09-08
/*! JointJS v0.9.5 - JavaScript diagramming library 2015-09-10
This Source Code Form is subject to the terms of the Mozilla Public
Expand Down
2 changes: 1 addition & 1 deletion dist/joint.shapes.pn.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v0.9.4 - JavaScript diagramming library 2015-09-08
/*! JointJS v0.9.5 - JavaScript diagramming library 2015-09-10
This Source Code Form is subject to the terms of the Mozilla Public
Expand Down
2 changes: 1 addition & 1 deletion dist/joint.shapes.uml.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v0.9.4 - JavaScript diagramming library 2015-09-08
/*! JointJS v0.9.5 - JavaScript diagramming library 2015-09-10
This Source Code Form is subject to the terms of the Mozilla Public
Expand Down
6 changes: 3 additions & 3 deletions dist/joint.webpack-bundle.js

Large diffs are not rendered by default.

25 changes: 20 additions & 5 deletions dist/vectorizer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v0.9.4 - JavaScript diagramming library 2015-09-08
/*! JointJS v0.9.5 - JavaScript diagramming library 2015-09-10
This Source Code Form is subject to the terms of the Mozilla Public
Expand Down Expand Up @@ -66,8 +66,17 @@ V = Vectorizer = (function() {
return 'v-' + id;
}

// Replace all spaces with the Unicode No-break space (http://www.fileformat.info/info/unicode/char/a0/index.htm).
// IE would otherwise collapse all spaces into one. This is used in the text() method but it is
// also exposed so that the programmer can use it in case he needs to. This is useful e.g. in tests
// when you want to compare the actual DOM text content without having to add the unicode character in
// the place of all spaces.
function sanitizeText(text) {
return (text || '').replace(/ /g, '\u00A0');
}

function isObject(o) {
return Object(o) === Object(o);
return o === Object(o);
}

function isArray(o) {
Expand Down Expand Up @@ -390,6 +399,9 @@ V = Vectorizer = (function() {

text: function(content, opt) {

// Replace all spaces with the Unicode No-break space (http://www.fileformat.info/info/unicode/char/a0/index.htm).
// IE would otherwise collapse all spaces into one.
content = sanitizeText(content);
opt = opt || {};
var lines = content.split('\n');
var i = 0;
Expand Down Expand Up @@ -522,11 +534,12 @@ V = Vectorizer = (function() {

} else {

// Make sure the textContent is never empty. If it is, add an additional
// space (an invisible character) so that following lines are correctly
// Make sure the textContent is never empty. If it is, add a dummy
// character and make it invisible, making the following lines correctly
// relatively positioned. `dy=1em` won't work with empty lines otherwise.
vLine.addClass('v-empty-line');
vLine.node.textContent = ' ';
vLine.node.style.opacity = 0;
vLine.node.textContent = '-';
}

V(textNode).append(vLine);
Expand Down Expand Up @@ -1372,6 +1385,8 @@ V = Vectorizer = (function() {
return annotations;
};

V.sanitizeText = sanitizeText;

return V;

})();
Expand Down
Loading

0 comments on commit 856121b

Please sign in to comment.