Skip to content

Commit

Permalink
21.6.3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgraph committed Jul 18, 2023
1 parent 84910e5 commit 1db2c2c
Show file tree
Hide file tree
Showing 23 changed files with 3,363 additions and 7,445 deletions.
16 changes: 16 additions & 0 deletions ChangeLog
@@ -1,3 +1,19 @@
18-JUL-2023: 21.6.3

- Shift+Alt+Drag moves selection cells [drawio-3726]
- Fixes grouping of shapes with table [drawio-3725]
- Updates DOMPurify from 3.0.3 to 3.0.5
- Fixes update of page tabs after import [DID-8891]
- [conf cloud] Load main file diagram if draft unchanged and old version in macro
- Fixes Grid option in pdf export
- [jira cloud] Added support for server zip format [DFJC-18]
- [vsdx] Added support for rotated edge labels [DID-8697]
- Fixes getBoundingBoxFromGeometry for nested groups
- Fixes initial scrollbar for demo mode in simple UI
- Removes voice plugin [CSP-2113]
- Use Ctrl+Y and Ctrl+Shift+Z for redo [drawio-3733]
- Sanitizes HTML markup in labels [CSP-2113]

11-JUL-2023: 21.6.2

- Fixes application icon background color
Expand Down
13 changes: 6 additions & 7 deletions SECURITY.md
Expand Up @@ -2,13 +2,12 @@

## Supported Versions

We only accept security reports against the latest version in this repo or the version deployed to app.diagrams.net, if different.
| Version | Supported |
| -------- | ------------------ |
| Latest | :white_check_mark: |
| Older | :x: |

## Reporting a Vulnerability

Report at https://huntr.dev/bounties/disclose?target=https%3A%2F%2Fgithub.com%2Fjgraph%2Fdrawio&validSearch=true. There is a bug bounty program in place there.

## Out of scope

- Issues relating to the PlantUML integration.
- Issues relating to the www.drawio.com web site.
Email support@diagrams.net. If you do not wish to submit by email, please
ask for an alternative via email or Github issue.
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
21.6.2
21.6.3
2 changes: 1 addition & 1 deletion etc/dependencies/package.json
Expand Up @@ -15,7 +15,7 @@
"mermaid": "10.0.2",
"pako": "2.1.0",
"crypto-js": "3.1.2",
"dompurify": "3.0.3",
"dompurify": "3.0.5",
"spin.js": "2.0.0",
"roughjs": "4.4.1",
"jscolor": "^3.8.0"
Expand Down
549 changes: 275 additions & 274 deletions src/main/webapp/js/app.min.js

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions src/main/webapp/js/diagramly/App.js
Expand Up @@ -323,22 +323,19 @@ App.pluginRegistry = {'4xAKTrabTpTzahoLthkwPNUn': 'plugins/explore.js',
'ac148': 'plugins/cConf-1-4-8.js', 'ac148cmnt': 'plugins/cConf-comments.js',
'nxtcld': 'plugins/nextcloud.js',
'monday': 'plugins/monday.js',
'voice': 'plugins/voice.js',
'tips': 'plugins/tooltips.js', 'svgdata': 'plugins/svgdata.js',
'number': 'plugins/number.js', 'sql': 'plugins/sql.js',
'props': 'plugins/props.js', 'text': 'plugins/text.js',
'anim': 'plugins/animation.js', 'update': 'plugins/update.js',
'trees': 'plugins/trees/trees.js', 'import': 'plugins/import.js',
'replay': 'plugins/replay.js', 'anon': 'plugins/anonymize.js',
'tr': 'plugins/trello.js', 'f5': 'plugins/rackF5.js',
'tickets': 'plugins/tickets.js', 'flow': 'plugins/flow.js',
'webcola': 'plugins/webcola/webcola.js', 'rnd': 'plugins/random.js',
'page': 'plugins/page.js', 'gd': 'plugins/googledrive.js',
'tags': 'plugins/tags.js'};

App.publicPlugin = [
'ex',
'voice',
'tips',
'svgdata',
'number',
Expand All @@ -351,7 +348,6 @@ App.publicPlugin = [
// 'import',
'replay',
'anon',
'tickets',
'flow',
'webcola',
// 'rnd', 'page', 'gd',
Expand Down Expand Up @@ -1955,7 +1951,7 @@ App.prototype.sanityCheck = function()
this.stopSanityCheck();
this.actions.get((this.mode == null || !file.isEditable()) ?
'saveAs' : 'save').funct();
}), null, null, 360, 120, null, mxUtils.bind(this, function()
}), null, null, 360, 140, null, mxUtils.bind(this, function()
{
this.scheduleSanityCheck();
}));
Expand Down
80 changes: 39 additions & 41 deletions src/main/webapp/js/diagramly/EditorUi.js
Expand Up @@ -11876,7 +11876,6 @@
{
Editor.currentTheme = value;
this.themeSwitching = true;
var scrollState = this.saveScrollState();

mxUtils.setPrefixedStyle(this.container.style, 'transition',
'all ' + delay + 'ms ease-in-out');
Expand All @@ -11888,6 +11887,7 @@

window.setTimeout(mxUtils.bind(this, function()
{
var scrollState = this.saveScrollState();
this.editor.graph.stopEditing(false);
this.container.style.opacity = '0';

Expand Down Expand Up @@ -11953,6 +11953,44 @@
return noRestart;
};

/**
* Saves scroll position
*/
EditorUi.prototype.saveScrollState = function()
{
var t = this.editor.graph.view.translate;
var x = this.diagramContainer.scrollLeft;
var y = this.diagramContainer.scrollTop;

if (this.embedViewport != null)
{
if (!Editor.inlineFullscreen)
{
x += this.embedViewport.x;
y += this.embedViewport.y;
}
else
{
x -= this.embedViewport.x;
y -= this.embedViewport.y;
}
}

return {x: x, y: y, tx: t.x, ty: t.y};
};

/**
* Dynamic change of dark mode.
*/
EditorUi.prototype.restoreScrollState = function(state)
{
var s = this.editor.graph.view.scale;
var t = this.editor.graph.view.translate;

this.diagramContainer.scrollLeft = state.x + (t.x - state.tx) * s;
this.diagramContainer.scrollTop = state.y + (t.y - state.ty) * s;
};

/**
* Overrides image dialog to add image search and Google+.
*/
Expand Down Expand Up @@ -14180,46 +14218,6 @@
}
};

/**
* Saves scroll position
*/
EditorUi.prototype.saveScrollState = function()
{
var t = this.editor.graph.view.translate;
var off = mxUtils.getOffset(this.diagramContainer);
var x = this.diagramContainer.scrollLeft - off.x;
var y = this.diagramContainer.scrollTop - off.y;

if (this.embedViewport != null)
{
if (!Editor.inlineFullscreen)
{
x += this.embedViewport.x;
y += this.embedViewport.y;
}
else
{
x -= this.embedViewport.x;
y -= this.embedViewport.y;
}
}

return {x: x, y: y, tx: t.x, ty: t.y};
};

/**
* Dynamic change of dark mode.
*/
EditorUi.prototype.restoreScrollState = function(state)
{
var s = this.editor.graph.view.scale;
var t = this.editor.graph.view.translate;
var off = mxUtils.getOffset(this.diagramContainer);

this.diagramContainer.scrollLeft = state.x + off.x + (t.x - state.tx) * s;
this.diagramContainer.scrollTop = state.y + off.y + (t.y - state.ty) * s;
};

/**
* Dynamic change of dark mode.
*/
Expand Down
20 changes: 2 additions & 18 deletions src/main/webapp/js/diagramly/Menus.js
Expand Up @@ -930,25 +930,9 @@
action.setToggleAction(true);
action.setSelectedCallback(function() { return graph.shadowVisible; });

editorUi.actions.put('about', new Action(mxResources.get('about') + ' ' + EditorUi.VERSION + '...', function(arg1, evt)
editorUi.actions.put('about', new Action('v' + EditorUi.VERSION, function(arg1, evt)
{
if (evt != null && mxEvent.isShiftDown(evt))
{
mxLog.show();

if (window.console != null)
{
console.log(editorUi, window);
}
}
else if (editorUi.isOffline() || mxClient.IS_CHROMEAPP || EditorUi.isElectronApp)
{
editorUi.alert(editorUi.editor.appName + ' ' + EditorUi.VERSION);
}
else
{
editorUi.openLink('https://www.drawio.com/');
}
// do nothing
}));

editorUi.actions.addAction('support...', function()
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/js/diagramly/Pages.js
Expand Up @@ -557,7 +557,7 @@ EditorUi.prototype.initPages = function()
for (var i = 0; i < changes.length; i++)
{
if (changes[i] instanceof RenamePage ||
changes[i] instanceof MovePage ||
changes[i] instanceof ChangePage ||
changes[i] instanceof mxRootChange)
{
this.updateTabContainer();
Expand Down

0 comments on commit 1db2c2c

Please sign in to comment.