Hi Eduard,

On 28-6-2011 15:10, Eduard Gamonal wrote:
>
>> The contrib provides a conversion class [2] that you can use to convert
>> client coordinates to svg coordinates and vice versa. The functions here
>> take in account any transformations and viewboxes that were applied.
> I read somewhere that I have to use svg contrib 0.1 with qooxdoo 1.3.
> does this restriction still apply?
>

Yes, that hasn't been changed. However, if I recall correctly, the only 
thing that causes issues with qooxdoo 1.3, are the various calls to:
     qx.core.Environment.get("qx.debug")
which could be globally replaced by
     qx.core.Variant.isSet("qx.debug", "on")

If you're using a local copy of the contrib, you could consider 
replacing those calls (although it's ugly).

Another option would be to write your own conversion. Especially since 
you have to deal with eyeOS's coordinates, that might even be a better 
solution in terms of performance. The calculations done by the contrib 
are pretty straightforward [1] and not hard to implement in your own 
code. I used the technique that's described here [2].

Regards,
Marc

[1] 
http://qooxdoo-contrib.svn.sourceforge.net/viewvc/qooxdoo-contrib/trunk/qooxdoo-contrib/SVG/trunk/source/class/svg/coords/Convert.js?revision=21241&view=markup
[2] 
http://www.codedread.com/blog/archives/2005/12/21/how-to-enable-dragging-in-svg/


------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to