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

68 lines (67 loc) 1.88 kB
import { ObjectAbstract } from '../../../common/object-abstract'; import { ResultType, Point2DType, Coord2DType, Point2DEntityAtomType, BasicInfoAtomType } from '../../../common/data-type'; import { ObjectCommon } from '../../../common/object-common'; /** * @public * @class Point2D * @extends ObjectCommon * @implements ObjectAbstract */ declare class Point2D extends ObjectCommon implements ObjectAbstract { className: string; private Point2DEntityAtom; /** * @constructor * @param {Point2DType} opt (optional) */ constructor(opt?: Point2DType); get point(): Coord2DType; set point(point: Coord2DType); GetPoint(): Promise<ResultType>; SetPoint(point: Coord2DType): Promise<ResultType>; /** * @public * @function GetScheme * @returns {{Point2DEntityAtom: Point2DEntityAtomType}} */ GetScheme(): { Point2DEntityAtom: Point2DEntityAtomType; }; /** * @public * @function GetData * @returns {Point2DType} */ GetData(): Point2DType; /** * @public * @function SetData * @param {Point2DType} opt * @returns {void} */ SetData(opt: Point2DType): void; /** * @public * @function generateAtomData * @param {Point2DType} opt * @returns {{Point2DEntityAtom?: Partial<Point2DEntityAtomType>, BasicInfoAtom?: Partial<BasicInfoAtomType>}} */ generateAtomData(opt: Point2DType): { Point2DEntityAtom?: Partial<Point2DEntityAtomType>; BasicInfoAtom?: Partial<BasicInfoAtomType>; }; /** * @public * @function GetValidateRules * @returns {Point2DType} */ GetValidateRules(): Point2DType; /** * @public * @function Validate * @param {Point2DType} opt * @returns {void} */ Validate(opt: Point2DType): void; } export default Point2D;