React-diagrams: problem with offset

Created on 28 Mar 2017  路  7Comments  路  Source: projectstorm/react-diagrams

I've placed SRD with little offset and moving event now is broken.
I've tried to fix it with this code, but it didn't workout.

DiagramWodget:345
var relative = diagramEngine.getRelativePoint(event.pageX + diagramModel.getOffsetX(), event.pageY + diagramModel.getOffsetY()); //here
diagramModel.clearSelection();
this.startFiringAction(new MoveCanvasAction(relative.x, relative.y, diagramModel));

Give me a hint and I'll fix it
http://take.ms/61vkV

bug

All 7 comments

Hey @dylanvorster, any updates here or with next version?

still nothing yet, haven't actually had time to look at it yet... but i promise I'm going to sort it out.

busy looking at it, also busy with a new demo and fix

also see that there is a new demo (demo 5). Im going to build this into a much larger demo that has droppable nodes (much like in my own program) as well as property viewers etc..

@dylanvorster perfect. Just exactly what I need.
But I would say, group are more important.
screen shot 2017-04-11 at 11 37 40

Im sure it is xD its just a bit more complicated to implement :P

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dixitk13 picture dixitk13  路  3Comments

iddan picture iddan  路  3Comments

Naveenraj006 picture Naveenraj006  路  3Comments

ganesh-sankey picture ganesh-sankey  路  4Comments

schecter22107 picture schecter22107  路  3Comments