Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | 1x 1x 1564x 1382x 182x 182x | /**
* Indicates if the scene is viewed in 3D, 2D, or 2.5D Columbus view.
*
* @enum {number}
* @see Scene#mode
*/
const SceneMode = {
/**
* Morphing between mode, e.g., 3D to 2D.
*
* @type {number}
* @constant
*/
MORPHING: 0,
/**
* Columbus View mode. A 2.5D perspective view where the map is laid out
* flat and objects with non-zero height are drawn above it.
*
* @type {number}
* @constant
*/
COLUMBUS_VIEW: 1,
/**
* 2D mode. The map is viewed top-down with an orthographic projection.
*
* @type {number}
* @constant
*/
SCENE2D: 2,
/**
* 3D mode. A traditional 3D perspective view of the globe.
*
* @type {number}
* @constant
*/
SCENE3D: 3,
};
/**
* Returns the morph time for the given scene mode.
*
* @param {SceneMode} value The scene mode
* @returns {number} The morph time
*/
SceneMode.getMorphTime = function (value) {
if (value === SceneMode.SCENE3D) {
return 1.0;
} else Iif (value === SceneMode.MORPHING) {
return undefined;
}
return 0.0;
};
export default Object.freeze(SceneMode);
|