sliceArrays
このコンテンツはまだ日本語訳がありません。
sliceArrays(
arrays,currentTime,timeRange):Float64Array<ArrayBufferLike>[] |null
Defined in: utils/chartViewport.ts:9
Slice typed arrays to a visible time window. Uses binary search (O(log n)) + Float64Array.subarray (zero-copy).
Parameters
Section titled “Parameters”arrays
Section titled “arrays”Array of Float64Arrays where arrays[0] is the time column.
Float64Array<ArrayBufferLike>[] | null
currentTime
Section titled “currentTime”Right edge of the viewport. If undefined, use all data.
number | undefined
timeRange
Section titled “timeRange”Duration of the viewport window. If null, no left-edge clipping.
number | null
Returns
Section titled “Returns”Float64Array<ArrayBufferLike>[] | null