# Constants.js

    import { version, dependencies } from '../package.json';

    /**
     * REVISION
     * @module REVISION
     * @example PANOLENS.REVISION
     * @type {string} revision
     */
    export const REVISION = version.split( '.' )[ 1 ];

    /**
     * VERSION
     * @module VERSION
     * @example PANOLENS.VERSION
     * @type {string} version
     */
    export const VERSION = version;

    /**
     * THREEJS REVISION
     * @module THREE_REVISION
     * @example PANOLENS.THREE_REVISION
     * @type {string} threejs revision
     */
    export const THREE_REVISION = dependencies.three.split( '.' )[ 1 ];

    /**
     * THREEJS VERSION
     * @module THREE_VERSION
     * @example PANOLENS.THREE_VERSION
     * @type {string} threejs version
     */
    export const THREE_VERSION = dependencies.three.replace( /[^0-9.]/g, '' );

    /**
     * CONTROLS
     * @module CONTROLS
     * @example PANOLENS.CONTROLS.ORBIT
     * @property {number} ORBIT 0
     * @property {number} DEVICEORIENTATION 1
     */
    export const CONTROLS = { ORBIT: 0, DEVICEORIENTATION: 1 };

    /**
     * MODES
     * @module MODES
     * @example PANOLENS.MODES.UNKNOWN
     * @property {number} UNKNOWN 0
     * @property {number} NORMAL 1
     * @property {number} CARDBOARD 2
     * @property {number} STEREO 3
     */
    export const MODES = { UNKNOWN: 0, NORMAL: 1, CARDBOARD: 2, STEREO: 3 };