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

Segment

Class

Defines a path segment with an anchor point and optional curve control points. Segments are created implicitly by the Path lineTo and curveTo commands.

Definition

Package:@progress/kendo-drawing

Methods

Adds an observer to be notified for changes.

Parameters:observerGeometryObserver

The observer to add.

Returns:

Segment

  • The current Arc instance.

Gets the segment anchor point.

Returns:

Point

  • The current anchor point.

Sets the segment anchor point.

Parameters:valuePoint | number[]

The new anchor point.

Gets the first curve control point of this segment.

Returns:

Point

  • The current control point.

Sets the second curve control point of this segment.

Parameters:valuePoint | number[]

The new control point.

Gets the second curve control point of this segment.

Returns:

Point

  • The new control point.

Sets the second curve control point of this segment.

Parameters:valuePoint | number[]

The new control point.

Returns the list of observers.

Returns:

GeometryObserver[]

  • The current observers.

Stops notifying the specified observer for changes.

Parameters:observerGeometryObserver

The observer to remove.

Returns:

Segment

  • The current Arc instance.

Resumes the notification to all observers for changes.

Returns:

Segment

  • The current Arc instance.

Suspends the change notifications to all observers.

Returns:

Segment

  • The current Arc instance.