Browse Source

5.7.0.2 release

Gaudenz Alder 9 years ago
parent
commit
979d14a6a4

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+21-SEP-2016: 5.7.0.2
+
+- Uses mxGraph 3.7.0.0 beta 3
+- Fixes possible NPE for markup editor
+
 20-SEP-2016: 5.7.0.1
 
 - Fixes minor bug with autosave

+ 1 - 1
VERSION

@@ -1 +1 @@
-5.7.0.1
+5.7.0.2

File diff suppressed because it is too large
+ 1 - 1
etc/mxgraph/mxClient.js


+ 1 - 1
war/cache.manifest

@@ -1,7 +1,7 @@
 CACHE MANIFEST
 
 # THIS FILE WAS GENERATED. DO NOT MODIFY!
-# 09/20/2016 07:09 PM
+# 09/21/2016 08:31 AM
 
 /app.html
 /index.html?offline=1

File diff suppressed because it is too large
+ 7 - 7
war/js/app.min.js


File diff suppressed because it is too large
+ 8 - 8
war/js/atlas-viewer.min.js


File diff suppressed because it is too large
+ 7 - 7
war/js/atlas.min.js


File diff suppressed because it is too large
+ 9 - 9
war/js/embed-static.min.js


+ 52 - 49
war/js/mxgraph/Graph.js

@@ -5567,67 +5567,70 @@ if (typeof mxVertexHandler != 'undefined')
 		var mxCellEditorResize = mxCellEditor.prototype.resize;
 		mxCellEditor.prototype.resize = function(state, trigger)
 		{
-			var state = this.graph.getView().getState(this.editingCell);
-			
-			if (this.codeViewMode && state != null)
+			if (this.textarea != null)
 			{
-				var scale = state.view.scale;
-				this.bounds = mxRectangle.fromRectangle(state);
+				var state = this.graph.getView().getState(this.editingCell);
 				
-				// General placement of code editor if cell has no size
-				// LATER: Fix HTML editor bounds for edge labels
-				if (this.bounds.width == 0 && this.bounds.height == 0)
+				if (this.codeViewMode && state != null)
 				{
-					this.bounds.width = 160 * scale;
-					this.bounds.height = 60 * scale;
-					
-					var m = (state.text != null) ? state.text.margin : null;
+					var scale = state.view.scale;
+					this.bounds = mxRectangle.fromRectangle(state);
 					
-					if (m == null)
+					// General placement of code editor if cell has no size
+					// LATER: Fix HTML editor bounds for edge labels
+					if (this.bounds.width == 0 && this.bounds.height == 0)
 					{
-						m = mxUtils.getAlignmentAsPoint(mxUtils.getValue(state.style, mxConstants.STYLE_ALIGN, mxConstants.ALIGN_CENTER),
-								mxUtils.getValue(state.style, mxConstants.STYLE_VERTICAL_ALIGN, mxConstants.ALIGN_MIDDLE));
+						this.bounds.width = 160 * scale;
+						this.bounds.height = 60 * scale;
+						
+						var m = (state.text != null) ? state.text.margin : null;
+						
+						if (m == null)
+						{
+							m = mxUtils.getAlignmentAsPoint(mxUtils.getValue(state.style, mxConstants.STYLE_ALIGN, mxConstants.ALIGN_CENTER),
+									mxUtils.getValue(state.style, mxConstants.STYLE_VERTICAL_ALIGN, mxConstants.ALIGN_MIDDLE));
+						}
+						
+						this.bounds.x += m.x * this.bounds.width;
+						this.bounds.y += m.y * this.bounds.height;
+					}
+		
+					this.textarea.style.width = Math.round((this.bounds.width - 4) / scale) + 'px';
+					this.textarea.style.height = Math.round((this.bounds.height - 4) / scale) + 'px';
+					this.textarea.style.overflow = 'auto';
+		
+					// Adds scrollbar offset if visible
+					if (this.textarea.clientHeight < this.textarea.offsetHeight)
+					{
+						this.textarea.style.height = Math.round((this.bounds.height / scale)) + (this.textarea.offsetHeight - this.textarea.clientHeight) + 'px';
+						this.bounds.height = parseInt(this.textarea.style.height) * scale;
 					}
 					
-					this.bounds.x += m.x * this.bounds.width;
-					this.bounds.y += m.y * this.bounds.height;
-				}
-	
-				this.textarea.style.width = Math.round((this.bounds.width - 4) / scale) + 'px';
-				this.textarea.style.height = Math.round((this.bounds.height - 4) / scale) + 'px';
-				this.textarea.style.overflow = 'auto';
-	
-				// Adds scrollbar offset if visible
-				if (this.textarea.clientHeight < this.textarea.offsetHeight)
-				{
-					this.textarea.style.height = Math.round((this.bounds.height / scale)) + (this.textarea.offsetHeight - this.textarea.clientHeight) + 'px';
-					this.bounds.height = parseInt(this.textarea.style.height) * scale;
-				}
-				
-				if (this.textarea.clientWidth < this.textarea.offsetWidth)
-				{
-					this.textarea.style.width = Math.round((this.bounds.width / scale)) + (this.textarea.offsetWidth - this.textarea.clientWidth) + 'px';
-					this.bounds.width = parseInt(this.textarea.style.width) * scale;
-				}
-								
-				this.textarea.style.left = Math.round(this.bounds.x) + 'px';
-				this.textarea.style.top = Math.round(this.bounds.y) + 'px';
-	
-				if (mxClient.IS_VML)
-				{
-					this.textarea.style.zoom = scale;
+					if (this.textarea.clientWidth < this.textarea.offsetWidth)
+					{
+						this.textarea.style.width = Math.round((this.bounds.width / scale)) + (this.textarea.offsetWidth - this.textarea.clientWidth) + 'px';
+						this.bounds.width = parseInt(this.textarea.style.width) * scale;
+					}
+									
+					this.textarea.style.left = Math.round(this.bounds.x) + 'px';
+					this.textarea.style.top = Math.round(this.bounds.y) + 'px';
+		
+					if (mxClient.IS_VML)
+					{
+						this.textarea.style.zoom = scale;
+					}
+					else
+					{
+						mxUtils.setPrefixedStyle(this.textarea.style, 'transform', 'scale(' + scale + ',' + scale + ')');	
+					}
 				}
 				else
 				{
-					mxUtils.setPrefixedStyle(this.textarea.style, 'transform', 'scale(' + scale + ',' + scale + ')');	
+					this.textarea.style.height = '';
+					this.textarea.style.overflow = '';
+					mxCellEditorResize.apply(this, arguments);
 				}
 			}
-			else
-			{
-				this.textarea.style.height = '';
-				this.textarea.style.overflow = '';
-				mxCellEditorResize.apply(this, arguments);
-			}
 		};
 		
 		mxCellEditorGetInitialValue = mxCellEditor.prototype.getInitialValue;

File diff suppressed because it is too large
+ 9 - 9
war/js/reader.min.js


File diff suppressed because it is too large
+ 6 - 6
war/js/viewer.min.js