Kaynağa Gözat

9.0.2 release

David Benson [draw.io] 7 yıl önce
ebeveyn
işleme
892a905f18

+ 7 - 0
ChangeLog

@@ -1,3 +1,10 @@
+01-AUG-2018: 9.0.2
+
+- Adds missing rounded format option
+- Fixes tolerance for connect arrows
+- Uses mxGraph 3.9.9 beta 7
+- Fixes docker build
+
 31-JUL-2018: 9.0.1
 
 - Fixes insert to GitHub with URL parameter

+ 1 - 1
README.md

@@ -19,7 +19,7 @@ The [mxGraph documentation](https://jgraph.github.io/mxgraph/) provides a lot of
 
 Running
 -------
-One to run draw.io is to fork this project, [publish the master branch to GitHub pages](https://help.github.com/categories/github-pages-basics/) and the [pages sites](https://jgraph.github.io/drawio/src/main/webapp/index.html) will have the full editor functionality (sans the integrations). Another way is to use the Dockerfile in [/etc/docker](etc/docker/) or to download [draw.io for Desktop](https://get.draw.io).
+One to run draw.io is to fork this project, [publish the master branch to GitHub pages](https://help.github.com/categories/github-pages-basics/) and the [pages sites](https://jgraph.github.io/drawio/src/main/webapp/index.html) will have the full editor functionality (sans the integrations). Another way is to use the Dockerfile in [/etc/docker](etc/docker/) or to download [draw.io Desktop](https://get.draw.io).
 
 The full packaged .war of the client and servlets is built when the project is tagged and available on the [releases page](https://github.com/jgraph/draw.io/releases).
 

+ 1 - 1
VERSION

@@ -1 +1 @@
-9.0.1
+9.0.2

+ 4 - 6
etc/docker/Dockerfile

@@ -1,13 +1,11 @@
-FROM frekele/ant:1.10.3-jdk8 as  BUILD
+FROM frekele/ant:1.10.3-jdk8 as BUILD
 RUN mkdir /usr/build
 COPY src /usr/build/src
 COPY etc /usr/build/etc
-COPY war /usr/build/war
 COPY VERSION /usr/build
-RUN cd /usr/build/etc/build/
-RUN ant -file /usr/build/etc/build/build.xml war
+RUN cd /usr/build/etc/build/ && ant war
 
 FROM tomcat:9.0 as TARGET
-COPY --from=BUILD /usr/build/build/draw.war  /usr/local/tomcat/webapps/
+COPY --from=BUILD /usr/build/build/draw.war /usr/local/tomcat/webapps/
 EXPOSE 8080
-CMD ["catalina.sh", "run"]
+CMD ["catalina.sh", "run"]

+ 3 - 1
etc/docker/README.md

@@ -3,7 +3,9 @@ Docker
 After successful checkout, from the project directory run,
 
 ```bash
+cp etc/docker/Dockerfile .
 docker build -t draw .
 docker run -d -p 8888:8080 draw
 ```
-Now the app will be accessible at `http://localhost:8888/draw/?https=0`
+Now the app will be accessible at `http://localhost:8888/draw/?local=1` (the local URL parameter disables
+the cloud integrations as those require some keys to be changed).

Dosya farkı çok büyük olduğundan ihmal edildi
+ 9 - 9
etc/mxgraph/mxClient.js


+ 1 - 1
src/main/webapp/cache.manifest

@@ -1,7 +1,7 @@
 CACHE MANIFEST
 
 # THIS FILE WAS GENERATED. DO NOT MODIFY!
-# 07/31/2018 05:24 PM
+# 08/01/2018 05:37 PM
 
 app.html
 index.html?offline=1

Dosya farkı çok büyük olduğundan ihmal edildi
+ 309 - 309
src/main/webapp/js/app.min.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 402 - 402
src/main/webapp/js/atlas-viewer.min.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 332 - 332
src/main/webapp/js/atlas.min.js


+ 2 - 13
src/main/webapp/js/diagramly/Menus.js

@@ -2538,22 +2538,11 @@
 
 			if (!editorUi.isOfflineApp() && urlParams['embed'] != '1' && isLocalStorage)
 			{
-				var item = this.addMenuItem(menu, 'plugins', parent);
-				
-				if (!editorUi.isOffline())
-				{
-					this.addLinkToItem(item, 'https://desk.draw.io/support/solutions/articles/16000056430');
-				}
+				this.addMenuItem(menu, 'plugins', parent);
 			}
 
 			menu.addSeparator(parent);
-			
-			var item = this.addMenuItem(menu, 'tags', parent);
-			
-			if (!editorUi.isOffline() || mxClient.IS_CHROMEAPP)
-			{
-				this.addLinkToItem(item, 'https://desk.draw.io/support/solutions/articles/16000046966');
-			}
+			this.addMenuItem(menu, 'tags', parent);
 		})));
 
 		this.put('file', new Menu(mxUtils.bind(this, function(menu, parent)

+ 2 - 14
src/main/webapp/js/diagramly/Minimal.js

@@ -755,14 +755,7 @@ EditorUi.initMinimalTheme = function()
 				menu.addSeparator(parent);
 			}
 			
-			ui.menus.addMenuItems(menu, ['-', 'outline', 'layers', '-', 'find'], parent);
-			
-			var item = this.addMenuItem(menu, 'tags', parent);
-			
-			if (!ui.isOffline() || mxClient.IS_CHROMEAPP)
-			{
-				ui.menus.addLinkToItem(item, 'https://desk.draw.io/support/solutions/articles/16000046966');
-			}
+			ui.menus.addMenuItems(menu, ['-', 'outline', 'layers', '-', 'find', 'tags'], parent);
 			
 			// Cannot use print in standalone mode on iOS as we cannot open new windows
 			if (!mxClient.IS_IOS || !navigator.standalone)
@@ -860,12 +853,7 @@ EditorUi.initMinimalTheme = function()
 			if (!ui.isOfflineApp() && urlParams['embed'] != '1' && isLocalStorage)
 			{
 				menu.addSeparator(parent);
-	        	var item = ui.menus.addMenuItem(menu, 'plugins', parent);
-				
-				if (!ui.isOffline())
-				{
-					ui.menus.addLinkToItem(item, 'https://desk.draw.io/support/solutions/articles/16000056430');
-				}
+	        	ui.menus.addMenuItem(menu, 'plugins', parent);
 			}
         })));
         

Dosya farkı çok büyük olduğundan ihmal edildi
+ 171 - 170
src/main/webapp/js/embed-static.min.js


+ 36 - 0
src/main/webapp/js/mxgraph/Shapes.js

@@ -299,6 +299,10 @@
 	};
 	mxUtils.extend(CardShape, mxActor);
 	CardShape.prototype.size = 30;
+	CardShape.prototype.isRoundable = function()
+	{
+		return true;
+	};
 	CardShape.prototype.redrawPath = function(c, x, y, w, h)
 	{
 		var s = Math.max(0, Math.min(w, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size)))));
@@ -431,6 +435,10 @@
 	};
 	mxUtils.extend(ParallelogramShape, mxActor);
 	ParallelogramShape.prototype.size = 0.2;
+	ParallelogramShape.prototype.isRoundable = function()
+	{
+		return true;
+	};
 	ParallelogramShape.prototype.redrawPath = function(c, x, y, w, h)
 	{
 		var dx = w * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'size', this.size))));
@@ -449,6 +457,10 @@
 	};
 	mxUtils.extend(TrapezoidShape, mxActor);
 	TrapezoidShape.prototype.size = 0.2;
+	TrapezoidShape.prototype.isRoundable = function()
+	{
+		return true;
+	};
 	TrapezoidShape.prototype.redrawPath = function(c, x, y, w, h)
 	{
 		var dx = w * Math.max(0, Math.min(0.5, parseFloat(mxUtils.getValue(this.style, 'size', this.size))));
@@ -856,6 +868,10 @@
 		return new mxRectangle(0, 0, 0, parseFloat(mxUtils.getValue(
 			this.style, 'size', this.size)) * this.scale);
 	};
+	CalloutShape.prototype.isRoundable = function()
+	{
+		return true;
+	};
 	CalloutShape.prototype.redrawPath = function(c, x, y, w, h)
 	{
 		var arcSize = mxUtils.getValue(this.style, mxConstants.STYLE_ARCSIZE, mxConstants.LINE_ARCSIZE) / 2;
@@ -880,6 +896,10 @@
 	mxUtils.extend(StepShape, mxActor);
 	StepShape.prototype.size = 0.2;
 	StepShape.prototype.fixedSize = 20;
+	StepShape.prototype.isRoundable = function()
+	{
+		return true;
+	};
 	StepShape.prototype.redrawPath = function(c, x, y, w, h)
 	{
 		var fixed = mxUtils.getValue(this.style, 'fixedSize', '0') != '0';
@@ -900,6 +920,10 @@
 	};
 	mxUtils.extend(HexagonShape, mxHexagon);
 	HexagonShape.prototype.size = 0.25;
+	HexagonShape.prototype.isRoundable = function()
+	{
+		return true;
+	};
 	HexagonShape.prototype.redrawPath = function(c, x, y, w, h)
 	{
 		var s =  w * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'size', this.size))));
@@ -1929,6 +1953,10 @@
 	};
 	mxUtils.extend(ManualInputShape, mxActor);
 	ManualInputShape.prototype.size = 30;
+	ManualInputShape.prototype.isRoundable = function()
+	{
+		return true;
+	};
 	ManualInputShape.prototype.redrawPath = function(c, x, y, w, h)
 	{
 		var s = Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size)));
@@ -2167,6 +2195,10 @@
 	};
 	mxUtils.extend(LoopLimitShape, mxActor);
 	LoopLimitShape.prototype.size = 20;
+	LoopLimitShape.prototype.isRoundable = function()
+	{
+		return true;
+	};
 	LoopLimitShape.prototype.redrawPath = function(c, x, y, w, h)
 	{
 		var s = Math.min(w / 2, Math.min(h, parseFloat(mxUtils.getValue(this.style, 'size', this.size))));
@@ -2185,6 +2217,10 @@
 	};
 	mxUtils.extend(OffPageConnectorShape, mxActor);
 	OffPageConnectorShape.prototype.size = 3 / 8;
+	OffPageConnectorShape.prototype.isRoundable = function()
+	{
+		return true;
+	};
 	OffPageConnectorShape.prototype.redrawPath = function(c, x, y, w, h)
 	{
 		var s = h * Math.max(0, Math.min(1, parseFloat(mxUtils.getValue(this.style, 'size', this.size))));

Dosya farkı çok büyük olduğundan ihmal edildi
+ 171 - 170
src/main/webapp/js/reader.min.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 402 - 402
src/main/webapp/js/viewer.min.js