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
54 lines (53 loc) • 2.18 kB
TypeScript
import { MinMaxType, Coord2DType, EntityEidType, BasicInfoAtomType, TransformAtomType, VisibleAtomType, EntityFlagAtomType, EntityOutlinerAtomType, TbgOverlap, Tjustification } from '../data-type';
/**
* @interface RealTimeVideoEntityAtomType
* @param {string} url
* @param {MinMaxType} resolution
* @param {Coord2DType} offset
* @param {string} state
*/
export interface RealTimeVideoEntityAtomType {
url: string;
resolution: MinMaxType;
offset: Coord2DType;
state: string;
overlapOrder: number;
bokeh: number;
cornerShift: Array<Coord2DType>;
bgUrl: string;
bgPadding: Array<number>;
bgOverlap: TbgOverlap;
labelContent: Array<string>;
labelOffset: Array<number>;
labelSize: Array<number>;
labelContentJustification: Tjustification;
labelContentAutoWrap: boolean;
btnNormalUrl: string;
btnActivateUrl: string;
btnOffset: Array<number>;
btnSize: Array<number>;
}
/**
* @interface RealTimeVideoType
* @extends EntityEidType,Partial<BasicInfoAtomType>,Partial<TransformAtomType>,Partial<VisibleAtomType>,Partial<EntityFlagAtomType>
* @param {Partial<RealTimeVideoEntityAtomType>} realTimeVideoStyle (optional)
*/
export interface RealTimeVideoType extends EntityEidType, Partial<BasicInfoAtomType>, Partial<TransformAtomType>, Partial<VisibleAtomType>, Partial<EntityFlagAtomType>, Partial<EntityOutlinerAtomType> {
realTimeVideoStyle?: Partial<RealTimeVideoEntityAtomType>;
}
/**
* @interface IGenerate
* @param {Partial<RealTimeVideoEntityAtomType>} RealTimeVideoEntityAtom (optional)
* @param {Partial<BasicInfoAtomType>} BasicInfoAtom (optional)
* @param {Partial<TransformAtomType>} TransformAtom (optional)
* @param {Partial<VisibleAtomType>} VisibleAtom (optional)
* @param {Partial<EntityFlagAtomType>} EntityFlagAtom (optional)
*/
export interface IGenerate {
RealTimeVideoEntityAtom?: Partial<RealTimeVideoEntityAtomType>;
BasicInfoAtom?: Partial<BasicInfoAtomType>;
TransformAtom?: Partial<TransformAtomType>;
VisibleAtom?: Partial<VisibleAtomType>;
EntityFlagAtom?: Partial<EntityFlagAtomType>;
EntityOutlinerAtom?: Partial<EntityOutlinerAtomType>;
}