Skip to content

Commit

Permalink
7.2.9 release
Browse files Browse the repository at this point in the history
  • Loading branch information
alderg committed Aug 25, 2017
1 parent e45939f commit 655827b
Show file tree
Hide file tree
Showing 14 changed files with 1,304 additions and 1,202 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
25-AUG-2017: 7.2.9

- Moves clickable label links to tooltip in edit mode

25-AUG-2017: 7.2.8

- Fixes open in new window for local exports
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.2.8
7.2.9
2 changes: 1 addition & 1 deletion war/cache.manifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CACHE MANIFEST

# THIS FILE WAS GENERATED. DO NOT MODIFY!
# 08/25/2017 09:23 AM
# 08/25/2017 12:29 PM

app.html
index.html?offline=1
Expand Down
304 changes: 153 additions & 151 deletions war/js/app.min.js

Large diffs are not rendered by default.

238 changes: 120 additions & 118 deletions war/js/atlas-viewer.min.js

Large diffs are not rendered by default.

542 changes: 272 additions & 270 deletions war/js/atlas.min.js

Large diffs are not rendered by default.

33 changes: 25 additions & 8 deletions war/js/diagramly/Trees.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,21 +353,21 @@ EditorUi.prototype.addTrees = function()
{
var newSource = target;

if (isTreeVertex(target))
if (cells != null && isTreeVertex(target))
{
// Handles only drag from tree or from sidebar with dangling edges
for (var i = 0; i < cells.length; i++)
{
if (isTreeVertex(cells[i]) || (graph.model.isEdge(cells[i]) &&
graph.model.getTerminal(cells[i], true) == null))
{
target = null;
target = graph.model.getParent(cells[i]);
break;
}
}

// Applies distance between previous and current parent for non-sidebar drags
if (newSource != null && target == null && this.view.getState(cells[0]) != null)
if (newSource != null && target != newSource && this.view.getState(cells[0]) != null)
{
var edges = graph.getIncomingEdges(cells[0]);

Expand All @@ -391,7 +391,7 @@ EditorUi.prototype.addTrees = function()

result = graphMoveCells.apply(this, arguments);

if (result.length == cells.length)
if (result != null && cells != null && result.length == cells.length)
{
for (var i = 0; i < result.length; i++)
{
Expand Down Expand Up @@ -427,7 +427,7 @@ EditorUi.prototype.addTrees = function()
{
var temp = newSource;

if (temp == null)
if (temp == null || temp == graph.model.getParent(cells[i]))
{
temp = graph.model.getTerminal(edges[0], true);
}
Expand Down Expand Up @@ -566,8 +566,11 @@ EditorUi.prototype.addTrees = function()
clones[1].geometry.x = cell.geometry.x + cell.geometry.width - clones[1].geometry.width;
}

clones[1].geometry.x -= pgeo.x;
clones[1].geometry.y -= pgeo.y;
if (graph.view.currentRoot != parent)
{
clones[1].geometry.x -= pgeo.x;
clones[1].geometry.y -= pgeo.y;
}

// Moves existing siblings
var state = graph.view.getState(cell);
Expand Down Expand Up @@ -687,8 +690,16 @@ EditorUi.prototype.addTrees = function()
graph.model.setTerminal(clones[0], cell, false);

// Makes space for new parent
var parent = graph.model.getParent(cell);
var pgeo = parent.geometry;
var subtree = [];

if (graph.view.currentRoot != parent)
{
clones[1].geometry.x -= pgeo.x;
clones[1].geometry.y -= pgeo.y;
}

graph.traverse(cell, true, function(vertex, edge)
{
if (edge != null)
Expand Down Expand Up @@ -725,7 +736,7 @@ EditorUi.prototype.addTrees = function()

graph.moveCells(subtree, dx, dy);

return graph.addCells(clones);
return graph.addCells(clones, parent);
}
finally
{
Expand All @@ -748,6 +759,12 @@ EditorUi.prototype.addTrees = function()
var pgeo = parent.geometry;
var targets = [];

// Not offset if inside group
if (graph.view.currentRoot == parent)
{
pgeo = new mxRectangle();
}

for (var i = 0; i < edges.length; i++)
{
var target = graph.model.getTerminal(edges[i], false);
Expand Down
4 changes: 0 additions & 4 deletions war/js/diagramly/sidebar/Sidebar-Basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,10 @@

this.addPaletteFunctions('basic', mxResources.get('basic'), false,
[
this.createVertexTemplateEntry('shape=partialRectangle;whiteSpace=wrap;html=1;left=0;right=0;fillColor=none;', 120, 60, '', 'Partial Rectangle'),
this.createVertexTemplateEntry('shape=partialRectangle;whiteSpace=wrap;html=1;top=0;bottom=0;fillColor=none;', 120, 60, '', 'Partial Rectangle'),
this.createVertexTemplateEntry('shape=partialRectangle;whiteSpace=wrap;html=1;left=0;right=0;top=0;fillColor=none;routingCenterY=0.5;', 120, 60, '', 'Partial Rectangle'),
this.createVertexTemplateEntry('shape=partialRectangle;whiteSpace=wrap;html=1;right=0;top=0;bottom=0;fillColor=none;routingCenterX=-0.5;', 120, 60, '', 'Partial Rectangle'),
this.createVertexTemplateEntry('shape=partialRectangle;whiteSpace=wrap;html=1;bottom=0;right=0;fillColor=none;', 120, 60, '', 'Partial Rectangle'),
this.createVertexTemplateEntry('shape=partialRectangle;whiteSpace=wrap;html=1;top=0;left=0;fillColor=none;', 120, 60, '', 'Partial Rectangle'),
this.createVertexTemplateEntry('shape=partialRectangle;whiteSpace=wrap;html=1;bottom=1;right=1;top=0;bottom=1;fillColor=none;routingCenterX=-0.5;', 120, 60, '', 'Partial Rectangle'),
this.createEdgeTemplateEntry('shape=filledEdge;fixDash=1;rounded=0;endArrow=none;strokeWidth=10;fillColor=#ffffff;edgeStyle=orthogonalEdgeStyle;', 120, 60, '', 'Filled Edge'),
this.createVertexTemplateEntry(s2 + '4_point_star', w, h, '', '4 Point Star', null, null, this.getTagsForStencil(gn, '4_point_star', dt).join(' ')),
this.createVertexTemplateEntry(s2 + '6_point_star', w, h * 0.9, '', '6 Point Star', null, null, this.getTagsForStencil(gn, '6_point_star', dt).join(' ')),
this.createVertexTemplateEntry(s2 + '8_point_star', w, h, '', '8 Point Star', null, null, this.getTagsForStencil(gn, '8_point_star', dt).join(' ')),
Expand Down
Loading

0 comments on commit 655827b

Please sign in to comment.