seisplotjs

3.1.4

createMarkersForTravelTimes

src/seismograph.ts
createMarkersForTravelTimes

createMarkerForOriginTime

src/seismograph.ts
createMarkerForOriginTime

createFullMarkersForQuakeAtStation

src/seismograph.ts
createFullMarkersForQuakeAtStation

createFullMarkersForQuakeAtChannel

src/seismograph.ts
createFullMarkersForQuakeAtChannel

createMarkerForQuakePicks

src/seismograph.ts
createMarkerForQuakePicks

createMarkerForPicks

src/seismograph.ts
createMarkerForPicks
BBoxType

Type: {height: number, width: number}

Properties
height (number)
width (number)

MarkerHolderType

src/seismograph.ts
MarkerHolderType

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

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

SEISMOGRAPH_ELEMENT

src/seismograph.ts
SEISMOGRAPH_ELEMENT

Type: string

seismograph_css

src/seismograph.ts
seismograph_css
COLOR_CSS_ID

Type: string

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()
createUnitsLabel()
getSeismogramData()
appendSeisData(seismogram)
seisDataUpdated()
getDisplayDataForSeismogram(seis)
removeSeisData(seisData)
trim(timeRange)

SeismographAmplitudeScalable

src/seismograph.ts
new SeismographAmplitudeScalable(graph: Seismograph)

Extends AmplitudeScalable

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

ZERO_DURATION

src/seismograph.ts
ZERO_DURATION

SeismographTimeScalable

src/seismograph.ts
new SeismographTimeScalable(graph: Seismograph, alignmentTimeOffset: Duration, duration: Duration)

Extends TimeScalable

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

createNumberFormatWrapper

src/seismograph.ts

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

src/seismograph.ts

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

src/seismograph.ts
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)