@orangelogic/design-system 4.39.0 → 4.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/library/package.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { TIMECODE_MODE } from '../constants';
|
|
2
2
|
/** Strict input grammar. Returns seconds, or null without seeking on invalid input. */
|
|
3
3
|
export declare function parseSegmentTime(input: string, mode: TIMECODE_MODE, frameRate: number, dropFrame: boolean): number | null;
|
|
4
|
+
/** The frame a time falls in, as the Frames format counts it. */
|
|
5
|
+
export declare function segmentFrame(seconds: number, frameRate: number): number;
|
|
4
6
|
export declare function formatSegmentTime(seconds: number, mode: TIMECODE_MODE, frameRate: number, dropFrame: boolean): string;
|
|
5
7
|
/** Clamps to the last frame and rounds to the nearest frame start, unless `roundToFrame` is false. */
|
|
6
8
|
export declare function clampSegmentTime(seconds: number, duration: number, frameRate: number, roundToFrame?: boolean): number;
|