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
32 lines (31 loc) • 671 B
TypeScript
import { Coord2DType } from '../data-type';
/**
* @interface ISource
* @param {string} bg (optional)
* @param {string} needle (optional)
*/
export interface ISource {
bg?: string;
needle?: string;
}
/**
* @interface IDisplay
* @param {Coord2DType} position (optional)
* @param {number} size (optional)
*/
export interface IDisplay {
position?: Coord2DType;
size?: number;
anchors?: string;
}
/**
* @interface ICompass
* @param {string | null} eid (optional)
* @param {ISource} source (optional)
* @param {IDisplay} display (optional)
*/
export interface ICompass {
eid?: string | null;
source?: ISource;
display?: IDisplay;
}