Using dojo for creating geometric forms
The whole idea emerged from Wolfram’s new dojo widget. He created a rating widget, where he uses stars for setting a vote. Because it is using images for each star, you are sticked to the size of your images and also how the images are designed. So I’ve started to code a new widget, that is creating a star as svg/vml/canvas by using the dojox.gfx library. It uses some simple parameters for designing your stars. As I proceeded, I recognized, that there is no javascript-library (or I didn’t saw it :-)), that can create simple (or more complex) geometric forms with just a few input parameters. In my opinion this could be a start to design a general dojox.gfx.geo library, where a base class is defined for common usage (like hovering and basic color schema) and subclasses for each geometric form. I’m thinking of spirals, arrows, stars, hearts and emoticons.
Here some usage examples of this star dojo widget.
First the pretty result
And here the sample code
<div dojoType="dojox.gfx.geo.Star" borderColor="black" borderWidth="1"></div> <div dojoType="dojox.gfx.geo.Star" borderColor="black" radiuses="20,6,12" hoverColor="#FF5A00" color="#F1F3E9" borderWidth="1" hoverBorderWidth="1"></div> <div dojoType="dojox.gfx.geo.Star" borderColor="black" radiuses="20,5,10,5" hoverColor="#FF5A00" color="#F1F3E9" borderWidth="1" hoverBorderWidth="1"></div> <div dojoType="dojox.gfx.geo.Star" borderColor="black" jags="3" radiuses="20" hoverColor="#FF5A00" color="#F1F3E9" borderWidth="1" hoverBorderWidth="1"></div> <div dojoType="dojox.gfx.geo.Star" borderColor="black" jags="4" radiuses="20" hoverColor="#FF5A00" color="#F1F3E9" borderWidth="1" hoverBorderWidth="1"></div> <div dojoType="dojox.gfx.geo.Star" borderColor="black" jags="10" radiuses="20,17" hoverColor="#FF5A00" color="#F1F3E9" borderWidth="1" hoverBorderWidth="1"></div> <div dojoType="dojox.gfx.geo.Star" borderColor="black" jags="10" radiuses="20,4" hoverColor="#FF5A00" color="#F1F3E9" borderWidth="1" hoverBorderWidth="1"></div> <div dojoType="dojox.gfx.geo.Star" borderColor="black" jags="5" radiuses="20,17,14,17" hoverColor="#FF5A00" color="#F1F3E9" borderWidth="1" hoverBorderWidth="1"></div>
A big star! (Try the mouseover)
Sample code for big star
<div dojoType="dojox.gfx.geo.Star" borderColor="black" jags="30" radiuses="250,200,250,150,200" specialHoverColor='{type: "radial", r:250, cx: 250, cy: 250, colors: [{offset: 0, color: "#FFFFFF"}, {offset: 1, color: "#FF5A00"}]}’ color=”#F1F3E9″ borderWidth=”1″ hoverBorderWidth=”1″></div>
The next step would be using this star widget within the above mentioned rating-engine. Maybe someone else has a better recommendation, where to use this kind of geometric forms within other widgets.
Here you can download an early version of this star widget:
First draft of the geometric star widget

18. June 2008 um 14:09
Have you heard about the javascript lib from Walter Zorn?
http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm
18. June 2008 um 14:28
Thanks for this input. Definitely have to look into that.
18. June 2008 um 14:54
Draw2D builds on it as well. It is pretty neat what can be accomplished: http://draw2d.org/draw2d/examples_short
Unfortunately the site is not updated very regularly, but the forum seems to be active.
21. April 2010 um 11:32
Извиняюсь, но не могли бы Вы дать больше информации….
Менеджер по закупкам, логистике
dojo.require(”dojox.gfx.geo.Star”);
The whole idea emerged from Wolfram’s new dojo widget…..
7. September 2010 um 21:44
Buy:Super Active ED Pack.VPXL.Tramadol.Viagra Super Force.Zithromax.Viagra.Soma.Propecia.Cialis Professional.Maxaman.Levitra.Cialis Soft Tabs.Cialis Super Active+.Cialis.Viagra Super Active+.Viagra Professional.Viagra Soft Tabs….
11. November 2010 um 08:07
…
BUY FASHION. TOP BRANDS: GUCCI, DOLCE&GABBANA, BURBERRY, DIESEL, ICEBERG, ROBERTO CAVALLI, EMPORIO ARMANI, VERSACE…
23. December 2010 um 19:46
Cialis UK…
Buynow it…
25. December 2010 um 17:50
rxlist@abilify.now” rel=”nofollow”>..…
Buydrugs without prescription…
29. December 2010 um 13:46
cost@of.alesse” rel=”nofollow”>..…
Buyit now…
3. January 2011 um 00:54
cipro@250.mg” rel=”nofollow”>..…
Buygeneric meds…
5. February 2011 um 06:44
zofran odt…
Buynow it…
5. February 2011 um 23:11
zyrtec in dialysis patients…
Buywithout prescription…
3. March 2011 um 08:31
buy liposomal lidocaine 4% cream maxilene…
Buywithout prescription…
3. March 2011 um 09:15
Zoloft…
Buyit now…
3. March 2011 um 20:04
zyrtec anticolinergici effect…
Buyno prescription…
4. March 2011 um 11:01
gilbert’s syndrome tylenol…
Buygeneric meds…
5. March 2011 um 10:58
side effect of zoloft…
Buyno prescription…
8. March 2011 um 18:49
Pyridium…
Buydrugs without prescription…
8. March 2011 um 21:23
Pyrantel Pamoate…
Buygeneric meds…
31. March 2011 um 00:33
Yaz…
Buygeneric pills…
31. March 2011 um 11:29
Coreg@Coreg.Coreg” rel=”nofollow”>……
Buywithout prescription…
31. March 2011 um 15:40
Claritin@Claritin.Claritin” rel=”nofollow”>..…
Buyit now…
2. April 2011 um 18:18
……
Buydrugs without prescription…
3. April 2011 um 20:31
dried@neem.leaves” rel=”nofollow”>……
Buywithout prescription…
3. April 2011 um 20:54
crestor@statin.drugs” rel=”nofollow”>……
Buyit now…
5. April 2011 um 05:09
.…
Buygeneric drugs…
5. April 2011 um 11:57
methotrexate@and.placenta.acretia” rel=”nofollow”>.…
Buygeneric drugs…
9. November 2011 um 15:58
….
buy@pfizer.viagra” rel=”nofollow”>.…