Members
xAxis: string|undefined
Text for the x axis. Will be completed by km
or ' m' (for kilometers or
meters).
yAxis: string|undefined
Text for the y axis. Will be completed by ' m' (for meters).
Text for the x axis. Will be completed by km
or ' m' (for kilometers or
meters).
Text for the y axis. Will be completed by ' m' (for meters).
Configuration object for one profile's line.
Name | Type |
---|---|
color |
string | undefined |
zExtractor |
function |
Color of the line (hex color string).
Extract the elevation of a point (an item of the elevation data array).
The POI data extractor is used to extract data from a POI. The POI is an item of the POI data array.
Name | Type |
---|---|
id |
function |
dist |
function |
z |
function |
sort |
function |
title |
function |
Extract the distance from origin of a POI.
Extract the id of a POI.
Extract the sequence number of a POI.
Extract the title of a POI.
Extract the elevation of a POI.
Format the xhover distance.
Format the xtick, for graduating the x axis.
Format the yhover elevation.
Format the ytick, for graduating the y axis.
Options for the profile.
Name | Type |
---|---|
styleDefs |
string | undefined |
poiLabelAngle |
number | undefined |
formatter |
ngeox.profile.ProfileFormatter | undefined |
distanceExtractor |
function |
linesConfiguration |
Object:.<string:, ngeox.profile.LineConfiguration:> |
poiExtractor |
ngeox.profile.PoiExtractor | undefined |
light |
boolean | undefined |
lightXAxis |
boolean | undefined |
scaleModifier |
function | undefined |
hoverCallback |
function | undefined |
outCallback |
function | undefined |
i18n |
ngeox.profile.I18n | undefined |
Extract the distance from origin of a point (an item of the elevation data array).
Formatter giving full control on how numbers are formatted.
A callback called from the profile when the mouse moves over a point. The point, an item of the elevation data array, is passed as the first argument of the function.
Show a simplified profile when true.
Show a simplified x axis with only both end ticks.
Configuration object for the profile's lines. The key string of each object is used as class for its respective svg line.
A callback called from the profile when the mouse leaves the profile.
Extractor for parsing POI data.
Inline CSS style definition to inject in the SVG.
Allows to modify the raw x and y scales. Notably, it is possible to modify the y domain according to XY ratio rules, add padding or enforce y lower bound.
Inline CSS style definition to inject in the SVG.