From: Raymond S. <dst...@or...> - 2001-01-05 07:43:40
|
Robert, I posted this prior. Not sure if my solution is the cleanest, but it worked. Basically if you set a negative variable in setAngleIncrement to reverse circle animation 'then' use generatePath method IE5 or IE 5.5 freeze up solid. Fix below and attached. POSTED PRIOR____________________________________________________________ If you generated a path with a (-) negative number in setAngleIncrement method (to allow you to determine direction, clockwise(-) or counter clockwise(+) it would freeze up during this line "for (var a=this.angle;a<=this.angle+Math.PI*2;a+=this.angleinc) {" in the generatePath method of circle.js. This method is critical because it allows you to inherit both 'loop' and 'reset' functionality from pathanim.js and have some real fun. Now you setAngleIncrement as a positive for speed and use setDirection (+ or - 1) to set path direction. Tested in both IE and NS on WinME. added/changed the following lines. Full js file attached. ____________________________________________________________________________ ____________ this.direction = 1 CircleAnimation.prototype.setDirection = function (d) { this.direction = d; CircleAnimation.prototype.generatePath = function(centerX,centerY) { if (centerX==null) centerX = this.dlyr!=null? this.dlyr.x : 0; if (centerY==null) centerY = this.dlyr!=null? this.dlyr.y : 0; var path = []; var i = 0; for (var a=this.angle;a<=this.angle+Math.PI*2;a+=this.angleinc) { path[i] = Math.round(centerX + this.hradius*Math.cos(this.direction*a)); path[i+1] = Math.round(centerY - this.vradius*Math.sin(this.direction*a)); i+=2; } return path; }; ____________________________________________________________________________ ____________ cheers, Ray ----- Original Message ----- From: "Robert Rainwater" <rra...@ya...> To: <dyn...@li...> Sent: Thursday, January 04, 2001 10:28 AM Subject: Re: [Dynapi-Dev] Snapshot broken > I can do that in a few days. There a few updates I need to make to CVS > though. > > Like the include bug and the loadQueue array bug. Hopefully, I will have > the release ready in a few days. I'll post a release candidate first and > then after some testing, I'll post a new release on Sourceforge. > > Also, if anyone knows of any other bug fixes, please let me know (I think > there was one in the inlinecreation). Does the inline creation work in IE > yet? I noticed the getOuterHTML for IE is empty. > > Robert Rainwater > > ----- Original Message ----- > From: "Pascal Bestebroer" <pa...@dy...> > To: <dyn...@li...> > Sent: Thursday, January 04, 2001 1:09 PM > Subject: RE: [Dynapi-Dev] Snapshot broken > > > > Yes there have been changes made to the DynAPI code in two months, but the > > release version was a stable one ,working. The major things done in the > last > > two months are widgets and modifications of old code, not new code. So I > > don't think the release is an obsolete version.. it works. > > > > One idea is that maybe one of the admins (not me) can take the current > code > > and create one new release out of it (fixing known bugs but do nothing > else > > with it, not adding any new code posted in this list) this should give a > new > > updated release version containing the new widgets (and style) and the > > current code. > > > > Anybody up for it :-) > > > > > > Pascal Bestebroer > > pa...@dy... > > http://www.dynamic-core.net > > > > > -----Oorspronkelijk bericht----- > > > Van: dyn...@li... > > > [mailto:dyn...@li...]Namens Peter Curran > > > Verzonden: donderdag 4 januari 2001 18:44 > > > Aan: dyn...@li... > > > Onderwerp: Re: [Dynapi-Dev] Snapshot broken > > > > > > > > > At 09:14 AM 04/01/01 -0800, "Robert Rainwater" > > > <rra...@ya...> wrote: > > > ><snip> > > > >I would be hesitant to post a link on the site, since most developers > and > > > >testers are subscribed to this list. Putting a link on the site > > > would cause > > > >people to download it and use it as final code. > > > > > > > >Robert Rainwater > > > > > > But what choice is there? The current "release" is nearly two months > old. > > > We know there have been a tremendous number of bug fixes, > > > enhancements, and > > > style changes since then. People really only have a choice of > > > using a very > > > old and substantially obsolete "release," or the current code. > > > > > > This is not meant as a criticism - obviously, this is free code, > > > people are > > > doing the best they can, following their own priorities, etc. But > > > the fact > > > remains that releases aren't happening, and are very difficult to > arrange > > > in this style of development. > > > > > > Unless the developers institute such practices as code freezes, > > > bug-fix-only periods, extensive testing, etc., there is never > > > likely to be > > > a "stable" version for use as a new release. This type of > > > development will > > > always have segments under active development (until the code becomes > > > obsolete and development stops). > > > > > > Unless you are planning some kind of active process to bring > > > about a stable > > > code package that can be a new release, the new code is really > > > all that is > > > available. > > > > > > > > > -- > > > Peter Curran Software Developer Casebank Technologies Inc. > > > pc...@ca... 905 792-0618 X535 > > > > > > > > > _______________________________________________ > > > Dynapi-Dev mailing list > > > Dyn...@li... > > > http://lists.sourceforge.net/mailman/listinfo/dynapi-dev > > > > > > > > > _______________________________________________ > > Dynapi-Dev mailing list > > Dyn...@li... > > http://lists.sourceforge.net/mailman/listinfo/dynapi-dev > > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-dev > |