wdpapi
Version:
51WORLD WdpApi is a set of programming interfaces developed by JavaScript that is responsible for negotiating between web pages and cloud rendering platforms. Supported by 51Cloud rendering platform, it enables the users to create any HTML5 UI element on
28 lines (27 loc) • 793 B
TypeScript
import { ResultType, IColorObj, TAlpha } from '../common/data-type';
/**
* @public
* @class ColorController
*/
declare class ColorController {
private ColorValidate;
/**
* @public
* @async
* @function RgbaToHexa
* @param {IColorObj} rgba (required)
* @param {TAlpha} alphaType (optional) default value is decimal
* @returns {Promise<ResultType>}
*/
RgbaToHexa(rgba: IColorObj, alphaType?: TAlpha): Promise<ResultType>;
/**
* @public
* @async
* @function HexaToRgba
* @param {string} hexa (required)
* @param {TAlpha} alphaType (optional) default value is decimal
* @returns {Promise<ResultType>}
*/
HexaToRgba(hexa: string, alphaType?: TAlpha): Promise<ResultType>;
}
export default ColorController;