Add stroke width
This commit is contained in:
@@ -7,6 +7,7 @@ namespace Asantibanez\LivewireCharts\Models;
|
||||
trait HasStroke
|
||||
{
|
||||
private $stroke;
|
||||
private $width;
|
||||
|
||||
public function initStroke()
|
||||
{
|
||||
@@ -17,6 +18,7 @@ trait HasStroke
|
||||
{
|
||||
return [
|
||||
'curve' => 'straight',
|
||||
'width' => 4
|
||||
];
|
||||
}
|
||||
|
||||
@@ -34,6 +36,13 @@ trait HasStroke
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setStrokeWidth($width)
|
||||
{
|
||||
data_set($this->stroke, 'width', $width);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
protected function strokeToArray()
|
||||
{
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user