SPECTRA_ELEMENT

src/spectraplot.ts
SPECTRA_ELEMENT

Type: string

Similar to FFTResult, but used for plotting non-fft generated data. This allows the frequencies to be, for example, evenly distrubuted in log instead of linearly for plotting PolesZeros stages.

new FreqAmp(freq: Float32Array, values: Array<InstanceType<any>>)
Parameters
freq (Float32Array)
values (Array<InstanceType<any>>)
Instance Members
values
inputUnits
seismogramDisplayData
frequencies()
amplitudes()
numFrequencies
minFrequency
maxFrequency
fundamentalFrequency

spectra_plot_css

src/spectraplot.ts

Defualt CSS for styling fft plots.

spectra_plot_css
AMPLITUDE

Type: string

PHASE

Type: string

LOGFREQ

Type: string

KIND

Type: string

A amplitude or phase plot of fft data. The 'kind' attribute controls whether 'amplitude' or 'phase' is plotted and the 'logfreq' attribute controls whether frequency, x axis, is linear or log. Setting the seismogramConfig changes the plot configuration, althought not all values are used. The data as an array of FFTResult or FreqAmp sets the data to be plotted. Amplitude is plotted with y axis log, phase is y axis linear.

new SpectraPlot(fftResults: Array<(FFTResult | FreqAmp)>?, seismographConfig: SeismographConfig?)

Extends HTMLElement

Parameters
fftResults (Array<(FFTResult | FreqAmp)>?)
seismographConfig (SeismographConfig?)
Static Members
observedAttributes
Instance Members
_seismographConfig
_fftResults
fftResults
fftResults
seismographConfig
seismographConfig
kind
kind
logfreq
logfreq
connectedCallback()
attributeChangedCallback(name, oldValue, newValue)