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
48 lines (47 loc) • 1.97 kB
TypeScript
import { EntityEidType, BasicInfoAtomType, IPolygon2DAtom, VisibleAtomType, EntityFlagAtomType, EntityOutlinerAtomType } from '../data-type';
/**
* @interface HighlightAreaEntityAtomType
* @param {string} interiorColor
* @param {string} exteriorColor
* @param {string} exteriorOutlineColor
* @param {number} exteriorSaturation
* @param {number} exteriorBrightness
* @param {number} exteriorContrast
*/
export interface HighlightAreaEntityAtomType {
interiorColor: string;
exteriorColor: string;
exteriorOutlineColor: string;
exteriorSaturation: number;
exteriorBrightness: number;
exteriorContrast: number;
customColors: {
[key: string]: string;
};
}
/**
* @interface HighlightAreaType
* @extends EntityEidType,Partial<BasicInfoAtomType>,Partial<VisibleAtomType>,Partial<EntityFlagAtomType>
* @param {Partial<HighlightAreaEntityAtomType>} highlightAreaStyle (optional)
* @param {Partial<IPolygon2DAtom>} polygon2D (optional)
*/
export interface HighlightAreaType extends EntityEidType, Partial<BasicInfoAtomType>, Partial<VisibleAtomType>, Partial<EntityFlagAtomType>, Partial<EntityOutlinerAtomType> {
highlightAreaStyle?: Partial<HighlightAreaEntityAtomType>;
polygon2D?: Partial<IPolygon2DAtom>;
}
/**
* @interface IGenerate
* @param {Partial<HighlightAreaEntityAtomType>} HighlightAreaEntityAtom (optional)
* @param {Partial<BasicInfoAtomType>} BasicInfoAtom (optional)
* @param {Partial<IPolygon2DAtom>} Polygon2DAtom (optional)
* @param {Partial<VisibleAtomType>} VisibleAtom (optional)
* @param {Partial<EntityFlagAtomType>} EntityFlagAtom (optional)
*/
export interface IGenerate {
HighlightAreaEntityAtom?: Partial<HighlightAreaEntityAtomType>;
BasicInfoAtom?: Partial<BasicInfoAtomType>;
Polygon2DAtom?: Partial<IPolygon2DAtom>;
VisibleAtom?: Partial<VisibleAtomType>;
EntityFlagAtom?: Partial<EntityFlagAtomType>;
EntityOutlinerAtom?: Partial<EntityOutlinerAtomType>;
}