SylvainTI / wwwsqldesigner

Automatically exported from code.google.com/p/wwwsqldesigner
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

export schema as picture #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
in order to be able to use the drawing in reports and the like, exporting
the schema as a picture, as a png file with transparent background (no grid)

Original issue reported on code.google.com by amaury.j...@gmail.com on 8 Jun 2009 at 2:32

GoogleCodeExporter commented 9 years ago
This requires server support, as client JS cannot achieve this. However, www sql
designer is mainly client-based. Therefore, I cannot do this (until someone 
wishes to
completely duplicate wwwsql functionality on server and is able to send a 
"patch").

Original comment by ondrej.zara on 8 Jun 2009 at 3:16

GoogleCodeExporter commented 9 years ago
there are multiple ways to achieve the thing.
* draw the whole thing on a <canvas> element, that can be right-clicked & saved
* generate an svg document
* generate a vml document

depending on the browser ;)

Original comment by amaury.j...@gmail.com on 9 Jun 2009 at 5:49

GoogleCodeExporter commented 9 years ago
Most of the visual layout of WWWSQL is done via HTML+CSS (only connector lines 
are
vectors). Mimicking this in _any_ way (yes, including svg/vml/canvas 
approaches) is
basically duplicating the code - something I strongly opt against. Therefore, 
this
issue remains as "wontfix", until somebody insane enough submits a patch.

Original comment by ondrej.zara on 9 Jun 2009 at 9:03

GoogleCodeExporter commented 9 years ago
SVG could be generated by  iterating over the tables, rows and connectors and 
presenting a pop-up window 
where it could be copied from. No code duplication is necessary, as all object 
properties (colors, sizes, etc) will 
be copied verbatim from existing DOM. I will work on it -- eventually.

Original comment by ober.14@osu.edu on 28 Dec 2009 at 5:58

GoogleCodeExporter commented 9 years ago
Keep in mind that this might be more difficult than you think. First, tables 
are HTML
and there is no trivial html <-> svg bijection available. Second, there is no 
SVG in
IE. Third, SVG lacks some features present in HTML+CSS, such as word/line 
wrapping -
SVG test just does not wrap.

Original comment by ondrej.zara on 28 Dec 2009 at 8:56

GoogleCodeExporter commented 9 years ago
Issue 108 has been merged into this issue.

Original comment by ondrej.zara on 27 Sep 2010 at 10:25