bcgis-base
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.
2 lines • 1.26 kB
JavaScript
/*! For license information please see IndexDatatype-3a8ea78f.js.LICENSE.txt */
define(["exports","./defaultValue-135942ca","./Math-a304e2d6","./WebGLConstants-fcb70ee3"],(function(e,n,r,t){"use strict";const N={UNSIGNED_BYTE:t.WebGLConstants.UNSIGNED_BYTE,UNSIGNED_SHORT:t.WebGLConstants.UNSIGNED_SHORT,UNSIGNED_INT:t.WebGLConstants.UNSIGNED_INT,getSizeInBytes:function(e){switch(e){case N.UNSIGNED_BYTE:return Uint8Array.BYTES_PER_ELEMENT;case N.UNSIGNED_SHORT:return Uint16Array.BYTES_PER_ELEMENT;case N.UNSIGNED_INT:return Uint32Array.BYTES_PER_ELEMENT}},fromSizeInBytes:function(e){switch(e){case 2:return N.UNSIGNED_SHORT;case 4:return N.UNSIGNED_INT;case 1:return N.UNSIGNED_BYTE}},validate:function(e){return n.defined(e)&&(e===N.UNSIGNED_BYTE||e===N.UNSIGNED_SHORT||e===N.UNSIGNED_INT)},createTypedArray:function(e,n){return e>=r.CesiumMath.SIXTY_FOUR_KILOBYTES?new Uint32Array(n):new Uint16Array(n)},createTypedArrayFromArrayBuffer:function(e,n,t,N){return e>=r.CesiumMath.SIXTY_FOUR_KILOBYTES?new Uint32Array(n,t,N):new Uint16Array(n,t,N)},fromTypedArray:function(e){return e instanceof Uint8Array?N.UNSIGNED_BYTE:e instanceof Uint16Array?N.UNSIGNED_SHORT:e instanceof Uint32Array?N.UNSIGNED_INT:void 0}};var a=Object.freeze(N);e.IndexDatatype=a}));