<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Johan,<div><br></div><div>perhaps I am a bit mistakable.</div><div><br></div><div>It is not possible to put ANY render Context into WABuilder, because WABuilder always creates a new one.</div><div>I do not want to create a custom Render Context. I want WABuilder to use the WARenderContext I have created and changed.</div><div><br></div><div>see <i>WABuilder&gt;&gt;render: anObject</i></div><div><div><i>^ String streamContents: [ :stream |</i></div><div><i><span class="Apple-tab-span" style="white-space: pre;">                </span>| context document renderer |</i></div><div><i>...</i></div><div><i><span class="Apple-tab-span" style="white-space: pre;">                </span><font color="#e32400">context := WARenderContext new.</font></i></div><div><i>...</i></div><div><i><span class="Apple-tab-span" style="white-space: pre;">                </span>renderer := self rendererClass context: context.</i></div><div><span class="Apple-tab-span" style="white-space: pre;"><i>                </i></span></div><div><i><span class="Apple-tab-span" style="white-space: pre;">                </span>self openDocument: document context: context.</i></div><div><i><span class="Apple-tab-span" style="white-space: pre;">                </span>renderer render: anObject; flush.</i></div><div><i><span class="Apple-tab-span" style="white-space: pre;">                </span>self closeDocument: document ]</i></div></div><div><br></div><div><div>My suggestion for a change is in the original mail (first one on thread).</div><div><br></div><div>Regards</div><div><br></div><div>Max</div><div><br></div><div><br></div><div><br></div><div>Am 30.08.2014 um 18:00 schrieb Johan Brichau &lt;<a href="mailto:johan@inceptive.be">johan@inceptive.be</a>&gt;:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On 25 Aug 2014, at 23:48, Maximilian Bareis &lt;<a href="mailto:max.bareis@me.com">max.bareis@me.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><blockquote type="cite"><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br></div></blockquote><div>as I answered to Esteban, the creation of SVGAnchor depends on the state of the context. If the context has the state disableSVGAnchor the disabledAnchor is created otherwise the SVGAnchor is created. Why the disabled state is coupled to the context is beyond my knowledge, this needs to be answered by Johan or the creator of SVGCanvas&gt;&gt;anchor:&nbsp;</div></div></blockquote><div><br></div><div><div>I’m not the creator of the package and it’s been some years ago I actually looked at its code.</div><div>From looking at the code, it seems the anchors are being disabled when the svg is being exported to a file.&nbsp;</div><div><br></div><div>I’m not sure if this is a technical requirement or a convenience to prevent urls from a seaside app being exported to a file (which does not make sense).</div><div><br></div><div>If Holger (the original author) is still following this list, he might be able to comment…</div></div><br><blockquote type="cite"><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">If you think you do not need this feature in WABuilder I will subclass it to SVGBuilder.</div></blockquote><div><br></div>I’m not sure. You should have access to the renderContext from within your test and set the disabledAnchor flag without changing code to WABuilder.</div><div><br></div><div>I don’t understand the necessity to add an ability to put in your own rendercontext because:</div><div>- you are still using a WARenderContext instance</div><div>- you can manipulate the instance after constructing it:</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>WAHtmlCanvas&nbsp;builder render: [ :html |</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>html context disableSVGAnchors: true.</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>….]</div><div><br></div><div>Would the above not be sufficient (and avoid other refactorings?)</div><div><br></div><div>Johan</div></div></div>_______________________________________________<br>seaside-dev mailing list<br><a href="mailto:seaside-dev@lists.squeakfoundation.org">seaside-dev@lists.squeakfoundation.org</a><br>http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev<br></blockquote></div><br></body></html>