Skip to content

Commit 4b7ab54

Browse files
committed
6.5.10 release
Former-commit-id: dd5d722
1 parent e2d4b77 commit 4b7ab54

File tree

301 files changed

+3986
-2372
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

301 files changed

+3986
-2372
lines changed

ChangeLog

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
13-MAY-2017: 6.5.10
2+
3+
- Fixes case sensitivity issue for template names and folders
4+
5+
12-MAY-2017: 6.5.9
6+
7+
- Adds export as URL in Chrome App
8+
- Adds drag and drop for all file formats in Sidebar and Library dialog
9+
- Fixes handling of invalid files after close with realtime
10+
- Adds offline app status icon for cached state
11+
- Removes standalone mode to fix offline iOS home screen apps
12+
- Redirects PDF export to print action when offline
13+
- Fixes text preview for resize with custom handles
14+
- Improvements for small mobile screens
15+
- Forces HTTPS for offline app
16+
- Fixes partial rectangles in Basic palette
17+
- Uses mxGraph 3.7.3 beta 5
18+
119
08-MAY-2017: 6.5.8
220

321
- Adds .vssx stencil import

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.5.8
1+
6.5.10

war/js/diagramly/ElectronApp.js renamed to etc/electron/ElectronApp.js

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ FeedbackDialog.feedbackUrl = 'https://log.draw.io/email';
66
// Overrides default mode
77
App.mode = App.MODE_DEVICE;
88

9+
// Disables new window option in edit diagram dialog
10+
EditDiagramDialog.showNewWindowOption = false;
11+
912
// Redirects printing to iframe to avoid document.write
1013
var printDialogCreatePrintPreview = PrintDialog.createPrintPreview;
1114

@@ -257,12 +260,27 @@ FeedbackDialog.feedbackUrl = 'https://log.draw.io/email';
257260
// Uses local picker
258261
App.prototype.pickFile = function()
259262
{
260-
this.chooseFileEntry(mxUtils.bind(this, function(fileEntry, data)
263+
var doPickFile = mxUtils.bind(this, function()
261264
{
262-
var file = new LocalFile(this, data, '');
263-
file.fileObject = fileEntry;
264-
this.fileLoaded(file);
265-
}));
265+
this.chooseFileEntry(mxUtils.bind(this, function(fileEntry, data)
266+
{
267+
var file = new LocalFile(this, data, '');
268+
file.fileObject = fileEntry;
269+
this.fileLoaded(file);
270+
}));
271+
});
272+
273+
var file = this.getCurrentFile();
274+
275+
if (file != null && file.isModified())
276+
{
277+
this.confirm(mxResources.get('allChangesLost'), null, doPickFile,
278+
mxResources.get('cancel'), mxResources.get('discardChanges'));
279+
}
280+
else
281+
{
282+
doPickFile();
283+
}
266284
};
267285

268286
/**
@@ -321,7 +339,17 @@ FeedbackDialog.feedbackUrl = 'https://log.draw.io/email';
321339
}));
322340
}
323341
};
342+
343+
// Disables temp files in Electron
344+
var LocalFileCtor = LocalFile;
324345

346+
LocalFile = function(ui, data, title, temp)
347+
{
348+
LocalFileCtor.call(this, ui, data, title, false);
349+
};
350+
351+
mxUtils.extend(LocalFile, LocalFileCtor);
352+
325353
LocalFile.prototype.isAutosave = function()
326354
{
327355
return this.ui.editor.autosave;
@@ -366,10 +394,6 @@ FeedbackDialog.feedbackUrl = 'https://log.draw.io/email';
366394
{
367395
var fn = mxUtils.bind(this, function()
368396
{
369-
// Disables temporary file state
370-
this.mode = App.MODE_DEVICE;
371-
this.ui.mode = this.mode;
372-
373397
var doSave = mxUtils.bind(this, function(data, enc)
374398
{
375399
if (!this.savingFile)

etc/electron/README

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
1. Go to this directory
2+
2. Run "npm install" once
3+
3. Execute "export NODE_ENV=development" for dev mode
4+
4. Run "npm start" to start the client

war/electron.js renamed to etc/electron/electron.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function createWindow (opt = {}) {
3434
console.log('createWindow', opt)
3535

3636
let wurl = url.format({
37-
pathname: `${__dirname}/index.html`,
37+
pathname: `${__dirname}/../../war/index.html`,
3838
protocol: 'file:',
3939
query: {
4040
'dev': __DEV__ ? 1 : 0,
File renamed without changes.

etc/mxgraph/mxClient.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
package com.mxgraph.io.vsdx.export;
2+
3+
public class ModelExtAttrib
4+
{
5+
private double pageScale = 1,
6+
pageWidth = 839, pageHeight = 1188, //A4 size in pixels as a default
7+
gridSize = 10;
8+
private boolean pageVisible = true, gridEnabled = true, guidesEnabled = true, foldingEnabled = true,
9+
shadowVisible = false, tooltips = true, connect = true, arrows = true, mathEnabled = true;
10+
private String backgroundClr = "#FFFFFF";
11+
//TODO add backgroundImage support
12+
13+
public double getPageScale() {
14+
return pageScale;
15+
}
16+
public double getPageWidth() {
17+
return pageWidth;
18+
}
19+
public double getPageHeight() {
20+
return pageHeight;
21+
}
22+
public double getGridSize() {
23+
return gridSize;
24+
}
25+
public boolean isPageVisible() {
26+
return pageVisible;
27+
}
28+
public boolean isGridEnabled() {
29+
return gridEnabled;
30+
}
31+
public boolean isGuidesEnabled() {
32+
return guidesEnabled;
33+
}
34+
public boolean isFoldingEnabled() {
35+
return foldingEnabled;
36+
}
37+
public boolean isShadowVisible() {
38+
return shadowVisible;
39+
}
40+
public boolean isTooltips() {
41+
return tooltips;
42+
}
43+
public boolean isConnect() {
44+
return connect;
45+
}
46+
public boolean isArrows() {
47+
return arrows;
48+
}
49+
public boolean isMathEnabled() {
50+
return mathEnabled;
51+
}
52+
public String getBackgroundClr() {
53+
return backgroundClr;
54+
}
55+
public void setPageScale(double pageScale) {
56+
this.pageScale = pageScale;
57+
}
58+
public void setPageWidth(double pageWidth) {
59+
this.pageWidth = pageWidth;
60+
}
61+
public void setPageHeight(double pageHeight) {
62+
this.pageHeight = pageHeight;
63+
}
64+
public void setGridSize(double gridSize) {
65+
this.gridSize = gridSize;
66+
}
67+
public void setPageVisible(boolean pageVisible) {
68+
this.pageVisible = pageVisible;
69+
}
70+
public void setGridEnabled(boolean gridEnabled) {
71+
this.gridEnabled = gridEnabled;
72+
}
73+
public void setGuidesEnabled(boolean guidesEnabled) {
74+
this.guidesEnabled = guidesEnabled;
75+
}
76+
public void setFoldingEnabled(boolean foldingEnabled) {
77+
this.foldingEnabled = foldingEnabled;
78+
}
79+
public void setShadowVisible(boolean shadowVisible) {
80+
this.shadowVisible = shadowVisible;
81+
}
82+
public void setTooltips(boolean tooltips) {
83+
this.tooltips = tooltips;
84+
}
85+
public void setConnect(boolean connect) {
86+
this.connect = connect;
87+
}
88+
public void setArrows(boolean arrows) {
89+
this.arrows = arrows;
90+
}
91+
public void setMathEnabled(boolean mathEnabled) {
92+
this.mathEnabled = mathEnabled;
93+
}
94+
public void setBackgroundClr(String backgroundClr) {
95+
this.backgroundClr = backgroundClr;
96+
}
97+
}

0 commit comments

Comments
 (0)