Skip to content

Commit

Permalink
24.3.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgraph committed Apr 26, 2024
1 parent d3b22b0 commit ac68ab2
Show file tree
Hide file tree
Showing 86 changed files with 8,480 additions and 8,139 deletions.
27 changes: 27 additions & 0 deletions ChangeLog
@@ -1,3 +1,30 @@
26-APR-2024: 24.3.1

- Fixes breadcrumb trail after refresh in OneDrive picker [drawio-4339]
- Fixes diagrams in Google Add ons [drawio-4349]
- Fixes diagram size in Google Add ons [drawio-4351]
- Removes margin for cropped PDF export [drawio-4353]
- [conf cloud] Fixes AP.navigator.getLocation returning incorrect pageId in drafts [DID-11399]

24-APR-2024: 24.3.0

- Enable internal links in PDF export [drawio-722]

24-APR-2024: 24.2.9

- Adds support for PDF+XML files in OneDrive picker [drawio-4339]
- Adds autosize and resizable to style clipboard [drawio-4285]
- Fixes PWA for iOS and iPadOS [drawio-4342]
- Adds support for iframe sandbox attribute [drawio-4340]
- Skips getStoredMode in embed mode [drawio-4340]

22-APR-2024: 24.2.8

- Adds experimental read-only mode [drawio-desktop-1380]
- [conf cloud] Adds support for server lightbox links [DID-11348]
- Enables crop option in PDF export dialog
- Fixes background images, page IDs in print preview

19-APR-2024: 24.2.7

- Simplifies print dialog
Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
24.2.7
24.3.1
8 changes: 8 additions & 0 deletions src/main/webapp/export3.html
Expand Up @@ -7,6 +7,14 @@
<style type="text/css">
.MathJax svg { shape-rendering: crispEdges; }
</style>
<style type="text/css">
@media print {
body > div {
page-break-inside: avoid;
page-break-after: always;
}
}
</style>
<link rel="stylesheet" href="mxgraph/css/common.css" charset="UTF-8" type="text/css">
<link rel="stylesheet" href="export-fonts.css" charset="UTF-8" type="text/css">
<script src="js/app.min.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/images/manifest.json
Expand Up @@ -12,5 +12,5 @@
"theme_color": "#DF6C0C",
"background_color": "#DF6C0C",
"display": "fullscreen",
"start_url": "index.html"
"start_url": "../index.html"
}
4,822 changes: 2,414 additions & 2,408 deletions src/main/webapp/js/app.min.js

Large diffs are not rendered by default.

41 changes: 24 additions & 17 deletions src/main/webapp/js/diagramly/App.js
Expand Up @@ -398,27 +398,34 @@ App.getStoredMode = function()

if (mode == null && typeof(Storage) != 'undefined')
{
var cookies = document.cookie.split(";");

for (var i = 0; i < cookies.length; i++)
try
{
// Removes spaces around cookie
var cookie = mxUtils.trim(cookies[i]);
var cookies = document.cookie.split(";");

if (cookie.substring(0, 5) == 'MODE=')
for (var i = 0; i < cookies.length; i++)
{
mode = cookie.substring(5);
break;
// Removes spaces around cookie
var cookie = mxUtils.trim(cookies[i]);

if (cookie.substring(0, 5) == 'MODE=')
{
mode = cookie.substring(5);
break;
}
}

if (mode != null && isLocalStorage)
{
// Moves to local storage
var expiry = new Date();
expiry.setYear(expiry.getFullYear() - 1);
document.cookie = 'MODE=; expires=' + expiry.toUTCString();
localStorage.setItem('.mode', mode);
}
}

if (mode != null && isLocalStorage)
catch (e)
{
// Moves to local storage
var expiry = new Date();
expiry.setYear(expiry.getFullYear() - 1);
document.cookie = 'MODE=; expires=' + expiry.toUTCString();
localStorage.setItem('.mode', mode);
// ignore
}
}

Expand All @@ -442,8 +449,8 @@ App.getStoredMode = function()

App.mode = urlParams['mode'];
}
if (App.mode == null)

if (App.mode == null && urlParams['embed'] != '1')
{
// Stored mode overrides preferred mode
App.mode = App.getStoredMode();
Expand Down
14 changes: 8 additions & 6 deletions src/main/webapp/js/diagramly/Dialogs.js
Expand Up @@ -3382,7 +3382,11 @@ var NewDialog = function(editorUi, compact, showName, callback, createOnly, canc
mxEvent.addGestureListeners(magnify, mouseDownHandler, null, mouseUpHandler);
}, function(e)
{
mxMermaidToDrawio.resetListeners();
if (mxMermaidToDrawio.resetListeners != null)
{
mxMermaidToDrawio.resetListeners();
}

editorUi.handleError(e);
}
);
Expand Down Expand Up @@ -5043,10 +5047,8 @@ var SaveDialog = function(editorUi, title, saveFn, disabledModes, data, mimeType

if (!editorUi.isOffline() || mxClient.IS_CHROMEAPP)
{
btns.appendChild(mxUtils.button(mxResources.get('help'), function()
{
editorUi.openLink('https://www.drawio.com/doc/faq/save-file-formats');
}, null, 'geBtn'));
btns.appendChild(editorUi.createHelpIcon(
'https://www.drawio.com/doc/faq/save-file-formats'));
}

var cancelBtn = mxUtils.button(mxResources.get('cancel'), function()
Expand Down Expand Up @@ -12157,7 +12159,7 @@ var CustomDialog = function(editorUi, content, okFn, cancelFn, okButtonText, hel

var btns = document.createElement('div');
btns.style.marginTop = (marginTop != null) ? marginTop : '30px';
btns.style.textAlign = 'center';
btns.style.textAlign = 'right';

if (buttonsContent != null)
{
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/js/diagramly/DriveClient.js
Expand Up @@ -1674,7 +1674,7 @@ DriveClient.prototype.saveFile = function(file, revision, success, errFn, noChec
// Logs failed save
try
{
EditorUi.logError('Critical: Saving to Google Drive failed',
EditorUi.logError('Saving to Google Drive failed',
null, 'id-' + file.desc.id +
'-from-' + head0 + '.' + mod0 + '-' + this.ui.hashValue(etag0) +
'-to-' + resp.headRevisionId + '.' + resp.modifiedDate + '-' +
Expand Down

0 comments on commit ac68ab2

Please sign in to comment.