Class SvgMouseMoveEL extends BaseSvgEL

Mousemove event listener for svg profile

Source : file dialogs/profileDialog/SvgMouseMoveEL.js at line 38

Constructor

new SvgMouseMoveEL ( )

The constructor

Source : file dialogs/profileDialog/SvgMouseMoveEL.js at line 112

Public methods

handleEvent ( mouseEvent )

Event listener method

Source : file dialogs/profileDialog/SvgMouseMoveEL.js at line 121

Parameters

Name Type Description
mouseEvent Event

The event to handle

Private properties

#ascentText : SVGElement

The svg text with the ascent of the route at the mouse position

Source : file dialogs/profileDialog/SvgMouseMoveEL.js at line 66

#distanceText : SVGElement

The svg text with the distance since the beginning of the route at the mouse position

Source : file dialogs/profileDialog/SvgMouseMoveEL.js at line 52

#elevText : SVGElement

The svg text with the elevation at the mouse position

Source : file dialogs/profileDialog/SvgMouseMoveEL.js at line 59

#marker : SVGElement

The vertical svg polyline at the mouse position

Source : file dialogs/profileDialog/SvgMouseMoveEL.js at line 45

#markerX : Number

The horizontal position of the marker on the svg

Source : file dialogs/profileDialog/SvgMouseMoveEL.js at line 80

#profileSvg : SVGElement

The svgElement with the profile

Source : file dialogs/profileDialog/SvgMouseMoveEL.js at line 87

#textAnchor : String

A string indicating where is the text anchor. Must be 'end' or 'start'

Source : file dialogs/profileDialog/SvgMouseMoveEL.js at line 73

Private methods

#createSvgText ( text, markerY )

A method to create a svg:text.

Source : file dialogs/profileDialog/SvgMouseMoveEL.js at line 96

Parameters

Name Type Description
text String

The text to add in the svg:text

markerY Number

The vertical position of the text on the svg

Returns

The svg:text element
Type : SVGElement