From 03dc72d08b2e1e1b01e0dd8d42e3fa1254c219a2 Mon Sep 17 00:00:00 2001 From: Jeffrey van Hees Date: Thu, 23 Feb 2023 21:07:44 +0100 Subject: [PATCH 1/2] Add support for stoke curve type --- src/LarapexChart.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/LarapexChart.php b/src/LarapexChart.php index 8d13834..ea63708 100644 --- a/src/LarapexChart.php +++ b/src/LarapexChart.php @@ -228,7 +228,7 @@ public function setMarkers($colors = [], $width = 4, $hoverSize = 7) :LarapexCha return $this; } - public function setStroke(int $width, array $colors = []) :LarapexChart + public function setStroke(int $width, array $colors = [], string $curve = 'straight') :LarapexChart { if(empty($colors)) { $colors = config('larapex-charts.colors'); @@ -238,6 +238,7 @@ public function setStroke(int $width, array $colors = []) :LarapexChart 'show' => true, 'width' => $width, 'colors' => $colors, + 'curve' => $curve, ]); return $this; } From 6a23484fe85cbb691e4d683411511bd581b59244 Mon Sep 17 00:00:00 2001 From: Jeffrey van Hees Date: Thu, 16 Mar 2023 09:32:00 +0100 Subject: [PATCH 2/2] Update composer.json --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index f55add8..a69b4d2 100644 --- a/composer.json +++ b/composer.json @@ -18,12 +18,12 @@ ], "require": { "php": "^7.4|^8.0", - "illuminate/support": "^8.0|^9.0", + "illuminate/support": "^8.0|^9.0|^10.0", "ext-json": "*" }, "require-dev": { "orchestra/testbench": "^6.0", - "phpunit/phpunit": "^9.0" + "phpunit/phpunit": "^10.0" }, "autoload": { "psr-4": {