فهرست منبع

8.6.1 release

Gaudenz Alder 7 سال پیش
والد
کامیت
dbe09d8cf9

+ 6 - 0
ChangeLog

@@ -1,3 +1,9 @@
+08-MAY-2018: 8.6.1
+
+- Fixes links for transparent groups in viewer
+- Fixes minimal UI for small screens
+- Uses mxGraph 3.9.4 beta 6
+
 06-MAY-2018: 8.6.0
 
 - Fixes outline connect for BPMN shapes

+ 1 - 1
VERSION

@@ -1 +1 @@
-8.6.0
+8.6.1

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 2 - 2
etc/mxgraph/mxClient.js


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

@@ -1,7 +1,7 @@
 CACHE MANIFEST
 
 # THIS FILE WAS GENERATED. DO NOT MODIFY!
-# 05/06/2018 04:15 PM
+# 05/08/2018 11:00 AM
 
 app.html
 index.html?offline=1

+ 0 - 36
src/main/webapp/index.html

@@ -73,42 +73,6 @@
 			}
 		}
 		
-		// Redirects page if required
-		if (urlParams['dev'] != '1')
-		{
-			(function()
-			{
-				var proto = window.location.protocol;
-				
-				// Electron protocol is file:
-				if (proto != 'file:')
-				{
-					var host = window.location.host;
-		
-					// Redirects apex and rt to www
-					if (host === 'draw.io' || host === 'rt.draw.io')
-					{
-						host = 'www.draw.io';
-					}
-					
-					if (proto != 'https:')
-					{
-						proto = 'https:';
-					}
-					
-					var href = proto + '//' + host + window.location.href.substring(
-							window.location.protocol.length +
-							window.location.host.length + 2);
-		
-					// Redirects if href changes
-					if (href != window.location.href)
-					{
-						window.location.href = href;
-					}
-				}
-			})();
-		}
-		
 		/**
 		 * Adds meta tags with application name (depends on offline URL parameter)
 		 */

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 517 - 516
src/main/webapp/js/app.min.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 251 - 250
src/main/webapp/js/atlas-viewer.min.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 787 - 786
src/main/webapp/js/atlas.min.js


+ 1 - 1
src/main/webapp/js/diagramly/EditorUi.js

@@ -10019,7 +10019,7 @@
 							html = '';
 							break;
 						case appCache.IDLE: // IDLE == 1
-							html = '<img title="draw.io is up to date." border="0" src="' + IMAGE_PATH + '/checkmark.gif"/>';
+							html = (uiTheme == 'min') ? '' : '<img title="draw.io is up to date." border="0" src="' + IMAGE_PATH + '/checkmark.gif"/>';
 							break;
 						case appCache.DOWNLOADING: // DOWNLOADING == 3
 							html = '<img title="Downloading new version..." border="0" src="' + IMAGE_PATH + '/spin.gif"/>';

+ 0 - 6
src/main/webapp/js/diagramly/Init.js

@@ -264,9 +264,3 @@ if (urlParams['lightbox'] == '1')
 {
 	urlParams['chrome'] = '0';
 }
-
-// Minimal UI disables chromeless toolbar
-if (uiTheme == 'min')
-{
-	urlParams['toolbar'] = '0';
-}

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 97 - 53
src/main/webapp/js/diagramly/Minimal.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 55 - 55
src/main/webapp/js/embed-static.min.js


+ 139 - 118
src/main/webapp/js/mxgraph/Graph.js

@@ -5250,9 +5250,9 @@ if (typeof mxVertexHandler != 'undefined')
 							links[i].setAttribute('href', href);
 							
 							if (beforeClick != null)
-			    				{
+			    			{
 								mxEvent.addGestureListeners(links[i], null, null, beforeClick);
-			    				}
+			    			}
 						}
 					}
 				}
@@ -5277,157 +5277,178 @@ if (typeof mxVertexHandler != 'undefined')
 			    scrollTop: 0,
 			    updateCurrentState: function(me)
 			    {
-			    		var tmp = me.sourceState;
-					
+			    	var tmp = me.sourceState;
+			    	
+			    	// Gets topmost intersecting cell with link
+			    	if (tmp == null || graph.getLinkForCell(tmp.cell) == null)
+			    	{
+			    		var cell = graph.getCellAt(me.getGraphX(), me.getGraphY(), null, null, null, function(state, x, y)
+	    				{
+			    			return graph.getLinkForCell(state.cell) == null;
+	    				});
+			    		
+			    		tmp = graph.view.getState(cell);
+			    	}
+			    	
 			      	if (tmp != this.currentState)
 			      	{
-				        	if (this.currentState != null)
-				        	{
+			        	if (this.currentState != null)
+			        	{
 				          	this.clear();
-				        	}
+			        	}
 				        
-			        		this.currentState = tmp;
+			        	this.currentState = tmp;
 				        
-				        	if (this.currentState != null)
-				        	{
+			        	if (this.currentState != null)
+			        	{
 				          	this.activate(this.currentState);
-				        	}
+			        	}
 			      	}
 			    },
 			    mouseDown: function(sender, me)
 			    {
-				    	this.startX = me.getGraphX();
-				    	this.startY = me.getGraphY();
-					    this.scrollLeft = graph.container.scrollLeft;
-					    this.scrollTop = graph.container.scrollTop;
-					    
-			    		if (this.currentLink == null && graph.container.style.overflow == 'auto')
-			    		{
-			    			graph.container.style.cursor = 'move';
-			    		}
-			    		
-			    		this.updateCurrentState(me);
+			    	this.startX = me.getGraphX();
+			    	this.startY = me.getGraphY();
+				    this.scrollLeft = graph.container.scrollLeft;
+				    this.scrollTop = graph.container.scrollTop;
+				    
+		    		if (this.currentLink == null && graph.container.style.overflow == 'auto')
+		    		{
+		    			graph.container.style.cursor = 'move';
+		    		}
+		    		
+		    		this.updateCurrentState(me);
 			    },
 			    mouseMove: function(sender, me)
 			    {
-				    	if (graph.isMouseDown)
-				    	{
-				    		if (this.currentLink != null)
-				    		{
-						    	var dx = Math.abs(this.startX - me.getGraphX());
-						    	var dy = Math.abs(this.startY - me.getGraphY());
-						    	
-						    	if (dx > tol || dy > tol)
-						    	{
-						    		this.clear();
-						    	}
-				    		}
-				    	}
-				    	else
-				    	{
-					    	// Checks for parent link
-					    	var linkNode = me.getSource();
+			    	if (graph.isMouseDown)
+			    	{
+			    		if (this.currentLink != null)
+			    		{
+					    	var dx = Math.abs(this.startX - me.getGraphX());
+					    	var dy = Math.abs(this.startY - me.getGraphY());
 					    	
-					    	while (linkNode != null && linkNode.nodeName.toLowerCase() != 'a')
+					    	if (dx > tol || dy > tol)
 					    	{
-					    		linkNode = linkNode.parentNode;
+					    		this.clear();
 					    	}
-					    	
-				    		if (linkNode != null)
-				    		{
-				    			this.clear();
-				    		}
-				    		else
-				    		{
-						    	if (this.currentState != null && (me.getState() == this.currentState || me.sourceState == null) &&
-						    		graph.intersects(this.currentState, me.getGraphX(), me.getGraphY()))
-						    	{
-					    			return;
-						    	}
-						    	
-						    	this.updateCurrentState(me);
-				    		}
-				    	}
-			    },
-			    mouseUp: function(sender, me)
-			    {
-				    	var source = me.getSource();
-				    	var evt = me.getEvent();
-				    	
+			    		}
+			    	}
+			    	else
+			    	{
 				    	// Checks for parent link
-				    	var linkNode = source;
+				    	var linkNode = me.getSource();
 				    	
 				    	while (linkNode != null && linkNode.nodeName.toLowerCase() != 'a')
 				    	{
 				    		linkNode = linkNode.parentNode;
 				    	}
 				    	
-				    	// Ignores clicks on links and collapse/expand icon
-				    	if (linkNode == null &&
-				    		(((Math.abs(this.scrollLeft - graph.container.scrollLeft) < tol &&
-				        	Math.abs(this.scrollTop - graph.container.scrollTop) < tol) &&
-				    		(me.sourceState == null || !me.isSource(me.sourceState.control))) &&
-				    		(((mxEvent.isLeftMouseButton(evt) || mxEvent.isMiddleMouseButton(evt)) &&
-						!mxEvent.isPopupTrigger(evt)) || mxEvent.isTouchEvent(evt))))
-				    	{
-					    	if (this.currentLink != null)
+			    		if (linkNode != null)
+			    		{
+			    			this.clear();
+			    		}
+			    		else
+			    		{
+				    		if (graph.tooltipHandler != null && this.currentLink != null && this.currentState != null)
+				    		{
+				    			graph.tooltipHandler.reset(me, true, this.currentState);
+				    		}
+				    		
+					    	if (this.currentState != null && (me.getState() == this.currentState || me.sourceState == null) &&
+					    		graph.intersects(this.currentState, me.getGraphX(), me.getGraphY()))
 					    	{
-					    		var blank = graph.isBlankLink(this.currentLink);
-					    		
-					    		if ((this.currentLink.substring(0, 5) === 'data:' ||
-					    			!blank) && beforeClick != null)
-					    		{
-				    				beforeClick(evt, this.currentLink);
-					    		}
-					    		
-					    		if (!mxEvent.isConsumed(evt))
-					    		{
-						    		var target = (mxEvent.isMiddleMouseButton(evt)) ? '_blank' :
-						    			((blank) ? graph.linkTarget : '_top');
-						    		graph.openLink(this.currentLink, target);
-						    		me.consume();
-					    		}
+				    			return;
 					    	}
-					    	else if (onClick != null && !me.isConsumed() &&
-				    			(Math.abs(this.scrollLeft - graph.container.scrollLeft) < tol &&
-				        		Math.abs(this.scrollTop - graph.container.scrollTop) < tol) &&
-				        		(Math.abs(this.startX - me.getGraphX()) < tol &&
-				        		Math.abs(this.startY - me.getGraphY()) < tol))
-				        	{
-					    		onClick(me.getEvent());
-				    		}
-				    	}
-				    	
-				    	this.clear();
+					    	
+					    	this.updateCurrentState(me);
+			    		}
+			    	}
 			    },
-			    activate: function(state)
+			    mouseUp: function(sender, me)
 			    {
-				    	this.currentLink = graph.getAbsoluteUrl(graph.getLinkForCell(state.cell));
-	
+			    	var source = me.getSource();
+			    	var evt = me.getEvent();
+			    	
+			    	// Checks for parent link
+			    	var linkNode = source;
+			    	
+			    	while (linkNode != null && linkNode.nodeName.toLowerCase() != 'a')
+			    	{
+			    		linkNode = linkNode.parentNode;
+			    	}
+			    	
+			    	// Ignores clicks on links and collapse/expand icon
+			    	if (linkNode == null &&
+			    		(((Math.abs(this.scrollLeft - graph.container.scrollLeft) < tol &&
+			        	Math.abs(this.scrollTop - graph.container.scrollTop) < tol) &&
+			    		(me.sourceState == null || !me.isSource(me.sourceState.control))) &&
+			    		(((mxEvent.isLeftMouseButton(evt) || mxEvent.isMiddleMouseButton(evt)) &&
+			    		!mxEvent.isPopupTrigger(evt)) || mxEvent.isTouchEvent(evt))))
+			    	{
 				    	if (this.currentLink != null)
 				    	{
-				    		graph.container.style.cursor = 'pointer';
-	
-				    		if (this.highlight != null)
+				    		var blank = graph.isBlankLink(this.currentLink);
+				    		
+				    		if ((this.currentLink.substring(0, 5) === 'data:' ||
+				    			!blank) && beforeClick != null)
+				    		{
+			    				beforeClick(evt, this.currentLink);
+				    		}
+				    		
+				    		if (!mxEvent.isConsumed(evt))
 				    		{
-				    			this.highlight.highlight(state);
+					    		var target = (mxEvent.isMiddleMouseButton(evt)) ? '_blank' :
+					    			((blank) ? graph.linkTarget : '_top');
+					    		graph.openLink(this.currentLink, target);
+					    		me.consume();
 				    		}
+				    	}
+				    	else if (onClick != null && !me.isConsumed() &&
+			    			(Math.abs(this.scrollLeft - graph.container.scrollLeft) < tol &&
+			        		Math.abs(this.scrollTop - graph.container.scrollTop) < tol) &&
+			        		(Math.abs(this.startX - me.getGraphX()) < tol &&
+			        		Math.abs(this.startY - me.getGraphY()) < tol))
+			        	{
+				    		onClick(me.getEvent());
+			    		}
+			    	}
+			    	
+			    	this.clear();
+			    },
+			    activate: function(state)
+			    {
+			    	this.currentLink = graph.getAbsoluteUrl(graph.getLinkForCell(state.cell));
+
+			    	if (this.currentLink != null)
+			    	{
+			    		graph.container.style.cursor = 'pointer';
+
+			    		if (this.highlight != null)
+			    		{
+			    			this.highlight.highlight(state);
+			    		}
 				    }
 			    },
 			    clear: function()
 			    {
-				    	if (graph.container != null)
-				    	{
-				    		graph.container.style.cursor = cursor;
-				    	}
-				    	
-				    	this.currentState = null;
-				    	this.currentLink = null;
-				    	
-				    	if (this.highlight != null)
-				    	{
-				    		this.highlight.hide();
-				    	}
+			    	if (graph.container != null)
+			    	{
+			    		graph.container.style.cursor = cursor;
+			    	}
+			    	
+			    	this.currentState = null;
+			    	this.currentLink = null;
+			    	
+			    	if (this.highlight != null)
+			    	{
+			    		this.highlight.hide();
+			    	}
+			    	
+			    	if (graph.tooltipHandler != null)
+		    		{
+		    			graph.tooltipHandler.hide();
+		    		}
 			    }
 			};
 

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 55 - 55
src/main/webapp/js/reader.min.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 251 - 250
src/main/webapp/js/viewer.min.js