Hi , I have a parent vertex and child vertex,

 var parentVertex = graph.insertVertex(graph.getDefaultParent(),'parent','parent',10,10,20,20);
 var child = graph.insertVertex(parentVertex,'child','child',5,5,10,10);

child is contained in parent vertex , i want child to be able to move only within parentVertex and should not be able to drag child out of parent vertex .

How to set drag limits to child vertex so that i can move child vertex only within parentVertex?

asked 09 May '13, 00:21

akraman's gravatar image

akraman
23
accept rate: 0%


link

answered 16 May '13, 05:57

punithsn's gravatar image

punithsn
1248
accept rate: 41%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×37

Asked: 09 May '13, 00:21

Seen: 1,658 times

Last updated: 16 May '13, 05:57