Skip to content

Commit c627dcd

Browse files
authored
Release v3.6.2 (#1852)
1 parent e0636ed commit c627dcd

37 files changed

+17643
-91
lines changed

CHANGELOG

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
20-10-2022 (v3.6.2)
2+
3+
* dia.Cell: fix `isEmbeddedIn()` with `deep` option set to `false`
4+
* util.svg: support embedded expressions
5+
* util.svg: prevent `className` set to `null`
6+
17
14-10-2022 (v3.6.1)
28

39
* util.breakText: prevent infinite loop when using `preserveSpaces`

dist/geometry.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! JointJS v3.6.1 (2022-10-14) - JavaScript diagramming library
1+
/*! JointJS v3.6.2 (2022-10-21) - JavaScript diagramming library
22
33
44
This Source Code Form is subject to the terms of the Mozilla Public

dist/geometry.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.core.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.core.js

+17-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! JointJS v3.6.1 (2022-10-14) - JavaScript diagramming library
1+
/*! JointJS v3.6.2 (2022-10-21) - JavaScript diagramming library
22

33

44
This Source Code Form is subject to the terms of the Mozilla Public
@@ -13610,7 +13610,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
1361013610
var cellId = isString(cell) ? cell : cell.id;
1361113611
var parentId = this.parent();
1361213612

13613-
opt = defaults({ deep: true }, opt);
13613+
opt = assign({ deep: true }, opt);
1361413614

1361513615
// See getEmbeddedCells().
1361613616
if (this.graph && opt.deep) {
@@ -14120,7 +14120,17 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
1412014120
};
1412114121

1412214122
function svg(strings) {
14123-
var markup = parseFromSVGString(strings[0]);
14123+
var expressions = [], len = arguments.length - 1;
14124+
while ( len-- > 0 ) expressions[ len ] = arguments[ len + 1 ];
14125+
14126+
var svgParts = [];
14127+
strings.forEach(function (part, index) {
14128+
svgParts.push(part);
14129+
if (index in expressions) {
14130+
svgParts.push(expressions[index]);
14131+
}
14132+
});
14133+
var markup = parseFromSVGString(svgParts.join(''));
1412414134
return markup;
1412514135
}
1412614136

@@ -14173,7 +14183,9 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
1417314183
}
1417414184

1417514185
var className = attributes.getNamedItem('class');
14176-
markupNode.className = (className ? className.value : null);
14186+
if (className) {
14187+
markupNode.className = className.value;
14188+
}
1417714189

1417814190
if (textContent) {
1417914191
markupNode.textContent = textContent;
@@ -32724,7 +32736,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
3272432736
Control: Control
3272532737
});
3272632738

32727-
var version = "3.6.1";
32739+
var version = "3.6.2";
3272832740

3272932741
var Vectorizer = V;
3273032742
var layout = { PortLabel: PortLabel, Port: Port };

dist/joint.core.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.core.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! JointJS v3.6.1 (2022-10-14) - JavaScript diagramming library
1+
/*! JointJS v3.6.2 (2022-10-21) - JavaScript diagramming library
22
33
44
This Source Code Form is subject to the terms of the Mozilla Public
@@ -4009,7 +4009,7 @@ export namespace util {
40094009

40104010
export function uuid(): string;
40114011

4012-
export function svg(strings: TemplateStringsArray): dia.MarkupJSON;
4012+
export function svg(strings: TemplateStringsArray, ...expressions: any): dia.MarkupJSON;
40134013

40144014
export function guid(obj?: { [key: string]: any }): string;
40154015

dist/joint.js

+17-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! JointJS v3.6.1 (2022-10-14) - JavaScript diagramming library
1+
/*! JointJS v3.6.2 (2022-10-21) - JavaScript diagramming library
22

33

44
This Source Code Form is subject to the terms of the Mozilla Public
@@ -13754,7 +13754,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
1375413754
var cellId = isString(cell) ? cell : cell.id;
1375513755
var parentId = this.parent();
1375613756

13757-
opt = defaults({ deep: true }, opt);
13757+
opt = assign({ deep: true }, opt);
1375813758

1375913759
// See getEmbeddedCells().
1376013760
if (this.graph && opt.deep) {
@@ -14264,7 +14264,17 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
1426414264
};
1426514265

1426614266
function svg(strings) {
14267-
var markup = parseFromSVGString(strings[0]);
14267+
var expressions = [], len = arguments.length - 1;
14268+
while ( len-- > 0 ) expressions[ len ] = arguments[ len + 1 ];
14269+
14270+
var svgParts = [];
14271+
strings.forEach(function (part, index) {
14272+
svgParts.push(part);
14273+
if (index in expressions) {
14274+
svgParts.push(expressions[index]);
14275+
}
14276+
});
14277+
var markup = parseFromSVGString(svgParts.join(''));
1426814278
return markup;
1426914279
}
1427014280

@@ -14317,7 +14327,9 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
1431714327
}
1431814328

1431914329
var className = attributes.getNamedItem('class');
14320-
markupNode.className = (className ? className.value : null);
14330+
if (className) {
14331+
markupNode.className = className.value;
14332+
}
1432114333

1432214334
if (textContent) {
1432314335
markupNode.textContent = textContent;
@@ -34296,7 +34308,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
3429634308
Control: Control
3429734309
});
3429834310

34299-
var version = "3.6.1";
34311+
var version = "3.6.2";
3430034312

3430134313
var Vectorizer = V;
3430234314
var layout = { PortLabel: PortLabel, Port: Port };

dist/joint.layout.DirectedGraph.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! JointJS v3.6.1 (2022-10-14) - JavaScript diagramming library
1+
/*! JointJS v3.6.2 (2022-10-21) - JavaScript diagramming library
22
33
44
This Source Code Form is subject to the terms of the Mozilla Public

dist/joint.layout.DirectedGraph.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.nowrap.js

+17-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! JointJS v3.6.1 (2022-10-14) - JavaScript diagramming library
1+
/*! JointJS v3.6.2 (2022-10-21) - JavaScript diagramming library
22

33

44
This Source Code Form is subject to the terms of the Mozilla Public
@@ -13751,7 +13751,7 @@ var joint = (function (exports, Backbone, _, $) {
1375113751
var cellId = isString(cell) ? cell : cell.id;
1375213752
var parentId = this.parent();
1375313753

13754-
opt = defaults({ deep: true }, opt);
13754+
opt = assign({ deep: true }, opt);
1375513755

1375613756
// See getEmbeddedCells().
1375713757
if (this.graph && opt.deep) {
@@ -14261,7 +14261,17 @@ var joint = (function (exports, Backbone, _, $) {
1426114261
};
1426214262

1426314263
function svg(strings) {
14264-
var markup = parseFromSVGString(strings[0]);
14264+
var expressions = [], len = arguments.length - 1;
14265+
while ( len-- > 0 ) expressions[ len ] = arguments[ len + 1 ];
14266+
14267+
var svgParts = [];
14268+
strings.forEach(function (part, index) {
14269+
svgParts.push(part);
14270+
if (index in expressions) {
14271+
svgParts.push(expressions[index]);
14272+
}
14273+
});
14274+
var markup = parseFromSVGString(svgParts.join(''));
1426514275
return markup;
1426614276
}
1426714277

@@ -14314,7 +14324,9 @@ var joint = (function (exports, Backbone, _, $) {
1431414324
}
1431514325

1431614326
var className = attributes.getNamedItem('class');
14317-
markupNode.className = (className ? className.value : null);
14327+
if (className) {
14328+
markupNode.className = className.value;
14329+
}
1431814330

1431914331
if (textContent) {
1432014332
markupNode.textContent = textContent;
@@ -34293,7 +34305,7 @@ var joint = (function (exports, Backbone, _, $) {
3429334305
Control: Control
3429434306
});
3429534307

34296-
var version = "3.6.1";
34308+
var version = "3.6.2";
3429734309

3429834310
var Vectorizer = V;
3429934311
var layout = { PortLabel: PortLabel, Port: Port };

dist/joint.nowrap.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.shapes.chess.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.shapes.chess.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.shapes.devs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! JointJS v3.6.1 (2022-10-14) - JavaScript diagramming library
1+
/*! JointJS v3.6.2 (2022-10-21) - JavaScript diagramming library
22
33
44
This Source Code Form is subject to the terms of the Mozilla Public

dist/joint.shapes.devs.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.shapes.erd.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! JointJS v3.6.1 (2022-10-14) - JavaScript diagramming library
1+
/*! JointJS v3.6.2 (2022-10-21) - JavaScript diagramming library
22
33
44
This Source Code Form is subject to the terms of the Mozilla Public

dist/joint.shapes.erd.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.shapes.fsa.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! JointJS v3.6.1 (2022-10-14) - JavaScript diagramming library
1+
/*! JointJS v3.6.2 (2022-10-21) - JavaScript diagramming library
22
33
44
This Source Code Form is subject to the terms of the Mozilla Public

dist/joint.shapes.fsa.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.shapes.logic.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.shapes.logic.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.shapes.org.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! JointJS v3.6.1 (2022-10-14) - JavaScript diagramming library
1+
/*! JointJS v3.6.2 (2022-10-21) - JavaScript diagramming library
22
33
44
This Source Code Form is subject to the terms of the Mozilla Public

dist/joint.shapes.org.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.shapes.pn.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! JointJS v3.6.1 (2022-10-14) - JavaScript diagramming library
1+
/*! JointJS v3.6.2 (2022-10-21) - JavaScript diagramming library
22
33
44
This Source Code Form is subject to the terms of the Mozilla Public

dist/joint.shapes.pn.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/joint.shapes.uml.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! JointJS v3.6.1 (2022-10-14) - JavaScript diagramming library
1+
/*! JointJS v3.6.2 (2022-10-21) - JavaScript diagramming library
22
33
44
This Source Code Form is subject to the terms of the Mozilla Public

dist/joint.shapes.uml.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vectorizer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! JointJS v3.6.1 (2022-10-14) - JavaScript diagramming library
1+
/*! JointJS v3.6.2 (2022-10-21) - JavaScript diagramming library
22
33
44
This Source Code Form is subject to the terms of the Mozilla Public

dist/vectorizer.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/version.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
var version = "3.6.1";
1+
var version = "3.6.2";
22

33
export { version };

0 commit comments

Comments
 (0)