Skip to content

Commit

Permalink
21.1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgraph committed Mar 23, 2023
1 parent d4e6240 commit 788f702
Show file tree
Hide file tree
Showing 27 changed files with 4,140 additions and 3,987 deletions.
20 changes: 20 additions & 0 deletions ChangeLog
@@ -1,3 +1,23 @@
23-MAR-2023: 21.1.0

- Updates Pako compression library to 2.1.0
- Fixes inconsistent file opening in app and desktop
- Disables file compression [drawio-1724]
- Removes compression in libraries and embedded PDFs [drawio-1724]
- Fixes change of page ID [drawio-3397]

21-MAR-2023: 21.0.10

- Removes P1 plugin

21-MAR-2023: 21.0.9 Build not released nor tested

- Fixes dialog after resize in viewer and embed mode

18-MAR-2023: 21.0.8

- Fixes sequence diagram generation from mermaid

17-MAR-2023: 21.0.7

- Fixes order of image class in styles [drawio-3432]
Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
21.0.7
21.1.0
2 changes: 1 addition & 1 deletion etc/dependencies/package.json
Expand Up @@ -13,7 +13,7 @@
"perfect-freehand": "1.0.16",
"jquery": "3.6.0",
"mermaid": "9.3.0",
"pako": "2.0.3",
"pako": "2.1.0",
"crypto-js": "3.1.2",
"dompurify": "2.4.3",
"spin.js": "2.0.0",
Expand Down
1,578 changes: 792 additions & 786 deletions src/main/webapp/js/app.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/main/webapp/js/deflate/README.md
@@ -1,4 +1,4 @@
# To make pako.min.js work with IE11
# Updating (with IE 11 compatibility)

1. Get release from https://github.com/nodeca/pako/releases
2. Copy dist/pako.es5.min.js to pako.min.js
Copy https://github.com/nodeca/pako/blob/master/dist/pako.es5.min.js to
src/main/webapp/js/deflate/pako.min.js in this repository
4 changes: 2 additions & 2 deletions src/main/webapp/js/deflate/pako.min.js

Large diffs are not rendered by default.

54 changes: 51 additions & 3 deletions src/main/webapp/js/diagramly/App.js
Expand Up @@ -314,7 +314,7 @@ App.startTime = new Date();
* https://www.diagrams.net/doc/faq/supported-url-parameters
*/
App.pluginRegistry = {'4xAKTrabTpTzahoLthkwPNUn': 'plugins/explore.js',
'ex': 'plugins/explore.js', 'p1': 'plugins/p1.js',
'ex': 'plugins/explore.js',
'ac': 'plugins/connect.js', 'acj': 'plugins/connectJira.js',
'ac148': 'plugins/cConf-1-4-8.js', 'ac148cmnt': 'plugins/cConf-comments.js',
'nxtcld': 'plugins/nextcloud.js',
Expand Down Expand Up @@ -4793,6 +4793,48 @@ App.prototype.getPeerForMode = function(mode)
}
};

/**
* Translates this point by the given vector.
*
* @param {number} dx X-coordinate of the translation.
* @param {number} dy Y-coordinate of the translation.
*/
App.prototype.uncompressPages = function(data)
{
if (data != null)
{
try
{
var doc = mxUtils.parseXml(data);

if (doc.documentElement.nodeName == 'mxfile')
{
var diagrams = doc.documentElement.getElementsByTagName('diagram');

for (var i = 0; i < diagrams.length; i++)
{
var node = Editor.parseDiagramNode(diagrams[i], true);

// Replaces text content with XML
if (node != null)
{
mxUtils.setTextContent(diagrams[i], '');
diagrams[i].appendChild(node);
}
}

data = mxUtils.getPrettyXml(doc.documentElement);
}
}
catch (e)
{
// fallback to input data in case of error
}
}

return data;
};

/**
* Translates this point by the given vector.
*
Expand All @@ -4806,7 +4848,13 @@ App.prototype.createFile = function(title, data, libs, mode, done, replace, fold
if (title != null && this.spinner.spin(document.body, mxResources.get('inserting')))
{
data = (data != null) ? data : this.emptyDiagramXml;


// Decompresses existing content
if (data != null && !Editor.defaultCompressed)
{
data = this.uncompressPages(data);
}

var complete = mxUtils.bind(this, function()
{
this.spinner.stop();
Expand Down Expand Up @@ -5066,7 +5114,7 @@ App.prototype.fileCreated = function(file, libs, replace, done, clibs, success)
fn2();
}
});

// Updates data in memory for local files
if (file.constructor == LocalFile)
{
Expand Down
4 changes: 2 additions & 2 deletions src/main/webapp/js/diagramly/Dialogs.js
Expand Up @@ -3225,7 +3225,7 @@ var NewDialog = function(editorUi, compact, showName, callback, createOnly, canc
{
var content = document.createElement('div');
content.style.position = 'absolute';
content.style.overflow = 'hidden';
content.style.overflow = 'visible';
content.style.left = '8px';
content.style.right = '8px';
content.style.bottom = '8px';
Expand Down Expand Up @@ -12947,7 +12947,7 @@ var FilePropertiesDialog = function(editorUi)
else if (!/(\.html)$/i.test(filename) &&
!/(\.svg)$/i.test(filename))
{
var initialCompressed = (file != null) ? file.isCompressed() : Editor.compressXml;
var initialCompressed = (file != null) ? file.isCompressed() : Editor.defaultCompressed;

row = document.createElement('tr');
td = document.createElement('td');
Expand Down

0 comments on commit 788f702

Please sign in to comment.