Show
Ignore:
Timestamp:
03/07/08 08:33:04 (4 years ago)
Author:
nperriault
Message:

Clever Svg:

  • refs #40: more elements tests
  • Removed depth management, as svg handle it natively

Warning: breaks BC from 0.5.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cleversvg/trunk/elements/csEllipse.class.php

    r318 r336  
    22/** 
    33 * SVG Ellipse class 
    4  *  
     4 * 
    55 * @author     Nicolas Perriault <nperriault@gmail.com> 
    66 * @package    cleversvg 
     
    1414  /** 
    1515   * Class constructor 
    16    *  
     16   * 
    1717   */ 
    1818  public function __construct($cx=null, $cy=null, $rx=null, $ry=null, $attrs=array()) 
     
    2424    $this->attributes = array_merge($attrs, $this->attributes); 
    2525  } 
    26    
     26 
    2727  /** 
    2828   * The x-axis coordinate of the center of the circle. 
    29    *  
    30    * @param  int  $cx  
     29   * 
     30   * @param  int  $cx 
    3131   */ 
    3232  public function setCx($cx) 
     
    3434    $this->setAttribute('cx', $cx); 
    3535  } 
    36    
     36 
    3737  /** 
    3838   * The y-axis coordinate of the center of the circle. 
    39    *  
    40    * @param  int  $cy  
     39   * 
     40   * @param  int  $cy 
    4141   */ 
    4242  public function setCy($cy) 
     
    4444    $this->setAttribute('cy', $cy); 
    4545  } 
    46    
     46 
    4747  /** 
    4848   * Sets the x-radius of the circle 
    49    *  
     49   * 
    5050   * @param  int  $xradius 
    5151   */ 
     
    5454    $this->setAttribute('rx', $xradius); 
    5555  } 
    56    
     56 
    5757  /** 
    5858   * Sets the y-radius of the circle 
    59    *  
     59   * 
    6060   * @param  int  $yradius 
    6161   */ 
     
    6464    $this->setAttribute('ry', $yradius); 
    6565  } 
    66    
     66 
    6767}