3.0.0-alpha.1
Type: string
Type: string
Type: string
Type: string
Type: string
Type: string
(any)
boolean
(any)
boolean
(any)
any
(any)
any
(any)
any
(any)
any
((Value | undefined | null))
any
(any)
(string)
never
(boolean | any)
Converts entire DataView to a string as utf-8.
(DataView)
bytes to convert
string
:
the string
Log a message to the console. Put here to limit lint console errors for the times we really do want to use console.log. Will also append a p tag to a div#debug if it exists.
(string)
the message to log
void
typescript-y check if Error.
(any)
any
typescript-y convert errors.
(any)
Error
Log a warning message to the console. Put here to limit lint console errors for the times we really do want to use console.log. Will also append a p tag to a div#debug if it exists.
(string)
the message to log
void
String representation of input. This is kind of dumb but makes flow happier.
(any)
any kind of thing that can be turned into a string
string
:
a string
(string)
DateTime
Create a luxon Interval from a start and end.
((string | DateTime))
start of the interval as iso string or DateTime
((string | DateTime))
end of the interval as string or DateTime
Interval
:
the interval
Create a luxon Interval from a start and a duration.
((string | DateTime))
start of the interval as iso string or DateTime
Interval
:
the interval
Create a luxon Interval from a duration and a end.
((string | DateTime))
end of the interval as string or DateTime
Interval
:
the interval
Calculates offset of remote server versus local time. It is assumed that the argument was acquired as close in time to calling this as possible.
(DateTime)
now as reported by remote server
number
:
offset in seconds to now on local machine
Type: DateTime
converts the input value is a DateTime, throws Error if not a string, Date or DateTime. Zero length string or "now" return current time.
DateTime
:
DateTime created from argument
Converts name and value into a html query parameter, with appending ampersand.
(string)
parameter name
(any)
parameter value
string
:
formated query parameter
Converts name and value into a parameter line, with appending newline, for including in POST body.
(string)
parameter name
(any)
parameter value
string
:
formated query parameter
converts to ISO8601 but removes the trailing Z as FDSN web services do not allow that.
(DateTime)
DateTime to convert to string
string
:
ISO8601 without timezone Z
string
:
the protocol, http or https for the document if possible.
Create default fetch init object with the given mimeType. Sets no-cache, follow redirects, cors mode, referrer as seisplotjs and mimetype as a header.
(string?)
requested mime type
Record<string, any>
:
object with fetch configuration parameters
Does a fetch, but times out if it takes too long.
(Record<string, any>?)
fetch configuration, initialization
(number?)
maximum time to wait in seconds
Promise<Response>
:
promise to the result
Allows downloading of in memory data, as ArrayBuffer, to file as if the user clicked a download link.
(ArrayBuffer)
ArrayBuffer to download
(string)
default filename
(any
= 'application/octet-stream'
)
='application/octet-stream' mimeType
Recursively calculates the mean of a slice of an array. This helps with very long seismograms to equally weight each sample point without overflowing.
((Int32Array | Float32Array | Float64Array))
slice of a seismogram
(number)
number of points in the original seismogram
number
:
sum of slice data points divided by totalPts
Type: string
(string)
SVGElement