Hi Pielle, This is a known limitation of the Draggable class. The problem is that the Draggable class used a transformation internally and overwrites the transform property of the dragged element. Therefore it can't be used with other transformations. The API doc of the Draggable class also mention this. It will be fixed in the future.
To get you going for now, I created a patched version of the draggable class: http://pastebin.com/JxFCqGBj To use it, you can do something like this: var pvRot = new svg.coords.transform.Rotate(null, parseFloat(data['rotXY']), cx,cx); var translationForDragging = new svg.coords.transform.Translate(null); var transformlist = new svg.coords.transform.TransformList(null); transformlist.push(translationForDragging); transformlist.push(pvRot); pv.setTransform(transformlist); var draggable = new svg.behavior.PatchedDraggable(translationForDragging); Note that I'm currently not at my development pc, so I haven't been able to test any of the code (not the patched class) at all. But I think it should work. :-) Note that the PatchedDraggable class will only work with elements that include the svg.coords.MTransform mixin. (The original class does not have that limitation). But the basis shapes already do that, so that shouldn't be a problem in your case. :-) As for selecting a shape by clicking on it, I think that requires a tiny bit of qooxdoo magic that I'll post tomorrow, when I'm back at my development pc. Regards, Marc -- View this message in context: http://qooxdoo.678.n2.nabble.com/svg-drag-and-shape-selection-tp7148162p7148973.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
