terriajs-cesium
Version:
CesiumJS is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin.
54 lines (48 loc) • 1.2 kB
JavaScript
import DeveloperError from "../Core/DeveloperError.js";
/**
* Displays panorama imagery in a scene. This type describes an interface and is not intended to be instantiated directly.
*
* @alias Panorama
* @constructor
* @abstract
*
* @see EquirectangularPanorama
* @see CubeMapPanorama
* @see GoogleStreetViewCubeMapPanoramaProvider
*
*
* @demo {@link https://sandcastle.cesium.com/index.html?id=panorama|Cesium Sandcastle Panorama}
*/
function Panorama() {
DeveloperError.throwInstantiationError();
}
Object.defineProperties(Panorama.prototype, {
/**
* Determines if the panorama will be shown.
* @memberof Panorama.prototype
* @type {boolean}
*/
show: {
get: DeveloperError.throwInstantiationError,
set: DeveloperError.throwInstantiationError,
},
/**
* Gets the transform of the panorama.
* @memberof Panorama.prototype
* @type {Matrix4}
* @readonly
*/
transform: {
get: DeveloperError.throwInstantiationError,
},
/**
* Gets the credits of the panorama.
* @memberof Panorama.prototype
* @type {Credit}
* @readonly
*/
credit: {
get: DeveloperError.throwInstantiationError,
},
});
export default Panorama;