Skip to content

@eightkk/vue-weave / core / timeTicks

Function: timeTicks() ​

timeTicks(window, step, anchor?): number[]

Defined in: src/core/timeline.ts:229

Ticks at anchor + k × step inside the closed window. With a fractional step, tick values are computed in exact decimal arithmetic when the step and anchor have at most 15 decimal places, so ticks of 0.1 are 0.1, 0.2, 0.3 and not 0.30000000000000004. Integer steps use plain arithmetic.

Parameters ​

window ​

TimeRange

step ​

number

anchor? ​

number = 0

Returns ​

number[]

Released under the MIT License.