createParticleMotionBySelector

src/particlemotion.js

Creates particle motion plots, for each selected element. This assumes each element has some combination of start, end, duration, net, sta, loc, and chan attributes sufficient to form the data query to return all components of motion. Or an href to a miniseed file.

createParticleMotionBySelector(selector: string): void
Parameters
selector (string) css selector
Returns
void

addDivForParticleMotion

src/particlemotion.js
addDivForParticleMotion(svgParent: any, xSeisData: SeismogramDisplayData, ySeisData: SeismogramDisplayData, timeWindow: StartEndDuration?): ParticleMotion
Parameters
svgParent (any)
xSeisData (SeismogramDisplayData)
ySeisData (SeismogramDisplayData)
timeWindow (StartEndDuration?)
Returns
ParticleMotion

addParticleMotion

src/particlemotion.js
addParticleMotion(svgParent: any, xSeisData: SeismogramDisplayData, ySeisData: SeismogramDisplayData, timeWindow: StartEndDuration?): ParticleMotion
Parameters
svgParent (any)
xSeisData (SeismogramDisplayData)
ySeisData (SeismogramDisplayData)
timeWindow (StartEndDuration?)
Returns
ParticleMotion

Particle motion plot.

new ParticleMotion(inSvgParent: any, seismographConfig: SeismographConfig, xSeisData: (SeismogramDisplayData | Seismogram), ySeisData: (SeismogramDisplayData | Seismogram))
Parameters
inSvgParent (any) parent element, often a div
seismographConfig (SeismographConfig) config, not all parameters are used in particle motion plots. Can be null for defaults.
xSeisData ((SeismogramDisplayData | Seismogram)) x axis seismogram
ySeisData ((SeismogramDisplayData | Seismogram)) y axis seismogram
Static Members
_lastID
Instance Members
plotId
xSeisData
ySeisData
seismographConfig
timeWindow
height
outerWidth
outerHeight
xScale
xScaleRmean
xAxis
yScale
yScaleRmean
yAxis
svg
svgParent
checkResize()
drawParticleMotion()
drawParticleMotionForSegment(lineG, segA, segB)
drawAxis()
drawAxisLabels()
rescaleAxis()
calcScaleDomain()
calcTimeWindow()
calcWidthHeight(nOuterWidth, nOuterHeight)
drawTitle()
drawXLabel()
drawYLabel()
drawXSublabel()
drawYSublabel()

particleMotion_css

src/particlemotion.js
particleMotion_css