\Kendo\Dataviz\UI\DiagramShapeDefaultsFill
A PHP class representing the fill setting of DiagramShapeDefaults.
Methods
color
Defines the fill color of the shape.
Returns
\Kendo\Dataviz\UI\DiagramShapeDefaultsFill
Parameters
$value string
Example
<?php
$fill = new \Kendo\Dataviz\UI\DiagramShapeDefaultsFill();
$fill->color('value');
?>
gradient
Defines the gradient fill of the shape.
Returns
\Kendo\Dataviz\UI\DiagramShapeDefaultsFill
Parameters
$value \Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradient|array
Example - using \Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradient
<?php
$fill = new \Kendo\Dataviz\UI\DiagramShapeDefaultsFill();
$gradient = new \Kendo\Dataviz\UI\DiagramShapeDefaultsFillGradient();
$radius = 1;
$gradient->radius($radius);
$fill->gradient($gradient);
?>
Example - using array
<?php
$fill = new \Kendo\Dataviz\UI\DiagramShapeDefaultsFill();
$radius = 1;
$fill->gradient(array('radius' => $radius));
?>
opacity
Defines the fill opacity of the shape.
Returns
\Kendo\Dataviz\UI\DiagramShapeDefaultsFill
Parameters
$value float
Example
<?php
$fill = new \Kendo\Dataviz\UI\DiagramShapeDefaultsFill();
$fill->opacity(1);
?>