Skip to content

Commit

Permalink
Added content to context menus
Browse files Browse the repository at this point in the history
  • Loading branch information
kinimesi committed Jul 10, 2017
1 parent 3a7c6bb commit fb7a3a9
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 171 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ A Cytoscape.js extension enabling interactive editing of edge bend points, distr

## Dependencies

* Cytoscape.js ^1.7.0
* Cytoscape.js >=1.7.0
* jQuery ^1.7.0 || ^2.0.0 || ^3.0.0
* cytoscape-undo-redo.js(optional) ^1.0.1
* cytoscape-context-menus.js(optional) ^2.0.0
Expand Down
5 changes: 4 additions & 1 deletion cytoscape-edge-bend-editing.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<link href="https://cdn.rawgit.com/ivis-at-bilkent/cytoscape.js-context-menus/master/cytoscape-context-menus.css" rel="stylesheet" type="text/css" />

<script src="http://code.jquery.com/jquery-3.0.0.js"></script>
<script src="http://cytoscape.github.io/cytoscape.js/api/cytoscape.js-latest/cytoscape.min.js"></script>
<script src="https://unpkg.com/cytoscape/dist/cytoscape.min.js"></script>

<!-- for testing with local version of cytoscape.js -->
<!--<script src="../cytoscape.js/build/cytoscape.js"></script>-->
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ gulp.task('push', shell.task([
]));

gulp.task('tag', shell.task([
'git tag -a $VERSION -m "tagging v$VERSION"',
'git tag -a v$VERSION -m "tagging v$VERSION"',
'git push origin $VERSION'
]));

Expand Down
122 changes: 0 additions & 122 deletions gulpfile.js~

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"vinyl-source-stream": "^1.1.0"
},
"peerDependencies": {
"cytoscape": "^2.7.0",
"cytoscape": "^2.7.0 || 3.0.0",
"jquery": "^1.7.0 || ^2.0.0 || ^3.0.0"
}
}
43 changes: 0 additions & 43 deletions package.json~

This file was deleted.

4 changes: 3 additions & 1 deletion src/UIUtilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,14 @@ module.exports = function (params, cy) {
{
id: addBendPointCxtMenuId,
title: opts.addBendMenuItemTitle,
content: 'Add Bend Point',
selector: 'edge',
onClickFunction: cxtAddBendPointFcn
},
{
id: removeBendPointCxtMenuId,
title: opts.removeBendMenuItemTitle,
content: 'Remove Bend Point',
selector: 'edge',
onClickFunction: cxtRemoveBendPointFcn
}
Expand Down Expand Up @@ -639,4 +641,4 @@ module.exports = function (params, cy) {
}

return $(this);
};
};

0 comments on commit fb7a3a9

Please sign in to comment.