Hi Totty, from glancing over the docs I would assume you need to wrap a canvas element using the page object provided by paper.js [1, 2]. The canvas element needs to be attached to the DOM. One way to accomplish this in a RIA-style application is to use qx.ui.embed.Canvas [3]. Note that DOM elements are generally only available after the "appear" event of the widget has fired.
Speaking of integrating into paper.js, I don't think it worthwhile to wrap paper.js into qooxdoo classes. Or are you planning to do heavy sub-classing, or write interfaces? Of course you can (and probably should) still use qx.Class for organizing code that relies on paper.js. Are you using qx.application.Standalone? Depending on your use-case it might be less complex to use qx.application.Inline instead. What do you want to accomplish on a higher level? [1] http://paperjs.org/tutorials/getting-started/using-javascript-directly/ [2] http://paperjs.org/reference/global#paper [3] http://demo.qooxdoo.org/current/apiviewer/#qx.ui.embed.Canvas Regards Tristan Am 26.03.2012 um 18:20 schrieb totty: > And how about http://paperjs.org in this case, what would be the best > practice to do? > > -- > View this message in context: > http://qooxdoo.678.n2.nabble.com/How-to-integrate-qooxdoo-with-another-framework-that-doesn-t-use-the-qooxdoo-class-system-tp7405576p7406496.html > Sent from the qooxdoo mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
