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
41 lines (40 loc) • 1.85 kB
TypeScript
import { MinMaxType, Coord2DType, EntityEidType, BasicInfoAtomType, TransformAtom2DType, VisibleAtomType, EntityFlagAtomType, Visible2DAtomType, deepPartial, EntityOutlinerAtomType } from '../data-type';
/**
* @interface WindowType
* @extends EntityEidType,Partial<BasicInfoAtomType>,Partial<TransformAtom2DType>,Partial<VisibleAtomType>,Partial<EntityFlagAtomType>
* @param {Partial<WindowEntityAtomType>} windowStyle (optional)
* @param {deepPartial<Visible2DAtomType>} visible2D (optional)
*/
export interface WindowType extends EntityEidType, Partial<BasicInfoAtomType>, Partial<TransformAtom2DType>, Partial<VisibleAtomType>, Partial<EntityFlagAtomType>, Partial<EntityOutlinerAtomType> {
windowStyle?: Partial<WindowEntityAtomType>;
visible2D?: deepPartial<Visible2DAtomType>;
}
/**
* @interface WindowEntityAtomType
* @param {string} url
* @param {MinMaxType} size
* @param {Coord2DType} offset
*/
export interface WindowEntityAtomType {
url: string;
size: MinMaxType;
offset: Coord2DType;
}
/**
* @interface IGenerate
* @param {Partial<WindowEntityAtomType>} WindowEntityAtom (optional)
* @param {Partial<BasicInfoAtomType>} BasicInfoAtom (optional)
* @param {Partial<TransformAtom2DType>} TransformAtom2D (optional)
* @param {Partial<VisibleAtomType>} VisibleAtom (optional)
* @param {deepPartial<Visible2DAtomType>} Visible2DAtom (optional)
* @param {Partial<EntityFlagAtomType>} EntityFlagAtom (optional)
*/
export interface IGenerate {
WindowEntityAtom?: Partial<WindowEntityAtomType>;
BasicInfoAtom?: Partial<BasicInfoAtomType>;
TransformAtom2D?: Partial<TransformAtom2DType>;
VisibleAtom?: Partial<VisibleAtomType>;
Visible2DAtom?: deepPartial<Visible2DAtomType>;
EntityFlagAtom?: Partial<EntityFlagAtomType>;
EntityOutlinerAtom?: Partial<EntityOutlinerAtomType>;
}