This is how I did the viewBox by buttons with a macro
a macro for the viewBox attribuute with variable transclusins from
fields set by the buttons
viewBox=<<viewBox4 $(orgn1)$ $(orgn2)$ $(whv3)$ $(whv4)$>>
\define viewBox4(origin1:"0",origin2:"0",wh1:"240",wh2:"240")
$origin1$ $origin2$ $wh1$ $wh2$
\end
<$set name="orgn1" value={{!!filter-field1}}>
<$set name="orgn2" value={{!!filter-field2}}>
<$set name="whv3" value={{!!filter-field3}}>
<$set name="whv4" value={{!!filter-field4}}>
default viewBox: <<viewBox4>> -- current viewBox: <span
class="ragsspanbold"><<viewBox4 $(orgn1)$ $(orgn2)$ $(whv3)$
$(whv4)$>></span><br/>
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink" viewBox=<<viewBox4 $(orgn1)$
$(orgn2)$ $(whv3)$ $(whv4)$>> width="240"><!---->
</svg>
</$set></$set></$set></$set>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/afb3d43c-5444-4b19-8cfb-ca2ac7e4296c%40googlegroups.com.