3.2.0Type: string
Extends HTMLElement
((SeismogramDisplayData | Array<SeismogramDisplayData>)?)
(SeismographConfig?)
Type: SeismographConfig
Type: function (el: SeisPlotElement): void
Type: (ReturnType<any> | null)
Type: SeismographConfig
(SeismographConfig)
The sorting type to optionally sort the data by. New sort types may be added by supplying a key and function that takes an SeismogramDisplayData and returns a number, string or date. Sort of data is done using the calculated value for each waveform. This is stored as an attribute on the element, so changing the attribute has the same effect. Default is SORT_NONE = "none".
Type: string
string:
sorting key
Sorts seisData by the this.sortby sorting type.
any:
this.seisData sorted
HTMLStyleElement
Notification to the element that something about the current seismogram data has changed. This could be that the actual waveform data has been updated or that auxillary data like quake or channel has been added or that the configuration has changed. This should trigger a redraw.
Redraw the element. This implements a throttle so that many redraws are coelsced into a single actual draw if they occur before the next animation frame.
Draw the element, overridden by subclasses. Generally outside callers should prefer calling redraw() as it handles throttling and calls the onRedraw callback.
(any
= true)
ShadowRoot
HTMLStyleElement