\Kendo\Dataviz\UI\DiagramShapeDefaultsConnector

A PHP class representing the connector setting of DiagramShapeDefaultsConnectors.

Methods

fill

Defines the fill options of the shape connectors.

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsConnector

Parameters

$value string |\Kendo\Dataviz\UI\DiagramShapeDefaultsConnectorFill |array

Example - using string

<?php
$connector = new \Kendo\Dataviz\UI\DiagramShapeDefaultsConnector();
$connector->fill('value');
?>

Example - using \Kendo\Dataviz\UI\DiagramShapeDefaultsConnectorFill

<?php
$connector = new \Kendo\Dataviz\UI\DiagramShapeDefaultsConnector();
$fill = new \Kendo\Dataviz\UI\DiagramShapeDefaultsConnectorFill();
$color = 'value';
$fill->color($color);
$connector->fill($fill);
?>

Example - using array

<?php
$connector = new \Kendo\Dataviz\UI\DiagramShapeDefaultsConnector();
$color = 'value';
$connector->fill(array('color' => $color));
?>

height

Defines the height of the shape connectors.

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsConnector

Parameters

$value float

Example

<?php
$connector = new \Kendo\Dataviz\UI\DiagramShapeDefaultsConnector();
$connector->height(1);
?>

hover

Defines the hover configuration of the shape connectors.

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsConnector

Parameters

$value \Kendo\Dataviz\UI\DiagramShapeDefaultsConnectorHover |array

Example - using \Kendo\Dataviz\UI\DiagramShapeDefaultsConnectorHover

<?php
$connector = new \Kendo\Dataviz\UI\DiagramShapeDefaultsConnector();
$hover = new \Kendo\Dataviz\UI\DiagramShapeDefaultsConnectorHover();
$fill = 'value';
$hover->fill($fill);
$connector->hover($hover);
?>

Example - using array

<?php
$connector = new \Kendo\Dataviz\UI\DiagramShapeDefaultsConnector();
$fill = 'value';
$connector->hover(array('fill' => $fill));
?>

name

The connector name.

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsConnector

Parameters

$value string

Example

<?php
$connector = new \Kendo\Dataviz\UI\DiagramShapeDefaultsConnector();
$connector->name('value');
?>

position

The function that positions the connector. The function is passed a shape and should return kendo.dataviz.diagram. As a result, a point that holds the connector position appears.

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsConnector

Parameters

$value \Kendo\JavaScriptFunction

Example

<?php
$connector = new \Kendo\Dataviz\UI\DiagramShapeDefaultsConnector();
$connector->position(new \Kendo\JavaScriptFunction('function() { }'));
?>

stroke

Defines the stroke options of the shape connectors.

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsConnector

Parameters

$value string |\Kendo\Dataviz\UI\DiagramShapeDefaultsConnectorStroke |array

Example - using string

<?php
$connector = new \Kendo\Dataviz\UI\DiagramShapeDefaultsConnector();
$connector->stroke('value');
?>

Example - using \Kendo\Dataviz\UI\DiagramShapeDefaultsConnectorStroke

<?php
$connector = new \Kendo\Dataviz\UI\DiagramShapeDefaultsConnector();
$stroke = new \Kendo\Dataviz\UI\DiagramShapeDefaultsConnectorStroke();
$color = 'value';
$stroke->color($color);
$connector->stroke($stroke);
?>

Example - using array

<?php
$connector = new \Kendo\Dataviz\UI\DiagramShapeDefaultsConnector();
$color = 'value';
$connector->stroke(array('color' => $color));
?>

width

Defines the width of the shape connectors.

Returns

\Kendo\Dataviz\UI\DiagramShapeDefaultsConnector

Parameters

$value float

Example

<?php
$connector = new \Kendo\Dataviz\UI\DiagramShapeDefaultsConnector();
$connector->width(1);
?>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy