{"action":"opened","issue":{"url":"https://api.github.com/repos/almende/vis/issues/916","labels_url":"https://api.github.com/repos/almende/vis/issues/916/labels{/name}","comments_url":"https://api.github.com/repos/almende/vis/issues/916/comments","events_url":"https://api.github.com/repos/almende/vis/issues/916/events","html_url":"https://github.com/almende/vis/issues/916","id":84414906,"number":916,"title":"manipulation api questions","user":{"login":"ericvandever","id":10490886,"avatar_url":"https://avatars.githubusercontent.com/u/10490886?v=3","gravatar_id":"","url":"https://api.github.com/users/ericvandever","html_url":"https://github.com/ericvandever","followers_url":"https://api.github.com/users/ericvandever/followers","following_url":"https://api.github.com/users/ericvandever/following{/other_user}","gists_url":"https://api.github.com/users/ericvandever/gists{/gist_id}","starred_url":"https://api.github.com/users/ericvandever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericvandever/subscriptions","organizations_url":"https://api.github.com/users/ericvandever/orgs","repos_url":"https://api.github.com/users/ericvandever/repos","events_url":"https://api.github.com/users/ericvandever/events{/privacy}","received_events_url":"https://api.github.com/users/ericvandever/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-03T07:41:33Z","updated_at":"2015-06-03T07:41:33Z","closed_at":null,"body":"First, thanks for exposing the manipulation methods to allow adding/editing using the configured handlerFunctions without having to use the built in toolbar.  \r\n\r\nI'd like to have a manipulation buttons within my ui styled based on the current edit mode.  Do you have any thoughts on  the recommended way to determine the active edit mode? \r\n - poll internal variable network.manipulation.inMode - not great from an API perspective.\r\n - set flag when calling manipulation api, unset flag when I call callback within the handlerFunctions - are there other ways to exit manipulation / exceptional exit paths?\r\n - other ideas?\r\n\r\n2nd, I was surprised at the behavior of deleteEdge and deleteNodes handlerFunctions.  When deleting a node (and the associated edges), I would have expected to get callbacks on both handler functions with the respective items as parameters.  Instead if a node is included, all items will be reported in the deleteNodes handlerFunction.  I don't have any particular issue with the behavior, just don't understand the use-case for splitting them out since I have to handle both in the deleteNode function anyway.  (I just pointed them both to a single onDelete handler).\r\n\r\n3rd, all the manipulation API calls cause the physics to be reenabled regardless of setting before entering edit mode.  I'm pausing the physics engine as you suggested earlier this week (#905), but anytime I make calls to add nodes/edges, it begins to run again. "}}