Hi,
I'm currently evaluating Rappid for the development of a web-app. JointJS features a cool scaling feature that we plan on using in order to scale drawings for different screen sizes. As with many applications, our web-app allows users to drag and drop elements onto the paper. Rappid offers Stencils to do this, however this functionality is a bit too high-level for the purpose/design of the application we are making.
In order to implement what we want, we'd use our own solution for dragging and dropping. To do this we need to translate the position of the mouse on-screen to the position of the mouse on a paper object. I was thinking something along the lines of taking the offset of the paper holder element and using the paper's scale to translate the mouse position.
The problem is that I can't seem to find a way to retrieve the current x/y scale using the API, is there a way to retrieve the scale of a paper?
Kind Regards,
Ewout Van Gossum.