bcgis-type
Version:
The SDK is based on Cesium for secondary development of 2, 3D all-in-one WebGis application framework, the framework optimizes the use of Cesium and add some additional features, designed for developers to quickly build WebGis applications.
40 lines (39 loc) • 990 B
TypeScript
import Overlay from "../Overlay";
import { T_Position } from "../../common/type";
/**
* 视频图元
* @noInheritDoc
* @example
* ```ts
* let videoEl = new document.getElementById('video')
* let videoPrimitive = new BC.VideoPrimitive('120,20;120,30;122,30', videoEl)
* ```
*/
declare class VideoPrimitive extends Overlay {
private _positions;
private _video;
/**
*
* @param positions 坐标串
* @param video 视频地址
*/
constructor(positions: string | T_Position[], video: string);
get type(): any;
set positions(positions: string | T_Position[]);
get positions(): string | T_Position[];
set video(video: string);
get video(): string;
/**
*
* @private
*/
_setAppearance(): void;
_mountedHook(): void;
/**
* 设置风格
* @param style
* @returns {VideoPrimitive}
*/
setStyle(style: any): this;
}
export default VideoPrimitive;