Applying Base SVG Symbols from a Symbol Library
The SVG document is initially empty. When the file loads, it creates an XML object that contains the Symbol Library elements from an xml file. See Source.

The database sends information to this file:
1. the symbol to use.
2. the x,y location
3. the size of the symbol
4. the colors for symbol's elements

The application then:
a) determines if a base symbol was already created from the XML object.
b) if not created, then is creates the base SVG symbol.
c) or if previously created, it checks to determine if the new color requests were previously called for this symbol.
d) if previously created, but different colors are requested, then it clones the needed symbol
e) changes the fill color attributes as requested
f) places the cloned symbol in the <defs>
g) builds a new use for the symbol
h) includes x,y, and size for the use attributes
j) appends the new use to the document.


Each 'Place Symbols' selection random-generates the request data for 100 new symbols for the document.

  symbols:   uses:
SOURCE