freegroup / draw2d

Create Visio like drawings, diagrams or workflows with JavaScript and HTML5
https://freegroup.github.io/draw2d/#/examples
MIT License
738 stars 227 forks source link

mouse cursor position is not at true position #161

Closed amiramri0200 closed 3 years ago

amiramri0200 commented 3 years ago

Hello, I have used the draw2d library in angular version 10.0.14. I used draw2d.SetFigure.extend to use SVG files and add ports to them. the output is attached. in this project, first I read an excel file and then I add cards that are in the excel file. the problem I confronted is that the mouse cursor is not exact. I mean for example when the mouse is on (x,y) = (100,100) it works as if it is on (x,y) = (80,80). How can I fix the problem? Inkedmouse_position_porblem_LI here is the code that I used to upload excel file image image

freegroup commented 3 years ago

this is related to your problem https://github.com/freegroup/draw2d/issues/44