I&#39;d be interested in having a play with the code as well. It looks like this is all your own hand-rolled stuff, right?<br><br><div class="gmail_quote">On Wed, Apr 9, 2008 at 11:22 AM, Gerhard Obermann &lt;<a href="mailto:obi068@gmail.com">obi068@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>Hi!</div>
<div>&nbsp;</div>
<div>It looks very cool, so please create a squeak package on squeaksource&nbsp;and assign me as developer!</div>
<div>&nbsp;</div>
<div>AFAIK Inline SVG hast too many drawbacks (especially on IE), so the&nbsp;main goal should be the rendering for linked SVG documents.</div>
<div>&nbsp;</div>
<div>BTW: Which version are you using!</div>
<div>I think it should be developed for Seaside 2.9!</div>
<div>&nbsp;</div>
<div>br</div>
<div>&nbsp;</div><font color="#888888">
<div>Gerhard</div></font><div><div></div><div class="Wj3C7c">
<div>&nbsp;</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 4/9/08, <b class="gmail_sendername">Lukas Renggli</b> &lt;<a href="mailto:renggli@gmail.com" target="_blank">renggli@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:#ccc 1px solid">Hi Holger,<br><br>Gerhard is also interested working on that. So I suggest that you<br>collaborate ;-)<br>
<br>&gt;&nbsp;&nbsp;The first issue is the canvas. Subclassing the existing canvas seems to be<br>&gt; a bad idea:<br>&gt;&nbsp;&nbsp;- SVG has an extensive set of tags. Combining this with the extensive set<br>&gt; of HTML tags will end up in one large bulky mess<br>

&gt;&nbsp;&nbsp;- the SVG anchor has the same tag as the HTML anchor, but requires the<br>&gt; xlink namespace for the href attribute, so it requires a different anchor<br>&gt; brush<br>&gt;&nbsp;&nbsp;- SVG and HTML cannot be freely mixed, so it&#39;s not necessary to combine the<br>

&gt; both in a single class.<br><br>I suggest that you create your own &quot;namespace&quot; that you can retrieve<br>from the html canvas. This would be an object that knows the<br>underlying rendering context, but only has the SVG relevant methods.<br>

<br>So that you can write:<br><br>&nbsp;&nbsp;html svg line<br>&nbsp;&nbsp;&nbsp;&nbsp; from: 1 @ 1;<br>&nbsp;&nbsp;&nbsp;&nbsp; to: 100 @ 100<br><br>Or for embedded SVG rendering I imagine writing something like:<br><br>&nbsp;&nbsp; html svg: [ html renderSvgOn: html svg ]<br><br>

Where renderSvgOn: would look like:<br><br>&nbsp;&nbsp; renderSvgOn: svg<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;svg line<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from: 1 @ 1;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; to: 100 @ 100<br><br>&gt;&nbsp;&nbsp;Currently, I&#39;ve subclassed WACanvas, not WARenderCanvas. Rendering inlined<br>

&gt; SVG will require switching the canvas. Currently I see no problems here, but<br>&gt; maybe I&#39;m wrong.<br><br>I think that&#39;s the way to go.<br><br>&gt;&nbsp;&nbsp;Another issue is inlining SVG vs. separate SVG documents. Quite often I&#39;ve<br>

&gt; seen some caveats about inlining SVG (e.g. see<br>&gt; <a href="http://wiki.svg.org/Inline_SVG" target="_blank">http://wiki.svg.org/Inline_SVG</a>). On the other hand, I see some disadvantages<br><br>I have no experience with that.<br>

<br>I think inlining seems simpler to start with. Have a look at the<br>#iframe brush to see how to create a specific document as part of the<br>page.<br><br>&gt;&nbsp;&nbsp;Embedding with &lt;object&gt;<br>&gt;&nbsp;&nbsp;-----------------------<br>

&gt;&nbsp;&nbsp;I&#39;ve tried to implement rendering of external SVG documents that are<br>&gt; included as &lt;object&gt; in the HTML document, and kind of succeeded:<br>&gt;<br>&gt;&nbsp;&nbsp;<a href="http://www.smallish.org:7777/seaside/SVG/example" target="_blank">http://www.smallish.org:7777/seaside/SVG/example</a><br>

<br>Wow, that looks already very cool.<br><br>Cheers,<br>Lukas<br><br>--<br>Lukas Renggli<br><a href="http://www.lukas-renggli.ch" target="_blank">http://www.lukas-renggli.ch</a><br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>

</blockquote></div><br>
</div></div><br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br>