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.16 kB
TypeScript
import { Basic } from '../common/basic';
import { ResultType, Coord2DType } from '../common/data-type';
/**
* @public
* @class ShapeController
* @extends Basic
*/
declare class ShapeController extends Basic {
private apiClassName;
private ShapeValidate;
/**
* @constructor
* @param {any} obj
*/
constructor(obj: any);
/**
* @public
* @async
* @function UpdateShapePoints
* @param {Array<{pointIndex: number, point: Array<number>, attribute?: Record<string, any>}>} points
* @param {string} updateType
* @returns {Promise<ResultType>}
*/
UpdateShapePoints(points: Array<{
pointIndex: number;
point: Array<number>;
attribute?: Record<string, any>;
}>, updateType: string): Promise<ResultType>;
/**
* @public
* @async
* @function RangePickShapePoints
* @param {Coord2DType} start
* @param {Coord2DType} end
* @param {string} selectMode
* @returns {Promise<ResultType>}
*/
RangePickShapePoints(start: Coord2DType, end: Coord2DType, selectMode: string): Promise<ResultType>;
}
export default ShapeController;