I'm working on something I call the Richdraw Abstraction Layer (RDAL)
It uses the renderer.info() function to piece together a JSON based, potentially cross-platform save format.
here's a sample of the output
[{type:"line", x1:"80px", y1:"90px", x2:"320", y2:"260"},
{type:"line", x1:"160px", y1:"300px", x2:"240", y2:"160"},
{type:"line", x1:"300px", y1:"120px", x2:"400", y2:"280"},
{type:"line", x1:"160px", y1:"300px", x2:"380", y2:"180"},
{type:"line", x1:"440px", y1:"120px", x2:"380", y2:"320"},
{type:"path", d:"M460,60 C460,60 460,60 460,60 C460,60 460,80 480,80 C480,80 480,80 480,80 C500,80 500,80 500,80 C500,80 500,100 500,100 C500,100 520,100 520,100 C520,100 520,100 520,100 C520,100 520,100 520,100 C520,100 520,100 520,120 C520,120 520,120 520,120 C520,120 520,120 520,120 C520,120 520,120 520,120 C520,120 520,140 520,140 C520,140 520,140 520,140 C520,140 520,140 520,140 C520,140 520,140 520,140 C520,140 520,140 500,140 C500,140 500,140 500,140 C500,140 500,140 500,140 C500,140 500,140 500,140 C500,140 500,140 480,160 C480,160 480,160 480,160 C480,160 480,160 480,160 C480,160 480,160 480,160 C480,160 480,160 480,160 C480,160 480,160 480,160 C480,160 480,160 480,180 C480,180 480,180 480,180 C480,180 480,180 480,180 C480,180 480,180 480,180 C480,200 480,200 480,200 C480,200 480,200 480,200 C480,200 480,200 480,200 C480,200 480,200 480,200 C500,200 500,200 500,200 C500,220 500,220 500,220 C520,220 520,220 520,220 C520,220 520,200 520,200 C520,200 520,200 520,200 C520,200 520,200 520,200 C520,200 520,200 520,200 C540,200 540,200 540,200 C540,200 540,180 540,180 C540,180 540,180 540,180 C540,180 540,180 540,180 C540,180 540,180 540,180 C540,180 540,180 520,180 C520,180 520,180 520,180 C520,180 520,160 520,160 C520,160 520,160 520,160 C520,160 520,160 520,160 C520,160 520,160 520,160 C520,160 500,180 500,180 C500,180 500,180 500,180 C480,180 480,180 480,180 C480,180 480,180 480,180 C480,200 480,200 480,200 C480,200 480,200 480,200 C480,200 480,200 480,200 C480,200 480,220 480,220 C480,220 460,220 460,220 C460,220 460,220 460,220 C460,240 460,240 460,240 C460,240 460,240 460,240 C460,240 460,240 460,260 C460,260 460,280 460,280 C460,280 460,280 480,280 C480,280 480,280 480,300 C480,300 480,300 480,300 C480,300 480,300 480,300 C480,300 500,300 500,300 C500,300 500,300 500,300 C500,300 500,300 500,300 C520,300 520,300 520,300 C520,300 540,300 540,300 C540,300 540,300 560,320"},
{type:"ellipse", cx:"220px", cy:"70px", rx:"40px", ry:"30px"},
{type:"ellipse", cx:"340px", cy:"80px", rx:"40px", ry:"20px"},
{type:"rect", x:"60px", y:"180px", width:"40px", height:"40px"},
{type:"rect", x:"60px", y:"260px", width:"40px", height:"20px"},
{type:"rect", x:"260px", y:"300px", width:"320px", height:"40px"},
{type:"rect", x:"60px", y:"320px", width:"100px", height:"40px"},
{type:"rect", x:"240px", y:"180px", width:"40px", height:"20px"}]
Edited by
admin on 27-03-2008 23:03