Skip to content

Commit 257bf35

Browse files
committed
network navigation example updated (visjs#31)
1 parent 3721ae3 commit 257bf35

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

examples/network/other/navigation.html

+9-9
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,15 @@ <h2>Navigation controls and keyboard navigation</h2>
9191
<div style="width: 800px; font-size:14px; text-align: justify;">
9292
This example is the same as example 2, except for the navigation controls that have been activated. The navigation controls are described below. <br /><br />
9393
<table class="legend_table">
94-
<tr>
94+
<tr style="color: blue">
9595
<th>Icons: </th>
96-
<td><img src="../../../dist/img/network/upArrow.svg" /> </td>
97-
<td><img src="../../../dist/img/network/downArrow.svg" /> </td>
98-
<td><img src="../../../dist/img/network/leftArrow.svg" /> </td>
99-
<td><img src="../../../dist/img/network/rightArrow.svg" /> </td>
100-
<td><img src="../../../dist/img/network/plus.svg" /> </td>
101-
<td><img src="../../../dist/img/network/minus.svg" /> </td>
102-
<td><img src="../../../dist/img/network/zoomExtends.svg" /> </td>
96+
<td><svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="square" stroke-linejoin="arcs"><circle cx="12" cy="12" r="10"/><path d="M16 12l-4-4-4 4M12 16V9"/></svg></td>
97+
<td><svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="square" stroke-linejoin="arcs"> <circle cx="12" cy="12" r="10"/><path d="M16 12l-4 4-4-4M12 8v7"/></svg></td>
98+
<td><svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="square" stroke-linejoin="arcs"><circle cx="12" cy="12" r="10"/><path d="M12 8l-4 4 4 4M16 12H9"/></svg></td>
99+
<td><svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="square" stroke-linejoin="arcs"><circle cx="12" cy="12" r="10"/><path d="M12 8l4 4-4 4M8 12h7"/></svg></td>
100+
<td><svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="square" stroke-linejoin="arcs"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="16"></line><line x1="8" y1="12" x2="16" y2="12"></line></svg></td>
101+
<td><svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="square" stroke-linejoin="arcs"><circle cx="12" cy="12" r="10"></circle><line x1="8" y1="12" x2="16" y2="12"></line></svg></td>
102+
<td><svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="square" stroke-linejoin="arcs"><path d="M7.027 7.027l9.946 9.946m0-9.946l-9.946 9.946m6.792-10.43h3.64v3.64m-7.278-3.64h-3.64v3.64m7.278 7.278h3.64v-3.64m-7.278 3.64h-3.64v-3.64" stroke-width="1.6"/><circle cx="12.102" cy="12.102" r="10"/></svg></td>
103103
</tr>
104104
<tr>
105105
<th>Keyboard shortcuts:</th>
@@ -125,7 +125,7 @@ <h2>Navigation controls and keyboard navigation</h2>
125125
<br />
126126
Apart from clicking the icons, you can also navigate using the keyboard. The buttons are in table above.
127127
Zoom Extends changes the zoom and position of the camera to encompass all visible nodes. <u>To correctly display the navigation icons, <b>vis.css</b> or <b>vis-network.min.css</b> must be included.</u>
128-
The user is free to alter or overload the CSS classes but without them the navigation icons are not visible.
128+
The user is free to alter or overload the CSS classes but without them the navigation icons are not visible. To change the icon fill color set the <i>css color attribute</i> for the parent block (the icon color taken from CSS currentColor).
129129
</div>
130130

131131
<div id="mynetwork"></div>

0 commit comments

Comments
 (0)