MarginType

Type: {top: number, right: number, bottom: number, left: number}

Properties
top (number)
right (number)
bottom (number)
left (number)

Constant for drawing seismogram using svg.

DRAW_SVG

Type: string

Constant for drawing seismogram using canvas, axies are still svg.

DRAW_CANVAS

Type: string

Constant for drawing seismogram using both canvas and svg, for testing.

DRAW_BOTH

Type: string

Constant for drawing seismogram using both canvas and svg plus alignment markers, for testing.

DRAW_BOTH_ALIGN

Type: string

SeismographConfig

src/seismographconfig.js

Configuration object for Seismograph display.

new SeismographConfig()
Instance Members
drawingType
xScaleFormat
yScaleFormat
isXAxis
isXAxisTop
xLabelOrientation
xSublabel
isYAxis
isYAxisRight
isYAxisNice
yLabelRight
yLabelOrientation
ySublabel
ySublabelTrans
ySublabelIsUnits
doMarkers
markerTextOffset
markerTextAngle
markerFlagpoleBase
minHeight
maxHeight
segmentDrawCompressedCutoff
maxZoomPixelPerSample
connectSegments
lineColors
lineWidth
wheelZoom
doRMean
windowAmp
fixedYScale
fixedTimeScale
title
title
createAlignmentData(timeWindow, min, max)
getColorForIndex(i)
toString()
formatCount
formatExp
formatCountOrAmp
Parameters
v (number)
Returns
string

formatMillisecond

src/seismographconfig.js
formatMillisecond
formatSecond
formatMinute
formatHour
formatDay
formatMonth
formatYear
multiFormatHour
Parameters
date (Date)
Returns
string