Svg\DefaultStyle
Synopsis
class DefaultStyle
extends Style
{
- // Inherited constants from Style
- const TYPE_COLOR = 1;
- const TYPE_LENGTH = 2;
- const TYPE_NAME = 3;
- const TYPE_ANGLE = 4;
- const TYPE_NUMBER = 5;
- // members
- public string $color = '';
- public float $opacity = 1.0;
- public string $display = 'inline';
- public string $fill = 'black';
- public float $fillOpacity = 1.0;
- public string $fillRule = 'nonzero';
- public string $stroke = 'none';
- public float $strokeOpacity = 1.0;
- public string $strokeLinecap = 'butt';
- public string $strokeLinejoin = 'miter';
- public integer $strokeMiterlimit = 4;
- public float $strokeWidth = 1.0;
- public integer $strokeDasharray = 0;
- public integer $strokeDashoffset = 0;
- // Inherited members from Style
- 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;
- public integer $fontSize;
- public string $fontWeight;
- public string $fontStyle;
- public string $textAnchor;
- public static array $colorNames;
- // Inherited methods from Style
- 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()
Hierarchy
Extends
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
- $color
- $colorNames
- $display
- $display
- $fill
- $fill
- $fillOpacity
- $fillOpacity
- $fillRule
- $fillRule
- $fontFamily
- $fontSize
- $fontStyle
- $fontWeight
- $opacity
- $opacity
- $stroke
- $stroke
- $strokeDasharray
- $strokeDasharray
- $strokeDashoffset
- $strokeDashoffset
- $strokeLinecap
- $strokeLinecap
- $strokeLinejoin
- $strokeLinejoin
- $strokeMiterlimit
- $strokeMiterlimit
- $strokeOpacity
- $strokeOpacity
- $strokeWidth
- $strokeWidth
- $textAnchor
Methods
Inherited from Svg\Style
protected
public
- convertSize() — Convert a size to a float
- fromAttributes()
- fromStyleSheets()
- getTriplet()
- inherit()
- parseColor()
- parseCssStyle() — Simple CSS parser
- parseHexColor()