project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
152 KiB

3 years ago
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.zrender={})}(this,function(t){"use strict";function e(t){if(null==t||"object"!=typeof t)return t;var i=t,r=qr.call(t);if("[object Array]"===r){if(!k(t)){i=[];for(var n=0,a=t.length;n<a;n++)i[n]=e(t[n])}}else if(Vr[r]){if(!k(t)){var o=t.constructor;if(t.constructor.from)i=o.from(t);else{i=new o(t.length);for(var n=0,a=t.length;n<a;n++)i[n]=e(t[n])}}}else if(!Wr[r]&&!k(t)&&!y(t)){i={};for(var s in t)t.hasOwnProperty(s)&&(i[s]=e(t[s]))}return i}function i(t,r,n){if(!v(r)||!v(t))return n?e(r):t;for(var a in r)if(r.hasOwnProperty(a)){var o=t[a],s=r[a];!v(s)||!v(o)||d(s)||d(o)||y(s)||y(o)||_(s)||_(o)||k(s)||k(o)?!n&&a in t||(t[a]=e(r[a],!0)):i(o,s,n)}return t}function r(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function n(t,e,i){for(var r in e)e.hasOwnProperty(r)&&(i?null!=e[r]:null==t[r])&&(t[r]=e[r]);return t}function a(){return Kr||(Kr=$r().getContext("2d")),Kr}function o(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,r=t.length;i<r;i++)if(t[i]===e)return i}return-1}function s(t,e){function i(){}var r=t.prototype;i.prototype=e.prototype,t.prototype=new i;for(var n in r)t.prototype[n]=r[n];t.prototype.constructor=t,t.superClass=e}function h(t,e,i){n(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,i)}function l(t){if(t)return"string"!=typeof t&&"number"==typeof t.length}function u(t,e,i){if(t&&e)if(t.forEach&&t.forEach===jr)t.forEach(e,i);else if(t.length===+t.length)for(var r=0,n=t.length;r<n;r++)e.call(i,t[r],r,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(i,t[a],a,t)}function c(t,e,i){if(t&&e){if(t.map&&t.map===Gr)return t.map(e,i);for(var r=[],n=0,a=t.length;n<a;n++)r.push(e.call(i,t[n],n,t));return r}}function f(t,e){var i=Ur.call(arguments,2);return function(){return t.apply(e,i.concat(Ur.call(arguments)))}}function d(t){return"[object Array]"===qr.call(t)}function p(t){return"function"==typeof t}function g(t){return"[object String]"===qr.call(t)}function v(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function _(t){return!!Wr[qr.call(t)]}function y(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function m(t,e){return null!=t?t:e}function x(t,e,i){return null!=t?t:null!=e?e:i}function w(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function b(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function k(t){return t[Jr]}function T(t){function e(t,e){i?r.set(t,e):r.set(e,t)}var i=d(t);this.data={};var r=this;t instanceof T?t.each(e):t&&u(t,e)}function S(t,e){var i=new en(2);return null==t&&(t=0),null==e&&(e=0),i[0]=t,i[1]=e,i}function M(t){var e=new en(2);return e[0]=t[0],e[1]=t[1],e}function C(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t}function A(t,e,i){return t[0]=e[0]-i[0],t[1]=e[1]-i[1],t}function P(t){return Math.sqrt(L(t))}function L(t){return t[0]*t[0]+t[1]*t[1]}function z(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t}function D(t,e){var i=P(e);return 0===i?(t[0]=0,t[1]=0):(t[0]=e[0]/i,t[1]=e[1]/i),t}function B(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function I(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}function O(t,e,i){var r=e[0],n=e[1];return t[0]=i[0]*r+i[2]*n+i[4],t[1]=i[1]*r+i[3]*n+i[5],t}function R(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t}function E(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}function F(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this),this.on("globalout",this._dragEnd,this)}function H(t,e){return{target:t,topTarget:e&&e.topTarget}}function N(t,e){var i=t._$eventProcessor;return null!=e&&i&&i.normalizeQuery&&(e=i.normalizeQuery(e)),e}function W(t,e,i,r,n,a){var o=t._$handlers;if("function"==typeof i&&(n=r,r=i,i=null),!r||!e)return t;i=N(t,i),o[e]||(o[e]=[]);f