UNPKG

@diffusionstudio/core-v4

Version:

2D motion graphics and video rendering engine

12 lines (11 loc) 516 B
import { TextCase } from './types'; import { hex, Percent } from '../types'; export declare function transformText(text: string, textCase?: TextCase): string; export declare function hexWithOpacity(color?: hex, opacity?: number): hex; /** * Converts a percentage to a number * @param value - The percentage or number value to convert * @param max - The maximum value of the percentage * @returns The absolute value of the percentage */ export declare function abs(value: number | Percent, max: number): number;