MarginType

Type: {top: number, right: number, bottom: number, left: number, toString: function (): string?}

Properties
top (number)
right (number)
bottom (number)
left (number)
toString (function (): string?)

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

DEFAULT_TITLE

Type: string

SeismographConfig

src/seismographconfig.ts

Configuration object for Seismograph display.

new SeismographConfig()
Static Members
_lastID
fromJSON(json)
Instance Members
configId
drawingType
timeFormat
relativeTimeFormat
amplitudeFormat
showTitle
isXAxis
isXAxisTop
_xLabel
xLabelOrientation
_xSublabel
xSublabelIsUnits
isYAxis
isYAxisRight
isYAxisNice
_yLabel
_yLabelRight
yLabelOrientation
_ySublabel
ySublabelTrans
ySublabelIsUnits
doMarkers
markerTextOffset
markerTextAngle
markerFlagpoleBase
minHeight
maxHeight
minWidth
maxWidth
segmentDrawCompressedCutoff
maxZoomPixelPerSample
connectSegments
lineColors
lineWidth
wheelZoom
centeredAmp
windowAmp
isRelativeTime
asJSON()
fixedAmplitudeScale
fixedAmplitudeScale
linkedAmplitudeScale
linkedAmplitudeScale
fixedTimeScale
fixedTimeScale
linkedTimeScale
linkedTimeScale
title
title
handlebarsTitle(context, runtimeOptions)
xLabel
xLabel
xSublabel
xSublabel
handlebarsXLabel(context, runtimeOptions)
handlebarsXSublabel(context, runtimeOptions)
yLabel
yLabel
ySublabel
ySublabel
handlebarsYLabel(context, runtimeOptions)
handlebarsYSublabel(context, runtimeOptions)
yLabelRight
yLabelRight
handlebarsYLabelRight(context, runtimeOptions)
createAlignmentData(timeRange, min, max)
getColorForIndex(i)
createCSSForLineColors(svgClass?)
toString()

numberFormatWrapper

src/seismographconfig.ts
numberFormatWrapper(formater: function (arg0: number): string): function (domainValue: AxisDomain): string
Parameters
formater (function (arg0: number): string)
Returns
function (domainValue: AxisDomain): string
formatCount

Type: function (arg0: number): string

formatExp

Type: function (arg0: number): string

formatCountOrAmp
Parameters
v (number)
Returns
string

formatMillisecond

src/seismographconfig.ts
formatMillisecond

Type: function (arg0: Date): string

formatSecond

Type: function (arg0: Date): string

formatMinute

Type: function (arg0: Date): string

formatHour

Type: function (arg0: Date): string

formatDay

Type: function (arg0: Date): string

formatMonth

Type: function (arg0: Date): string

formatYear

Type: function (arg0: Date): string

multiFormatHour
Parameters
date (Date)
Returns
string