Skip to content

Commit

Permalink
22.1.14 release
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgraph committed Dec 27, 2023
1 parent b8706d4 commit 8f00931
Show file tree
Hide file tree
Showing 13 changed files with 246 additions and 232 deletions.
11 changes: 11 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
27-DEC-2023: 21.1.14

- Fixes this.isVisioFilename undefined in Editor.js
- Fixes mxSettings is undefined [DID-10370]
- Fixes NPE for minified freehand code in production build

27-DEC-2023: 21.1.13

- Fixes "Add tag" dialog title clipped [drawio-desktop-1537]
- Increases maximumFileSizeToCacheInBytes to 10MB [DID-10317]

26-DEC-2023: 21.1.12

- Handles possible empty content in GitHub [drawio-4045]
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22.1.12
22.1.14
192 changes: 96 additions & 96 deletions src/main/webapp/js/app.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main/webapp/js/diagramly/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -4669,7 +4669,7 @@ App.prototype.loadTemplate = function(url, onload, onerror, templateFilename, as
var realUrl = url;
var filterFn = (templateFilename != null) ? templateFilename : url;
var binary = /\.png$/i.test(filterFn) || /\.pdf$/i.test(filterFn);
var isVisioFilename = this.isVisioFilename(filterFn);
var isVisioFilename = EditorUi.isVisioFilename(filterFn);

if (!this.editor.isCorsEnabledForUrl(realUrl))
{
Expand Down
6 changes: 3 additions & 3 deletions src/main/webapp/js/diagramly/Dialogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -9580,9 +9580,9 @@ var TagsWindow = function(editorUi, x, y, w, h)
}
}
}
}, mxResources.get('enterValue') + ' (' + mxResources.get('tags') + ')');
}, mxResources.get('enterValue') + ' (' + mxResources.get('tags') + ')', null, null, null, null, null, null, null, 105);

editorUi.showDialog(dlg.container, 300, 80, true, true);
editorUi.showDialog(dlg.container, 320, 80, true, true);
dlg.init();
}
}, helpButton);
Expand Down Expand Up @@ -11604,7 +11604,7 @@ var LibraryDialog = function(editorUi, name, library, initialImages, file, mode,
{
return function(data, mimeType, x, y, w, h, img, doneFn, file)
{
if (file != null && editorUi.isVisioFilename(file.name))
if (file != null && EditorUi.isVisioFilename(file.name))
{
editorUi.importVisio(file, mxUtils.bind(this, function(xml)
{
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/js/diagramly/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -2772,7 +2772,7 @@
/app\.diagrams\.net$/.test(window.location.hostname)) &&
!this.isCorsEnabledForUrl(url))
{
var isVisioFilename = this.isVisioFilename(url);
var isVisioFilename = EditorUi.isVisioFilename(url);
var binary = /\.png$/i.test(url) || /\.pdf$/i.test(url);
var base64 = binary || isVisioFilename;
var nocache = 't=' + new Date().getTime();
Expand Down
17 changes: 10 additions & 7 deletions src/main/webapp/js/diagramly/EditorUi.js
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@
/**
* Returns true if the given binary data is a Visio file.
*/
EditorUi.prototype.isVisioFilename = function(filename)
EditorUi.isVisioFilename = function(filename)
{
return (/(\.v(dx|sdx?))($|\?)/i.test(filename) ||
/(\.vs(x|sx?))($|\?)/i.test(filename));
Expand Down Expand Up @@ -3949,7 +3949,7 @@
}
});

if (file != null && img != null && this.isVisioFilename(img))
if (file != null && img != null && EditorUi.isVisioFilename(img))
{
this.importVisio(file, function(xml)
{
Expand Down Expand Up @@ -9475,7 +9475,7 @@

this.importGraphML(data, handleResult);
}
else if (file != null && filename != null && this.isVisioFilename(filename))
else if (file != null && filename != null && EditorUi.isVisioFilename(filename))
{
// LATER: done and async are a hack before making this asynchronous
async = true;
Expand Down Expand Up @@ -9940,7 +9940,7 @@
});

// Handles special cases
if (this.isVisioFilename(file.name))
if (EditorUi.isVisioFilename(file.name))
{
fn(null, file.type, x + index * gs, y + index * gs, 240, 160, file.name, function(cells)
{
Expand Down Expand Up @@ -10243,8 +10243,11 @@

editorUiCreateUi.apply(this, arguments);

this.doSetSketchMode((mxSettings.settings.sketchMode != null && urlParams['rough'] == null &&
urlParams['sketch'] == null) ? mxSettings.settings.sketchMode : this.getDefaultSketchMode());
if (Editor.isSettingsEnabled())
{
this.doSetSketchMode((mxSettings.settings.sketchMode != null && urlParams['rough'] == null &&
urlParams['sketch'] == null) ? mxSettings.settings.sketchMode : this.getDefaultSketchMode());
}
};

/**
Expand Down Expand Up @@ -14645,7 +14648,7 @@
}
});

if (this.isVisioFilename(name))
if (EditorUi.isVisioFilename(name))
{
this.importVisio(file, mxUtils.bind(this, function(xml)
{
Expand Down
192 changes: 96 additions & 96 deletions src/main/webapp/js/integrate.min.js

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions src/main/webapp/js/viewer-static.min.js

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions src/main/webapp/js/viewer.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main/webapp/mxgraph/mxClient.js

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

2 changes: 1 addition & 1 deletion src/main/webapp/service-worker.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main/webapp/service-worker.js.map

Large diffs are not rendered by default.

0 comments on commit 8f00931

Please sign in to comment.