[dojo-contributors] SVG/VML/Canvas API discussion
ttrenka at gmail.com
Wed Apr 19 00:27:41 EDT 2006
Forgot to respond to this suggestion...
On 4/18/06, Jon Sykes <jon.sykes at media-hive.com> wrote:
> You could take an an example the "other" vector drawing system that
> has an API.
> Namely flash.
I personally don't have any kind of prejudice against Flash (although I know
others do), but I do think that if we were to follow a script-based API, I'd
probably vote more for following Canvas, only because that's the API being
incorporated directly into the browser.
> If there was an API like this in Dojo for web vector drawing,
> especially if it abstracted the actual rendering so it could work
> with VML, SVG, Mobile SVG, whatever is next, the scope could be huge.
> Jon Sykes
> On Apr 18, 2006, at 8:23 PM, Bill Keese wrote:
> >> I think probably we should discuss the needs before the API (which
> >> is my fault, since I threw out API at first). Any other thoughts
> >> on needs and goals?
> > Well, something like the chart widget might be satisfied with a
> > canvas-like api (like drawRectangle(0,0,50,50,blue); ), but if you
> > get into stuff like interactive charts (click on a bar and
> > something happens), then you would want something more like the dom
> > api, where you can create a node (such as a circle or rectangle)
> > and then set properties on it, such as the onclick handler. You
> > might also want to delete previously created nodes, or change
> > properties (such as the size) of an existing node.
> > Bill
> > _______________________________________________
> > dojo-contributors mailing list
> > dojo-contributors at dojotoolkit.org
> > http://dojotoolkit.org/mailman/listinfo/dojo-contributors
> dojo-contributors mailing list
> dojo-contributors at dojotoolkit.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dojo-contributors