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
Configuration object for Seismograph display.
new SeismographConfig()
Static Members
Instance Members
xLabelOrientation
Type:
string
yLabelOrientation
Type:
string
markerFlagpoleBase
Type:
string
maxHeight
Type:
(null | number)
maxWidth
Type:
(null | number)
▸
segmentDrawCompressedCutoff
segmentDrawCompressedCutoff
Type:
number
maxZoomPixelPerSample
Type:
number
asJSON(): any
Returns
any
fixedAmplitudeScale
Type:
(null | Array<number>)
Parameters
linkedAmplitudeScale
Type:
(null | LinkedAmplitudeScale)
Returns
(null | LinkedAmplitudeScale)
linkedAmplitudeScale
Type:
(null | LinkedAmplitudeScale)
Parameters
ts ((null | LinkedAmplitudeScale))
fixedTimeScale
Type:
(null | Interval)
Returns
(null | Interval)
fixedTimeScale
Type:
(null | Interval)
Parameters
linkedTimeScale
Type:
(null | LinkedTimeScale)
Returns
(null | LinkedTimeScale)
linkedTimeScale
Type:
(null | LinkedTimeScale)
Parameters
ts ((null | LinkedTimeScale))
Sets the title as simple string or array of strings or a
handlebars template. If an array
then each item will be in a separate tspan for easier formatting.
title
Type:
(null | string | Array<string>)
Parameters
▸
handlebarsTitle(context, runtimeOptions)
handlebarsTitle(context: {}, runtimeOptions: {}):
string
Parameters
Returns
string
gets the current x label
xLabel
Type:
string
Returns
string
:
x label
Sets the xLabel as simple string or a
handlebars template.
xLabel
Type:
(null | string)
Parameters
value ((null | string))
string to be the x label
gets the current x sublabel
xSublabel
Type:
string
Returns
string
:
x sublabel
Sets the xSublabel as simple string or a
handlebars template.
xSublabel
Type:
(null | string)
Parameters
value ((null | string))
string to be the x sublabel
▸
handlebarsXLabel(context, runtimeOptions)
handlebarsXLabel(context: {}, runtimeOptions: {}):
string
Parameters
Returns
string
▸
handlebarsXSublabel(context, runtimeOptions)
handlebarsXSublabel(context: {}, runtimeOptions: {}):
string
Parameters
Returns
string
gets the current y label
yLabel
Type:
string
Returns
string
:
yLabel
Sets the ylabel as simple string or a
handlebars template.
yLabel
Type:
(null | string)
Parameters
value ((null | string))
string to be the y label
gets the current y sublabel
ySublabel
Type:
string
Returns
string
:
ySublabel
Sets the y sublabel as simple string or a
handlebars template.
ySublabel
Type:
(null | string)
Parameters
value ((null | string))
string to be the y sublabel
▸
handlebarsYLabel(context, runtimeOptions)
handlebarsYLabel(context: {}, runtimeOptions: {}):
string
Parameters
Returns
string
▸
handlebarsYSublabel(context, runtimeOptions)
handlebarsYSublabel(context: {}, runtimeOptions: {}):
string
Parameters
Returns
string
gets the current title
yLabelRight
Type:
string
Returns
string
:
yLabel
Sets the ylabel as simple string or a
handlebars template.
yLabelRight
Type:
(null | string)
Parameters
value ((null | string))
string to be the y label
▸
handlebarsYLabelRight(context, runtimeOptions)
handlebarsYLabelRight(context: {}, runtimeOptions: {}):
string
Parameters
Returns
string
▸
createAlignmentData(timeRange, min, max)
Fake data to use to test alignment of seismograph axis and between canvas
and svg drawing.
createAlignmentData(timeRange: Interval, min: any, max: any): SeismogramDisplayData
Parameters
timeRange (Interval)
start and end of fake data
min (any
= -100
)
min amplitude for fake data, default is -100
max (any
= 100
)
max amplitude for fake data, default is 100
Returns
SeismogramDisplayData
:
fake data
▸
createCSSForLineColors(svgClass?)
numberFormatWrapper(formater: function (arg0:
number):
string): function (domainValue: AxisDomain):
string
Parameters
Returns
function (domainValue: AxisDomain): string
formatCountOrAmp
Parameters
Returns
string
formatMillisecond
Type:
function (arg0: Date): string
multiFormatHour
Parameters
Returns
string