cione-comp-lib
Version:
`$ yarn add cione-comp-lib` 或者 `$ npm i cione-comp-lib -S`
2 lines (1 loc) • 1.32 kB
JavaScript
;Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var e,r=require("./request.js"),t={supportWebGL:function(){if(null==e)try{var r=document.createElement("canvas");if(!(r.getContext("webgl")||r.getContext("experimental-webgl")))throw new Error}catch(t){e=!1}return e}};t.Int8Array="undefined"==typeof Int8Array?Array:Int8Array,t.Uint8Array="undefined"==typeof Uint8Array?Array:Uint8Array,t.Uint16Array="undefined"==typeof Uint16Array?Array:Uint16Array,t.Uint32Array="undefined"==typeof Uint32Array?Array:Uint32Array,t.Int16Array="undefined"==typeof Int16Array?Array:Int16Array,t.Float32Array="undefined"==typeof Float32Array?Array:Float32Array,t.Float64Array="undefined"==typeof Float64Array?Array:Float64Array;var n={};"undefined"!=typeof window?n=window:"undefined"!=typeof global&&(n=global),t.requestAnimationFrame=n.requestAnimationFrame||n.msRequestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(e){setTimeout(e,16)},t.createCanvas=function(){return document.createElement("canvas")},t.createImage=function(){return new n.Image},t.request={get:r.default.get},t.addEventListener=function(e,r,t,n){e.addEventListener(r,t,n)},t.removeEventListener=function(e,r,t){e.removeEventListener(r,t)};var a=t;exports.default=a;