Skip to content

Commit

Permalink
Release v3.5.3 (#1629)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumilingus authored Feb 21, 2022
1 parent 3de68a9 commit b2dfffa
Show file tree
Hide file tree
Showing 37 changed files with 136 additions and 71 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
21-02-2022 (v3.5.3)
* dia.attributes - prevent redundant network requests when `href` in use
* connectionStrategies.pinRelative - reduce rounding errors

09-02-2022 (v3.5.2)
* dia.LinkView - backwards compatible extensibility
* dia.attributes - fix `x` attribute for multiline text wrap when `calc()` in use
Expand Down
2 changes: 1 addition & 1 deletion dist/geometry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v3.5.2 (2022-02-09) - JavaScript diagramming library
/*! JointJS v3.5.3 (2022-02-21) - 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/geometry.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.core.css

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

33 changes: 25 additions & 8 deletions dist/joint.core.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v3.5.2 (2022-02-09) - JavaScript diagramming library
/*! JointJS v3.5.3 (2022-02-21) - JavaScript diagramming library


This Source Code Form is subject to the terms of the Mozilla Public
Expand Down Expand Up @@ -12478,6 +12478,14 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
};
}

function setIfChangedWrapper(attribute) {
return function setIfChanged(value, _, node) {
var vel = V(node);
if (vel.attr(attribute) === value) { return; }
vel.attr(attribute, value);
};
}

function isTextInUse(_value, _node, attrs) {
return (attrs.text !== undefined);
}
Expand Down Expand Up @@ -12519,10 +12527,6 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.

var attributesNS = {

xlinkHref: {
set: 'xlink:href'
},

xlinkShow: {
set: 'xlink:show'
},
Expand Down Expand Up @@ -12579,6 +12583,14 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
set: 'externalResourceRequired'
},

href: {
set: setIfChangedWrapper('href')
},

xlinkHref: {
set: setIfChangedWrapper('xlink:href')
},

filter: {
qualify: isPlainObject,
set: function(filter) {
Expand Down Expand Up @@ -12954,6 +12966,8 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
}
};

attributesNS['xlink:href'] = attributesNS.xlinkHref;

// Support `calc()` with the following SVG attributes
[
'transform', // g
Expand Down Expand Up @@ -21660,10 +21674,13 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
boundary: boundary
});

function abs2rel(value, max) {
function abs2rel(absolute, max) {

if (max === 0) { return '0%'; }
return Math.round(value / max * 100) + '%';
// round to 3 decimal places
var dp = 1000;
var relative = Math.round(absolute / max * 100 * dp) / dp;
return (relative + "%");
}

function pin(relative) {
Expand Down Expand Up @@ -31571,7 +31588,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
Control: Control
});

var version = "3.5.2";
var version = "3.5.3";

var Vectorizer = V;
var layout = { PortLabel: PortLabel, Port: Port };
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.

6 changes: 4 additions & 2 deletions dist/joint.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v3.5.2 (2022-02-09) - JavaScript diagramming library
/*! JointJS v3.5.3 (2022-02-21) - JavaScript diagramming library
This Source Code Form is subject to the terms of the Mozilla Public
Expand Down Expand Up @@ -1099,7 +1099,7 @@ interface VStatic {

isSVGGraphicsElement(value: any): boolean;

createSVGMatrix(matrix: SVGMatrix | Partial<Vectorizer.Matrix>): SVGMatrix;
createSVGMatrix(matrix?: SVGMatrix | Partial<Vectorizer.Matrix>): SVGMatrix;

createSVGTransform(matrix?: SVGMatrix | Partial<Vectorizer.Matrix>): SVGTransform;

Expand Down Expand Up @@ -2643,6 +2643,8 @@ export namespace dia {

setDimensions(width: Paper.Dimension, height: Paper.Dimension): void;

setGrid(opt?: boolean | string | Paper.GridOptions | Paper.GridOptions[]): this;

setGridSize(gridSize: number): this;

setInteractivity(value: any): void;
Expand Down
33 changes: 25 additions & 8 deletions dist/joint.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v3.5.2 (2022-02-09) - JavaScript diagramming library
/*! JointJS v3.5.3 (2022-02-21) - JavaScript diagramming library


This Source Code Form is subject to the terms of the Mozilla Public
Expand Down Expand Up @@ -12619,6 +12619,14 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
};
}

function setIfChangedWrapper(attribute) {
return function setIfChanged(value, _, node) {
var vel = V(node);
if (vel.attr(attribute) === value) { return; }
vel.attr(attribute, value);
};
}

function isTextInUse(_value, _node, attrs) {
return (attrs.text !== undefined);
}
Expand Down Expand Up @@ -12660,10 +12668,6 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.

var attributesNS = {

xlinkHref: {
set: 'xlink:href'
},

xlinkShow: {
set: 'xlink:show'
},
Expand Down Expand Up @@ -12720,6 +12724,14 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
set: 'externalResourceRequired'
},

href: {
set: setIfChangedWrapper('href')
},

xlinkHref: {
set: setIfChangedWrapper('xlink:href')
},

filter: {
qualify: isPlainObject,
set: function(filter) {
Expand Down Expand Up @@ -13095,6 +13107,8 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
}
};

attributesNS['xlink:href'] = attributesNS.xlinkHref;

// Support `calc()` with the following SVG attributes
[
'transform', // g
Expand Down Expand Up @@ -31670,10 +31684,13 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
uml: uml
});

function abs2rel(value, max) {
function abs2rel(absolute, max) {

if (max === 0) { return '0%'; }
return Math.round(value / max * 100) + '%';
// round to 3 decimal places
var dp = 1000;
var relative = Math.round(absolute / max * 100 * dp) / dp;
return (relative + "%");
}

function pin(relative) {
Expand Down Expand Up @@ -33147,7 +33164,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
Control: Control
});

var version = "3.5.2";
var version = "3.5.3";

var Vectorizer = V;
var layout = { PortLabel: PortLabel, Port: Port };
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.5.2 (2022-02-09) - JavaScript diagramming library
/*! JointJS v3.5.3 (2022-02-21) - 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.

33 changes: 25 additions & 8 deletions dist/joint.nowrap.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v3.5.2 (2022-02-09) - JavaScript diagramming library
/*! JointJS v3.5.3 (2022-02-21) - JavaScript diagramming library


This Source Code Form is subject to the terms of the Mozilla Public
Expand Down Expand Up @@ -12616,6 +12616,14 @@ var joint = (function (exports, Backbone, _, $) {
};
}

function setIfChangedWrapper(attribute) {
return function setIfChanged(value, _, node) {
var vel = V(node);
if (vel.attr(attribute) === value) { return; }
vel.attr(attribute, value);
};
}

function isTextInUse(_value, _node, attrs) {
return (attrs.text !== undefined);
}
Expand Down Expand Up @@ -12657,10 +12665,6 @@ var joint = (function (exports, Backbone, _, $) {

var attributesNS = {

xlinkHref: {
set: 'xlink:href'
},

xlinkShow: {
set: 'xlink:show'
},
Expand Down Expand Up @@ -12717,6 +12721,14 @@ var joint = (function (exports, Backbone, _, $) {
set: 'externalResourceRequired'
},

href: {
set: setIfChangedWrapper('href')
},

xlinkHref: {
set: setIfChangedWrapper('xlink:href')
},

filter: {
qualify: isPlainObject,
set: function(filter) {
Expand Down Expand Up @@ -13092,6 +13104,8 @@ var joint = (function (exports, Backbone, _, $) {
}
};

attributesNS['xlink:href'] = attributesNS.xlinkHref;

// Support `calc()` with the following SVG attributes
[
'transform', // g
Expand Down Expand Up @@ -31667,10 +31681,13 @@ var joint = (function (exports, Backbone, _, $) {
uml: uml
});

function abs2rel(value, max) {
function abs2rel(absolute, max) {

if (max === 0) { return '0%'; }
return Math.round(value / max * 100) + '%';
// round to 3 decimal places
var dp = 1000;
var relative = Math.round(absolute / max * 100 * dp) / dp;
return (relative + "%");
}

function pin(relative) {
Expand Down Expand Up @@ -33144,7 +33161,7 @@ var joint = (function (exports, Backbone, _, $) {
Control: Control
});

var version = "3.5.2";
var version = "3.5.3";

var Vectorizer = V;
var layout = { PortLabel: PortLabel, Port: Port };
Expand Down
4 changes: 2 additions & 2 deletions dist/joint.nowrap.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/joint.shapes.chess.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.chess.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.shapes.devs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v3.5.2 (2022-02-09) - JavaScript diagramming library
/*! JointJS v3.5.3 (2022-02-21) - 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.shapes.devs.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.shapes.erd.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v3.5.2 (2022-02-09) - JavaScript diagramming library
/*! JointJS v3.5.3 (2022-02-21) - 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.shapes.erd.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.shapes.fsa.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v3.5.2 (2022-02-09) - JavaScript diagramming library
/*! JointJS v3.5.3 (2022-02-21) - 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.shapes.fsa.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.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.logic.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.shapes.org.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v3.5.2 (2022-02-09) - JavaScript diagramming library
/*! JointJS v3.5.3 (2022-02-21) - 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.shapes.org.min.js

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

Loading

0 comments on commit b2dfffa

Please sign in to comment.