svgdom::addTextElement
addTextElement kind \ properties subelements pnode \ doc
Text and CDATA elements are created in different ways. Here a text object is created for subelements. and then inserted into the generated text node.
addTextElement is being used by ::svgdom::make.
Example 8.1. ::dumper::tabs2tspan using addTextElement
... # Guard against lines without tabs. if { -1 == \ [string first \t $line] } { svgdom::addTextElement tspan \ [concat \ [list x $x dy $dy] $properties] $line $tnode $_doc
Copyright © 2009–2010 Arndt Roger Schneider