XWWitPark/witpark_jzzs/xw_jzzs_web/public/lib/echarts/echarts-gl.min.js

2 lines
653 KiB
JavaScript
Raw Permalink Normal View History

2024-09-12 00:10:00 +00:00
/* 2020-9-22 15:23:28 | 版权所有 军懋国兴 */
function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e,t){"object"==("undefined"==typeof exports?"undefined":_typeof(exports))&&"object"==("undefined"==typeof module?"undefined":_typeof(module))?module.exports=t(require("echarts")):"function"==typeof define&&define.amd?define(["echarts"],t):"object"==("undefined"==typeof exports?"undefined":_typeof(exports))?exports["echarts-gl"]=t(require("echarts")):e["echarts-gl"]=t(e.echarts)}(this,function(r){return a={},n.m=i=[function(e,t){e.exports=r},function(e,t,r){"use strict";function p(e){return e instanceof HTMLCanvasElement||e instanceof HTMLImageElement||e instanceof Image}function i(e){return Math.pow(2,Math.round(Math.log(e)/Math.LN2))}function m(e){var t,r,n;e.wrapS!==s.a.REPEAT&&e.wrapT!==s.a.REPEAT||!e.image||(t=i(e.width),r=i(e.height),t===e.width&&r===e.height||((n=document.createElement("canvas")).width=t,n.height=r,n.getContext("2d").drawImage(e.image,0,0,t,r),e.image=n))}var n=r(40),a=r(52),o=r(5),s=r(4),u=r(8),l=r(19),h=r(35),c=r(15),d=r(0),f=r.n(d),g=r(36),_=r(60),v=r.n(_),y=r(61),x=r(124),T=r(125),b=r(129),w=r(130),E=r(2),S=r(132),A=r(43),M=r(76),C=r(133),L=r(134),D=r(135),N=r(136),R=r(41),P=r(37),I=r(26),O=r(3),F=r(137),B=r(56),U=r(138),z=r(139),G=r(140),H=r(9),V=r(74),k=r(54),W=r(18),j=r(59),X=r(141),q=r(146),Z=r(71),Y=r(147),K=r(148),Q=r(149),J=r(150),$=r(151),ee=r(152);f.a.util.extend(h.a.prototype,X.a),u.a.import(q.a),u.a.import(Z.a),u.a.import(Y.a),u.a.import(K.a),u.a.import(Q.a),u.a.import(J.a),u.a.import($.a),u.a.import(ee.a);var te=g.a.prototype.addToScene,re=g.a.prototype.removeFromScene;g.a.prototype.addToScene=function(e){var t;te.call(this,e),this.__zr&&(t=this.__zr,e.traverse(function(e){e.__zr=t,e.addAnimatorsToZr&&e.addAnimatorsToZr(t)}))},g.a.prototype.removeFromScene=function(e){re.call(this,e),e.traverse(function(e){var t=e.__zr;e.__zr=null,t&&e.removeAnimatorsFromZr&&e.removeAnimatorsFromZr(t)})},l.a.prototype.setTextureImage=function(t,e,r,n){if(this.shader){var i,a=r.getZr(),o=this;return o.autoUpdateTextureStatus=!1,o.disableTexture(t),(s=e)&&"none"!==s&&(i=ne.loadTexture(e,r,n,function(e){o.enableTexture(t),a&&a.refresh()}),o.set(t,i)),i}var s};var ne={};ne.Renderer=a.a,ne.Node=h.a,ne.Mesh=n.a,ne.Shader=u.a,ne.Material=l.a,ne.Texture=s.a,ne.Texture2D=o.a,ne.Geometry=c.a,ne.SphereGeometry=S.a,ne.PlaneGeometry=A.a,ne.CubeGeometry=M.a,ne.AmbientLight=C.a,ne.DirectionalLight=L.a,ne.PointLight=D.a,ne.SpotLight=N.a,ne.PerspectiveCamera=R.a,ne.OrthographicCamera=P.a,ne.Vector2=I.a,ne.Vector3=O.a,ne.Vector4=F.a,ne.Quaternion=B.a,ne.Matrix2=U.a,ne.Matrix2d=z.a,ne.Matrix3=G.a,ne.Matrix4=H.a,ne.Plane=V.a,ne.Ray=k.a,ne.BoundingBox=W.a,ne.Frustum=j.a;var ie=y.a.createBlank("rgba(255,255,255,0)").image;ne.loadTexture=function(e,t,r,n){"function"==typeof r&&(n=r,r={}),r=r||{};for(var i=Object.keys(r).sort(),a="",o=0;o<i.length;o++)a+=i[o]+"_"+r[i[o]]+"_";var s,u=t.__textureCache=t.__textureCache||new v.a(20);if((s=e).getZr&&s.setOption){var l=e.__textureid__;if(c=u.get(a+l))c.texture.surface.setECharts(e),n&&n(c.texture);else{var h=new x.a(e);h.onupdate=function(){t.getZr().refresh()},c={texture:h.getTexture()};for(o=0;o<i.length;o++)c.texture[i[o]]=r[i[o]];l=e.__textureid__||"__ecgl_ec__"+c.texture.__uid__,e.__textureid__=l,u.put(a+l,c),n&&n(c.texture)}return c.texture}if(p(e)){var c,l=e.__textureid__;if(!(c=u.get(a+l))){c={texture:new ne.Texture2D({image:e})};for(o=0;o<i.length;o++)c.texture[i[o]]=r[i[o]];l=e.__textureid__||"__ecgl_image__"+c.texture.__uid__,e.__textureid__=l,u.put(a+l,c),m(c.texture),n&&n(c.texture)}return c.texture}if(c=u.get(a+e))c.callbacks?c.callbacks.push(n):n&&n(c.texture);else if(e.match(/.hdr$|^data:application\/octet-stream/)){c={callbacks:[n]};var d=y.a.loadTexture(e,{exposure:r.exposure,fileType:"hdr"},function(){d.dirty(),c.callbacks.forEach(function(e){e&&e(d)}),c.callbacks=null});c.texture=d,u.put(a+e,c)}else{for(d=new ne