"use strict";
var _a;
Object.defineProperty(exports, "__esModule", { value: true });
exports.IS_WEB_GPU = exports.NEUTRAL_COLOR = exports.EPSILON = exports.DEFAULT_HEIGHT = exports.DEFAULT_WIDTH = exports.IS_TEST_ENV = void 0;
var IS_TEST_ENV = false;
exports.IS_TEST_ENV = IS_TEST_ENV;
if (typeof process !== "undefined") {
    exports.IS_TEST_ENV = IS_TEST_ENV = ((_a = process.env) === null || _a === void 0 ? void 0 : _a.TEST_ENV) === "1";
}
exports.DEFAULT_WIDTH = 900;
exports.DEFAULT_HEIGHT = 600;
exports.EPSILON = 0.0001;
/** the new NeutralColor (transparent white in AARRGGBB format) */
exports.NEUTRAL_COLOR = 4294967295;
// Flag to enable/disable WebGPU (disabled WebGPU means WebGL). 
// By default true, can be disabled by setting "IS_WEB_GPU" = "0" in the local storage
// When it is enabled, and browser does not support WebGPU falls back to WebGL.
exports.IS_WEB_GPU = (function () {
    try {
        var webGpuDisabled = localStorage.getItem("IS_WEB_GPU") === "0";
        return !webGpuDisabled;
    }
    catch (_a) {
        return true;
    }
})();
