MobileProfile Class
Visualization of a singular snow profile optimized for mobile viewing.
Constructor
Item Index
Methods
arrange
()
private
Arrange the layers for best display
comments
()
private
Display the layer comments as footnotes
config
()
private
Configure basic properties of the MobileProfile such as font, height and width.
density
()
private
Draw the snow density curve
destroy
()
Deregister events
grid
()
private
Draw the top and bottom grid of the abscissa (user configured) including annotating texts.
markCriticalLayer
()
Mark critical layer
markSoil
()
Mark soil surface
path
-
grid
-
path
-
svg
Draw grid paths, either on the grid (light and dotted) or as solid lines.
remove
-
name
Remove a parameter from the barparams Config MobileProfile.defaults. This method is invoked by the settings modal when a user removes a parameter from the additional parameters section.
Parameters:
-
name
StringParamter name (e. g. ramm, density)
remove
-
name
Check if the object with identifier name exists in this.elements and try to remove it from the paper and then delete the object itself.
Parameters:
-
name
StringObject identifier
setProperties
-
properties
Overwrite current properties with the ones passed as parameter.
Parameters:
-
properties
Object
shiftup
()
private
Shift the stratigraphic layers upwards as much as possible
stability
()
private
Note snow stability tests in the graph
stratigraphy
()
private
Display the hardness profile (including wetness, grain size and grain shape)
temperature
()
private
Draw the snow temperature curve
zigzag
()
Mark that profile is not dug to ground