UNPKG

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

75 lines (74 loc) 1.96 kB
import { ObjectAbstract } from '../../../common/object-abstract'; import { ResultType, AssetAtomType } from '../../../common/data-type'; import { MaterialAtomType } from '../../../common/interface/material'; import { StaticType, IGenerate } from '../../../common/interface/static'; import { ObjectController } from '../../../common/object-controller'; /** * @public * @class Static * @extends ObjectController * @implements ObjectAbstract */ declare class Static extends ObjectController implements ObjectAbstract { className: string; private AssetAtom; private MaterialAtom; private materialEntities; /** * @constructor * @param {StaticType} opt (optional) */ constructor(opt?: StaticType); get material(): Array<Record<string, any>>; set material(material: Array<Record<string, any>>); /** * @public * @function GetScheme * @returns {{AssetAtom: AssetAtomType, MaterialAtom: MaterialAtomType}} */ GetScheme(): { AssetAtom: AssetAtomType; MaterialAtom: MaterialAtomType; }; /** * @public * @function GetData * @returns {StaticType} */ GetData(): StaticType; /** * @public * @function SetData * @param {StaticType} opt * @returns {void} */ SetData(opt: StaticType): void; /** * @public * @function generateAtomData * @param {StaticType} opt * @returns {IGenerate} */ generateAtomData(opt: StaticType): IGenerate; /** * @public * @async * @function GetMaterial * @returns {Promise<ResultType>} */ GetMaterial(): Promise<ResultType>; /** * @public * @function GetValidateRules * @returns {StaticType} */ GetValidateRules(): StaticType; /** * @public * @function Validate * @param {StaticType} opt * @returns {void} */ Validate(opt: StaticType): void; } export default Static;