Class yii\debug\models\timeline\Svg
| Inheritance | yii\debug\models\timeline\Svg » yii\base\Object | 
|---|---|
| Available since version | 2.0.8 | 
Svg is used to draw a graph using SVG
Public Properties
| Property | Type | Description | Defined By | 
|---|---|---|---|
| $gradient | array | Color indicators svg graph. | yii\debug\models\timeline\Svg | 
| $listenMessages | array | Listen messages panels | yii\debug\models\timeline\Svg | 
| $stroke | string | Stroke color | yii\debug\models\timeline\Svg | 
| $template | string | Svg template | yii\debug\models\timeline\Svg | 
| $x | integer | Max X coordinate | yii\debug\models\timeline\Svg | 
| $y | integer | Max Y coordinate | yii\debug\models\timeline\Svg | 
Protected Properties
| Property | Type | Description | Defined By | 
|---|---|---|---|
| $panel | yii\debug\panels\TimelinePanel | yii\debug\models\timeline\Svg | |
| $points | array | Each point is define by a X and a Y coordinate. | yii\debug\models\timeline\Svg | 
Public Methods
| Method | Description | Defined By | 
|---|---|---|
| __construct() | yii\debug\models\timeline\Svg | |
| __toString() | yii\debug\models\timeline\Svg | |
| hasPoints() | yii\debug\models\timeline\Svg | 
Protected Methods
| Method | Description | Defined By | 
|---|---|---|
| addPoints() | yii\debug\models\timeline\Svg | |
| linearGradient() | yii\debug\models\timeline\Svg | |
| polygon() | yii\debug\models\timeline\Svg | |
| polyline() | yii\debug\models\timeline\Svg | 
Property Details
Color indicators svg graph.
Listen messages panels
Each point is define by a X and a Y coordinate.
Stroke color
Svg template
public string $template = '<svg width="{x}" height="{y}" viewBox="0 0 {x} {y}" preserveAspectRatio="none"><defs>{linearGradient}</defs><g><polygon points="{polygon}" fill="url(#gradient)"/><polyline points="{polyline}" fill="none" stroke="{stroke}" stroke-width="1"/></g></svg>'
    
    
    Max X coordinate
Max Y coordinate
Method Details
| public void __construct ( yii\debug\panels\TimelinePanel $panel, $config = [] ) | ||
| $panel | ||
| $config | ||
| public string __toString ( ) | 
| protected integer addPoints ( $messages ) | ||
| $messages | array | Log messages. See \yii\debug\models\timeline\Logger::messages for the structure | 
| return | integer | Added points | 
|---|---|---|
| public boolean hasPoints ( ) | ||
| return | boolean | Has points | 
|---|---|---|
| protected string linearGradient ( ) | 
| protected string polygon ( ) | ||
| return | string | Points attribute for polygon path | 
|---|---|---|
| protected string polyline ( ) | ||
| return | string | Points attribute for polyline path | 
|---|---|---|