Skip to content

rulerTicks beta ​

Function of @v12-engine/client

ts
export declare function rulerTicks(from: number, to: number, pixelsPerSecond: number, options?: {
    fps?: number;
    minor?: number;
    major?: number;
}): RulerTick[];

The ticks of the ruler between two times at a zoom: small ones at least minor pixels apart (a frame apart at the closest, minutes at the furthest), big ones with their time at least major pixels apart, on a multiple of the small