[Dojo-interest] Cutting corners

Hugo Wetterberg hugo.wetterberg at gmail.com
Wed Sep 13 15:10:16 MDT 2006


Too bad then I guess I'll be putting it into the Good Old library anyway :).
/Hugo

2006/9/13, Tom Trenka <dojo-interest at dept-z.com>:
>
>
> Ah, whoops.  Just did the same thing you did :)
>
> I think you're suggesting something completely different, that really has
> nothing to do with a very specific effect; you've just put up an example
> of
> a registered behavior/sprite, which is something else that will probably
> make it into Dojo at some point--just not yet :(
>
> trt
>
>
> Hugo Wetterberg wrote:
> >
> > Just reread your mail Tom, and I didn't mean to snatch the rewrite from
> > you
> > or fragment the Curving Corners scene in Dojo :). But couldn't you make
> > the
> > rounding process pluggable, using the CC way of specifying settings.
> Kind
> > of:
> >
> > dojo.lfx.round=function(settings,node)
> > {
> >   var rounder=settings.rounder;
> >   if(!rounder)
> >     rounder="default";
> >
> >   var fnc=dojo.lfx.round.rounders[rounder];
> >   if(fnc)
> >     fnc(settings,node);
> > };
> >
> > dojo.lfx.round.rounders={};
> >
> > dojo.lfx.round.registerRounder=function(name,fnc,defaultRounder)
> > {
> >   if(fnc && dojo.lang.isFunction(fnc))
> >   {
> >     dojo.lfx.round.rounders[name]=fnc;
> >     if(defaultRounder)
> >       dojo.lfx.round.rounders.default=fnc;
> >   }
> > };
> >
> > dojo.lfx.round.registerRounder("curvy_corners",function(settings,node)
> > {
> >   //Implementation
> > },true);
> >
> > Then it would be easy for third party developers to implement different
> > rounding schemes.
> >
> > /Hugo
> >
> > 2006/9/13, Hugo Wetterberg <hugo.wetterberg at gmail.com>:
> >>
> >> I've got to hand it to you Robert, the curving corners example
> definitely
> >> looks better. I'll take a look at it and put it into the good old
> >> library,
> >> maybe with some kind of unified way of applying them, choices are good.
> >>
> >> And, Tom, yes the licensing is GPL and as I see it that strenghtens my
> >> argument for a repository for third party Dojo libraries. Contributors
> to
> >> the Dojo community (not toolkit) can't be forced to use one license (or
> >> in
> >> this case two licenses in an either or relationship).
> >>
> >> /Hugo
> >>
> >> 2006/9/13, Roberto Saccon <rsaccon at gmail.com>:
> >>
> >> > btw, the original curvy-corners  code is anti-aliased and therefore
> >> > looks SIGNIFICANTLY better then nifty corners.
> >> >
> >> > On 9/13/06, Tom Trenka <dojo-interest at dept-z.com > wrote:
> >> > >
> >> > > Nice, but we can't take it in Dojo anyways; the original is GPL
> >> > licensed.
> >> > >
> >> > > There will be a version of rounded being added to dojo.lfx before
> the
> >> > 0.4
> >> > > release; I just haven't gotten around to rewriting the submitted
> code
> >> > yet
> >> > > (been pretty busy with other things).
> >> > >
> >> > > trt
> >> > >
> >> > >
> >> > > Hugo Wetterberg wrote:
> >> > > >
> >> > > > I've sent a CLA to *dmachi at dojo...*, but I wasn't planning to
> >> put
> >> > this
> >> > > > into Dojo, not that I wouldn't be happy to do it anyway. I've
> been
> >> > > > thinking
> >> > > > about the contribution
> >> > > >
> >> process<
> http://www.goodold.se/blog/tech/2006/09/08/dojo-cla-dojo-libraries/
> >> > >of
> >> > > > Dojo and reached the conclusion that everything that people want
> to
> >> > > > contribute to the community doesn't nessecarily have to go into
> the
> >> > > > toolkit.
> >> > > > We need libraries.
> >> > > >
> >> > > > How do people on this list feel about the project that I outline
> in
> >> > this
> >> > > > post:
> >> > > >
> http://www.goodold.se/blog/tech/2006/09/08/dojo-cla-dojo-libraries/
> >> > (same
> >> > > > link as the one above)
> >> > > >
> >> > > > /Hugo
> >> > > >
> >> > > > 2006/9/13, Karl Tiedt <ktiedt at gmail.com>:
> >> > > >>
> >> > > >> Well if you wish to see it in Dojo, both yourself and the
> original
> >> > > >> author must have a CLA on file...
> >> > > >>
> >> > > >> On 9/13/06, Hugo Wetterberg <hugo.wetterberg at gmail.com> wrote:
> >> > > >> > Ah, well, no :). But that doesn't really matter. I for one
> don't
> >> > want
> >> > > >> to
> >> > > >> > make a widget out of everything that should have rounded
> >> corners.
> >> > Then
> >> > > >> it's
> >> > > >> > kind of nifty to have a function that rounds things for you
> >> > instead.
> >> > > >> >
> >> > > >> >  /Hugo
> >> > > >> >
> >> > > >> >
> >> > > >> > 2006/9/13, Karl Tiedt <ktiedt at gmail.com>:
> >> > > >> > >
> >> > > >> >  You do relize that we already have src/widget/rounded.js
> which
> >> > is an
> >> > > >> > implentation of CurvyCorners?
> >> > > >> >
> >> > > >> > On 9/13/06, Hugo Wetterberg < hugo.wetterberg at gmail.com>
> wrote:
> >> > > >> > > I've made some additions and updates to the Good Old Dojo
> >> > library.
> >> > > >> New
> >> > > >> for
> >> > > >> > > this release is an adaptation of Alessandro Fulcinitis Nifty
> >> > Corners
> >> > > >> Cube.
> >> > > >> > >
> >> > > >> > >
> >> > > >> >
> >> > > >>
> >> >
> >>
> http://www.goodold.se/blog/tech/2006/09/13/updates-to-the-good-old-dojo-library/
> >> > > >> > >
> >> > > >> > > /Hugo
> >> > > >> > >
> >> > > >> > > _______________________________________________
> >> > > >> > > Dojo FAQ: http://dojo.jot.com/FAQ
> >> > > >> > > Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> >> > > >> > > Dojo-interest at dojotoolkit.org
> >> > > >> > > http://dojotoolkit.org/mailman/listinfo/dojo-interest
> >> > > >> > >
> >> > > >> > >
> >> > > >> > >
> >> > > >> >
> >> > > >> >
> >> > > >> > --
> >> > > >> > -Karl Tiedt
> >> > > >> > _______________________________________________
> >> > > >> >
> >> > > >> > Dojo FAQ: http://dojo.jot.com/FAQ
> >> > > >> > Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> >> > > >> >  Dojo-interest at dojotoolkit.org
> >> > > >> > http://dojotoolkit.org/mailman/listinfo/dojo-interest
> >> > > >> >
> >> > > >> >
> >> > > >> > _______________________________________________
> >> > > >> > Dojo FAQ: http://dojo.jot.com/FAQ
> >> > > >> > Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> >> > > >> > Dojo-interest at dojotoolkit.org
> >> > > >> > http://dojotoolkit.org/mailman/listinfo/dojo-interest
> >> > > >> >
> >> > > >> >
> >> > > >> >
> >> > > >>
> >> > > >>
> >> > > >> --
> >> > > >> -Karl Tiedt
> >> > > >> _______________________________________________
> >> > > >> Dojo FAQ: http://dojo.jot.com/FAQ
> >> > > >> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> >> > > >> Dojo-interest at dojotoolkit.org
> >> > > >> http://dojotoolkit.org/mailman/listinfo/dojo-interest
> >> > > >>
> >> > > >
> >> > > > _______________________________________________
> >> > > > Dojo FAQ: http://dojo.jot.com/FAQ
> >> > > > Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> >> > > > Dojo-interest at dojotoolkit.org
> >> > > > http://dojotoolkit.org/mailman/listinfo/dojo-interest
> >> > > >
> >> > > >
> >> > >
> >> > > --
> >> > > View this message in context:
> >> > http://www.nabble.com/Cutting-corners-tf2263658.html#a6286249
> >> > > Sent from the Dojo forum at Nabble.com.
> >> > >
> >> > > _______________________________________________
> >> > > Dojo FAQ: http://dojo.jot.com/FAQ
> >> > > Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> >> > > Dojo-interest at dojotoolkit.org
> >> > > http://dojotoolkit.org/mailman/listinfo/dojo-interest
> >> > >
> >> >
> >> >
> >> > --
> >> > Roberto Saccon
> >> > _______________________________________________
> >> > Dojo FAQ: http://dojo.jot.com/FAQ
> >> > Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> >> > Dojo-interest at dojotoolkit.org
> >> > http://dojotoolkit.org/mailman/listinfo/dojo-interest
> >> >
> >>
> >>
> >
> > _______________________________________________
> > Dojo FAQ: http://dojo.jot.com/FAQ
> > Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> > Dojo-interest at dojotoolkit.org
> > http://dojotoolkit.org/mailman/listinfo/dojo-interest
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Cutting-corners-tf2263658.html#a6294534
> Sent from the Dojo forum at Nabble.com.
>
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> Dojo-interest at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20060913/d7942fb0/attachment-0001.html


More information about the Dojo-interest mailing list