Skip to content

Commit

Permalink
Added 'lineWidth' option to demo
Browse files Browse the repository at this point in the history
  • Loading branch information
kinimesi committed Nov 7, 2017
1 parent 4d414f4 commit bd1b69e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,14 @@

});

$("#lineWidth").change(function () {
var el = $(this);
var opt = {
lineWidth: el.val()
};
cy.gridGuide(opt);
});

$("#guidelinesTolerance").change(function () {
var el = $(this);
var opt = {
Expand Down Expand Up @@ -266,6 +274,11 @@ <h1> Grid Options</h1>
<input style="width: 5em" type="color" id="gridColor" value="#dedede" >
</div>

<div style="margin: 1em">
<label for="gridColor" >Line Width: </label>
<input style="width: 5em" type="number" id="lineWidth" value="1" min="0.1">
</div>

<div id="panGrid" class="disabled">
Move Grid on Pan <b> Off </b>
</div>
Expand Down

0 comments on commit bd1b69e

Please sign in to comment.