<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Am 25.08.2014 um 23:09 schrieb Philippe Marschall &lt;<a href="mailto:philippe.marschall@gmail.com">philippe.marschall@gmail.com</a>&gt;:</div><div><div><br class="Apple-interchange-newline"><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;">On Mon, Aug 25, 2014 at 6:16 PM, Maximilian Bareis &lt;<a href="mailto:max.bareis@me.com">max.bareis@me.com</a>&gt; wrote:<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></blockquote><br>Can you explain a bit why you need a custom WARenderContext?<br><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>If you think you do not need this feature in WABuilder I will subclass it to SVGBuilder.</div><div><br></div><div>Regards</div><div><br></div><div>Max</div><div><br></div></div><br></div></body></html>