Skip to content

Commit

Permalink
make the don't wiggle showAllTicks work
Browse files Browse the repository at this point in the history
  • Loading branch information
wendymungovan committed Mar 26, 2019
1 parent c640813 commit 981bbf1
Showing 1 changed file with 244 additions and 0 deletions.
244 changes: 244 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,18 @@ <h3 class='mb0 no-anchor'>react-d3-graph</h3>
#_tick
</a></li>

<li><a
href='#graph_tock'
class='regular pre-open'>
#_tock
</a></li>

<li><a
href='#graph_simulationend'
class='regular pre-open'>
#_simulationEnd
</a></li>

<li><a
href='#graph_zoomconfig'
class='regular pre-open'>
Expand Down Expand Up @@ -155,6 +167,12 @@ <h3 class='mb0 no-anchor'>react-d3-graph</h3>
#restartSimulation
</a></li>

<li><a
href='#graphrestartsimulationalpha'
class='regular pre-open'>
#restartSimulationAlpha
</a></li>

<li><a
href='#graphcomponentwillreceiveprops'
class='regular pre-open'>
Expand Down Expand Up @@ -1241,6 +1259,28 @@ <h2 id="config-d3"><a href="#config-d3">#</a> d3 level configurations</h2>
(default <code>5</code>)
</td>
<td class='break-word'><span>the depth or height of the tree or flow
</span></td>
</tr>



<tr>
<td class='break-word'><span class='code bold'>d3.showAllTicks</span> <code class='quiet'><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean">boolean</a></code>

(default <code>true</code>)
</td>
<td class='break-word'><span>if we should render all ticks
</span></td>
</tr>



<tr>
<td class='break-word'><span class='code bold'>d3.ticks</span> <code class='quiet'><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a></code>

(default <code>1000</code>)
</td>
<td class='break-word'><span>if showAllTicks == false, this will run 1000 iterations of the force without rendering the result

<br/>
</span></td>
Expand Down Expand Up @@ -2453,6 +2493,141 @@ <h3 class='fl m0' id='graph'>



</section>

</div>
</div>

<div class='border-bottom' id='graph_tock'>
<div class="clearfix small pointer toggle-sibling">
<div class="py1 contain">
<a class='icon pin-right py1 dark-link caret-right'></a>
<span class='code strong strong truncate'>_tock</span>
</div>
</div>
<div class="clearfix display-none toggle-target">
<section class='p2 mb2 clearfix bg-white minishadow'>



<p>The tick function simply calls React set state in order to update component and render nodes
along time as d3 calculates new node positioning.</p>


<div class='pre p1 fill-light mt0'>_tock</div>











<div class='py1 quiet mt1 prose-big'>Parameters</div>
<div class='prose'>

<div class='space-bottom0'>
<div>
<span class='code bold'>state</span> <code class='quiet'>(<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object">Object</a>
= <code>{}</code>)</code>
new state to pass on.

</div>

</div>

<div class='space-bottom0'>
<div>
<span class='code bold'>cb</span> <code class='quiet'>(<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function">Function</a>?)</code>
optional callback to fed in to
<a href="setState()">https://reactjs.org/docs/react-component.html#setstate</a>
.

</div>

</div>

</div>






<div class='py1 quiet mt1 prose-big'>Returns</div>
<code><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined">undefined</a></code>:















</section>

</div>
</div>

<div class='border-bottom' id='graph_simulationend'>
<div class="clearfix small pointer toggle-sibling">
<div class="py1 contain">
<a class='icon pin-right py1 dark-link caret-right'></a>
<span class='code strong strong truncate'>_simulationEnd</span>
</div>
</div>
<div class="clearfix display-none toggle-target">
<section class='p2 mb2 clearfix bg-white minishadow'>



<p>called when simulation ends</p>


<div class='pre p1 fill-light mt0'>_simulationEnd</div>
















<div class='py1 quiet mt1 prose-big'>Returns</div>
<code><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined">undefined</a></code>:















</section>

</div>
Expand Down Expand Up @@ -3154,6 +3329,75 @@ <h3 class='fl m0' id='graph'>



</section>

</div>
</div>

<div class='border-bottom' id='graphrestartsimulationalpha'>
<div class="clearfix small pointer toggle-sibling">
<div class="py1 contain">
<a class='icon pin-right py1 dark-link caret-right'></a>
<span class='code strong strong truncate'>restartSimulationAlpha</span>
</div>
</div>
<div class="clearfix display-none toggle-target">
<section class='p2 mb2 clearfix bg-white minishadow'>



<p>Calls d3 simulation.alphaTarget(alpha).restart().<br/>
<a href="https://github.com/d3/d3-force#simulation_restart">https://github.com/d3/d3-force#simulation_restart</a></p>


<div class='pre p1 fill-light mt0'>restartSimulationAlpha</div>











<div class='py1 quiet mt1 prose-big'>Parameters</div>
<div class='prose'>

<div class='space-bottom0'>
<div>
<span class='code bold'>alpha</span> <code class='quiet'>(<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number">number</a>)</code>
the new alpha value

</div>

</div>

</div>






<div class='py1 quiet mt1 prose-big'>Returns</div>
<code><a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/undefined">undefined</a></code>:















</section>

</div>
Expand Down

0 comments on commit 981bbf1

Please sign in to comment.