Visual Console Refactor: minor fixes
Former-commit-id: 028f466f9429488f399551e2d3201439b73ce34e
This commit is contained in:
parent
d5b83b867b
commit
f663bd8389
|
@ -48,7 +48,9 @@ final class DonutGraph extends Item
|
||||||
{
|
{
|
||||||
$return = parent::decode($data);
|
$return = parent::decode($data);
|
||||||
$return['type'] = DONUT_GRAPH;
|
$return['type'] = DONUT_GRAPH;
|
||||||
$return['legendBackgroundColor'] = $this->extractLegendBackgroundColor($data);
|
$return['legendBackgroundColor'] = static::extractLegendBackgroundColor(
|
||||||
|
$data
|
||||||
|
);
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,7 +62,7 @@ final class DonutGraph extends Item
|
||||||
*
|
*
|
||||||
* @return mixed String representing the border color (not empty) or null.
|
* @return mixed String representing the border color (not empty) or null.
|
||||||
*/
|
*/
|
||||||
private function extractLegendBackgroundColor(array $data)
|
private static function extractLegendBackgroundColor(array $data)
|
||||||
{
|
{
|
||||||
return static::notEmptyStringOr(
|
return static::notEmptyStringOr(
|
||||||
static::issetInArray(
|
static::issetInArray(
|
||||||
|
|
|
@ -604,7 +604,7 @@ export default class Clock extends Item<ClockProps> {
|
||||||
width = 100; // Default value.
|
width = 100; // Default value.
|
||||||
height = 50; // Default value.
|
height = 50; // Default value.
|
||||||
}
|
}
|
||||||
console.log(width, height);
|
|
||||||
return {
|
return {
|
||||||
width,
|
width,
|
||||||
height
|
height
|
||||||
|
|
Loading…
Reference in New Issue