HandlebarsInput

src/axisutil.ts
HandlebarsInput

LuxonTimeScale

src/axisutil.ts
new LuxonTimeScale(interval: Interval, range: [number, number])
Parameters
interval (Interval)
range ([number, number])
Instance Members
interval
range
for(d)
invert(v)
domain()
d3scale
millisPerPixel()
drawXLabel(svgEl: SVGElement, seismographConfig: SeismographConfig, height: number, width: number, handlebarsInput: HandlebarsInput)
Parameters
svgEl (SVGElement)
seismographConfig (SeismographConfig)
height (number)
width (number)
handlebarsInput (HandlebarsInput = {})

drawXSublabel

src/axisutil.ts
drawXSublabel(svgEl: SVGElement, seismographConfig: SeismographConfig, height: number, width: number, handlebarsInput: HandlebarsInput)
Parameters
svgEl (SVGElement)
seismographConfig (SeismographConfig)
height (number)
width (number)
handlebarsInput (HandlebarsInput = {})
drawYLabel(svgEl: SVGElement, seismographConfig: SeismographConfig, height: number, width: number, handlebarsInput: HandlebarsInput)
Parameters
svgEl (SVGElement)
seismographConfig (SeismographConfig)
height (number)
width (number)
handlebarsInput (HandlebarsInput = {})

drawYSublabel

src/axisutil.ts

Draws Y axis sublabel, possibly reflecting units of seismograph.

drawYSublabel(svgEl: SVGElement, seismographConfig: SeismographConfig, height: number, width: number, handlebarsInput: HandlebarsInput, unitsLabel: string)
Parameters
svgEl (SVGElement) svg to draw to
seismographConfig (SeismographConfig) config options
height (number) height of svg
width (number) width of svg
handlebarsInput (HandlebarsInput = {}) optional key-values for handlebars
unitsLabel (string = "") option label representing units if config.ySublabelIsUnit
drawTitle(svgEl: SVGElement, seismographConfig: SeismographConfig, height: number, width: number, handlebarsInput: HandlebarsInput)
Parameters
svgEl (SVGElement)
seismographConfig (SeismographConfig)
height (number)
width (number)
handlebarsInput (HandlebarsInput = {})

drawAxisLabels

src/axisutil.ts

Draws axis labels and title, possibly reflecting units of seismograph.

drawAxisLabels(svgEl: SVGElement, seismographConfig: SeismographConfig, height: number, width: number, handlebarsInput: HandlebarsInput, unitsLabel: string)
Parameters
svgEl (SVGElement) svg to draw to
seismographConfig (SeismographConfig) config options
height (number) height of svg
width (number) width of svg
handlebarsInput (HandlebarsInput = {}) optional key-values for handlebars
unitsLabel (string = "") option label representing units if config.ySublabelIsUnit