New to KendoReact? Start a free 30-day trial

Image

Class

Represents an Image element for displaying images in SVG. Extends the Element class to provide image-specific functionality.

Definition

Package:@progress/kendo-react-diagram

Properties

The underlying drawing element that handles the actual rendering.

id

string

The unique identifier of the element.

Configuration options for the element.

Methods

Gets the drawing container for this element.

Returns:

any

The drawing element container

Gets the position of the element.

Returns:

Point

The current element position.

Sets the position of the element from a point.

Parameters:pointPoint

The new element position.

Sets the position of the element from coordinates.

Parameters:xnumber

The horizontal coordinate.

ynumber

The vertical coordinate.

Redraws the image with updated options.

Parameters:optionsany

Updated configuration options

Gets the rotation of the element.

Returns:

Rotation

The current element rotation.

Sets the rotation of the element.

Parameters:anglenumber

The rotation angle in radians.

centerPoint

The center of rotation.

Returns:

Rotation

The applied element rotation.

Gets the visibility of the element.

Returns:

boolean

true when the element is visible; otherwise, false.

Sets the visibility of the element.

Parameters:valueboolean

Whether the element should be visible.