Skip to content

Commit

Permalink
editor icons replaced by SVG (visjs#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
r3code committed Sep 5, 2019
1 parent b629775 commit 94973b4
Show file tree
Hide file tree
Showing 32 changed files with 30 additions and 15 deletions.
16 changes: 8 additions & 8 deletions examples/network/other/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,21 +93,21 @@ <h2>Navigation controls and keyboard navigation</h2>
<table class="legend_table">
<tr>
<th>Icons: </th>
<td><img src="../../../dist/img/network/upArrow.png" /> </td>
<td><img src="../../../dist/img/network/downArrow.png" /> </td>
<td><img src="../../../dist/img/network/leftArrow.png" /> </td>
<td><img src="../../../dist/img/network/rightArrow.png" /> </td>
<td><img src="../../../dist/img/network/plus.png" /> </td>
<td><img src="../../../dist/img/network/minus.png" /> </td>
<td><img src="../../../dist/img/network/zoomExtends.png" /> </td>
<td><img src="../../../dist/img/network/upArrow.svg" /> </td>
<td><img src="../../../dist/img/network/downArrow.svg" /> </td>
<td><img src="../../../dist/img/network/leftArrow.svg" /> </td>
<td><img src="../../../dist/img/network/rightArrow.svg" /> </td>
<td><img src="../../../dist/img/network/plus.svg" /> </td>
<td><img src="../../../dist/img/network/minus.svg" /> </td>
<td><img src="../../../dist/img/network/zoomExtends.svg" /> </td>
</tr>
<tr>
<th>Keyboard shortcuts:</th>
<td><div>Up arrow</div></td>
<td><div>Down arrow</div></td>
<td><div>Left arrow</div></td>
<td><div>Right arrow</div></td>
<td><div>=<br />[<br />Page up</div></td>
<td><div>+<br />[<br />Page up</div></td>
<td><div>-<br />]<br />Page down</div></td>
<td><div>None</div></td>
</tr>
Expand Down
Binary file removed lib/network/img/acceptDeleteIcon.png
Binary file not shown.
1 change: 1 addition & 0 deletions lib/network/img/acceptDeleteIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed lib/network/img/addNodeIcon.png
Binary file not shown.
1 change: 1 addition & 0 deletions lib/network/img/addNodeIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed lib/network/img/backIcon.png
Binary file not shown.
1 change: 1 addition & 0 deletions lib/network/img/backIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed lib/network/img/connectIcon.png
Binary file not shown.
1 change: 1 addition & 0 deletions lib/network/img/connectIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed lib/network/img/cross.png
Binary file not shown.
1 change: 1 addition & 0 deletions lib/network/img/cross.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed lib/network/img/cross2.png
Binary file not shown.
1 change: 1 addition & 0 deletions lib/network/img/cross2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed lib/network/img/deleteIcon.png
Binary file not shown.
1 change: 1 addition & 0 deletions lib/network/img/deleteIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed lib/network/img/downArrow.png
Binary file not shown.
1 change: 1 addition & 0 deletions lib/network/img/downArrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed lib/network/img/editIcon.png
Binary file not shown.
1 change: 1 addition & 0 deletions lib/network/img/editIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed lib/network/img/leftArrow.png
Binary file not shown.
1 change: 1 addition & 0 deletions lib/network/img/leftArrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed lib/network/img/minus.png
Binary file not shown.
1 change: 1 addition & 0 deletions lib/network/img/minus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed lib/network/img/plus.png
Binary file not shown.
1 change: 1 addition & 0 deletions lib/network/img/plus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed lib/network/img/rightArrow.png
Binary file not shown.
1 change: 1 addition & 0 deletions lib/network/img/rightArrow.svg
Binary file removed lib/network/img/upArrow.png
Diff not rendered.
1 change: 1 addition & 0 deletions lib/network/img/upArrow.svg
Binary file removed lib/network/img/zoomExtends.png
Diff not rendered.
1 change: 1 addition & 0 deletions lib/network/img/zoomExtends.svg
14 changes: 7 additions & 7 deletions lib/network/modules/components/NavigationHandler.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,37 +25,37 @@ div.vis-network div.vis-navigation div.vis-button:active {
}

div.vis-network div.vis-navigation div.vis-button.vis-up {
background-image: url("img/network/upArrow.png");
background-image: url("img/network/upArrow.svg");
bottom:50px;
left:55px;
}
div.vis-network div.vis-navigation div.vis-button.vis-down {
background-image: url("img/network/downArrow.png");
background-image: url("img/network/downArrow.svg");
bottom:10px;
left:55px;
}
div.vis-network div.vis-navigation div.vis-button.vis-left {
background-image: url("img/network/leftArrow.png");
background-image: url("img/network/leftArrow.svg");
bottom:10px;
left:15px;
}
div.vis-network div.vis-navigation div.vis-button.vis-right {
background-image: url("img/network/rightArrow.png");
background-image: url("img/network/rightArrow.svg");
bottom:10px;
left:95px;
}
div.vis-network div.vis-navigation div.vis-button.vis-zoomIn {
background-image: url("img/network/plus.png");
background-image: url("img/network/plus.svg");
bottom:10px;
right:15px;
}
div.vis-network div.vis-navigation div.vis-button.vis-zoomOut {
background-image: url("img/network/minus.png");
background-image: url("img/network/minus.svg");
bottom:10px;
right:55px;
}
div.vis-network div.vis-navigation div.vis-button.vis-zoomExtends {
background-image: url("img/network/zoomExtends.png");
background-image: url("img/network/zoomExtends.svg");
bottom:50px;
right:15px;
}

0 comments on commit 94973b4

Please sign in to comment.