Skip to content

Commit 7b523e5

Browse files
committed
24.5.3 release
1 parent cc6ac85 commit 7b523e5

File tree

18 files changed

+2303
-2264
lines changed

18 files changed

+2303
-2264
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
strategy:
3333
fail-fast: false
3434
matrix:
35-
language: [ 'javascript' ]
35+
language: [ 'java', 'javascript' ]
3636
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
3737
# Learn more about CodeQL language support at https://git.io/codeql-language-support
3838

@@ -70,4 +70,4 @@ jobs:
7070
# make release
7171

7272
- name: Perform CodeQL Analysis
73-
uses: github/codeql-action/analyze@v2
73+
uses: github/codeql-action/analyze@v2

.github/workflows/stale.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name: Mark stale issues and pull requests
77

88
on:
99
schedule:
10-
- cron: '45 20 * * *'
10+
- cron: '42 11 * * *'
1111

1212
jobs:
1313
stale:
@@ -26,7 +26,7 @@ jobs:
2626
stale-issue-label: 'wonfix'
2727
stale-pr-label: 'wonfix'
2828
close-issue-label: 'declined'
29-
days-before-stale: 200
29+
days-before-stale: 300
3030
days-before-close: 60
3131
exempt-issue-labels: notstale
32-
exempt-pr-labels: notstale
32+
exempt-pr-labels: notstale

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
11-JUN-2024: 24.5.3
2+
3+
- Fixes show start screen option [drawio-desktop-1738]
4+
- Fixes fallback text position [drawio-desktop-1624]
5+
- Removes control characters in link check
6+
- Uses current unit in line position (start, end) in Format panel - Arrange [drawio-1915]
7+
18
07-JUN-2024: 24.5.2
29

310
- [conf cloud] Adds Drive file access and app check to embed macro

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
24.5.2
1+
24.5.3

src/main/webapp/js/app.min.js

Lines changed: 411 additions & 410 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/webapp/js/diagramly/App.js

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3427,11 +3427,11 @@ App.prototype.start = function()
34273427
}
34283428
}));
34293429
}
3430-
else if (urlParams['splash'] != '0' || urlParams['mode'] != null)
3430+
else if (urlParams['splash'] != '0' || (urlParams['mode'] != null && !EditorUi.isElectronApp))
34313431
{
34323432
this.loadFile();
34333433
}
3434-
else if (!EditorUi.isElectronApp)
3434+
else
34353435
{
34363436
this.createFile(this.defaultFilename, this.getFileData(),
34373437
null, null, null, null, null, true);
@@ -3953,14 +3953,24 @@ App.prototype.loadFileSystemEntry = function(fileHandle, success, error)
39533953
error(e);
39543954
}
39553955
});
3956-
3957-
fileHandle.createWritable().then(mxUtils.bind(this, function(writable)
3956+
3957+
if (fileHandle.queryPermission)
39583958
{
3959-
doSuccess(true);
3960-
}), mxUtils.bind(this, function(e)
3959+
fileHandle.queryPermission({mode: 'readwrite'}).then(mxUtils.bind(this, function(permission)
3960+
{
3961+
doSuccess(permission !== 'denied');
3962+
}));
3963+
}
3964+
else
39613965
{
3962-
doSuccess(false);
3963-
}));
3966+
fileHandle.createWritable().then(mxUtils.bind(this, function()
3967+
{
3968+
doSuccess(true);
3969+
}), mxUtils.bind(this, function(e)
3970+
{
3971+
doSuccess(false);
3972+
}));
3973+
}
39643974
});
39653975

39663976
reader.onerror = error;

src/main/webapp/js/diagramly/Dialogs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3362,6 +3362,7 @@ var NewDialog = function(editorUi, compact, showName, callback, createOnly, canc
33623362
{
33633363
templateXml = modelXml;
33643364
lastAiXml = templateXml;
3365+
lastAiTitle = 'Smart Template: ' + title;
33653366
}
33663367
}));
33673368
}
@@ -3393,7 +3394,6 @@ var NewDialog = function(editorUi, compact, showName, callback, createOnly, canc
33933394
{
33943395
templateXml = xml;
33953396
lastAiXml = xml;
3396-
lastAiTitle = 'Smart Template: ' + title;
33973397
}
33983398

33993399
var magnify = magnifyImage.cloneNode(true);

src/main/webapp/js/diagramly/EditorUi.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6100,7 +6100,8 @@
61006100
}
61016101

61026102
// Adds padding for font metrics
6103-
size.height += (parseInt(measure.style.fontSize) / 4);
6103+
size = new mxRectangle(x, y, size.width, size.height +
6104+
(parseInt(measure.style.fontSize) / 4));
61046105

61056106
// Sequence of async conversion to images
61066107
convert.push(mxUtils.bind(this, function(next)

src/main/webapp/js/grapheditor/Format.js

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2764,6 +2764,7 @@ ArrangePanel.prototype.addEdgeGeometryHandler = function(input, fn)
27642764
*/
27652765
ArrangePanel.prototype.addEdgeGeometry = function(container)
27662766
{
2767+
var panel = this;
27672768
var ui = this.editorUi;
27682769
var graph = ui.editor.graph;
27692770
var rect = ui.getSelectionState();
@@ -2819,14 +2820,14 @@ ArrangePanel.prototype.addEdgeGeometry = function(container)
28192820
mxUtils.write(span, mxResources.get('linestart'));
28202821
divs.appendChild(span);
28212822

2822-
var xs = this.addUnitInput(divs, 'pt', 87, 52, function()
2823+
var xs = this.addUnitInput(divs, this.getUnit(), 87, 52, function()
28232824
{
28242825
xsUpdate.apply(this, arguments);
2825-
});
2826-
var ys = this.addUnitInput(divs, 'pt', 16, 52, function()
2826+
}, this.getUnitStep(), null, null, this.isFloatUnit());
2827+
var ys = this.addUnitInput(divs, this.getUnit(), 16, 52, function()
28272828
{
28282829
ysUpdate.apply(this, arguments);
2829-
});
2830+
}, this.getUnitStep(), null, null, this.isFloatUnit());
28302831

28312832
mxUtils.br(divs);
28322833
this.addLabel(divs, mxResources.get('left'), 87, 64);
@@ -2845,14 +2846,14 @@ ArrangePanel.prototype.addEdgeGeometry = function(container)
28452846
mxUtils.write(span, mxResources.get('lineend'));
28462847
divt.appendChild(span);
28472848

2848-
var xt = this.addUnitInput(divt, 'pt', 87, 52, function()
2849+
var xt = this.addUnitInput(divt, this.getUnit(), 87, 52, function()
28492850
{
28502851
xtUpdate.apply(this, arguments);
2851-
});
2852-
var yt = this.addUnitInput(divt, 'pt', 16, 52, function()
2852+
}, this.getUnitStep(), null, null, this.isFloatUnit());
2853+
var yt = this.addUnitInput(divt, this.getUnit(), 16, 52, function()
28532854
{
28542855
ytUpdate.apply(this, arguments);
2855-
});
2856+
}, this.getUnitStep(), null, null, this.isFloatUnit());
28562857

28572858
mxUtils.br(divt);
28582859
this.addLabel(divt, mxResources.get('left'), 87, 64);
@@ -2889,8 +2890,8 @@ ArrangePanel.prototype.addEdgeGeometry = function(container)
28892890
if (geo != null && geo.sourcePoint != null &&
28902891
graph.model.getTerminal(cell, true) == null)
28912892
{
2892-
xs.value = geo.sourcePoint.x;
2893-
ys.value = geo.sourcePoint.y;
2893+
xs.value = this.inUnit(geo.sourcePoint.x) + ' ' + this.getUnit();
2894+
ys.value = this.inUnit(geo.sourcePoint.y) + ' ' + this.getUnit();
28942895
}
28952896
else
28962897
{
@@ -2900,8 +2901,8 @@ ArrangePanel.prototype.addEdgeGeometry = function(container)
29002901
if (geo != null && geo.targetPoint != null &&
29012902
graph.model.getTerminal(cell, false) == null)
29022903
{
2903-
xt.value = geo.targetPoint.x;
2904-
yt.value = geo.targetPoint.y;
2904+
xt.value = this.inUnit(geo.targetPoint.x) + ' ' + this.getUnit();
2905+
yt.value = this.inUnit(geo.targetPoint.y) + ' ' + this.getUnit();
29052906
}
29062907
else
29072908
{
@@ -2917,22 +2918,22 @@ ArrangePanel.prototype.addEdgeGeometry = function(container)
29172918

29182919
xsUpdate = this.addEdgeGeometryHandler(xs, function(geo, value)
29192920
{
2920-
geo.sourcePoint.x = value;
2921+
geo.sourcePoint.x = panel.fromUnit(value);
29212922
});
29222923

29232924
ysUpdate = this.addEdgeGeometryHandler(ys, function(geo, value)
29242925
{
2925-
geo.sourcePoint.y = value;
2926+
geo.sourcePoint.y = panel.fromUnit(value);
29262927
});
29272928

29282929
xtUpdate = this.addEdgeGeometryHandler(xt, function(geo, value)
29292930
{
2930-
geo.targetPoint.x = value;
2931+
geo.targetPoint.x = panel.fromUnit(value);
29312932
});
29322933

29332934
ytUpdate = this.addEdgeGeometryHandler(yt, function(geo, value)
29342935
{
2935-
geo.targetPoint.y = value;
2936+
geo.targetPoint.y = panel.fromUnit(value);
29362937
});
29372938

29382939
graph.getModel().addListener(mxEvent.CHANGE, listener);

src/main/webapp/js/grapheditor/Graph.js

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1681,28 +1681,7 @@ Graph.htmlToPng = function(html, w, h, fn, css, scale)
16811681
*/
16821682
Graph.zapGremlins = function(text)
16831683
{
1684-
var lastIndex = 0;
1685-
var checked = [];
1686-
1687-
for (var i = 0; i < text.length; i++)
1688-
{
1689-
var code = text.charCodeAt(i);
1690-
1691-
// Removes all control chars except TAB, LF and CR
1692-
if (!((code >= 32 || code == 9 || code == 10 || code == 13) &&
1693-
code != 0xFFFF && code != 0xFFFE))
1694-
{
1695-
checked.push(text.substring(lastIndex, i));
1696-
lastIndex = i + 1;
1697-
}
1698-
}
1699-
1700-
if (lastIndex > 0 && lastIndex < text.length)
1701-
{
1702-
checked.push(text.substring(lastIndex));
1703-
}
1704-
1705-
return (checked.length == 0) ? text : checked.join('');
1684+
return mxUtils.zapGremlins(text);
17061685
};
17071686

17081687
/**

0 commit comments

Comments
 (0)