zhzf/client/public/js/egis-2d.js

69 lines
4.1 MiB
JavaScript
Raw Normal View History

2025-02-14 16:04:21 +08:00
/**
*version:1.0.141
*build_time:2021-06-08 17:25:57
*git_version:4a515cc2bbf1b1597c430235e6c261539a741cef
**/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["egis-2d"]=e():t["egis-2d"]=e()}(window,function(){return m=[function(t,e,n){var i;void 0===(i=function(t,e,n){function r(){}var i=1e4;function o(t,e){var n=e.prototype,i=t.prototype;for(var r in n)i[r]=n[r];i.uber=n,function(t){t.extend=function(t){var e=this,n="function"==typeof t.initialize?t.initialize:function(t){e.call(this,t||{})};for(var i in o(n,this),t)t.hasOwnProperty(i)&&"prototype"!==i&&"initialize"!=i&&(n.prototype[i]=t[i]);return n}}(t)}return r.extend2=function(t,e){o(t,e)},r.extend=function(n,t){var e="function"==typeof t.initialize?t.initialize:function(t){var e=t||{};n.call(this,e)};for(var i in r.extend2(e,n),t)t.hasOwnProperty(i)&&"prototype"!==i&&"initialize"!=i&&(e.prototype[i]=t[i]);return e},r.isArray=function(t){return!!t&&t.constructor==Array},r.newId=function(){return i++},r.destroyObject=function(t){!function t(e){if(null!=e&&e instanceof Object)for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];if(null!=i){if(i instanceof Array){for(var r=0;r<i.length;r++){var o=i[r];t(o),o=void 0}i.length=0}else t(i);e[n]=void 0}delete e[n]}}(t)},r.extendCopy=function(t){var e={};for(var n in t)e[n]=t[n];return e.uber=t,e},r.deepCopy=function t(e,n){n=n||{};for(var i in e)"object"==typeof e[i]?(n[i]=e[i].constructor===Array?[]:{},t(e[i],n[i])):n[i]=e[i];return n},r.objectPlus=function(t,e){var n;function i(){}for(var r in i.prototype=t,(n=new i).uber=t,e)n[r]=e[r];return n},r.extendMulti=function(){var t,e={},n=0,i=arguments.length;for(n=0;n<i;n++)for(var r in t=arguments[n])e[r]=t[r];return e},r.olInherits=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t},n.exports=r}.apply(e,[n,e,t]))||(t.exports=i)},function(t,e,n){var i,r;i=[n(0),n(22),n(8),n(13),n(142),n(143),n(70),n,e,t],void 0===(r=function(t,n,e,i,r,o,a,s,l,u){function h(t){var e=t||{};n.call(this,e),r.call(this,e),this.x=null==e.x?0:e.x,this.y=null==e.y?0:e.y,this.z=null==e.z?0:e.z,this.$type="Point,http://www.Gs.com"}return t.extend2(h,n),t.extend2(h,r),h.prototype.getGeometryType=function(){return e.Point},h.prototype.equals=function(t){return this===t||null!=t&&t.getGeometryType()===e.Point&&(Math.abs(this.x-t.x)<n.tolerate&&Math.abs(this.y-t.y)<n.tolerate)},h.prototype.offset=function(t){this.x+=t.x||0,this.y+=t.y||0,this.z+=t.z||0},h.prototype.envelope=function(){return new i({minx:this.x,maxx:this.x,miny:this.y,maxy:this.y,minz:this.z,maxz:this.z,spatialReference:this.spatialReference})},h.prototype.copy=function(){return new h(this)},h.prototype.getCoordinates=function(){return this.x+","+this.y},h.prototype.fromCoordinates=function(t){return this.x=t[0].lng,this.y=t[0].lat,this},h.prototype.getBaryCenter=function(){return{x:this.x,y:this.y}},h.prototype.asWkt=function(t){return t?"point({0} {1})".replace("{0}",this.x.toFixed(t)).replace("{1}",this.y.toFixed(t)):"point({0} {1})".replace("{0}",this.x).replace("{1}",this.y)},h.prototype.asGeoJson=function(t){var e={type:"Point",coordinates:[]};return t?(e.coordinates.push(this.x.toFixed(t)),e.coordinates.push(this.y.toFixed(t))):(e.coordinates.push(this.x),e.coordinates.push(this.y)),e},h.prototype.move=function(t,e,n){var i=o.makeTransform(t,e,n);a.applyMatrix4(this,i)},h.prototype.rotate=function(t,e){var n=o.makeRotationAxis(t,e);a.applyMatrix4(this,n)},h.prototype.scale=function(t,e,n,i){var r=o.makeScale(t,e,n,i);a.applyMatrix4(this,r)},u.exports=h}.apply(e,i))||(t.exports=r)},function(t,e,n){var i,r;i=[n(0),n(91),n(92),n(8),n(1),n(13),n,e,t],void 0===(r=function(e,n,i,t,u,o,r,a,s){function l(t){n.call(this,t||{}),i.call(this,t||{}),this.points=[],this.$type="Path,http://www.Gs.com"}return e.extend2(l,n),e.extend2(l,i),l.prototype.getGeometryType=function(){return t.Path},l.prototype.startPoint=function(){return 0<this.points.length?this.points[0]:null},l.prototype.endPoint=function(){return 1<this.points.length?this.points[this.points.length-1]:null},l.prototype.offset=function(t){for(var e=0,
/*!
* PEP v0.5.1 | https://github.com/jquery/PEP
* Copyright jQuery Foundation and other contributors | http://jquery.org/license
*/
t.exports=function(){"use strict";var a=["bubbles","cancelable","view","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","pageX","pageY"],s=[!1,!1,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0];function r(t,e){e=e||Object.create(null);var n=document.createEvent("Event");n.initEvent(t,e.bubbles||!1,e.cancelable||!1);for(var i,r=2;r<a.length;r++)n[i=a[r]]=e[i]||s[r];n.buttons=e.buttons||0;var o=0;return o=void 0!==e.pressure&&n.buttons?e.pressure:n.buttons?.5:0,n.x=n.clientX,n.y=n.clientY,n.pointerId=e.pointerId||0,n.width=e.width||1,n.height=e.height||1,n.pressure=o,n.tiltX=e.tiltX||0,n.tiltY=e.tiltY||0,n.twist=e.twist||0,n.tangentialPressure=e.tangentialPressure||0,n.pointerType=e.pointerType||"",n.hwTimestamp=e.hwTimestamp||0,n.isPrimary=e.isPrimary||!1,n.detail=0,n}var t=window.Map&&window.Map.prototype.forEach?Map:e;function e(){this.array=[],this.size=0}var o=["bubbles","cancelable","view","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","buttons","pointerId","width","height","pressure","tiltX","tiltY","pointerType","hwTimestamp","isPrimary","type","target","currentTarget","which","pageX","pageY","timeStamp"],l=[(e.prototype={set:function(t,e){if(void 0===e)return this.delete(t);this.has(t)||this.size++,this.array[t]=e},has:function(t){return void 0!==this.array[t]},delete:function(t){this.has(t)&&(delete this.array[t],this.size--)},get:function(t){return this.array[t]},clear:function(){this.array.length=0,this.size=0},forEach:function(n,i){return this.array.forEach(function(t,e){n.call(i,t,e,this)},this)}},!1),!1,null,null,0,0,0,0,!1,!1,!1,!1,0,null,0,0,0,0,0,0,0,"",0,!1,"",null,null,0,0,0,0],n={pointerover:1,pointerout:1,pointerenter:1,pointerleave:1},u="undefined"!=typeof SVGElementInstance,h={pointermap:new t,eventMap:Object.create(null),captureInfo:Object.create(null),eventSources:Object.create(null),eventSourceList:[],registerSource:function(t,e){var n=e,i=n.events;i&&(i.forEach(function(t){n[t]&&(this.eventMap[t]=n[t].bind(n))},this),this.eventSources[t]=n,this.eventSourceList.push(n))},register:function(t){for(var e,n=this.eventSourceList.length,i=0;i<n&&(e=this.eventSourceList[i]);i++)e.register.call(e,t)},unregister:function(t){for(var e,n=this.eventSourceList.length,i=0;i<n&&(e=this.eventSourceList[i]);i++)e.unregister.call(e,t)},contains:function(t,e){try{return t.contains(e)}catch(t){return!1}},down:function(t){t.bubbles=!0,this.fireEvent("pointerdown",t)},move:function(t){t.bubbles=!0,this.fireEvent("pointermove",t)},up:function(t){t.bubbles=!0,this.fireEvent("pointerup",t)},enter:function(t){t.bubbles=!1,this.fireEvent("pointerenter",t)},leave:function(t){t.bubbles=!1,this.fireEvent("pointerleave",t)},over:function(t){t.bubbles=!0,this.fireEvent("pointerover",t)},out:function(t){t.bubbles=!0,this.fireEvent("pointerout",t)},cancel:function(t){t.bubbles=!0,this.fireEvent("pointercancel",t)},leaveOut:function(t){this.out(t),this.propagate(t,this.leave,!1)},enterOver:function(t){this.over(t),this.propagate(t,this.enter,!0)},eventHandler:function(t){if(!t._handledByPE){var e=t.type,n=this.eventMap&&this.eventMap[e];n&&n(t),t._handledByPE=!0}},listen:function(e,t){t.forEach(function(t){this.addEvent(e,t)},this)},unlisten:function(e,t){t.forEach(function(t){this.removeEvent(e,t)},this)},addEvent:function(t,e){t.addEventListener(e,this.boundHandler)},removeEvent:function(t,e){t.removeEventListener(e,this.boundHandler)},makeEvent:function(t,e){this.captureInfo[e.pointerId]&&(e.relatedTarget=null);var n=new r(t,e);return e.preventDefault&&(n.preventDefault=e.preventDefault),n._target=n._target||e.target,n},fireEvent:function(t,e){var n=this.makeEvent(t,e);return this.dispatchEvent(n)},cloneEvent:function(t){for(var e,n=Object.create(null),i=0;i<o.length;i++)n[e=o[i]]=t[e]||l[i],!u||"target"!==e&&"relatedTarget"!==e||n[e]instanceof SVGElementInstance&&(n[e]=n[e].correspondingUseElement);return t.preventDefault&&(n.preventDefault=function(){t.preventDefault()}),n},getTarget:function(t){var e=this.captureI
/**
@license
when.js - https://github.com/cujojs/when
MIT License (c) copyright B Cavalier & J Hann
* A lightweight CommonJS Promises/A and when() implementation
* when is part of the cujo.js family of libraries (http://cujojs.com/)
*
* Licensed under the MIT License at:
* http://www.opensource.org/licenses/mit-license.php
*
* @version 1.7.1
*/
/**
@license
when.js - https://github.com/cujojs/when
MIT License (c) copyright B Cavalier & J Hann
* A lightweight CommonJS Promises/A and when() implementation
* when is part of the cujo.js family of libraries (http://cujojs.com/)
*
* Licensed under the MIT License at:
* http://www.opensource.org/licenses/mit-license.php
*
* @version 1.7.1
*/
!function(){"use strict";void 0===(i=function(){var n,i,h;function g(t,e,n,i){return c(t).then(e,n,i)}function c(t){var e;return t instanceof p?t:r(t)?(e=v(),t.then(function(t){e.resolve(t)},function(t){e.reject(t)},function(t){e.progress(t)}),e.promise):function(e){return new p(function(t){try{return c(t?t(e):e)}catch(t){return f(t)}})}(t)}function p(t){this.then=t}function f(n){return new p(function(t,e){try{return e?c(e(n)):f(n)}catch(t){return f(t)}})}function v(){var t,a,s,i,e,n;return t=new p(r),a=[],s=[],i=function(e,n,i){var r,o;return r=v(),o="function"==typeof i?function(t){try{r.progress(i(t))}catch(t){r.progress(t)}}:function(t){r.progress(t)},a.push(function(t){t.then(e,n).then(r.resolve,r.reject,o)}),s.push(o),r.promise},e=function(t){return d(s,t),t},n=function(t){return t=c(t),i=t.then,n=c,e=x,d(a,t),s=a=h,t},{then:r,resolve:o,reject:l,progress:u,promise:t,resolver:{resolve:o,reject:l,progress:u}};function r(t,e,n){return i(t,e,n)}function o(t){return n(t)}function l(t){return n(f(t))}function u(t){return e(t)}}function r(t){return t&&"function"==typeof t.then}function o(t,f,d,y,m){return l(2,arguments),g(t,function(t){var e,n,i,r,o,a,s,l,u,h;if(u=t.length>>>0,e=Math.max(0,Math.min(f,u)),i=[],n=u-e+1,r=[],o=v(),e)for(l=o.progress,s=function(t){r.push(t),--n||(a=s=x,o.reject(r))},a=function(t){i.push(t),--e||(a=s=x,o.resolve(i))},h=0;h<u;++h)h in t&&g(t[h],p,c,l);else o.resolve(i);return o.then(d,y,m);function c(t){s(t)}function p(t){a(t)}})}function a(t,e,n,i){return l(1,arguments),s(t,u).then(e,n,i)}function s(t,s){return g(t,function(t){var n,e,i,r,o,a;if(i=e=t.length>>>0,n=[],a=v(),i)for(r=function(t,e){g(t,s).then(function(t){n[e]=t,--i||a.resolve(n)},a.reject)},o=0;o<e;o++)o in t?r(t[o],o):--i;else a.resolve(n);return a.promise})}function d(t,e){for(var n,i=0;n=t[i++];)n(e)}function l(t,e){for(var n,i=e.length;t<i;)if(null!=(n=e[--i])&&"function"!=typeof n)throw new Error("arg "+i+" must be a function")}function x(){}function u(t){return t}return g.defer=v,g.resolve=c,g.reject=function(t){return g(t,f)},g.join=function(){return s(arguments,u)},g.all=a,g.map=s,g.reduce=function(t,o){var e=i.call(arguments,1);return g(t,function(t){var r;return r=t.length,e[0]=function(t,n,i){return g(t,function(e){return g(n,function(t){return o(e,t,i,r)})})},n.apply(t,e)})},g.any=function(t,e,n,i){return o(t,1,function(t){return e?e(t[0]):t[0]},n,i)},g.some=o,g.chain=function(t,e,n){var i=2<arguments.length;return g(t,function(t){return t=i?n:t,e.resolve(t),t},function(t){return e.reject(t),f(t)},e.progress)},g.isPromise=r,p.prototype={always:function(t,e){return this.then(t,t,e)},otherwise:function(t){return this.then(h,t)},yield:function(t){return this.then(function(){return t})},spread:function(e){return this.then(function(t){return a(t,function(t){return e.apply(h,t)})})}},i=[].slice,n=[].reduce||function(t){var e,n,i,r,o;if(o=0,r=(e=Object(this)).length>>>0,(n=arguments).length<=1)for(;;){if(o in e){i=e[o++];break}if(++o>=r)throw new TypeError}else i=n[1];for(;o<r;++o)o in e&&(i=t(i,e[o],o,e));return i},g}.call(e,n,e,t))||(t.exports=i)}(n(494))},function(t,e,n){var i,r;i=[n(0),n(8),n,e,t],void 0===(r=function(t,e,n,i,r){function o(t){this.$type="Geometry,http://www.Gs.com";var e=t||{};this.spatialReference=e.spatialReference,this.coordinateDimension=e.coordinateDimension}return o.prototype.getFlatInteriorPoint=function(){return[]},o.prototype.SRID=function(){return spatialReference},o.prototype.getCoordinateDimension=function(){return this.coordinateDimension},o.tolerate=1e-12,o.prototype.setSpatialReference=function(t){this.spatialReference=t},o.prototype.getSpatialReference=function(){return this.spatialReference},o.prototype.getGeometryType=function(){return e.Geometry},o.prototype.spatialReference=0,o.prototype.equals=function(t){return!1},o.prototype.normalize=function(){},o.prototype.offset=function(t){},o.prototype.copy=function(){return new o(this)},o.prototype.envelope=function(){},o.prototype.getBaryCenter=function(){},o.prototype.asWkt=function(t){},o.prototype.asGeoJson=function(t){},o.prototype.get
/*!
* author: sakitam-fdd <smilefdd@gmail.com>
* wind-layer v0.1.1
* build-time: 2020-1-14 18:17
* LICENSE: MIT
* (c) 2017-2020 https://sakitam-fdd.github.io/wind-layer
*/
t.exports=function(r){"use strict";var c=function(h){void 0===h&&(h={}),this.params=h;var f=this;f.canvas=h.canvas;var e=["rgb(36,104, 180)","rgb(60,157, 194)","rgb(128,205,193 )","rgb(151,218,168 )","rgb(198,231,181)","rgb(238,247,217)","rgb(255,238,159)","rgb(252,217,125)","rgb(255,182,100)","rgb(252,150,75)","rgb(250,112,52)","rgb(245,64,32)","rgb(237,45,28)","rgb(220,24,32)","rgb(180,0,35)"],n=function(t){t.projection||(t.projection="EPSG:4326"),f.MIN_VELOCITY_INTENSITY=t.minVelocity||0,f.MAX_VELOCITY_INTENSITY=t.maxVelocity||10,f.VELOCITY_SCALE=(t.velocityScale||.005)*(Math.pow(window.devicePixelRatio,1/3)||1),f.MAX_PARTICLE_AGE=t.particleAge||90,f.PARTICLE_LINE_WIDTH=t.lineWidth||1,f.PARTICLE_MULTIPLIER=t.particleMultiplier||1/300,f.PARTICLE_REDUCTION=Math.pow(window.devicePixelRatio,1/3)||1.6,f.FRAME_RATE=t.frameRate||16,f.COLOR_SCALE=t.colorScale||e,f.DEVICEPIXELRATIO=t.devicePixelRatio||1,f.map=t.map};n(h),window.FRAME_TIME=1e3/f.FRAME_RATE;var d,y,l,m,g,v,x,u,c,p,a=[NaN,NaN,null],o=f.params.data,r=function(t,e,n,i,r,o){var a=1-t,s=1-e,l=a*s,u=t*s,h=a*e,c=t*e,p=n[0]*l+i[0]*u+r[0]*h+o[0]*c,f=n[1]*l+i[1]*u+r[1]*h+o[1]*c;return[p,f,Math.sqrt(p*p+f*f)]},_=function(t){var e=null,n=null;return t.forEach(function(t){switch(t.header.parameterCategory+","+t.header.parameterNumber){case"1,2":case"2,2":e=t;break;case"1,3":case"2,3":n=t}}),function(t,e){var n=t.data,i=e.data;return{header:t.header,data:function(t){return[n[t],i[t]]},interpolate:r}}(e,n)},w=function(t,e){if(!y)return null;var n,i=P(t-m,360)/v,r=(g-e)/x,o=Math.floor(i),a=o+1,s=Math.floor(r),l=s+1;if(n=y[s]){var u=n[o],h=n[a];if(b(u)&&b(h)&&(n=y[l])){var c=n[o],p=n[a];if(b(c)&&b(p))return d.interpolate(i-o,r-s,u,h,c,p)}}return null},b=function(t){return null!=t},P=function(t,e){return t-e*Math.floor(t/e)},S=function(t,e,n,i,r,o,a,s){var l=a[0]*o,u=a[1]*o,h=C(t,e,n,i,r,s);return a[0]=h[0]*l+h[2]*u,a[1]=h[1]*l+h[3]*u,a},C=function(t,e,n,i,r,o){var a=2*Math.PI,s="EPSG:4326"===f.params.projection?5:Math.pow(10,-5.2),l=e<0?s:-s,u=n<0?s:-s,h=A(n,e+l,o),c=A(n+u,e,o),p=Math.cos(n/360*a);return[(h[0]-i)/l/p,(h[1]-r)/l/p,(c[0]-i)/u,(c[1]-r)/u]},M=function(i,r,t){function o(t,e){var n=i[Math.round(t)];return n&&n[Math.round(e)]||a}o.release=function(){i=[]},o.randomize=function(t){for(var e,n,i=0;e=Math.round(Math.floor(Math.random()*r.width)+r.x),n=Math.round(Math.floor(Math.random()*r.height)+r.y),null===o(e,n)[2]&&i++<30;);return t.x=e,t.y=n,t},t(r,o)},s=function(t){return t/180*Math.PI},T=function(t,e,n){var i=f.map.getCoordinateFromPixel([t,e]);return[i[0],i[1]]},A=function(t,e,n){var i=f.map.getPixelFromCoordinate([e,t]);return[i[0],i[1]]},E=function(i,s){var l=function(e,n){return f.COLOR_SCALE.indexFor=function(t){return Math.max(0,Math.min(f.COLOR_SCALE.length-1,Math.round((t-e)/(n-e)*(f.COLOR_SCALE.length-1))))},f.COLOR_SCALE}(f.MIN_VELOCITY_INTENSITY,f.MAX_VELOCITY_INTENSITY),u=l.map(function(){return[]}),t=Math.round(i.width*i.height*f.PARTICLE_MULTIPLIER);/android|blackberry|iemobile|ipad|iphone|ipod|opera mini|webos/i.test(navigator.userAgent)&&(t*=f.PARTICLE_REDUCTION);for(var r=[],e=0;e<t;e++)r.push(s.randomize({age:Math.floor(Math.random()*f.MAX_PARTICLE_AGE)+0}));var o=f.canvas.getContext("2d");o.lineWidth=f.PARTICLE_LINE_WIDTH,o.fillStyle="rgba(0, 0, 0, 0.97)",o.globalAlpha=.6;var a=Date.now();!function t(){p=requestAnimationFrame(t);var e=Date.now(),n=e-a;n>FRAME_TIME&&(a=e-n%FRAME_TIME,u.forEach(function(t){t.length=0}),r.forEach(function(t){t.age>f.MAX_PARTICLE_AGE&&(s.randomize(t).age=0);var e=t.x,n=t.y,i=s(e,n),r=i[2];if(null===r)t.age=f.MAX_PARTICLE_AGE;else{var o=e+i[0],a=n+i[1];null!==s(o,a)[2]?(t.xt=o,t.yt=a,u[l.indexFor(r)].push(t)):(t.x=o,t.y=a)}t.age+=1}),o.globalCompositeOperation="destination-in",o.fillRect(i.x,i.y,f.canvas.width,f.canvas.height),o.globalCompositeOperation="lighter",o.globalAlpha=.9,u.forEach(function(t,e){0<t.length&&(o.beginPath(),o.strokeStyle=l[e],t.forEach(function(t){Math.abs(t.xt-t.x)<100&&(o.moveTo(t.x*f.DEVICEPIXELRATIO,t.y*f.DEVICEPIXELRATIO),o.lineTo(t.xt*f.DEVICEPIXELRATIO,t.yt*f.DEVICEPIXELRATIO),t.x=t.xt,t.
/*!
* ECharts, a javascript interactive chart library.
*
* Copyright (c) 2015, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/echarts/blob/master/LICENSE.txt
*/
var p=n(112),f=n(78),d=n(28),y=n(113),m=n(10),g=n(13),v=n(54),x=n(25),_=n(3),w=n(67),b=n(1),P=n(22),S=n(15),C=n(21),M=b.each,T=["echarts","chart","component"],A=["transform","filter","statistic"];r.prototype.on=i("on"),r.prototype.off=i("off"),r.prototype.one=i("one"),b.mixin(r,C);var E=o.prototype;E.getDom=function(){return this._dom},E.getZr=function(){return this._zr},E.setOption=function(t,e,n){this._model&&!e||(this._model=new p(null,null,this._theme,new y(this._api))),this._model.setOption(t,D),I.prepareAndUpdate.call(this),n||this._zr.refreshImmediately()},E.setTheme=function(){console.log("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},E.getModel=function(){return this._model},E.getOption=function(){return this._model.getOption()},E.getWidth=function(){return this._zr.getWidth()},E.getHeight=function(){return this._zr.getHeight()},E.getRenderedCanvas=function(t){if(S.canvasSupported){(t=t||{}).pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor");var e=this._zr,n=e.storage.getDisplayList();return b.each(n,function(t){t.stopAnimation(!0)}),e.painter.getRenderedCanvas(t)}},E.getDataURL=function(t){var e=(t=t||{}).excludeComponents,n=this._model,i=[],r=this;M(e,function(t){n.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)})});var o=this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return M(i,function(t){t.group.ignore=!1}),o},E.getConnectedDataURL=function(t){if(S.canvasSupported){var e=this.group,n=Math.min,i=Math.max;if(V[e]){var r=1/0,o=1/0,a=-1/0,s=-1/0,l=[],u=t&&t.pixelRatio||1;for(var h in j){var c=j[h];if(c.group===e){var p=c.getRenderedCanvas(b.clone(t)),f=c.getDom().getBoundingClientRect();r=n(f.left,r),o=n(f.top,o),a=i(f.right,a),s=i(f.bottom,s),l.push({dom:p,left:f.left,top:f.top})}}var d=(a*=u)-(r*=u),y=(s*=u)-(o*=u),m=b.createCanvas();m.width=d,m.height=y;var g=w.init(m);return M(l,function(t){var e=new _.Image({style:{x:t.left*u-r,y:t.top*u-o,image:t.dom}});g.add(e)}),g.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}};var I={update:function(t){var e=this._model,n=this._api,i=this._coordSysMgr;if(e){e.restoreData(),i.create(this._model,this._api),function(e,n){M(A,function(t){M(z[t]||[],function(t){t(e,n)})})}.call(this,e,n),function(t){var r={};t.eachSeries(function(t){var e=t.get("stack"),n=t.getData();if(e&&"list"===n.type){var i=r[e];i&&(n.stackedOn=i),r[e]=n}})}.call(this,e),i.update(e,n),u.call(this,e,t),h.call(this,e,t),function(i,r){var o=this._api;M(this._componentsViews,function(t){var e=t.__model;t.render(e,i,o,r),c(e,t)},this),M(this._chartsViews,function(t){t.__alive=!1},this),i.eachSeries(function(t,e){var n=this._chartsMap[t.__viewId];n.__alive=!0,n.render(t,i,o,r),n.group.silent=!!t.get("silent"),c(t,n)},this),M(this._chartsViews,function(t){t.__alive||t.remove(i,o)},this)}.call(this,e,t);var r=e.get("backgroundColor")||"transparent",o=this._zr.painter;if(o.isSingleCanvas&&o.isSingleCanvas())this._zr.configLayer(0,{clearColor:r});else{if(!S.canvasSupported){var a=P.parse(r);r=P.stringify(a,"rgb"),0===a[3]&&(r="transparent")}r=r,this._dom.style.backgroundColor=r}}},updateView:function(t){var e=this._model;e&&(u.call(this,e,t),h.call(this,e,t),s.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(h.call(this,e,t),s.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(u.call(this,e,t),s.call(this,"updateLayout",e,t))},highlight:function(t){a.call(this,"highlight",t)},downplay:function(t){a.call(this,"downplay",t)},prepareAndUpdate:function(t){var e=this._model;l.call(this,"component",e),l.call(this,"chart",e),I.update.call(this,t)}};E.resize=function(){this._zr.resize();var t=this._model&&this._model.resetOption("media");I[t?"prepareAndUpdate":"update"].call(this),this._loadingFX&&this._loadingFX.resize()};var L=n(111);E.showLoading=function(t,e){b.isObject(t)&&(e=t,t="default"),this.hideLoading();var n=L(this._api,e),i=this._zr;this._loadingFX=n,i.add(n)},E.hideLoa
/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/
var r=n(58),u=n(15),h=n(127),c=n(130),p=n(131),f=!u.canvasSupported,d={canvas:n(129)},i={},o={version:"3.0.8",init:function(t,e){var n=new a(r(),t,e);return i[n.id]=n},dispose:function(t){if(t)t.dispose();else{for(var e in i)i[e].dispose();i={}}return o},getInstance:function(t){return i[t]},registerPainter:function(t,e){d[t]=e}},a=function(t,e,n){n=n||{},this.dom=e,this.id=t;var i=this,r=new c,o=n.renderer;if(f){if(!d.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");o="vml"}else o&&d[o]||(o="canvas");var a=new d[o](e,r,n);this.storage=r,this.painter=a,u.node||(this.handler=new h(a.getViewportRoot(),r,a)),this.animation=new p({stage:{update:function(){i._needsRefresh&&i.refreshImmediately()}}}),this.animation.start(),this._needsRefresh;var s=r.delFromMap,l=r.addToMap;r.delFromMap=function(t){var e=r.get(t);s.call(r,t),e&&e.removeSelfFromZr(i)},r.addToMap=function(t){l.call(r,t),t.addSelfToZr(i)}};a.prototype={constructor:a,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer(t,e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},resize:function(){this.painter.resize(),this.handler&&this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},toDataURL:function(t,e,n){return this.painter.toDataURL(t,e,n)},pathToImage:function(t,e,n){var i=r();return this.painter.pathToImage(i,t,e,n)},setDefaultCursorStyle:function(t){this.handler.setDefaultCursorStyle(t)},on:function(t,e,n){this.handler&&this.handler.on(t,e,n)},off:function(t,e){this.handler&&this.handler.off(t,e)},trigger:function(t,e){this.handler&&this.handler.trigger(t,e)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler&&this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,function(t){delete i[t]}(this.id)}},t.exports=o},function(t,e,n){var i=n(2),r=n(1);t.exports=function(n,t){r.each(t,function(o){o.update="updateView",i.registerAction(o,function(t,e){var r={};return e.eachComponent({mainType:"series",subType:n,query:t},function(n){n[o.method]&&n[o.method](t.name);var i=n.getData();i.each(function(t){var e=i.getName(t);r[e]=n.isSelected(e)||!1})}),{name:t.name,selected:r}})})}},function(t,e,n){var r=n(1);t.exports={updateSelectedMap:function(){var t=this.option;this._dataOptMap=r.reduce(t.data,function(t,e){return t[e.name]=e,t},{})},select:function(t){var e=this._dataOptMap,n=e[t],i=this.get("selectedMode");"single"===i&&r.each(e,function(t){t.selected=!1}),n&&(n.selected=!0)},unSelect:function(t){var e=this._dataOptMap[t];e&&(e.selected=!1)},toggleSelected:function(t){var e=this._dataOptMap[t];return null!=e?(this[e.selected?"unSelect":"select"](t),e.selected):void 0},isSelected:function(t){var e=this._dataOptMap[t];return e&&e.selected}}},function(t,e,n){function u(t){if(!t.target||!t.target.draggable){var e=t.offsetX,n=t.offsetY,i=this.rect;i&&i.contain(e,n)&&(this._x=e,this._y=n,this._dragging=!0)}}function h(t){if(this._dragging&&(s.stop(t.event),"pinch"!==t.gestureEvent)){if(l.isTaken("globalPan",this._zr))return;var e=t.offsetX,n=t.offsetY,i=e-this._x,r=n-this._y;this._x=e,this._y=n;var o=this.target;if(o){var a=o.position;a[0]+=i,a[1]+=r,o.dirty()}s.stop(t.event),this.trigger("pan",i,r)}}function c(t){this._dragging=!1}function p(t){s.stop(t.event);var e=0<t.wheelDelta?1.1:1/1.1;i.call(this,t,e,t.offsetX,t.offsetY)}function f(t){if(!l.isTaken("globalPan",this._zr)){s.stop(t.event);var e=1<t.pinchScale?1.1:1/1.1;i.call(this,t,e,t.pinchX,t.pinchY)}}function i(t,e,n,i){var r=this.rect;if(r&&r.contain(n,i)){var o=this.target,a=this.zoomLimit;if(o){var s=o.position,l=o.scale,u=this.zoom=this.zoom||1;