Skip to content

Commit

Permalink
Merge pull request #88 from eclipxe13/fix/chart-pie-shadow
Browse files Browse the repository at this point in the history
Update Pie.php
  • Loading branch information
szymach committed May 27, 2023
2 parents 7cbaf0d + ca9a196 commit c022568
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Chart/Pie.php
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ public function drawPieLegend($X, $Y, array $Format = [])
}
}

$this->Shadow = $RestoreShadow;
$this->pChartObject->Shadow = $RestoreShadow;
}

/**
Expand Down
6 changes: 3 additions & 3 deletions src/Chart/Scatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -1416,7 +1416,7 @@ public function drawScatterLegend($X, $Y, array $Format = [])
);
}
$RestoreShadow = $this->pChartObject->Shadow;
$this->Shadow = false;
$this->pChartObject->Shadow = false;
foreach ($Data["ScatterSeries"] as $Key => $Series) {
if ($Series["isDrawable"] == true) {
$R = $Series["Color"]["R"];
Expand Down Expand Up @@ -1535,7 +1535,7 @@ public function drawScatterLegend($X, $Y, array $Format = [])
}
}

$this->Shadow = $RestoreShadow;
$this->pChartObject->Shadow = $RestoreShadow;
}

/**
Expand Down Expand Up @@ -2244,7 +2244,7 @@ public function drawScatterThresholdArea($Value1, $Value2, array $Format = [])
]
);
if ($DisableShadowOnArea) {
$this->Shadow = false;
$$this->pChartObject->Shadow = false;
}
}

Expand Down
15 changes: 15 additions & 0 deletions src/Chart/Spring.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,21 @@ class Spring
*/
public $AutoComputeFreeZone = false;

/**
* @var int|float
*/
private $MagneticForceA;

/**
* @var int|float
*/
private $MagneticForceR;

/**
* @var int|float
*/
private $RingSize;

public function __construct()
{
/* Set nodes defaults */
Expand Down

0 comments on commit c022568

Please sign in to comment.