コード例 #1
0
ファイル: SVGCircle.php プロジェクト: JangoBrick/php-svg
 /**
  * @param string|null $cx The center's x coordinate.
  * @param string|null $cy The center's y coordinate.
  * @param string|null $r  The radius.
  */
 public function __construct($cx = null, $cy = null, $r = null)
 {
     parent::__construct();
     $this->setAttributeOptional('cx', $cx);
     $this->setAttributeOptional('cy', $cy);
     $this->setAttributeOptional('r', $r);
 }
コード例 #2
0
ファイル: SVGLine.php プロジェクト: JangoBrick/php-svg
 /**
  * @param string|null $x1 The first point's x coordinate.
  * @param string|null $y1 The first point's y coordinate.
  * @param string|null $x2 The second point's x coordinate.
  * @param string|null $y2 The second point's y coordinate.
  */
 public function __construct($x1 = null, $y1 = null, $x2 = null, $y2 = null)
 {
     parent::__construct();
     $this->setAttributeOptional('x1', $x1);
     $this->setAttributeOptional('y1', $y1);
     $this->setAttributeOptional('x2', $x2);
     $this->setAttributeOptional('y2', $y2);
 }
コード例 #3
0
ファイル: SVGRect.php プロジェクト: JangoBrick/php-svg
 /**
  * @param string|null $x      The x coordinate of the upper left corner.
  * @param string|null $y      The y coordinate of the upper left corner.
  * @param string|null $width  The width.
  * @param string|null $height The height.
  */
 public function __construct($x = null, $y = null, $width = null, $height = null)
 {
     parent::__construct();
     $this->setAttributeOptional('x', $x);
     $this->setAttributeOptional('y', $y);
     $this->setAttributeOptional('width', $width);
     $this->setAttributeOptional('height', $height);
 }
コード例 #4
0
 public function __construct()
 {
     parent::__construct();
     $this->children = array();
 }
コード例 #5
0
 /**
  * @param array[] $points Array of points (float 2-tuples).
  */
 public function __construct($points)
 {
     parent::__construct();
     $this->points = $points;
 }
コード例 #6
0
ファイル: SVGPath.php プロジェクト: JangoBrick/php-svg
 /**
  * @param string|null $d The path description.
  */
 public function __construct($d = null)
 {
     parent::__construct();
     $this->setAttributeOptional('d', $d);
 }