Svg\Style
Synopsis
class Style
{
- // constants
- const TYPE_COLOR = 1;
- const TYPE_LENGTH = 2;
- const TYPE_NAME = 3;
- const TYPE_ANGLE = 4;
- const TYPE_NUMBER = 5;
- // members
- public $color;
- public $opacity;
- public $display;
- public $fill;
- public $fillOpacity;
- public $fillRule;
- public $stroke;
- public $strokeOpacity;
- public $strokeLinecap;
- public $strokeLinejoin;
- public $strokeMiterlimit;
- public $strokeWidth;
- public $strokeDasharray;
- public $strokeDashoffset;
- public string $fontFamily = 'serif';
- public integer $fontSize = 12;
- public string $fontWeight = 'normal';
- public string $fontStyle = 'normal';
- public string $textAnchor = 'start';
- public static array $colorNames = ;
- // methods
- protected void getStyleMap()
- public Style fromAttributes()
- public void inherit()
- public void fromStyleSheets()
- protected void fillStyles()
- public static void parseColor()
- public static void getTriplet()
- public static void parseHexColor()
- public static array parseCssStyle()
- public static float|null convertSize()
Tasks
Line | Task |
---|---|
395 | cm, mm, pc, in, etc |
Constants
Name | Value |
---|---|
TYPE_COLOR | 1 |
TYPE_LENGTH | 2 |
TYPE_NAME | 3 |
TYPE_ANGLE | 4 |
TYPE_NUMBER | 5 |
Members
public
- $color
- $colorNames
- $display
- $fill
- $fillOpacity
- $fillRule
- $fontFamily
- $fontSize
- $fontStyle
- $fontWeight
- $opacity
- $stroke
- $strokeDasharray
- $strokeDashoffset
- $strokeLinecap
- $strokeLinejoin
- $strokeMiterlimit
- $strokeOpacity
- $strokeWidth
- $textAnchor
Methods
protected
public
- convertSize() — Convert a size to a float
- fromAttributes()
- fromStyleSheets()
- getTriplet()
- inherit()
- parseColor()
- parseCssStyle() — Simple CSS parser
- parseHexColor()