From: Dan S. <dy...@fu...> - 2000-11-30 04:19:03
|
First, a fix to the beta release, Insert the following into line 357 in dynlayer.js: if (!this.created) return; Second, I see a need to have a "precreate" event which gets called before any of the layer properties have been changed. In a widget, you can use the precreate to do your final initialization of the object. It's more effecient to do this because instead of setting the size of all the layers first to 0x0, and then waiting for the create method and going back again to resize all the children, you could get everything done in one shot so as soon as the DynLayer.create() is done you already have the final properties. It saves an extra step. Also this method will be needed for a possible future addition to the Dynlayer creation system. It's entirely possible have the DynLayer generate LAYER and DIV tags (ala dynapi1) this would allow you to insert Dynlayers before onLoad, as well you can get an enormous boost in drawing time in Netscape by writing all the children layers as layer/div's at the same time in one document.write(). Anyways, for a precreate event insert the following immediately after the this.assignElement() in dynlayer.js (line 149): this.invokeEvent('precreate'); I am already using this event in some new code I am working on. Also, I think there should be a few more directories in the dynapi structure: /js/lib/dynapi/images/ (where all widget images are stored) /js/lib/dynapi/util/ (contains standalone objects which are not widgets) /js/lib/dynapi/ext/ (should only contain extensions to dynlayer or other files or removed because everything could be thought of as extension) /js/lib/dynapi/gui/ (only dynlayer based widgets) In my working copy I have moved: - LoadPanel to /gui/ because it is a widget, not an extension. - cookies.js, debug.js to /util/, I will be adding some new stuff to this directory New code coming: A new fully working slide/path/gif animation system, it works really good. I made a few major changes to it this evening so I just need to go back and update a few things before releasing it officially. It converts slide animations into a paths on the fly, and they're all based on "threads" which can be combined together into one master thread so you can do mutliple animations in the same Interval loop. I also built Circle and Hover animation objects, and rewrote my Solar System and BumbleBee dynduo demos based on this new code and it all works splendidly. I'll have em ready to use tomorrow. Dan On Wed, Nov 29, 2000 at 04:57:30PM -0500, Robert Rainwater wrote: > > I wanted to create a new release of the DynAPI, but because I havent > been able to keep up with the list lately I've gotten behind. So, > instead of having to wade through all of the posts, I wanted to start > this thread so that every one can reply with the changes/fixes that need > to be made to the next release. I am specifically refering any fixes to > the latest beta located at > http://dynapi.sourceforge.net/beta/dynapi-11.12-beta.zip and Dan's > widgets that he posted earlier. > > The next release should include the fully working set of Dan's widgets > along with any other fixes. > > Please post any fixes to this thread. > > -- > // Robert Rainwater > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-dev |