Skip to content

Commit

Permalink
20.8.15 release
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgraph committed Feb 1, 2023
1 parent 23d6fa1 commit 610abeb
Show file tree
Hide file tree
Showing 15 changed files with 2,362 additions and 2,309 deletions.
11 changes: 9 additions & 2 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
01-FEB-2023: 20.8.15

- Adds debug output, improves UX in Notion extension
- Fixes clipping of start screen checkbox in dialog
- Fixes vertical alignment of show start screen item
- Fixes CSS for default action button [drawio-desktop-1219]

31-JAN-2023: 20.8.14

- Updates in-place editor after scroll and UI change
- Fixes CSS specificity and global styles [DID-7294]
- Limit convert labels to SVG option to online draw.io only
- [conf cloud] Adds config option to disable the automatic generation of the preview images from the page view ["disableEmbedAutoImgGen": true] [DID-7251]
- Ignore events on selection border and parent shape
- Fixes library save, improves error handling [3323]
- Fixes library save, improves error handling [drawio-3323]

26-JAN-2023: 20.8.13

- Fixes NPE when changing colors from toolbar [3315]
- Fixes NPE when changing colors from toolbar [drawio-3315]

26-JAN-2023: 20.8.12

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.8.14
20.8.15
981 changes: 491 additions & 490 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/Devel.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ if (!mxIsElectron && location.protocol !== 'http:')
'img-src * data: blob:; ' +
'media-src * data:; ' +
'font-src * about:; ' +
'style-src \'self\' https://fonts.googleapis.com \'unsafe-inline\'' +
'style-src \'self\' https://fonts.googleapis.com \'unsafe-inline\'; ' +
'base-uri \'none\';' +
'object-src \'none\';' +
'worker-src https://viewer.diagrams.net/service-worker.js;'
Expand Down
4 changes: 0 additions & 4 deletions src/main/webapp/js/diagramly/Dialogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3332,10 +3332,6 @@ var NewDialog = function(editorUi, compact, showName, callback, createOnly, canc
mxEvent.addGestureListeners(magnify, mouseDownHandler, null, mouseUpHandler);
}, function(e)
{
templateXml = null;
preview.innerHTML = '';
preview.appendChild(previewText);

editorUi.handleError(e);
}
);
Expand Down
65 changes: 54 additions & 11 deletions src/main/webapp/js/diagramly/EditorUi.js
Original file line number Diff line number Diff line change
Expand Up @@ -12092,14 +12092,22 @@
{
var fullscreenElt = this.createMenuItem('fullscreen', Editor.fullscreenImage);
footer.appendChild(fullscreenElt);

var inlineFullscreenChanged = mxUtils.bind(this, function()
{
fullscreenElt.style.backgroundImage = 'url(' + ((!Editor.inlineFullscreen) ?
Editor.fullscreenImage : Editor.fullscreenExitImage) + ')';
this.inlineSizeChanged();
this.editor.graph.refresh();
this.fitWindows();
});


this.addListener('editInlineStart', mxUtils.bind(this, function()
{
fullscreenElt.style.backgroundImage = 'url(' + ((!Editor.inlineFullscreen) ?
Editor.fullscreenImage : Editor.fullscreenExitImage) + ')';
}));

this.addListener('inlineFullscreenChanged', inlineFullscreenChanged);
footer.appendChild(this.createMenuItem('exit', Editor.closeImage));
}
Expand Down Expand Up @@ -13574,17 +13582,14 @@
{
if (Editor.inlineFullscreen != value)
{
var scrollState = this.saveScrollState();
Editor.inlineFullscreen = value;
this.fireEvent(new mxEventObject('inlineFullscreenChanged'));
this.fitWindows();
this.editor.graph.refresh();
this.restoreScrollState(scrollState);
this.diagramContainer.setAttribute('data-scrollState',
JSON.stringify(this.saveScrollState()));

// Send request for fullscreen to parent
var parent = window.opener || window.parent;
parent.postMessage(JSON.stringify({
event: 'resize',
fullscreen: Editor.inlineFullscreen,
fullscreen: value,
rect: this.diagramContainer.getBoundingClientRect()
}), '*');
}
Expand Down Expand Up @@ -13636,10 +13641,13 @@
var gb = graph.getGraphBounds();
var tokens = bounds.split(' ');

var ds = mxUtils.getDocumentSize();
this.diagramContainer.style.top = tokens[0];
this.diagramContainer.style.left = tokens[1];
var w = gb.width + 50;
var h = gb.height + 46;
var w = Math.min(gb.width + 50, ds.width -
parseInt(this.diagramContainer.style.left) - 20);
var h = Math.min(gb.height + 46, ds.height -
parseInt(this.diagramContainer.style.top) - 20);
this.diagramContainer.style.width = ((this.minInlineWidth != null) ?
Math.max(this.minInlineWidth, w) : w) + 'px';
this.diagramContainer.style.height = ((this.minInlineHeight != null) ?
Expand Down Expand Up @@ -15583,6 +15591,36 @@
if (data.viewport != null)
{
this.embedViewport = data.viewport;
this.editor.graph.refresh();
}

return;
}
else if (data.action == 'fullscreenChanged')
{
var scrollState = null;

try
{
var temp = this.diagramContainer.getAttribute('data-scrollState');

if (temp != null)
{
this.diagramContainer.removeAttribute('data-scrollState');
scrollState = JSON.parse(temp);
}
}
catch (e)
{
// ignore
}

Editor.inlineFullscreen = data.value;
this.fireEvent(new mxEventObject('inlineFullscreenChanged'));

if (scrollState != null)
{
this.restoreScrollState(scrollState);
}

return;
Expand Down Expand Up @@ -15979,6 +16017,11 @@
graph.container.scrollTop -= border;
graph.container.scrollLeft -= border;
this.fireEvent(new mxEventObject('editInlineStart', 'data', [data]));

window.setTimeout(mxUtils.bind(this, function()
{
graph.container.focus();
}), 0);
});
}

Expand Down
6 changes: 4 additions & 2 deletions src/main/webapp/js/diagramly/Menus.js
Original file line number Diff line number Diff line change
Expand Up @@ -1088,18 +1088,20 @@
// Moves show start screen option to configuration dialog in sketch
var splashCb = document.createElement('input');
splashCb.setAttribute('type', 'checkbox');
splashCb.style.marginRight = '4px';
splashCb.style.marginRight = '8px';
splashCb.checked = mxSettings.getShowStartScreen();
splashCb.defaultChecked = splashCb.checked;

if (Editor.isSettingsEnabled() && (Editor.currentTheme == 'sketch' ||
Editor.currentTheme == 'simple' || Editor.currentTheme == 'min'))
{
var showSplash = document.createElement('span');
showSplash.style.display = 'flex';
showSplash.style.alignItems = 'center';
showSplash.style['float'] = 'right';
showSplash.style.cursor = 'pointer';
showSplash.style.userSelect = 'none';
showSplash.style.marginTop = '-4px';
showSplash.style.marginTop = '-3px';
showSplash.appendChild(splashCb);
mxUtils.write(showSplash, mxResources.get('showStartScreen'));

Expand Down
Loading

0 comments on commit 610abeb

Please sign in to comment.