Skip to content

Commit

Permalink
20.5.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgraph committed Nov 4, 2022
1 parent 5e0079f commit d37894b
Show file tree
Hide file tree
Showing 246 changed files with 30,864 additions and 12,036 deletions.
23 changes: 23 additions & 0 deletions ChangeLog
@@ -1,3 +1,26 @@
04-NOV-2022: 20.5.2

- Fixes infinite redirection in embed + proxy (https://huntr.dev/bounties/28d79d99-81a4-46f3-9455-89658bca424b/)
- Updates autosize for text insert with keyboard
- Removes Cloud Fortified program metric API calls
- getPublicUrl checks for private GitHub repository
- Limits default simple mode for small window sizes
- Updates Azure stencils
- [conf cloud] Fixed getProperty as Atlassian sometimes returns duplicates [DID-6520]
- [conf cloud] Improved export/import/mass import/re-indexing error logging [DID-6646]
- Fixes possible CSS and CSP bypass in tickets plugin
- [conf cloud] Workaround for cases where API returns duplicate entries for unique items [DID-6501]

22-OCT-2022: 20.5.1

- Restores original CSS selector for links in footer
- Fixes possible NPE for tagsWindow, style in viewer
- Fixes gray background in Conf Cloud [DID-6578]
- Fixes find/replace window size in sketch/simple UI
- Hides all tool windows when diagram is closed
- Disables themes in viewer
- Ignores possible missing method for auto dark mode

21-OCT-2022: 20.5.0

- Enables live UI switching between sketch and default themes [DS-909]
Expand Down
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
20.5.0
20.5.2
1 change: 1 addition & 0 deletions src/main/java/com/mxgraph/online/EmbedServlet2.java
Expand Up @@ -412,6 +412,7 @@ public String createEmbedJavaScript(HttpServletRequest request)
URL url = new URL(urls[i]);
URLConnection connection = url.openConnection();
((HttpURLConnection) connection).setInstanceFollowRedirects(false);
connection.setRequestProperty("User-Agent", "draw.io");
ByteArrayOutputStream stream = new ByteArrayOutputStream();
String contentLength = connection.getHeaderField("Content-Length");

Expand Down
Binary file not shown.
Binary file removed src/main/webapp/WEB-INF/lib/commons-text-1.9.jar
Binary file not shown.
21 changes: 9 additions & 12 deletions src/main/webapp/electron.js
Expand Up @@ -1069,6 +1069,7 @@ autoUpdater.on('update-available', (a, b) =>

//Pdf export
const MICRON_TO_PIXEL = 264.58 //264.58 micron = 1 pixel
const PIXELS_PER_INCH = 100.117 // Usually it is 100 pixels per inch but this give better results
const PNG_CHUNK_IDAT = 1229209940;
const LARGE_IMAGE_AREA = 30000000;

Expand Down Expand Up @@ -1394,22 +1395,18 @@ function exportDiagram(event, args, directFinalize)
}
else
{
//Chrome generates Pdf files larger than requested pixels size and requires scaling
var fixingScale = 0.959;

var w = Math.ceil(bounds.width * fixingScale);

// +0.1 fixes cases where adding 1px below is not enough
// Increase this if more cropped PDFs have extra empty pages
var h = Math.ceil(bounds.height * fixingScale + 0.1);

pdfOptions = {
printBackground: true,
pageSize : {
width: w * MICRON_TO_PIXEL,
height: (h + 2) * MICRON_TO_PIXEL //the extra 2 pixels to prevent adding an extra empty page
width: bounds.width / PIXELS_PER_INCH,
height: (bounds.height + 2) / PIXELS_PER_INCH //the extra 2 pixels to prevent adding an extra empty page
},
marginsType: 1 // no margin
margins: {
top: 0,
bottom: 0,
left: 0,
right: 0
} // no margin
}
}

Expand Down
Binary file modified src/main/webapp/images/sidebar-azure.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d37894b

Please sign in to comment.