Online LaTeX diagram graphical editor

Is there an online tool that generates the corresponding LaTeX code of a diagram which can be drawn using a graphical interface? A tool such as latexdraw but only using a web browser (like Detexify)?

-
If tikz code counts as "latex code", you can use inkscape to draw svg, and there exists a plugin which saves it as tikz code. For the web browser requisite, you can use svg-edit.googlecode.com/svn/branches/2.5.1/editor/… as editor, but still require inkscape to convert the svg to tikz. –  JLDiaz Nov 30 '12 at 10:05