<div dir="ltr"><div class="gmail_extra"><div><div dir="ltr"><div>On Mon, Aug 25, 2014 at 6:31 PM, Maximilian Bareis <span dir="ltr">&lt;<a href="mailto:max.bareis@me.com" target="_blank">max.bareis@me.com</a>&gt;</span> wrote:<br>

</div></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word">

Hi Esteban,<div><br></div><div>the procedure is fine for small chunks that do not need a specific RenderContext.</div><div><br></div><div>I am currently developing the tests for SeasideDynamicSVG package. There is everything already developed (own Canvas etc.) but I need to move it to Seaside 3.1. For that I am adding more testcases to ensure the stability.</div>

</div></blockquote><div><br></div><div>Just using that package right now. Very cool and works for me after fiddling around a bit.</div><div><br></div><div>By any chance, do you have any sample with SeasideDynamicSVG-JQuery ?</div>

<div><br></div><div>This </div><div><br></div><div>&gt;&gt;rawSVGContentOn: svg </div><div><br></div><div><span class="" style="white-space:pre">        </span>svg anchor<br></div><div><span class="" style="white-space:pre">                </span>callback: [ self info: &#39;Poked!&#39; ] ;</div>

<div><span class="" style="white-space:pre">                </span>target: &#39;_top&#39; ;</div><div><span class="" style="white-space:pre">                </span>with: [</div><div><span class="" style="white-space:pre">                        </span>svg circle</div><div>

<span class="" style="white-space:pre">                                </span>stroke: Color black;</div><div><span class="" style="white-space:pre">                                </span>strokeWidth: 3 ;</div><div><span class="" style="white-space:pre">                                </span>fill: Color yellow;</div>

<div><span class="" style="white-space:pre">                                </span>fillOpacity: 0.8 ;</div><div><span class="" style="white-space:pre">                                </span>opacity: 0.6;</div><div><span class="" style="white-space:pre">                                </span>center: 50@50;</div>

<div><span class="" style="white-space:pre">                                </span>radius: 30</div><div><span class="" style="white-space:pre">                        </span>].</div><div><br></div><div>works but not really what I do want as it flashes the screen like a normal link.</div>

<div><br></div><div>Google didn&#39;t told me much.</div><div><br></div><div>Phil</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div style="word-wrap:break-word"><div><br></div><div>The decent problem for this case is, that an AnchorBrush is created related to the Context:</div><div><br></div><div><div><i>anchorBrush := self context disableSVGAnchors</i></div>

<div><i><span style="white-space:pre-wrap">                </span>ifTrue: [SVGDisabledAnchorBrush new]</i></div><div><i><span style="white-space:pre-wrap">                </span>ifFalse: [SVGAnchorTag new].</i></div><div><i><span style="white-space:pre-wrap">        </span>^self brush: anchorBrush</i></div>

</div><div><br></div><div>So without having my own context I am not able to use the WABuilder to create a SVGDisabledAnchorTag.</div><div>I could also create a subclass SVGBuilder but I think this feature may be useful also for WABuilder.</div>

<div><br></div><div>Regards</div><div><br></div><div>Max</div><div><br><div><div>Am 25.08.2014 um 18:23 schrieb Esteban A. Maringolo &lt;<a href="mailto:emaringolo@gmail.com" target="_blank">emaringolo@gmail.com</a>&gt;:</div>

<br><blockquote type="cite">I don&#39;t know about SVG documents. But what I do to generate small<br>chunks of HTML content is:<br><br>WAHtmlCanvas builder render: [ :html | html text: &#39;Hello world&#39; ]<br><br>So maybe you should have your own WASvgCanvas and maybe a WASvgDocument too.<br>

<br>Regards!<br><br><br>Esteban A. Maringolo<br><br><br>2014-08-25 13:16 GMT-03:00 Maximilian Bareis &lt;<a href="mailto:max.bareis@me.com" target="_blank">max.bareis@me.com</a>&gt;:<br><blockquote type="cite">Hi,<br><br>

I use WABuilder for creating small chunks of html-Code to test the SVGTags.<br>Unfortunately it is not possible to pass a RenderContext into<br>WABuilder&gt;&gt;render:<br><br>WABuilder&gt;&gt;render: anObject<br>^ String streamContents: [ :stream |<br>

| context document renderer |<br>...<br>context := WARenderContext new.<br>...<br>renderer := self rendererClass context: context.<br>self openDocument: document context: context.<br>renderer render: anObject; flush.<br>
self closeDocument: document ]<br>
<br>so I would like to change the method and split it up in two methods:<br><br>WABuilder&gt;&gt;render:<br><br>^ self render: anObject withContext: WARenderContext new.<br><br>and WABuilder&gt;&gt;render:withContext:<br>

<br>WABuilder&gt;&gt;render: anObject<br>^ String streamContents: [ :stream |<br>| context document renderer |<br>...<br>context := aWARenderContext.<br>...<br>renderer := self rendererClass context: context.<br>self openDocument: document context: context.<br>

renderer render: anObject; flush.<br>self closeDocument: document ]<br><br>Is that OK and conforming to your development rules? How do I proceed if it<br>is ok to implement?<br><br>Regards<br><br>Max<br><br>_______________________________________________<br>

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

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

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