h2. TC SVG
TC SVG ist eine Sammlung von Befehlen, mit der SVG-Graphiken erstellt werden können ... (work in progress)
h2. Befehls-Struktur
p(tc3-amber tc3-text-light-grey tc3-container). please fill me!
h3. Mapping für ein Koordinatensystem
p. Ein SVG-Element hat die Parameter Width %(m)W% und Height %(m)H%. Dieser freie Darstellungsbereich wird durch die Randdefinitionen
* %(m)\begin{matrix} \text{tc-svg-map-border-left} & & & b_{left} \end{matrix}%
* %(m)\begin{matrix} \text{tc-svg-map-border-right} & & b_{right} \end{matrix}%
* %(m)\begin{matrix} \text{tc-svg-map-border-top} & & & b_{top} \end{matrix}%
* %(m)\begin{matrix} \text{tc-svg-map-border-bottom} & b_{bottom} \end{matrix}%
p. Anwender können für Abszisse und Ordinate diese min und max-Werte definiern:
* %(m)\begin{matrix} \text{tc-svg-map-xmin} & & & x_{min} \end{matrix}%
* %(m)\begin{matrix} \text{tc-svg-map-xmax} & & & x_{max} \end{matrix}%
* %(m)\begin{matrix} \text{tc-svg-map-ymin} & & & y_{min} \end{matrix}%
* %(m)\begin{matrix} \text{tc-svg-map-ymax} & & & y_{max} \end{matrix}%
p. Der Punkt, in dem sich die Koordinatenachsen scheiden, werden durch die Parameter tc-svg-map-crossx und tc-svg-map-crossy definiert.
p. Für einen Punkt %(m)p(x_p,y_p)% in den frei gewählten Koordinaten ergeben sich dann diese realen Koordinaten:
p(math). W := width \: - \: b_{left} \: - \: b_{right}
p(math). H := height \: - \: b_{top} \: - \: b_{bottom}
p(math). x_p = \frac{\lvert x \: - \: x_{min} \rvert} {\lvert x_{max} \: - \: x_{min} \rvert } \: * \: W + b_{Left}
p(math). y_p = ( 1 \: - \: \frac{\lvert y \: - \: y_{min} \rvert} {\lvert y_{max} \: - \: y_{min} \rvert } \:) * \: H + b_{top}
*(#edit-link2) auto-replace
p. lorem ipsum right pinned here!
h3. Stories about Success and Boxes