Esempio n. 1
0
 function printElement()
 {
     echo '<svg';
     $this->printParams('id', 'width', 'height', 'x', 'y', 'viewBox', 'style');
     echo ' xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">' . "\n";
     parent::printElement();
     echo "</svg>\n";
 }
Esempio n. 2
0
 function printElement()
 {
     echo '<radialGradient';
     $this->printParams('id', 'cx', 'cy', 'r', 'fx', 'fy');
     echo '>';
     parent::printElement();
     echo "</radialGradient>\n";
 }
Esempio n. 3
0
 function printElement()
 {
     echo '<tref';
     $this->printParams('id', 'x', 'y', 'dx', 'dy', 'rotate', 'textLength', 'lengthAdjust', 'style');
     echo '>' . $this->_text;
     parent::printElement();
     echo "</tref>\n";
 }
Esempio n. 4
0
 function printElement()
 {
     echo '<g';
     $this->printParams('id', 'style', 'transform', 'filter');
     print ">\n";
     parent::printElement();
     print "</g>\n";
 }
Esempio n. 5
0
 function printElement()
 {
     echo '<stop';
     $this->printParams('id', 'style', 'offset', 'stop-color', 'stop-opacity');
     echo '>';
     parent::printElement();
     echo "</stop>\n";
 }
Esempio n. 6
0
 function printElement()
 {
     echo '<defs';
     $this->printParams('id', 'style', 'transform');
     echo ">\n";
     parent::printElement();
     echo "</defs>\n";
 }
Esempio n. 7
0
 function printElement()
 {
     echo '<desc';
     $this->printParams('id', 'style');
     echo '>' . $this->_desc;
     parent::printElement();
     echo "</desc>\n";
 }
Esempio n. 8
0
 function printElement()
 {
     echo '<title';
     $this->printParams('id', 'style');
     print ">\n";
     print $this->_title;
     parent::printElement();
     print "</title>\n";
 }
Esempio n. 9
0
 function printElement()
 {
     echo '<tspan';
     $this->printParams('id', 'x', 'y', 'dx', 'dy', 'rotate', 'textLength', 'lengthAdjust', 'style', 'transform');
     echo '>' . $this->_text;
     if (is_array($this->_elements)) {
         parent::printElement();
     }
     echo "</tspan>\n";
 }
Esempio n. 10
0
 function printElement()
 {
     echo '<marker';
     $this->printParams('id', 'refX', 'refY', 'markerUnits', 'markerWidth', 'markerHeight', 'orient');
     if (is_array($this->_elements)) {
         // Print children, start and end tag.
         print ">\n";
         parent::printElement();
         print "</marker>\n";
     } else {
         print "/>\n";
     }
 }
Esempio n. 11
0
 function printElement($element = 'textpath')
 {
     echo '<' . $element;
     $this->printParams('id', 'x', 'y', 'dx', 'dy', 'rotate', 'textLength', 'lengthAdjust', 'style', 'transform');
     echo '>';
     if (isset($this->_charset)) {
         echo @htmlspecialchars($this->_text, ENT_COMPAT, $this->_charset);
     } else {
         echo htmlspecialchars($this->_text);
     }
     parent::printElement();
     echo "</{$element}>\n";
 }
Esempio n. 12
0
 function printElement()
 {
     echo '<filter';
     $this->printParams('id');
     if (is_array($this->_elements)) {
         // Print children, start and end tag.
         echo ">\n";
         parent::printElement();
         echo "</filter>\n";
     } else {
         echo " />\n";
     }
 }
Esempio n. 13
0
 function printElement()
 {
     echo '<animate';
     $this->printParams('id', 'attributeName', 'attributeType', 'from', 'to', 'begin', 'dur', 'fill');
     if (is_array($this->_elements)) {
         // Print children, start and end tag.
         echo ">\n";
         parent::printElement();
         echo "</animate>\n";
     } else {
         echo " />\n";
     }
 }
Esempio n. 14
0
 function printElement()
 {
     echo '<path';
     $this->printParams('id', 'd', 'style', 'transform');
     if (is_array($this->_elements)) {
         // Print children, start and end tag.
         print ">\n";
         parent::printElement();
         print "</path>\n";
     } else {
         // Print short tag.
         print "/>\n";
     }
 }
Esempio n. 15
0
 function printElement()
 {
     $name = 'fe' . $this->_primitive;
     echo '<' . $name;
     $this->printParams('id', 'x', 'y', 'dx', 'dy', 'width', 'height', 'in', 'in2', 'result', 'mode', 'type', 'values', 'operator', 'k1', 'k2', 'k3', 'k4', 'surfaceScale', 'stdDeviation', 'diffuseConstant', 'kernelUnitLength', 'flood_color', 'flood_opacity');
     if (is_array($this->_elements)) {
         // Print children, start and end tag.
         echo ">\n";
         parent::printElement();
         echo '</' . $name . '>';
     } else {
         echo '/>';
     }
 }
Esempio n. 16
0
 function printElement()
 {
     echo '<circle';
     $this->printParams('id', 'cx', 'cy', 'r', 'style', 'transform');
     if (is_array($this->_elements)) {
         // Print children, start and end tag.
         echo ">\n";
         parent::printElement();
         echo "</circle>\n";
     } else {
         // Print short tag.
         echo "/>\n";
     }
 }
Esempio n. 17
0
 function printElement()
 {
     echo '<line';
     $this->printParams('id', 'x1', 'y1', 'x2', 'y2', 'style');
     if (is_array($this->_elements)) {
         // Print children, start and end tag.
         print ">\n";
         parent::printElement();
         print "</line>\n";
     } else {
         // Print short tag.
         print "/>\n";
     }
 }
Esempio n. 18
0
 function printElement()
 {
     echo '<rect';
     $this->printParams('id', 'x', 'y', 'width', 'height', 'rx', 'ry', 'style');
     if (is_array($this->_elements)) {
         // Print children, start and end tag.
         print ">\n";
         parent::printElement();
         print "</rect>\n";
     } else {
         // Print short tag.
         print "/>\n";
     }
 }
Esempio n. 19
0
 function printElement()
 {
     echo '<image';
     $this->printParams('id', 'x', 'y', 'width', 'height', 'style');
     if (!empty($this->_href)) {
         echo ' xlink:href="' . $this->_href . '"';
     }
     if (is_array($this->_elements)) {
         // Print children, start and end tag.
         echo ">\n";
         parent::printElement();
         echo "</image>\n";
     } else {
         // Print short tag.
         echo " />\n";
     }
 }
Esempio n. 20
0
 function XML_SVG_Use($symbol, $params = array())
 {
     parent::XML_SVG_Element($params);
     $this->_symbol = $symbol;
 }