jgraph / mxgraph

mxGraph is a fully client side JavaScript diagramming library
Other
6.81k stars 2.06k forks source link

how to add cells on absolute coordinates on mxgraph , coordinates gets changed when the MxGraph area is moved , dragged with mouse #498

Closed ashrafmansuri7272 closed 3 years ago

ashrafmansuri7272 commented 4 years ago

Hi , I am facing a problem with cells creation on random points on mxGraph, it takes random points on mxGraph after double click and also when the cells is created it was far from the point where we double clicked to create , so this problem is creating the problem of overlapping of cells too .

is there any way so the mxGraph does not take the relative coordinates like whenever i drag the mxGraph it's coordinates gets changed and there is not absolute coordinate , one time (x,y) on one place and other time it is away so is there any way to fix the coordinates please provide the source code too. image

davidjgraph commented 4 years ago

https://stackoverflow.com/help/how-to-ask

ashrafmansuri7272 commented 4 years ago

Hi @davidjgraph Updated the issue.