seisplotjs

3.1.1

BBoxType

BBoxType

Type: {height: number, width: number}

Properties
height (number)
width (number)

MarkerHolderType

MarkerHolderType

Type: {marker: MarkerType, sdd: SeismogramDisplayData, xscale: axisutil.LuxonTimeScale, bbox: BBoxType?}

Properties
marker (MarkerType)
sdd (SeismogramDisplayData)
xscale (axisutil.LuxonTimeScale)
bbox (BBoxType?)

SEISMOGRAPH_ELEMENT

SEISMOGRAPH_ELEMENT

Type: string

seismograph_css

seismograph_css

COLOR_CSS_ID

COLOR_CSS_ID

Type: string

Seismograph

new Seismograph(seisData: (SeismogramDisplayData | Array<SeismogramDisplayData>)?, seisConfig: SeismographConfig?)

Extends SeisPlotElement

Parameters
seisData ((SeismogramDisplayData | Array<SeismogramDisplayData>)?)
seisConfig (SeismographConfig?)
Instance Members
plotId
beforeFirstDraw
width
height
outerWidth
outerHeight
svg
canvasHolder
canvas
g
throttleRescale
throttleRedraw
time_scalable
amp_scalable
_resizeObserver
minmax_sample_pixels
seisData
seisData
seismographConfig
seismographConfig
connectedCallback()
disconnectedCallback()
attributeChangedCallback(name, oldValue, newValue)
checkResize()
enableZoom()
draw()
printSizes()
calcDetailForEvent(evt, type?)
isVisible()
drawSeismograms()
calcScaleAndZoom()
ampScaleForSeisDisplayData(sdd)
displayTimeRangeForSeisDisplayData(sdd)
timeScaleForSeisDisplayData(sdd?)
drawAxis()
ampScaleForAxis()
timeScaleForAxis()
drawTopBottomAxis()
drawLeftRightAxis()
createLeftRightAxis()
rescaleYAxis()
createHandlebarsInput()
drawAxisLabels()
resetZoom()
zoomed(e)
redrawWithXScale()
drawMarkers()
calcWidthHeight(nOuterWidth, nOuterHeight)
drawTitle()
drawXLabel()
drawXSublabel()
drawYLabel()
drawYSublabel()
calcTimeScaleDomain()
calcAmpScaleDomain()
recheckAmpScaleDomain()
redoDisplayYScale()
getSeismogramData()
appendSeisData(seismogram)
seisDataUpdated()
getDisplayDataForSeismogram(seis)
removeSeisData(seisData)
trim(timeRange)

SeismographAmplitudeScalable

new SeismographAmplitudeScalable(graph: Seismograph)

Extends AmplitudeScalable

Parameters
graph (Seismograph)
Instance Members
graph
drawHalfWidth
drawMiddle
notifyAmplitudeChange(middle, halfWidth)

ZERO_DURATION

ZERO_DURATION

SeismographTimeScalable

new SeismographTimeScalable(graph: Seismograph, alignmentTimeOffset: Duration, duration: Duration)

Extends TimeScalable

Parameters
graph (Seismograph)
alignmentTimeOffset (Duration)
duration (Duration)
Instance Members
graph
drawAlignmentTimeOffset
drawDuration
notifyTimeRangeChange(offset, duration)

createMarkersForTravelTimes

Creates Markers for all of the arrivals in ttime.arrivals, relative to the given Quake.

createMarkersForTravelTimes(quake: Quake, ttime: TraveltimeJsonType): Array<MarkerType>
Parameters
quake (Quake) quake the travel times are relative to
ttime (TraveltimeJsonType) travel times json object as returned from the IRIS traveltime web service, or the json output of TauP
Returns
Array<MarkerType>: array of Markers suitable for adding to a seismograph

createMarkerForOriginTime

Creates a Marker for the origin time in ttime.arrivals, for the given Quake.

createMarkerForOriginTime(quake: Quake): MarkerType
Parameters
quake (Quake) quake the travel times are relative to
Returns
MarkerType: Marker suitable for adding to a seismograph

createFullMarkersForQuakeAtStation

createFullMarkersForQuakeAtStation(quake: Quake, station: Station): Array<MarkerType>
Parameters
quake (Quake)
station (Station)
Returns
Array<MarkerType>

createFullMarkersForQuakeAtChannel

createFullMarkersForQuakeAtChannel(quake: Quake, channel: Channel): Array<MarkerType>
Parameters
quake (Quake)
channel (Channel)
Returns
Array<MarkerType>

createMarkerForQuakePicks

Creates a Marker for the picked arrival times in quake.pickList, for the given Quake.

createMarkerForQuakePicks(quake: Quake, channel: Channel): Array<MarkerType>
Parameters
quake (Quake) quake the travel times are relative to
channel (Channel) channel picks made on
Returns
Array<MarkerType>: Marker suitable for adding to a seismograph

createMarkerForPicks

Creates a Marker for the picked arrival times in quake.arrivals, for the given Quake.

createMarkerForPicks(origin: Origin, channel: Channel): Array<MarkerType>
Parameters
origin (Origin) quake the travel times are relative to
channel (Channel) channel picks made on
Returns
Array<MarkerType>: Marker suitable for adding to a seismograph

createNumberFormatWrapper

Creates a wrapper for d3 formatter for numbers for axis that keeps typescript happy.

createNumberFormatWrapper(formatter: function (value: number): string): function (nValue: d3NumberValue): string
Parameters
formatter (function (value: number): string) simple formatter
Returns
function (nValue: d3NumberValue): string: function that converts input types

createDateFormatWrapper

Creates a wrapper for d3 formatter for Dates for axis that keeps typescript happy.

createDateFormatWrapper(formatter: function (value: Date): string): function (nValue: (Date | d3NumberValue), index: number): string
Parameters
formatter (function (value: Date): string) simple formatter
Returns
function (nValue: (Date | d3NumberValue), index: number): string: function that converts input types

SeisMouseEventType

SeisMouseEventType

Type: {mouseevent: MouseEvent, time: (DateTime | null), relative_time: (Duration | null), amplitude: number, seismograph: Seismograph}

Properties
mouseevent (MouseEvent)
time ((DateTime | null))
relative_time ((Duration | null))
amplitude (number)
seismograph (Seismograph)