New to Kendo UI for AngularStart a free 30-day trial

Layout

Class

Represents a group that can arrange its children within a rectangle.

Definition

Package:@progress/kendo-drawing

Methods

Appends the specified element as a last child of the group.

Parameters:elementsElement[]

Appends a break element to the layout.

Returns the bounding box of the element with applied transformations.

Parameters:transformation?Transformation

An optional parent transformation to apply when calculating the bounding box.

Returns:

Rect

  • The bounding box of the element with transformations applied.

Gets the class attribute of the element. The class will be rendered only for SVG output.

Returns:

string

the value of the class attribute of the element.

Sets the class attribute of the element. The class will be rendered only for SVG output.

Parameters:classNamestring

The value of the class attribute.

Removes all child elements from the group.

Gets the clipping path for this element.

Returns:

Path

  • The clipping path for this element.

Sets the clipping path for this element. The Path instance will be monitored for changes. Can be replaced by calling the clip method.

The following example demonstrates how to set a clipping path on a Circle.

The following example demonstrates how to clear a clipping path.

Parameters:clipPath

The element clipping path.

Returns the bounding box of the element with clipping and transformations applied. This is the rectangle that will fit around the actual rendered element.

Parameters:transformation?Transformation

An optional parent transformation to apply when calculating the bounding box.

Returns:

Rect

  • The bounding box of the element with clipping and transformations applied.

Returns true if the shape contains the specified point.

Parameters:pointPoint

The point that should be checked.

Returns:

boolean

value indicating if the shape contains the point.

Inserts an element at the specified position.

Parameters:positionnumber

The position to insert the element at. Existing children beyond this position are shifted right.

elementElement

The element to insert.

Gets the element opacity.

Returns:

number

The current element opacity.

Sets the opacity of the element.

Parameters:opacitynumber

The element opacity. Ranges from 0 (completely transparent) to 1 (completely opaque).

Returns the bounding box of the element geometry without transformations, clipping, or stroke expansion applied.

Returns:

Rect

  • The raw bounding box of the element.

Gets the rectangle within which the children should be arranged.

Returns:

Rect

  • The current rectangle.

Sets the rectangle within which the children should be arranged.

Parameters:rectRect

The layout rectangle.

Arranges the elements based on the current options.

Removes the specified element from the group.

Parameters:elementElement

The element to remove.

Removes the child element at the specified position.

Parameters:indexnumber

The index at which the element currently resides.

Gets the transformation of the element.

Returns:

Transformation

  • The current transformation on the element.

Sets the transformation of the element.

Parameters:transformTransformation

The transformation to apply to the element.

Gets the visibility of the element.

Returns:

boolean

true if the element is visible. Otherwise, returns false.

Sets the visibility of the element.

Parameters:visibleboolean

A flag which indicates if the element will be visible.

Properties

The children of this group.

The configuration of this element.