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

Line

Represents a line segment with marker capabilities. Extends VisualBase and incorporates MarkerPathMixin functionality.

NameTypeDefaultDescription

_capMap

{ end: string; start: string; }

_createMarker

undefined

_createMarkers

undefined

_getPath

undefined

_normalizeMarkerOptions

undefined

_positionMarker

undefined

_redrawMarker

undefined

_redrawMarkers

undefined

_removeMarker

undefined

container

Group

The drawing group container that holds the line and its markers.

drawingElement

any

The underlying drawing element that handles the actual rendering.

id

string

The unique identifier of the element.

options

any

Configuration options for the element.

Constructors

Line

(options: any)

Creates a new Line instance.

Parameters

options

any

Configuration options for the line including endpoints and styling

Methods

drawingContainer

Returns the drawing container for this line.

Returns

Group

The drawing container

fill

Sets the fill color and opacity of the visual element.

Parameters

color

any

The fill color

opacity?

any

The fill opacity (optional)

position

Gets or sets the position of the element.

Parameters

x

any

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

redraw

Redraws the line with updated options.

Parameters

options

any

Updated configuration options

rotate

Gets or sets the rotation of the element.

Parameters

angle

any

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

center

any

The center point for rotation

Returns

Rotation

The current rotation when called as getter

stroke

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

Parameters

color

any

The stroke color

width

any

The stroke width

opacity

any

The stroke opacity

visible

Gets or sets the visibility of the element.

Parameters

value

any

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

Returns

any

The current visibility state when called as getter

In this article
ConstructorsLineMethods
Not finding the help you need?
Contact Support