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

Circle

Class

A circle with a set center and radius.

Definition

Package:@progress/kendo-drawing

Methods

Adds an observer to be notified for changes.

Parameters:observerGeometryObserver

The observer to add.

Returns:

Circle

  • The current Arc instance.

Returns the bounding box of this circle after applying the specified transformation matrix.

Parameters:matrix?Matrix

The transformation matrix to apply.

Returns:

Rect

  • The bounding box after applying the transformation matrix.

Creates a new instance with the same center and radius.

Returns:

Circle

  • A new Circle instance with the same center and radius.

Compares this circle with another instance.

Parameters:otherCircle

The circle to compare with.

Returns:

boolean

true if the point coordinates match. Otherwise, returns false.

Gets the center location of the circle.

Returns:

Point

  • The location of the circle center.

Gets the radius of the circle.

Returns:

number

  • The radius of the circle.

Returns the list of observers.

Returns:

GeometryObserver[]

  • The current observers.

Gets the location of a point on the circumference of the circle at a given angle.

Parameters:anglenumber

The angle in decimal degrees. Measured in a clockwise direction with 0 (zero) pointing "right". Negative values or values greater than 360 are normalized.

Returns:

Point

  • The point on the circumference of the circle.

Stops notifying the specified observer for changes.

Parameters:observerGeometryObserver

The observer to remove.

Returns:

Circle

  • The current Arc instance.

Resumes the notification to all observers for changes.

Returns:

Circle

  • The current Arc instance.

Sets the location of the circle center.

Parameters:centerPoint | number[]

The new center Point or an equivalent [x, y] array.

Returns:

Point

  • The location of the circle center.

Sets the radius of the circle.

Parameters:radiusnumber

The new radius of the circle.

Returns:

Circle

  • The current Circle instance.

Suspends the change notifications to all observers.

Returns:

Circle

  • The current Arc instance.

Properties

The center point of the circle.

radius

number

The radius of the circle.