Searched refs:getGridStepSize (Results 1 – 2 of 2) sorted by relevance
/external/perfetto/ui/src/frontend/ |
D | gridline_helper_unittest.ts | 15 import {getGridStepSize} from './gridline_helper'; 18 expect(getGridStepSize(10, 14)).toEqual(1); 19 expect(getGridStepSize(30, 14)).toEqual(2); 20 expect(getGridStepSize(60, 14)).toEqual(5); 21 expect(getGridStepSize(100, 14)).toEqual(10); 23 expect(getGridStepSize(10, 21)).toEqual(0.5); 24 expect(getGridStepSize(30, 21)).toEqual(2); 25 expect(getGridStepSize(60, 21)).toEqual(2); 26 expect(getGridStepSize(100, 21)).toEqual(5); 28 expect(getGridStepSize(10, 3)).toEqual(5); [all …]
|
D | gridline_helper.ts | 29 export function getGridStepSize(range: number, desiredSteps: number): number { function 72 const step = getGridStepSize(span.duration, desiredSteps);
|