Skip to content

Commit

Permalink
1.8.28
Browse files Browse the repository at this point in the history
* Fixed a Link re-routing bug during drags, when DraggingTool.isComplexRoutingRealtime is set to false. It would incorrectly re-compute AvoidsNodes routes during the drag if a node was crossed, instead of only deciding at the end of drag whether to re-compute.
* Fixed a drawing bug where the start of Group collapse/expand animations may draw one frame of its ending state.
* Setting Diagram.scrollMode now correctly updates the Diagram's scrollbars. The setter also no longer raises a Changed event.
* Fixed a bug where changing the Link.fromNode or Link.toNode in a TreeModel could result in duplicate links.
  • Loading branch information
WalterNorthwoods committed Aug 24, 2018
1 parent 76da9c1 commit 3b1466c
Show file tree
Hide file tree
Showing 94 changed files with 4,162 additions and 4,115 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ GoJS, a JavaScript Library for HTML Diagrams

[GoJS](https://gojs.net) is a JavaScript and TypeScript library for creating and manipulating diagrams, charts, and graphs.

[![GitHub release](https://img.shields.io/github/release/NorthwoodsSoftware/GoJS.svg)]()
[![](https://img.shields.io/github/issues-raw/NorthwoodsSoftware/GoJS.svg)]()
[![GitHub last commit](https://img.shields.io/github/last-commit/NorthwoodsSoftware/GoJS.svg)]()
![release](https://img.shields.io/github/release/NorthwoodsSoftware/GoJS.svg)
![open issues](https://img.shields.io/github/issues-raw/NorthwoodsSoftware/GoJS.svg)
![last commit](https://img.shields.io/github/last-commit/NorthwoodsSoftware/GoJS.svg)
![downloads](https://img.shields.io/npm/dw/gojs.svg)
[![Twitter Follow](https://img.shields.io/twitter/follow/NorthwoodsGo.svg?style=social&label=Follow)](https://twitter.com/NorthwoodsGo)

[See GoJS Samples](https://gojs.net/latest/samples)
Expand Down
2 changes: 1 addition & 1 deletion api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,7 @@
</div>
</div>
<div id="header" class="fineprint">
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.27 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.28 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
</div>
<h1 class="classTitle">GoJS Class Index</h1>

Expand Down
2 changes: 1 addition & 1 deletion api/symbols/ActionTool.html
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@

<!-- ============================== header ================================= -->
<div id="header" class="fineprint">
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.27 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.28 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
</div>

<!-- ============================== class title ============================ -->
Expand Down
2 changes: 1 addition & 1 deletion api/symbols/Adornment.html
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@

<!-- ============================== header ================================= -->
<div id="header" class="fineprint">
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.27 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.28 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
</div>

<!-- ============================== class title ============================ -->
Expand Down
2 changes: 1 addition & 1 deletion api/symbols/AnimationManager.html
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@

<!-- ============================== header ================================= -->
<div id="header" class="fineprint">
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.27 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.28 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
</div>

<!-- ============================== class title ============================ -->
Expand Down
2 changes: 1 addition & 1 deletion api/symbols/Binding.html
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@

<!-- ============================== header ================================= -->
<div id="header" class="fineprint">
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.27 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.28 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
</div>

<!-- ============================== class title ============================ -->
Expand Down
2 changes: 1 addition & 1 deletion api/symbols/Brush.html
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@

<!-- ============================== header ================================= -->
<div id="header" class="fineprint">
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.27 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.28 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
</div>

<!-- ============================== class title ============================ -->
Expand Down
2 changes: 1 addition & 1 deletion api/symbols/ChangedEvent.html
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@

<!-- ============================== header ================================= -->
<div id="header" class="fineprint">
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.27 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.28 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
</div>

<!-- ============================== class title ============================ -->
Expand Down
2 changes: 1 addition & 1 deletion api/symbols/CircularEdge.html
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@

<!-- ============================== header ================================= -->
<div id="header" class="fineprint">
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.27 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.28 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
</div>

<!-- ============================== class title ============================ -->
Expand Down
2 changes: 1 addition & 1 deletion api/symbols/CircularLayout.html
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@

<!-- ============================== header ================================= -->
<div id="header" class="fineprint">
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.27 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.28 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
</div>

<!-- ============================== class title ============================ -->
Expand Down
2 changes: 1 addition & 1 deletion api/symbols/CircularNetwork.html
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@

<!-- ============================== header ================================= -->
<div id="header" class="fineprint">
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.27 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.28 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
</div>

<!-- ============================== class title ============================ -->
Expand Down
2 changes: 1 addition & 1 deletion api/symbols/CircularVertex.html
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@

<!-- ============================== header ================================= -->
<div id="header" class="fineprint">
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.27 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.28 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
</div>

<!-- ============================== class title ============================ -->
Expand Down
2 changes: 1 addition & 1 deletion api/symbols/ClickCreatingTool.html
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@

<!-- ============================== header ================================= -->
<div id="header" class="fineprint">
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.27 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.28 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
</div>

<!-- ============================== class title ============================ -->
Expand Down
2 changes: 1 addition & 1 deletion api/symbols/ClickSelectingTool.html
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@

<!-- ============================== header ================================= -->
<div id="header" class="fineprint">
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.27 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.28 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
</div>

<!-- ============================== class title ============================ -->
Expand Down
2 changes: 1 addition & 1 deletion api/symbols/CommandHandler.html
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@

<!-- ============================== header ================================= -->
<div id="header" class="fineprint">
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.27 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.28 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
</div>

<!-- ============================== class title ============================ -->
Expand Down
2 changes: 1 addition & 1 deletion api/symbols/ContextMenuTool.html
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@

<!-- ============================== header ================================= -->
<div id="header" class="fineprint">
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.27 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.28 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
</div>

<!-- ============================== class title ============================ -->
Expand Down
10 changes: 5 additions & 5 deletions api/symbols/Diagram.html
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@

<!-- ============================== header ================================= -->
<div id="header" class="fineprint">
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.27 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.28 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
</div>

<!-- ============================== class title ============================ -->
Expand Down Expand Up @@ -3250,7 +3250,7 @@ <h2 class="summaryCaption">Properties<span class="nodetails"> Summary</span><spa
<td class="description">
<div class="description">
<!--newp <p> -->
<p>Gets or sets the scrollMode of the Diagram, allowing the user to eitherscroll to document bound borders with <a href="../symbols/Diagram.html#DocumentScroll" class="linkConstant">Diagram.DocumentScroll</a>,or scroll endlessly with <a href="../symbols/Diagram.html#InfiniteScroll" class="linkConstant">Diagram.InfiniteScroll</a>.<span class="nodetails" id="xpropscrollMode"><a class="morelink" onclick="hst('propscrollMode')">More...</a></span> <span class="details" id="propscrollMode"></span><div class="details" id="dpropscrollMode"><p>The default value is <a href="../symbols/Diagram.html#DocumentScroll" class="linkConstant">Diagram.DocumentScroll</a>.</div>
<p>Gets or sets the scrollMode of the Diagram, allowing the user to eitherscroll to document bound borders with <a href="../symbols/Diagram.html#DocumentScroll" class="linkConstant">Diagram.DocumentScroll</a>,or scroll endlessly with <a href="../symbols/Diagram.html#InfiniteScroll" class="linkConstant">Diagram.InfiniteScroll</a>.<span class="nodetails" id="xpropscrollMode"><a class="morelink" onclick="hst('propscrollMode')">More...</a></span> <span class="details" id="propscrollMode"></span><div class="details" id="dpropscrollMode"><p>The default value is <a href="../symbols/Diagram.html#DocumentScroll" class="linkConstant">Diagram.DocumentScroll</a>.Changing this property value does not raise a Changed event.</div>

</div>
</td>
Expand Down Expand Up @@ -3993,7 +3993,7 @@ <h2 class="summaryCaption">Method <span class="nodetails"> Summary</span><span c
</td>
<td class="description">
<div class="description">
<!--newp--><p><p>Starts a new transaction, calls the provided function, and commits the transaction.<span class="nodetails" id="xmethcommit"><a class="morelink" onclick="hst('methcommit')">More...</a></span> <span class="details" id="methcommit">Code is called within a try-finally loop.If the function does not return normally, this rolls back the transaction rather than committing it.Example usage:<pre>diagram.commit(d => d.model.addNodeData({ counter: myCounter++ }), "Added Node");</pre></span>
<!--newp--><p><p>Starts a new transaction, calls the provided function, and commits the transaction.<span class="nodetails" id="xmethcommit"><a class="morelink" onclick="hst('methcommit')">More...</a></span> <span class="details" id="methcommit">Code is called within a try-finally statement.If the function does not return normally, this rolls back the transaction rather than committing it.Example usage:<pre>diagram.commit(d => d.model.addNodeData({ counter: myCounter++ }), "Added Node");</pre></span>


<dl class="detailList">
Expand Down Expand Up @@ -4331,7 +4331,7 @@ <h2 class="summaryCaption">Method <span class="nodetails"> Summary</span><span c
</td>
<td class="description">
<div class="description">
<!--newp--><p><p>Return a collection of Links that are bound to data whose properties have valuesthat match those specified by the given example data.<span class="nodetails" id="xmethfindLinksByExample"><a class="morelink" onclick="hst('methfindLinksByExample')">More...</a></span> <span class="details" id="methfindLinksByExample"></span><div class="details" id="dmethfindLinksByExample"><p>See the documentation of <a href="../symbols/Diagram.html#findNodesByExample" class="linkMethod">findNodesByExample</a> for how the exampledata can match data of bound Parts.</div>
<!--newp--><p><p>Search for Links by matching the Link data with example data holding values, RegExps, or predicates.<span class="nodetails" id="xmethfindLinksByExample"><a class="morelink" onclick="hst('methfindLinksByExample')">More...</a></span> <span class="details" id="methfindLinksByExample"></span><div class="details" id="dmethfindLinksByExample"><p>See the documentation of <a href="../symbols/Diagram.html#findNodesByExample" class="linkMethod">findNodesByExample</a> for how the exampledata can match data of bound Parts.</div>

</p><div class="seealso">See also:
<ul class="seealsolist">
Expand Down Expand Up @@ -4460,7 +4460,7 @@ <h2 class="summaryCaption">Method <span class="nodetails"> Summary</span><span c
</td>
<td class="description">
<div class="description">
<!--newp--><p><p>Return a collection of Nodes and Groups that are bound to data whose properties have valuesthat match those specified by the given example data.<span class="nodetails" id="xmethfindNodesByExample"><a class="morelink" onclick="hst('methfindNodesByExample')">More...</a></span> <span class="details" id="methfindNodesByExample"></span><div class="details" id="dmethfindNodesByExample"><p>For example, calling this method with an argument object:<code>{ sex: "M", name: /^Alex/i, age: function(n) { return n >= 18; } }</code>will return an iterator of Nodes whose <code>Node.data</code> is a JavaScript object whose:<ul><li>sex is "M" (a case-sensitive string comparison), and</li><li>name starts with the string "Alex" (using a case-insensitive match), and</li><li>age is greater than or equal to 18</ul><p>Here is how an example value can match the corresponding data value:<ul><li>A string, number, or boolean is compared with the === operator.</li><li>A function is treated as a predicate and applied to the data value.</li><li>A regular expression (RexExp) is matched against the toString() of the data value.Common expressions include: <ul> <li><code>/abc/</code> matches any string that includes exactly the substring "abc"</li> <li><code>/abc/i</code> matches any string that includes the substring "abc", but uses a case-insensitive comparison</li> <li><code>/^no/i</code> matches any string that starts with "no", ignoring case</li> <li><code>/ism$</code> matches any string that ends with "ism" exactly</li> <li><code>/(green|red) apple/</code> matches any string that includes either "green apple" or "red apple"</li> </ul>For more details read <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions">Regular Expressions (mozilla.org)</a>.</li><li>An Array requires the data value to also be an Array of equal or greater length.Each example array item that is not undefined is matched with the corresponding data array item.</li><li>An Object is recursively matched with the data value, which must also be an Object.</li></ul>All properties given by the argument example data must be present on the node data,unless the example property value is undefined.All other data properties are ignored when matching.<p>When multiple argument objects are given, if any of the objects match the node's data,the node is included in the results.</div>
<!--newp--><p><p>Search for Nodes or Groups by matching the Node data with example data holding values, RegExps, or predicates.<span class="nodetails" id="xmethfindNodesByExample"><a class="morelink" onclick="hst('methfindNodesByExample')">More...</a></span> <span class="details" id="methfindNodesByExample"></span><div class="details" id="dmethfindNodesByExample"><p>For example, calling this method with an argument object:<code>{ sex: "M", name: /^Alex/i, age: function(n) { return n >= 18; } }</code>will return an iterator of Nodes whose <code>Node.data</code> is a JavaScript object whose:<ul><li>sex is "M" (a case-sensitive string comparison), and</li><li>name starts with the string "Alex" (using a case-insensitive match), and</li><li>age is greater than or equal to 18</ul><p>Here is how an example value can match the corresponding data value:<ul><li>A string, number, or boolean is compared with the === operator.</li><li>A function is treated as a predicate and applied to the data value.</li><li>A regular expression (RexExp) is matched against the toString() of the data value.Common expressions include: <ul> <li><code>/abc/</code> matches any string that includes exactly the substring "abc"</li> <li><code>/abc/i</code> matches any string that includes the substring "abc", but uses a case-insensitive comparison</li> <li><code>/^no/i</code> matches any string that starts with "no", ignoring case</li> <li><code>/ism$</code> matches any string that ends with "ism" exactly</li> <li><code>/(green|red) apple/</code> matches any string that includes either "green apple" or "red apple"</li> </ul>For more details read <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions">Regular Expressions (mozilla.org)</a>.</li><li>An Array requires the data value to also be an Array of equal or greater length.Each example array item that is not undefined is matched with the corresponding data array item.</li><li>An Object is recursively matched with the data value, which must also be an Object.</li></ul>All properties given by the argument example data must be present on the node data,unless the example property value is undefined.All other data properties are ignored when matching.<p>When multiple argument objects are given, if any of the objects match the node's data,the node is included in the results.</div>

</p><div class="seealso">See also:
<ul class="seealsolist">
Expand Down
2 changes: 1 addition & 1 deletion api/symbols/DiagramEvent.html
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@

<!-- ============================== header ================================= -->
<div id="header" class="fineprint">
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.27 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
<b>GoJS</b>&reg; Diagramming Components<br/>version 1.8.28 for JavaScript/HTML<br/>by <a href="https://www.nwoods.com/">Northwoods Software&reg;</a>
</div>

<!-- ============================== class title ============================ -->
Expand Down
Loading

0 comments on commit 3b1466c

Please sign in to comment.