DEFAULT_MAX_SAMPLE_PER_PIXEL

src/seismographutil.ts
DEFAULT_MAX_SAMPLE_PER_PIXEL

Type: number

DEFAULT_GRID_LINE_COLOR

src/seismographutil.ts
DEFAULT_GRID_LINE_COLOR

Type: string

clearCanvas(canvas: HTMLCanvasElement)
Parameters

drawXScaleGridLines

src/seismographutil.ts
drawXScaleGridLines(canvas: HTMLCanvasElement, xScale: (ScaleLinear<number, number, never> | LuxonTimeScale), colorname: string, lineWidth: any): void
Parameters
xScale ((ScaleLinear<number, number, never> | LuxonTimeScale))
colorname (string = DEFAULT_GRID_LINE_COLOR)
lineWidth (any = 1)
Returns
void

drawYScaleGridLines

src/seismographutil.ts
drawYScaleGridLines(canvas: HTMLCanvasElement, yScale: ScaleLinear<number, number, never>, colorname: string, lineWidth: any): void
Parameters
yScale (ScaleLinear<number, number, never>)
colorname (string = DEFAULT_GRID_LINE_COLOR)
lineWidth (any = 1)
Returns
void

drawAllOnCanvas

src/seismographutil.ts
drawAllOnCanvas(canvas: HTMLCanvasElement, sddList: Array<SeismogramDisplayData>, xScaleList: Array<LuxonTimeScale>, yScaleList: Array<ScaleLinear<number, number, never>>, colornameList: Array<string>, lineWidth: any, connectSegments: any, maxSamplePerPixelForLineDraw: any): void
Parameters
sddList (Array<SeismogramDisplayData>)
xScaleList (Array<LuxonTimeScale>)
yScaleList (Array<ScaleLinear<number, number, never>>)
colornameList (Array<string>)
lineWidth (any = 1)
connectSegments (any = false)
maxSamplePerPixelForLineDraw (any = DEFAULT_MAX_SAMPLE_PER_PIXEL)
Returns
void

drawSeismogramAsLine

src/seismographutil.ts
drawSeismogramAsLine(sdd: SeismogramDisplayData, context: CanvasRenderingContext2D, width: number, xScale: LuxonTimeScale, yScale: ScaleLinear<number, number, never>, color: string, lineWidth: number, connectSegments: any, maxSamplePerPixelForLineDraw: any): void
Parameters
sdd (SeismogramDisplayData)
width (number)
xScale (LuxonTimeScale)
yScale (ScaleLinear<number, number, never>)
color (string)
lineWidth (number = 1)
connectSegments (any = false)
maxSamplePerPixelForLineDraw (any = DEFAULT_MAX_SAMPLE_PER_PIXEL)
Returns
void
XYLine

Type: {x: Array<number>, y: Array<number>, samplesPerPixel: number, maxSamplePerPixelForLineDraw: number}

Properties
x (Array<number>)
y (Array<number>)
samplesPerPixel (number)
maxSamplePerPixelForLineDraw (number)

seismogramSegmentAsLine

src/seismographutil.ts
seismogramSegmentAsLine(segment: (SeismogramSegment | null), width: number, xScale: LuxonTimeScale, yScale: ScaleLinear<number, number, never>, maxSamplePerPixelForLineDraw: any): XYLine
Parameters
segment ((SeismogramSegment | null))
width (number)
xScale (LuxonTimeScale)
yScale (ScaleLinear<number, number, never>)
maxSamplePerPixelForLineDraw (any = DEFAULT_MAX_SAMPLE_PER_PIXEL)
Returns
XYLine
pushPoint(out: XYLine, xpixel: number, ypixel: number): void
Parameters
out (XYLine)
xpixel (number)
ypixel (number)
Returns
void

rgbaForColorName

src/seismographutil.ts
rgbaForColorName(name: string): Uint8ClampedArray
Parameters
name (string)
Returns
Uint8ClampedArray