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

A visual element that renders text content. Extends VisualBase and provides functionality for creating and managing text graphics with font styling.

Definition

Package:@progress/kendo-angular-diagrams

Methods

Gets or sets the text content of the text block.

Parameters:textany

The text content to set, or undefined to get current content

Gets the drawing container for this element.

Returns:

any

The drawing element container

Sets the fill color and opacity of the visual element.

Parameters:colorany

The fill color

opacity?any

The fill opacity (optional)

Gets or sets the position of the element.

Parameters:xany

The x coordinate or Point object, or undefined to get current position

y?any

The y coordinate when x is a number

Returns:

Point

The current position as a Point when called as getter

Redraws the text block with updated options.

Parameters:optionsany

New options to apply to the text block

Gets or sets the rotation of the element.

Parameters:angleany

The rotation angle in radians, or undefined to get current rotation

centerany

The center point for rotation

Returns:

Rotation

The current rotation when called as getter

Sets the stroke color, width, and opacity of the visual element.

Parameters:colorany

The stroke color

widthany

The stroke width

opacityany

The stroke opacity

Gets or sets the visibility of the element.

Parameters:valueany

The visibility value to set, or undefined to get current visibility

Returns:

any

The current visibility state when called as getter

Properties

alignable

boolean

Whether the text block can be aligned within its container.

The underlying drawing element for the text.

id

string

The unique identifier of the element.

Configuration options for the element.

Array of text elements for multi-line text support.