ScaleChangeListenerType

src/seismograph.js
ScaleChangeListenerType

Type: {destinationKey: any, notifyScaleChange: function (value: any): void}

Properties
destinationKey (any)
notifyScaleChange (function (value: any): void)
new Seismograph(inSvgParent: any, seismographConfig: SeismographConfig, seisData: (Array<SeismogramDisplayData> | Array<Seismogram> | SeismogramDisplayData | Seismogram))
Parameters
inSvgParent (any)
seismographConfig (SeismographConfig)
seisData ((Array<SeismogramDisplayData> | Array<Seismogram> | SeismogramDisplayData | Seismogram))
Static Members
fromSeismograms(inSvgParent, seismographConfig, seismogramList)
Instance Members
plotId
beforeFirstDraw
svgParent
seismographConfig
seisDataList
alignmentSeisData
width
height
outerWidth
outerHeight
svg
canvasHolder
canvas
origXScale
currZoomXScale
yScale
yScaleRmean
yScaleData
linkedAmpScale
lineFunc
zoom
xAxis
xAxisTop
yAxis
yAxisRight
throttleRescale
throttleResize
xScaleChangeListeners
checkResize()
draw()
printSizes()
drawSeismograms()
isVisible()
drawSeismogramsCanvas()
drawCanvasAlignment()
calcScaleAndZoom()
drawSeismogramsSvg()
calcSecondsPerPixel(xScale)
segmentDrawLine(seg, xScale)
drawAxis(svgG)
rescaleYAxis()
drawAxisLabels()
cloneXScale(scale)
resetZoom()
zoomed(mythis)
redrawWithXScale(xt)
drawMarkers()
calcWidthHeight(nOuterWidth, nOuterHeight)
throttle(func, delay)
resizeNeeded()
setMargin(value)
drawTitle()
drawXLabel()
drawYLabel()
drawXSublabel()
drawYSublabel()
calcTimeScaleDomain()
calcAmpScaleDomain()
redoDisplayYScale()
getSeismogramData()
append(seismogram)
getDisplayDataForSeismogram(seis)
remove(seisData)
trim(timeWindow)
linkXScaleTo(seismograph)
unlinkXScaleTo(seismograph)

LinkedAmpScale

src/seismograph.js

Links amplitude scales across multiple seismographs, respecting doRmean.

new LinkedAmpScale(graphList: Array<Seismograph>?)
Parameters
graphList (Array<Seismograph>?) optional list of Seismographs to link
Instance Members
recalculate()

createMarkersForTravelTimes

src/seismograph.js

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

createMarkersForTravelTimes(quake: Quake, ttime: any): Array<MarkerType>
Parameters
quake (Quake) quake the travel times are relative to
ttime (any) 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

seismograph_css

src/seismograph.js
seismograph_css