Hi Tor, I created some MooTools SVG classes for a charts plugin for VM UI Framework that you might find helpful. Here's a gist of the SVG class<https://gist.github.com/VirtuosiMedia/5580983>, the charts code<https://github.com/VirtuosiMedia/VM-UI-Framework/blob/master/javascript/data/charts.js>, and the docs and demos for the charts<http://vm.uiframework.com/docs/plugins/charts/>. It's not in the Forge, but feel free to expand on the SVG class if you'd like. I only added the stuff I needed, so I'm sure there are a few things missing.
-Benjamin On Tuesday, May 14, 2013 5:21:46 AM UTC-7, Tor wrote: > > Hi guys > > I'm working on a web application with support for drawing diagrams. I've > looked into Raphael but I don't like the syntax and want to create a > solution that is more in synch with MooTools. > > So I'm thinking about writing an SVG plugin for MooTools and post it on > Forge to perhaps get some added feedback but before I get too deep into > development I'd like to run a couple of things by you guys. > > First off I'm having to add Element support for SVG elements that as far > as I can see is not supported at the moment because of the lack of > namespace handling on Elements. > I'm currently solving this by adding a SvgElement class which is basically > a copy of document.newElement and the Element constructor minus the support > for IE8 and older that does not have SVG support anyways. > > Secondly I need Drag support for these SvgElements which means the > modifiers for the dragged element has to be x.baseVal.value and > y.baseVal.value because of the nature of SVG elements. > Now I've again just made a copy of the Drag class and refurbished the code > to support SVG. As a lazy developer I find this solution sufficient for the > job but in every other aspect I feel like a butcher. > > Is there a better approach I could take instead of the crude copy and > paste and is there anyone else that have any interest in SVG support in > the style of MooTools or is it a wasted endeavor? > > Sincerely > Tor Viktorsson > Ã…skvigg > > ps. Any MooTools users in Stockholm out there? > -- --- You received this message because you are subscribed to the Google Groups "MooTools Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to mootools-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.