Skip to content

Commit

Permalink
Release v3.4.2 (#1515)
Browse files Browse the repository at this point in the history
  • Loading branch information
kumilingus authored Sep 6, 2021
1 parent e5bf89e commit f42a9bf
Show file tree
Hide file tree
Showing 37 changed files with 109 additions and 57 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
06-09-2021 (v3.4.2)
* dia.CellView - update typings for ES6 class extension
* dia.Cell - fix toJSON() when defaults() is defined as a method
* util - prevent prototype pollution in `setByPath()`
* Vectorizer - fix multi-line text line heights when 100% of the line is annotated

18-08-2021 (v3.4.1)
* dia.ElementView - prevent unnecessary re-parenting after invalid un-embedding
* dia.CellView - support calc() in `transform` attribute
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.4.1 (2021-08-18) - JavaScript diagramming library
/*! JointJS v3.4.2 (2021-09-06) - 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.

14 changes: 9 additions & 5 deletions dist/joint.core.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v3.4.1 (2021-08-18) - JavaScript diagramming library
/*! JointJS v3.4.2 (2021-09-06) - JavaScript diagramming library


This Source Code Form is subject to the terms of the Mozilla Public
Expand Down Expand Up @@ -7691,7 +7691,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
if (includeAnnotationIndices) { vTSpan.attr('annotations', annotation.annotations); }
// Check for max font size
fontSize = parseFloat(annotationAttrs['font-size']);
if (fontSize === undefined) { fontSize = baseSize; }
if (!isFinite(fontSize)) { fontSize = baseSize; }
if (fontSize && fontSize > maxFontSize) { maxFontSize = fontSize; }
} else {
if (eol && j === lastJ) { annotation += eol; }
Expand Down Expand Up @@ -9900,6 +9900,9 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
var isGetSafe = function(obj, key) {
// Prevent prototype pollution
// https://snyk.io/vuln/SNYK-JS-JSON8MERGEPATCH-1038399
if (typeof key !== 'string' && typeof key !== 'number') {
key = String(key);
}
if (key === 'constructor' && typeof obj[key] === 'function') {
return false;
}
Expand Down Expand Up @@ -12288,12 +12291,13 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.

toJSON: function() {

var defaultAttrs = this.constructor.prototype.defaults.attrs || {};
var defaults = result(this.constructor.prototype, 'defaults');
var defaultAttrs = defaults.attrs || {};
var attrs = this.attributes.attrs;
var finalAttrs = {};

// Loop through all the attributes and
// omit the default attributes as they are implicitly reconstructable by the cell 'type'.
// omit the default attributes as they are implicitly reconstructible by the cell 'type'.
forIn(attrs, function(attr, selector) {

var defaultAttr = defaultAttrs[selector];
Expand Down Expand Up @@ -29766,7 +29770,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
Boundary: Boundary
});

var version = "3.4.1";
var version = "3.4.2";

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.

44 changes: 39 additions & 5 deletions dist/joint.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v3.4.1 (2021-08-18) - JavaScript diagramming library
/*! JointJS v3.4.2 (2021-09-06) - JavaScript diagramming library
This Source Code Form is subject to the terms of the Mozilla Public
Expand All @@ -24,6 +24,7 @@ export as namespace joint;

export namespace g {

export type Shape = Path | Point | Line | Polyline | Rect | Ellipse;
export interface PlainPoint {

x: number;
Expand Down Expand Up @@ -947,6 +948,8 @@ export class Vectorizer {

findIntersection(ref: g.PlainPoint, target: SVGElement | Vectorizer): g.PlainPoint | undefined;

toGeometryShape(): g.Shape;

private setAttributes(attrs: { [key: string]: any }): this;

private setAttribute(name: string, value: string): this;
Expand Down Expand Up @@ -1657,6 +1660,15 @@ export namespace dia {

type FlagLabel = string | string[];
type PresentationAttributes = { [key: string]: FlagLabel };

type NodeData = { [key: string]: any };

type NodeMetrics = {
data: NodeData;
boundingRect: g.Rect;
magnetMatrix: SVGMatrix;
geometryShape: g.Shape;
}
}

abstract class CellViewGeneric<T extends Cell> extends mvc.View<T> {
Expand All @@ -1665,9 +1677,9 @@ export namespace dia {

paper: Paper | null;

initFlag: CellView.FlagLabel;
initFlag(): CellView.FlagLabel;

presentationAttributes: CellView.PresentationAttributes;
presentationAttributes(): CellView.PresentationAttributes;

highlight(el?: SVGElement | JQuery | string, opt?: { [key: string]: any }): this;

Expand Down Expand Up @@ -1757,11 +1769,21 @@ export namespace dia {

protected onmagnet(evt: dia.Event, x: number, y: number): void;

static addPresentationAttributes(attributes: CellView.PresentationAttributes): CellView.PresentationAttributes;

protected getLinkEnd(magnet: SVGElement, x: number, y: number, link: dia.Link, endType: dia.LinkEnd): dia.Link.EndJSON;

protected getMagnetFromLinkEnd(end: dia.Link.EndJSON): SVGElement;

protected customizeLinkEnd(end: dia.Link.EndJSON, magnet: SVGElement, x: number, y: number, link: dia.Link, endType: dia.LinkEnd): dia.Link.EndJSON;

protected cleanNodesCache(): void;

protected nodeCache(magnet: SVGElement): CellView.NodeMetrics;

protected getNodeData(magnet: SVGElement): CellView.NodeData;

protected getNodeShape(magnet: SVGElement): g.Shape;

static addPresentationAttributes(attributes: CellView.PresentationAttributes): CellView.PresentationAttributes;
}

class CellView extends CellViewGeneric<Cell> {
Expand Down Expand Up @@ -1806,6 +1828,18 @@ export namespace dia {

protected renderStringMarkup(markup: string): void;

protected updateTransformation(): void;

protected resize(): void;

protected translate(): void;

protected rotate(): void;

protected getTranslateString(): string;

protected getRotateString(): string;

protected dragStart(evt: dia.Event, x: number, y: number): void;

protected dragMagnetStart(evt: dia.Event, x: number, y: number): void;
Expand Down
14 changes: 9 additions & 5 deletions dist/joint.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v3.4.1 (2021-08-18) - JavaScript diagramming library
/*! JointJS v3.4.2 (2021-09-06) - JavaScript diagramming library


This Source Code Form is subject to the terms of the Mozilla Public
Expand Down Expand Up @@ -7832,7 +7832,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
if (includeAnnotationIndices) { vTSpan.attr('annotations', annotation.annotations); }
// Check for max font size
fontSize = parseFloat(annotationAttrs['font-size']);
if (fontSize === undefined) { fontSize = baseSize; }
if (!isFinite(fontSize)) { fontSize = baseSize; }
if (fontSize && fontSize > maxFontSize) { maxFontSize = fontSize; }
} else {
if (eol && j === lastJ) { annotation += eol; }
Expand Down Expand Up @@ -10041,6 +10041,9 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
var isGetSafe = function(obj, key) {
// Prevent prototype pollution
// https://snyk.io/vuln/SNYK-JS-JSON8MERGEPATCH-1038399
if (typeof key !== 'string' && typeof key !== 'number') {
key = String(key);
}
if (key === 'constructor' && typeof obj[key] === 'function') {
return false;
}
Expand Down Expand Up @@ -12429,12 +12432,13 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.

toJSON: function() {

var defaultAttrs = this.constructor.prototype.defaults.attrs || {};
var defaults = result(this.constructor.prototype, 'defaults');
var defaultAttrs = defaults.attrs || {};
var attrs = this.attributes.attrs;
var finalAttrs = {};

// Loop through all the attributes and
// omit the default attributes as they are implicitly reconstructable by the cell 'type'.
// omit the default attributes as they are implicitly reconstructible by the cell 'type'.
forIn(attrs, function(attr, selector) {

var defaultAttr = defaultAttrs[selector];
Expand Down Expand Up @@ -31335,7 +31339,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
Boundary: Boundary
});

var version = "3.4.1";
var version = "3.4.2";

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.4.1 (2021-08-18) - JavaScript diagramming library
/*! JointJS v3.4.2 (2021-09-06) - 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.

14 changes: 9 additions & 5 deletions dist/joint.nowrap.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v3.4.1 (2021-08-18) - JavaScript diagramming library
/*! JointJS v3.4.2 (2021-09-06) - JavaScript diagramming library


This Source Code Form is subject to the terms of the Mozilla Public
Expand Down Expand Up @@ -7829,7 +7829,7 @@ var joint = (function (exports, Backbone, _, $) {
if (includeAnnotationIndices) { vTSpan.attr('annotations', annotation.annotations); }
// Check for max font size
fontSize = parseFloat(annotationAttrs['font-size']);
if (fontSize === undefined) { fontSize = baseSize; }
if (!isFinite(fontSize)) { fontSize = baseSize; }
if (fontSize && fontSize > maxFontSize) { maxFontSize = fontSize; }
} else {
if (eol && j === lastJ) { annotation += eol; }
Expand Down Expand Up @@ -10038,6 +10038,9 @@ var joint = (function (exports, Backbone, _, $) {
var isGetSafe = function(obj, key) {
// Prevent prototype pollution
// https://snyk.io/vuln/SNYK-JS-JSON8MERGEPATCH-1038399
if (typeof key !== 'string' && typeof key !== 'number') {
key = String(key);
}
if (key === 'constructor' && typeof obj[key] === 'function') {
return false;
}
Expand Down Expand Up @@ -12426,12 +12429,13 @@ var joint = (function (exports, Backbone, _, $) {

toJSON: function() {

var defaultAttrs = this.constructor.prototype.defaults.attrs || {};
var defaults = result(this.constructor.prototype, 'defaults');
var defaultAttrs = defaults.attrs || {};
var attrs = this.attributes.attrs;
var finalAttrs = {};

// Loop through all the attributes and
// omit the default attributes as they are implicitly reconstructable by the cell 'type'.
// omit the default attributes as they are implicitly reconstructible by the cell 'type'.
forIn(attrs, function(attr, selector) {

var defaultAttr = defaultAttrs[selector];
Expand Down Expand Up @@ -31332,7 +31336,7 @@ var joint = (function (exports, Backbone, _, $) {
Boundary: Boundary
});

var version = "3.4.1";
var version = "3.4.2";

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.4.1 (2021-08-18) - JavaScript diagramming library
/*! JointJS v3.4.2 (2021-09-06) - 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.4.1 (2021-08-18) - JavaScript diagramming library
/*! JointJS v3.4.2 (2021-09-06) - 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.4.1 (2021-08-18) - JavaScript diagramming library
/*! JointJS v3.4.2 (2021-09-06) - 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.4.1 (2021-08-18) - JavaScript diagramming library
/*! JointJS v3.4.2 (2021-09-06) - 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.

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 v3.4.1 (2021-08-18) - JavaScript diagramming library
/*! JointJS v3.4.2 (2021-09-06) - 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.pn.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.uml.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! JointJS v3.4.1 (2021-08-18) - JavaScript diagramming library
/*! JointJS v3.4.2 (2021-09-06) - 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.uml.min.js

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

Loading

0 comments on commit f42a9bf

Please sign in to comment.