/*! * * @supermap/vue-iclient.(https://iclient.supermap.io) * Copyright© 2000 - 2020 SuperMap Software Co.Ltd * license: Apache-2.0 * version: v10.1.0 * */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("vue"), require("leaflet"), require("../static/libs/iclient-leaflet/iclient-leaflet.min.js"), require("vue-echarts"), require("ant-design-vue"), require("echarts-liquidfill"), require("video.js"), require("echarts")); else if(typeof define === 'function' && define.amd) define(["vue", "leaflet", "../static/libs/iclient-leaflet/iclient-leaflet.min.js", "vue-echarts", "ant-design-vue", "echarts-liquidfill", "video.js", "echarts"], factory); else if(typeof exports === 'object') exports["Components"] = factory(require("vue"), require("leaflet"), require("../static/libs/iclient-leaflet/iclient-leaflet.min.js"), require("vue-echarts"), require("ant-design-vue"), require("echarts-liquidfill"), require("video.js"), require("echarts")); else root["SuperMap"] = root["SuperMap"] || {}, root["SuperMap"]["Components"] = factory(root["Vue"], root["L"], root["SuperMap"], root["VueECharts"], root["antd"], root["echarts-liquidfill"], root["_videojs"], root["echarts"]); })(window, function(__WEBPACK_EXTERNAL_MODULE__5643__, __WEBPACK_EXTERNAL_MODULE__73e4__, __WEBPACK_EXTERNAL_MODULE__751d__, __WEBPACK_EXTERNAL_MODULE__8275__, __WEBPACK_EXTERNAL_MODULE_a587__, __WEBPACK_EXTERNAL_MODULE_acbb__, __WEBPACK_EXTERNAL_MODULE_be3f__, __WEBPACK_EXTERNAL_MODULE_f840__) { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = "/"; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = 0); /******/ }) /************************************************************************/ /******/ ({ /***/ 0: /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__("f8a6"); /***/ }), /***/ "022b": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/common/indicator/Indicator.vue?vue&type=template&id=39b17318& var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"sm-component-indicator",style:(_vm.getBackgroundStyle)},[_c('div',{class:("sm-component-indicator__content sm-component-indicator__content-" + _vm.mode)},[_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.showTitleUnit),expression:"showTitleUnit"}],staticClass:"sm-component-indicator__title",style:([_vm.unit_titleStyle, _vm.getTextColorStyle])},[_vm._v(_vm._s(_vm.titleData))]),_vm._v(" "),_c('div',[_c('span',{staticClass:"sm-component-indicator__num",style:(_vm.indicatorStyle)},[(_vm.isNumber(_vm.indicatorNum))?_c('countTo',{attrs:{"decimals":_vm.calDecimals,"startVal":_vm.startData,"endVal":_vm.numData,"duration":Number(_vm.duration) || 1000,"separator":_vm.separator,"numBackground":_vm.numBackground,"numSpacing":_vm.numSpacing,"separatorBackground":_vm.separatorBackground,"fontSize":parseFloat(_vm.fontSize) + _vm.fontUnit}}):_vm._e(),_vm._v("\n "+_vm._s(_vm.isNumber(_vm.indicatorNum) ? '' : _vm.indicatorNum)+"\n ")],1),_vm._v(" "),_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.showTitleUnit),expression:"showTitleUnit"}],staticClass:"sm-component-indicator__unit",style:([_vm.unit_titleStyle, _vm.getTextColorStyle])},[_vm._v(_vm._s(_vm.unitData))])])])])} var staticRenderFns = [] // CONCATENATED MODULE: ./src/common/indicator/Indicator.vue?vue&type=template&id=39b17318& /* concated harmony reexport render */__webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* concated harmony reexport staticRenderFns */__webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); /***/ }), /***/ "0318": /***/ (function(module, exports, __webpack_require__) { /* eslint-disable node/no-deprecated-api */ var buffer = __webpack_require__("3be6") var Buffer = buffer.Buffer // alternative to using Object.keys for old browsers function copyProps (src, dst) { for (var key in src) { dst[key] = src[key] } } if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) { module.exports = buffer } else { // Copy properties from require('buffer') copyProps(buffer, exports) exports.Buffer = SafeBuffer } function SafeBuffer (arg, encodingOrOffset, length) { return Buffer(arg, encodingOrOffset, length) } // Copy static methods from Buffer copyProps(Buffer, SafeBuffer) SafeBuffer.from = function (arg, encodingOrOffset, length) { if (typeof arg === 'number') { throw new TypeError('Argument must not be a number') } return Buffer(arg, encodingOrOffset, length) } SafeBuffer.alloc = function (size, fill, encoding) { if (typeof size !== 'number') { throw new TypeError('Argument must be a number') } var buf = Buffer(size) if (fill !== undefined) { if (typeof encoding === 'string') { buf.fill(fill, encoding) } else { buf.fill(fill) } } else { buf.fill(0) } return buf } SafeBuffer.allocUnsafe = function (size) { if (typeof size !== 'number') { throw new TypeError('Argument must be a number') } return Buffer(size) } SafeBuffer.allocUnsafeSlow = function (size) { if (typeof size !== 'number') { throw new TypeError('Argument must be a number') } return buffer.SlowBuffer(size) } /***/ }), /***/ "05d2": /***/ (function(module, exports) { module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhYAAAD+CAYAAABmz0wVAAAABGdBTUEAALGPC/xhBQAAFw1JREFUeAHt3U+rJOd1B+D+f1sj7OWQ1WgjSAhk4QS0NsGQD+CP4m2CMckqkI+iDxAwwWtB7EUgJKCNZhVmmUQzt/9V5ZzqrqvWydgJZ9fiqfGdqlPVp2/3I0P/eN+3epbvP3x4u/h/bO/evfvqYw/77M2bLz923jkCBAgQIEDg8QS+efv25x971a9fv/7iY+fruWUGi9Vy/fU4DovFcjUuF4txPl7czi3GxeLXv/ndL+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AECBAgQeDyB/KfPP/aqX79+/cXHztdz/wOOaWdXmTJgygAAAABJRU5ErkJggg==" /***/ }), /***/ "0640": /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__("bbe9").PassThrough /***/ }), /***/ "089f": /***/ (function(module, exports) { /** Used for built-in method references. */ var objectProto = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var nativeObjectToString = objectProto.toString; /** * Converts `value` to a string using `Object.prototype.toString`. * * @private * @param {*} value The value to convert. * @returns {string} Returns the converted string. */ function objectToString(value) { return nativeObjectToString.call(value); } module.exports = objectToString; /***/ }), /***/ "08d1": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _Indicator_vue_vue_type_template_id_39b17318___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("022b"); /* harmony import */ var _Indicator_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("13f5"); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Indicator_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Indicator_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("b429"); /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])( _Indicator_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"], _Indicator_vue_vue_type_template_id_39b17318___WEBPACK_IMPORTED_MODULE_0__[/* render */ "a"], _Indicator_vue_vue_type_template_id_39b17318___WEBPACK_IMPORTED_MODULE_0__[/* staticRenderFns */ "b"], false, null, null, null ) /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "0956": /***/ (function(module, exports, __webpack_require__) { "use strict"; // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. var R = typeof Reflect === 'object' ? Reflect : null var ReflectApply = R && typeof R.apply === 'function' ? R.apply : function ReflectApply(target, receiver, args) { return Function.prototype.apply.call(target, receiver, args); } var ReflectOwnKeys if (R && typeof R.ownKeys === 'function') { ReflectOwnKeys = R.ownKeys } else if (Object.getOwnPropertySymbols) { ReflectOwnKeys = function ReflectOwnKeys(target) { return Object.getOwnPropertyNames(target) .concat(Object.getOwnPropertySymbols(target)); }; } else { ReflectOwnKeys = function ReflectOwnKeys(target) { return Object.getOwnPropertyNames(target); }; } function ProcessEmitWarning(warning) { if (console && console.warn) console.warn(warning); } var NumberIsNaN = Number.isNaN || function NumberIsNaN(value) { return value !== value; } function EventEmitter() { EventEmitter.init.call(this); } module.exports = EventEmitter; // Backwards-compat with node 0.10.x EventEmitter.EventEmitter = EventEmitter; EventEmitter.prototype._events = undefined; EventEmitter.prototype._eventsCount = 0; EventEmitter.prototype._maxListeners = undefined; // By default EventEmitters will print a warning if more than 10 listeners are // added to it. This is a useful default which helps finding memory leaks. var defaultMaxListeners = 10; Object.defineProperty(EventEmitter, 'defaultMaxListeners', { enumerable: true, get: function() { return defaultMaxListeners; }, set: function(arg) { if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) { throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + '.'); } defaultMaxListeners = arg; } }); EventEmitter.init = function() { if (this._events === undefined || this._events === Object.getPrototypeOf(this)._events) { this._events = Object.create(null); this._eventsCount = 0; } this._maxListeners = this._maxListeners || undefined; }; // Obviously not all Emitters should be limited to 10. This function allows // that to be increased. Set to zero for unlimited. EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) { if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) { throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n + '.'); } this._maxListeners = n; return this; }; function $getMaxListeners(that) { if (that._maxListeners === undefined) return EventEmitter.defaultMaxListeners; return that._maxListeners; } EventEmitter.prototype.getMaxListeners = function getMaxListeners() { return $getMaxListeners(this); }; EventEmitter.prototype.emit = function emit(type) { var args = []; for (var i = 1; i < arguments.length; i++) args.push(arguments[i]); var doError = (type === 'error'); var events = this._events; if (events !== undefined) doError = (doError && events.error === undefined); else if (!doError) return false; // If there is no 'error' event listener then throw. if (doError) { var er; if (args.length > 0) er = args[0]; if (er instanceof Error) { // Note: The comments on the `throw` lines are intentional, they show // up in Node's output if this results in an unhandled exception. throw er; // Unhandled 'error' event } // At least give some kind of context to the user var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : '')); err.context = er; throw err; // Unhandled 'error' event } var handler = events[type]; if (handler === undefined) return false; if (typeof handler === 'function') { ReflectApply(handler, this, args); } else { var len = handler.length; var listeners = arrayClone(handler, len); for (var i = 0; i < len; ++i) ReflectApply(listeners[i], this, args); } return true; }; function _addListener(target, type, listener, prepend) { var m; var events; var existing; if (typeof listener !== 'function') { throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener); } events = target._events; if (events === undefined) { events = target._events = Object.create(null); target._eventsCount = 0; } else { // To avoid recursion in the case that type === "newListener"! Before // adding it to the listeners, first emit "newListener". if (events.newListener !== undefined) { target.emit('newListener', type, listener.listener ? listener.listener : listener); // Re-assign `events` because a newListener handler could have caused the // this._events to be assigned to a new object events = target._events; } existing = events[type]; } if (existing === undefined) { // Optimize the case of one listener. Don't need the extra array object. existing = events[type] = listener; ++target._eventsCount; } else { if (typeof existing === 'function') { // Adding the second element, need to change to array. existing = events[type] = prepend ? [listener, existing] : [existing, listener]; // If we've already got an array, just append. } else if (prepend) { existing.unshift(listener); } else { existing.push(listener); } // Check for listener leak m = $getMaxListeners(target); if (m > 0 && existing.length > m && !existing.warned) { existing.warned = true; // No error code for this since it is a Warning // eslint-disable-next-line no-restricted-syntax var w = new Error('Possible EventEmitter memory leak detected. ' + existing.length + ' ' + String(type) + ' listeners ' + 'added. Use emitter.setMaxListeners() to ' + 'increase limit'); w.name = 'MaxListenersExceededWarning'; w.emitter = target; w.type = type; w.count = existing.length; ProcessEmitWarning(w); } } return target; } EventEmitter.prototype.addListener = function addListener(type, listener) { return _addListener(this, type, listener, false); }; EventEmitter.prototype.on = EventEmitter.prototype.addListener; EventEmitter.prototype.prependListener = function prependListener(type, listener) { return _addListener(this, type, listener, true); }; function onceWrapper() { var args = []; for (var i = 0; i < arguments.length; i++) args.push(arguments[i]); if (!this.fired) { this.target.removeListener(this.type, this.wrapFn); this.fired = true; ReflectApply(this.listener, this.target, args); } } function _onceWrap(target, type, listener) { var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener }; var wrapped = onceWrapper.bind(state); wrapped.listener = listener; state.wrapFn = wrapped; return wrapped; } EventEmitter.prototype.once = function once(type, listener) { if (typeof listener !== 'function') { throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener); } this.on(type, _onceWrap(this, type, listener)); return this; }; EventEmitter.prototype.prependOnceListener = function prependOnceListener(type, listener) { if (typeof listener !== 'function') { throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener); } this.prependListener(type, _onceWrap(this, type, listener)); return this; }; // Emits a 'removeListener' event if and only if the listener was removed. EventEmitter.prototype.removeListener = function removeListener(type, listener) { var list, events, position, i, originalListener; if (typeof listener !== 'function') { throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener); } events = this._events; if (events === undefined) return this; list = events[type]; if (list === undefined) return this; if (list === listener || list.listener === listener) { if (--this._eventsCount === 0) this._events = Object.create(null); else { delete events[type]; if (events.removeListener) this.emit('removeListener', type, list.listener || listener); } } else if (typeof list !== 'function') { position = -1; for (i = list.length - 1; i >= 0; i--) { if (list[i] === listener || list[i].listener === listener) { originalListener = list[i].listener; position = i; break; } } if (position < 0) return this; if (position === 0) list.shift(); else { spliceOne(list, position); } if (list.length === 1) events[type] = list[0]; if (events.removeListener !== undefined) this.emit('removeListener', type, originalListener || listener); } return this; }; EventEmitter.prototype.off = EventEmitter.prototype.removeListener; EventEmitter.prototype.removeAllListeners = function removeAllListeners(type) { var listeners, events, i; events = this._events; if (events === undefined) return this; // not listening for removeListener, no need to emit if (events.removeListener === undefined) { if (arguments.length === 0) { this._events = Object.create(null); this._eventsCount = 0; } else if (events[type] !== undefined) { if (--this._eventsCount === 0) this._events = Object.create(null); else delete events[type]; } return this; } // emit removeListener for all listeners on all events if (arguments.length === 0) { var keys = Object.keys(events); var key; for (i = 0; i < keys.length; ++i) { key = keys[i]; if (key === 'removeListener') continue; this.removeAllListeners(key); } this.removeAllListeners('removeListener'); this._events = Object.create(null); this._eventsCount = 0; return this; } listeners = events[type]; if (typeof listeners === 'function') { this.removeListener(type, listeners); } else if (listeners !== undefined) { // LIFO order for (i = listeners.length - 1; i >= 0; i--) { this.removeListener(type, listeners[i]); } } return this; }; function _listeners(target, type, unwrap) { var events = target._events; if (events === undefined) return []; var evlistener = events[type]; if (evlistener === undefined) return []; if (typeof evlistener === 'function') return unwrap ? [evlistener.listener || evlistener] : [evlistener]; return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length); } EventEmitter.prototype.listeners = function listeners(type) { return _listeners(this, type, true); }; EventEmitter.prototype.rawListeners = function rawListeners(type) { return _listeners(this, type, false); }; EventEmitter.listenerCount = function(emitter, type) { if (typeof emitter.listenerCount === 'function') { return emitter.listenerCount(type); } else { return listenerCount.call(emitter, type); } }; EventEmitter.prototype.listenerCount = listenerCount; function listenerCount(type) { var events = this._events; if (events !== undefined) { var evlistener = events[type]; if (typeof evlistener === 'function') { return 1; } else if (evlistener !== undefined) { return evlistener.length; } } return 0; } EventEmitter.prototype.eventNames = function eventNames() { return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : []; }; function arrayClone(arr, n) { var copy = new Array(n); for (var i = 0; i < n; ++i) copy[i] = arr[i]; return copy; } function spliceOne(list, index) { for (; index + 1 < list.length; index++) list[index] = list[index + 1]; list.pop(); } function unwrapListeners(arr) { var ret = new Array(arr.length); for (var i = 0; i < ret.length; ++i) { ret[i] = arr[i].listener || arr[i]; } return ret; } /***/ }), /***/ "0b0f": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_exports__); /* harmony import */ var _TimeText_vue_vue_type_template_id_6da009bc___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("827d"); /* harmony import */ var _TimeText_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("d5f4"); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _TimeText_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _TimeText_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("b429"); /* normalize component */ var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])( _TimeText_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"], _TimeText_vue_vue_type_template_id_6da009bc___WEBPACK_IMPORTED_MODULE_0__[/* render */ "a"], _TimeText_vue_vue_type_template_id_6da009bc___WEBPACK_IMPORTED_MODULE_0__[/* staticRenderFns */ "b"], false, null, null, null ) /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "0b11": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/common/chart/ChartMixin.vue?vue&type=template&id=1f1efe10& var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('sm-card',{directives:[{name:"show",rawName:"v-show",value:(_vm.isShow),expression:"isShow"}],staticClass:"sm-component-chart",attrs:{"icon-class":_vm.iconClass,"icon-position":_vm.position,"header-name":_vm.headerName,"auto-rotate":_vm.autoRotate,"collapsed":_vm.collapsed}},[_c('v-chart',{ref:_vm.chartId,style:(_vm._chartStyle),attrs:{"id":_vm.chartId,"options":_vm._chartOptions,"initOptions":_vm.initOptions,"group":_vm.group,"manual-update":_vm.manualUpdate,"theme":_vm.theme || _vm.chartTheme},on:{"datazoom":_vm.dataZoomHandler}}),_vm._v(" "),_c('TablePopup',_vm._b({directives:[{name:"show",rawName:"v-show",value:(false),expression:"false"}],ref:"chartTablePopup",attrs:{"text-color":_vm.textColor,"background":_vm.background}},'TablePopup',_vm.tablePopupProps,false))],1)} var staticRenderFns = [] // CONCATENATED MODULE: ./src/common/chart/ChartMixin.vue?vue&type=template&id=1f1efe10& /* concated harmony reexport render */__webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* concated harmony reexport staticRenderFns */__webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); /***/ }), /***/ "0e27": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _default = { props: { content: { type: String, default: '', custom: true } }, data: function data() { return { isMap: false }; }, mounted: function mounted() { this.popperOptions = {}; }, render: function render(h) { if (this.$slots.default) { // 如果是其他bindpopup的layer,不要绑定style var style = this.isMap ? { style: { display: 'none' } } : {}; return h('div', style, this.$slots.default); } return null; } }; exports.default = _default; /***/ }), /***/ "0f9e": /***/ (function(module, exports, __webpack_require__) { "use strict"; var _interopRequireDefault = __webpack_require__("8e6d"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _typeof2 = _interopRequireDefault(__webpack_require__("7ae5")); var _toConsumableArray2 = _interopRequireDefault(__webpack_require__("4066")); var _defineProperty2 = _interopRequireDefault(__webpack_require__("279f")); __webpack_require__("f840"); var _vueEcharts = _interopRequireDefault(__webpack_require__("8275")); var _lodash = _interopRequireDefault(__webpack_require__("f344")); var _lodash2 = _interopRequireDefault(__webpack_require__("6e63")); var _lodash3 = _interopRequireDefault(__webpack_require__("5f9f")); var _debounce = _interopRequireDefault(__webpack_require__("331f")); var _lodash4 = _interopRequireDefault(__webpack_require__("25a2")); var _card = _interopRequireDefault(__webpack_require__("333c")); var _theme = _interopRequireDefault(__webpack_require__("9259")); var _timer = _interopRequireDefault(__webpack_require__("8156")); var _chart = __webpack_require__("33aa"); var _EchartsDataService = _interopRequireDefault(__webpack_require__("50c6")); var _TablePopup = _interopRequireDefault(__webpack_require__("b397")); var _util = __webpack_require__("1448"); var _resizeDetector = __webpack_require__("e0f2"); function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } // 枚举事件类型 var EVENTS = ['legendselectchanged', 'legendselected', 'legendunselected', 'legendscroll', 'datazoom', 'datarangeselected', 'timelinechanged', 'timelineplaychanged', 'restore', 'dataviewchanged', 'magictypechanged', 'geoselectchanged', 'geoselected', 'geounselected', 'pieselectchanged', 'pieselected', 'pieunselected', 'mapselectchanged', 'mapselected', 'mapunselected', 'axisareaselected', 'focusnodeadjacency', 'unfocusnodeadjacency', 'brush', 'brushselected', 'rendered', 'finished', 'click', 'dblclick', 'mouseover', 'mouseout', 'mousemove', 'mousedown', 'mouseup', 'globalout', 'contextmenu']; var _default2 = { components: { 'v-chart': _vueEcharts.default, TablePopup: _TablePopup.default }, mixins: [_theme.default, _card.default, _timer.default], props: { iconClass: { type: String, default: 'sm-components-icons-attribute' }, dataset: { type: Object, default: function _default() { return null; } }, datasetOptions: { type: Array, default: function _default() { return null; } }, colorGroup: { type: Array }, options: { type: Object, default: function _default() { return {}; } }, autoresize: { type: Boolean, default: true }, theme: { type: [Object, String] }, initOptions: { type: Object }, group: { type: String }, manualUpdate: { type: Boolean, default: false }, autoPlay: { type: Boolean, default: false }, associatedMap: { type: Boolean, default: false }, highlightOptions: { type: Array, default: function _default() { return []; } }, highlightColor: { type: String, default: '#01ffff' } }, data: function data() { return { chartId: (0, _lodash.default)("".concat(this.$options.name.toLowerCase(), "-")), chartTheme: {}, // 图表的主题 echartOptions: {}, // 最后生成的echart数据 datasetChange: false, // dataset是否改变 dataSeriesCache: {}, tablePopupProps: {}, startSpin: null, customSeries: [], dataZoomHandler: function dataZoomHandler() {} }; }, computed: { width: function width() { return this.smChart && this.smChart.width; }, height: function height() { return this.smChart && this.smChart.height; }, computedOptions: function computedOptions() { return this.smChart && this.smChart.computedOptions; }, _chartStyle: function _chartStyle() { return { width: '100%', height: this.headerName ? 'calc(100% - 30px)' : '100%' }; }, parseOptions: function parseOptions() { var _this2 = this; if (!this.options.series) { return this.options; } if (this.options.series.find(function (item) { return item.type === '2.5Bar'; })) { return _objectSpread({}, this.options, { series: [] }); } if (this.options.series[0] && this.options.series[0].customType === 'customRingsSeries') { return _objectSpread({}, this.options, { series: [].concat((0, _toConsumableArray2.default)(this.options.series), (0, _toConsumableArray2.default)(this.customSeries)) }); } var series = this.options.series.map(function (serie, index) { if (serie.label) { var cloneSerie = (0, _lodash4.default)(serie); cloneSerie.label.normal = _this2._controlLabel(cloneSerie.label.normal, cloneSerie.maxLabels); return cloneSerie; } return serie; }); return _objectSpread({}, this.options, { series: series }); }, _chartOptions: function _chartOptions() { return this._isRequestData && this.echartOptions || this.parseOptions; }, // 是否传入dataset和datasetOptions _isRequestData: function _isRequestData() { return this.dataset && Object.keys(this.dataset).length > 0 && (this.dataset.url || this.dataset.geoJSON) && this.datasetOptions && this.datasetOptions.length > 0; }, xBar: function xBar() { return this.options && this.options.yAxis && this.options.yAxis.type === 'category'; }, popupBackground: function popupBackground() { return this.backgroundData ? (0, _util.getColorWithOpacity)(this.backgroundData, 0.5) : this.backgroundData; }, colorNumber: function colorNumber() { var length = this.datasetOptions && this.datasetOptions.length || this.echartOptions.series && this.echartOptions.series.length; var colorNumber = this.colorGroupsData.length; if (length && length > colorNumber) { colorNumber = length; } return colorNumber; } }, watch: { theme: function theme() { this.chartTheme = null; }, colorGroupsData: function colorGroupsData(newVal, oldVal) { if (!(0, _lodash3.default)(newVal, oldVal)) { this._setChartTheme(); } }, textColorsData: function textColorsData(newVal, oldVal) { if (!(0, _lodash3.default)(newVal, oldVal)) { this._setChartTheme(); } }, backgroundData: function backgroundData(newVal, oldVal) { if (!(0, _lodash3.default)(newVal, oldVal)) { this._setChartTheme(); this.changePopupArrowStyle(); } }, dataset: { handler: function handler(newVal, oldVal) { this._isRequestData && this._setEchartOptions(this.dataset, this.datasetOptions, this.options); this.datasetChange = true; }, deep: true }, datasetOptions: { handler: function handler(newVal, oldVal) { if (!(0, _lodash3.default)(newVal, oldVal)) { this._setChartTheme(); this.registerShape(); } !this.echartsDataService && this._isRequestData && this._setEchartOptions(this.dataset, this.datasetOptions, this.options); this.echartsDataService && this.echartsDataService.setDatasetOptions(this.datasetOptions); this.echartsDataService && this.dataSeriesCache && this._changeChartData(this.echartsDataService, this.datasetOptions, this.options); } }, options: { handler: function handler(newVal, oldVal) { if (this.datasetChange && !this.dataSeriesCache) { return; } if (this.dataSeriesCache && JSON.stringify(this.dataSeriesCache) !== '{}') { this.echartOptions = this._optionsHandler(this.options, this.dataSeriesCache); } else { this.echartOptions = Object.assign({}, this.options); } }, deep: true }, autoresize: function autoresize() { if (this.autoresize) { (0, _resizeDetector.addListener)(this.$el, this.__resizeHandler); } else { (0, _resizeDetector.removeListener)(this.$el, this.__resizeHandler); } }, // 以下为echart的配置参数 width: function width() { return this.smChart && this.smChart.width; }, height: function height() { return this.smChart && this.smChart.height; }, computedOptions: function computedOptions() { return this.smChart && this.smChart.computedOptions; }, autoPlay: function autoPlay() { this._handlePieAutoPlay(); }, associatedMap: function associatedMap() { if (!this.associatedMap) { this.clearPopup && this.clearPopup(); } }, highlightOptions: { handler: function handler(newVal, oldVal) { this.setItemStyleColor(); }, deep: true } }, created: function created() { this._setChartTheme(); // // 切换主题 // this.$on('theme-style-changed', () => { // this._setChartTheme(); // }); this.registerShape(); }, mounted: function mounted() { // 设置echarts实例 this.smChart = this.$refs[this.chartId]; // 派发echart所有事件 var smChart = this._getEchart(); var self = this; EVENTS.forEach(function (event) { smChart.$on(event, function (params) { if (event === 'click') { self.handleChartClick(params); } self.$emit(event, params); }); }); this._initAutoResize(); this._initDataZoom(); if (this.options.series && this.options.series[0] && this.options.series[0].customType === 'customRingsSeries') { this.startEffect(); } !this._isRequestData && this.autoPlay && this._handlePieAutoPlay(); // 请求数据, 合并echartopiton, 设置echartOptions this._isRequestData && this._setEchartOptions(this.dataset, this.datasetOptions, this.options); }, updated: function updated() { this._handlePieAutoPlay(); // 更新自动播放 }, beforeDestroy: function beforeDestroy() { clearInterval(this.pieAutoPlay); // clear 自动播放 clearInterval(this.startAngle); if (this.autoresize) { (0, _resizeDetector.removeListener)(this.$el, this.__resizeHandler); } }, methods: { _initAutoResize: function _initAutoResize() { var _this3 = this; this.__resizeHandler = (0, _debounce.default)(function () { _this3.resize(); }, 100, { leading: true }); if (this.autoresize) { // @ts-ignore (0, _resizeDetector.addListener)(this.$el, this.__resizeHandler); } }, _initDataZoom: function _initDataZoom() { var _this4 = this; this.dataZoomHandler = (0, _debounce.default)(function () { _this4._dataZoomChanged(); }, 500, { leading: true }); }, getStringColor: function getStringColor(color) { if (color instanceof Object) { return ((color.colorStops || [])[0] || {}).color; } return color; }, setGradientColor: function setGradientColor(color, nextColor) { if (typeof color === 'string') { return new this.$options.graphic.LinearGradient(0, 0, 0, 1, [{ offset: 0, color: color }, { offset: 1, color: nextColor || color }]); } return color; }, _initAxisLabel: function _initAxisLabel(axisLabel, data, visualMap, series) { if (!this.xBar) { return; } var sortSeriesIndex = this.datasetOptions.findIndex(function (item) { return item.sort !== 'unsort' && item.rankLabel; }); if (sortSeriesIndex > -1 && axisLabel && data) { for (var index = 0, len = data.length, rankIndex = len - 1; index < len; index++, rankIndex--) { data[index] = rankIndex < 10 ? "0".concat(rankIndex).concat(data[index]) : "".concat(rankIndex).concat(data[index]); } var firstVisualMap = visualMap && visualMap.find(function (item) { return item.seriesIndex === sortSeriesIndex; }); axisLabel.rich = axisLabel.rich || {}; axisLabel.rich.default = { backgroundColor: this.getStringColor(this.colorGroup[sortSeriesIndex]), width: 20, height: 20, align: 'center', borderRadius: 2 }; firstVisualMap && firstVisualMap.pieces.map(function (item) { axisLabel.rich["".concat(parseInt(item.min), "_").concat(parseInt(item.max))] = { backgroundColor: item.color, width: 20, height: 20, align: 'center', borderRadius: 2 }; }); var serieData = series && series[sortSeriesIndex].data; axisLabel.formatter = function (label, index) { var orderNum = parseInt(label.slice(0, 2)) + 1; var leftLabel = label.slice(2); var labelValue = serieData && +serieData[index]; if (firstVisualMap) { var matchItem = firstVisualMap.pieces.find(function (item) { return labelValue >= item.min && labelValue <= item.max; }); if (matchItem) { return ["{".concat(parseInt(matchItem.min), "_").concat(parseInt(matchItem.max), "|").concat(orderNum, "} ").concat(leftLabel)].join('\n'); } } return ["{default|".concat(orderNum, "} ").concat(leftLabel)].join('\n'); }; } }, setItemStyleColor: function setItemStyleColor() { var _this5 = this; var isSet = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true; var series = arguments.length > 1 ? arguments[1] : undefined; var highlightOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.highlightOptions; var color = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : this.highlightColor; series = series || (0, _lodash4.default)(this.echartOptions && this.echartOptions.series) || []; series.forEach(function (serie, seriesIndex) { var dataIndexs = highlightOptions.map(function (item) { if (item.seriesIndex.includes(seriesIndex)) { return item.dataIndex; } }); var colors = highlightOptions.map(function (item) { if (item.seriesIndex.includes(seriesIndex)) { return item.color || color; } }); var serieColor = _this5.options.series && _this5.options.series[seriesIndex] && _this5.options.series[seriesIndex].itemStyle && _this5.options.series[seriesIndex].itemStyle.color; serie.itemStyle = serie.itemStyle || { color: '' }; serie.itemStyle.color = function (_ref) { var dataIndex = _ref.dataIndex; var index = dataIndexs.indexOf(dataIndex); if (index > -1) { return colors[index]; } else if (serie.type === 'pie') { var colorGroup = _this5._handlerColorGroup(serie.data.length); return colorGroup[dataIndex]; } else { return serieColor; } }; }); isSet && this.$set(this.echartOptions, 'series', series); }, _handlePieAutoPlay: function _handlePieAutoPlay() { var seriesType = this._chartOptions.series && this._chartOptions.series[0] && this._chartOptions.series[0].type; var echartsNode = this.smChart.chart; if (this._chartOptions.legend && this._chartOptions.legend.data && this._chartOptions.legend.data.length && echartsNode && seriesType === 'pie') { this.clearPieAutoPlay(echartsNode); if (this.autoPlay) { this.setPieAutoPlay(echartsNode); } } }, setPieAutoPlay: function setPieAutoPlay(echartsNode) { var _this6 = this; var i = -1; this.pieAutoPlay = setInterval(function () { echartsNode.dispatchAction({ type: 'downplay', seriesIndex: 0, dataIndex: i }); i++; if (i >= _this6._chartOptions.legend.data.length) { i = 0; } echartsNode.dispatchAction({ type: 'highlight', seriesIndex: 0, dataIndex: i }); }, 2000); }, clearPieAutoPlay: function clearPieAutoPlay(echartsNode) { clearInterval(this.pieAutoPlay); for (var i = 0; i < this._chartOptions.legend.data.length; i++) { echartsNode.dispatchAction({ type: 'downplay', seriesIndex: 0, dataIndex: i }); } }, timing: function timing() { var _this7 = this; this.echartsDataService && this.echartsDataService.getDataOption(this.dataset, this.xBar).then(function (options) { _this7.hideLoading(); // 缓存dataSeriesCache,请求后格式化成echart的数据 _this7.dataSeriesCache = Object.assign({}, options); _this7.datasetChange = false; // 设置echartOptions _this7.echartOptions = _this7._optionsHandler(_this7.options, options); }); }, // 请求数据,设置echartOptions _setEchartOptions: function _setEchartOptions(dataset, datasetOptions, echartOptions) { var _this8 = this; this.echartsDataService = null; this.dataSeriesCache = null; if (this.dataset.type !== 'geoJSON') { this.showLoading('default', { text: this.$t('info.loading'), color: this.colorGroupsData[0], textColor: this.textColorsData, maskColor: 'rgba(0,0,0,0.8)', zlevel: 0 }); } this.echartsDataService = new _EchartsDataService.default(dataset, datasetOptions); this.echartsDataService.getDataOption(dataset, this.xBar).then(function (options) { _this8.hideLoading(); // 缓存dataSeriesCache,请求后格式化成echart的数据 _this8.dataSeriesCache = Object.assign({}, options); _this8.datasetChange = false; // 设置echartOptions _this8.echartOptions = _this8._optionsHandler(echartOptions, options); }); }, _optionsHandler: function _optionsHandler(options, dataOptions, dataZoomChanged) { var _this9 = this; dataOptions = dataOptions && (0, _lodash4.default)(dataOptions); // clone 避免引起重复刷新 options = options && (0, _lodash4.default)(options); // clone 避免引起重复刷新 var extraSeries = []; if (options && options.legend && !options.legend.type) { options.legend.type = 'scroll'; } var yAxis = options.yAxis; var xAxis = options.xAxis; if (xAxis && dataOptions.xAxis) { var axis = xAxis; var axisData = dataOptions.xAxis[0]; var type = 'xAxis'; if (yAxis && yAxis.type === 'category') { // 处理条形图 type = 'yAxis'; axis = yAxis; dataOptions.yAxis = dataOptions.xAxis; delete dataOptions.xAxis; this._initAxisLabel(yAxis.axisLabel, dataOptions.yAxis[0].data, options.visualMap, dataOptions.series); } if (dataOptions.series.length === 0) { axis = [{}]; } else if (!Array.isArray(axis)) { if (axisData.data && axisData.data.length) { axis.data = []; } axis = [Object.assign({}, axisData, axis)]; } options[type] = axis; } if (options && options.series && dataOptions.series) { if (dataOptions.series.length === 0) { options.series = []; } else { options.series = options.series.map(function (element, index) { return Object.assign({}, element, dataOptions.series[index] || {}); }); var dataZoom = options.dataZoom && options.dataZoom[0]; options.series = options.series.map(function (serie, index) { var label = serie.label && serie.label.normal; if (serie.label) { serie.label.normal = _this9._controlLabel(label, serie.maxLabels); } if (label && label.show && label.smart) { label.position = label.position || 'top'; var data = serie.data; var startDataIndex = 0; var endDataIndex = data.length - 1; if (dataZoom && dataZoom.show !== false) { if (dataZoom.start > dataZoom.end) { var oldStart = dataZoom.start; dataZoom.start = dataZoom.end; dataZoom.end = oldStart; } if (dataZoomChanged) { var _ref2 = _this9.smChart.chart.getOption().dataZoom[0] || {}, startValue = _ref2.startValue, endValue = _ref2.endValue; startDataIndex = startValue; endDataIndex = endValue; options.dataZoom = options.dataZoom.map(function (val) { if (startValue >= 0 && endValue >= 0) { val.startValue = startValue; val.endValue = endValue; delete val.start; delete val.end; return val; } return val; }); } else { startDataIndex = Math.floor(dataZoom.start / 100 * data.length); endDataIndex = Math.ceil(dataZoom.end / 100 * data.length); } data = serie.data.slice(startDataIndex, endDataIndex + 1); } label.formatter = function (_ref3) { var dataIndex = _ref3.dataIndex, value = _ref3.value; var result = ''; if (dataIndex === startDataIndex || dataIndex === endDataIndex || Math.max.apply(null, data) + '' === value + '') { result = value; } return result; }; } else if (serie && serie.type !== 'pie' && serie.type !== 'radar') { var colorGroup = (0, _chart.getMultiColorGroup)(_this9.colorGroupsData, _this9.colorNumber); if (serie.type === '2.5Bar') { var shape = serie.shape; var defaultColor = serie.itemStyle && serie.itemStyle.color; if (['square', 'rectangle'].includes(shape)) { var cubeType = shape; serie.type = 'custom'; dataOptions.series[index] && (dataOptions.series[index].type = 'custom'); var _this = _this9; serie.renderItem = function (params, api) { var location = api.coord([api.value(0), api.value(1)]); var fillColor = defaultColor || colorGroup[params.seriesIndex]; if (_this.highlightOptions) { var matchData = _this.highlightOptions.find(function (item) { return item.seriesIndex.includes(params.seriesIndex) && item.dataIndex === params.dataIndex; }); if (matchData && (matchData.color || _this.highlightColor)) { fillColor = matchData.color || _this.highlightColor; } } var leftColor, rightColor, topColor; if ((0, _typeof2.default)(fillColor) === 'object') { var copyLeftColor = (0, _lodash4.default)(fillColor); var copyRightColor = (0, _lodash4.default)(fillColor); var copyTopColor = (0, _lodash4.default)(fillColor); copyLeftColor.colorStops[0].color = (0, _util.getColorWithOpacity)(copyLeftColor.colorStops[0].color, 0.4); copyLeftColor.colorStops[1].color = (0, _util.getColorWithOpacity)(copyLeftColor.colorStops[1].color, 0.4); copyRightColor.colorStops[0].color = (0, _util.getColorWithOpacity)(copyRightColor.colorStops[0].color, 0.7); copyRightColor.colorStops[1].color = (0, _util.getColorWithOpacity)(copyRightColor.colorStops[1].color, 0.7); copyTopColor.colorStops[0].color = (0, _util.getColorWithOpacity)(copyTopColor.colorStops[0].color, 0.85); copyTopColor.colorStops[1].color = (0, _util.getColorWithOpacity)(copyTopColor.colorStops[1].color, 0.85); leftColor = copyLeftColor; rightColor = copyRightColor; topColor = copyTopColor; } else { leftColor = (0, _util.getColorWithOpacity)(fillColor, 0.4); rightColor = (0, _util.getColorWithOpacity)(fillColor, 0.7); topColor = (0, _util.getColorWithOpacity)(fillColor, 0.85); } return { type: 'group', children: [{ type: "Cube".concat(cubeType, "Left"), shape: { api: api, xValue: api.value(0), yValue: api.value(1), x: location[0], y: location[1], xAxisPoint: api.coord([api.value(0), 0]) }, style: { fill: leftColor } }, { type: "Cube".concat(cubeType, "Right"), shape: { api: api, xValue: api.value(0), yValue: api.value(1), x: location[0], y: location[1], xAxisPoint: api.coord([api.value(0), 0]) }, style: { fill: rightColor } }, { type: "Cube".concat(cubeType, "Top"), shape: { api: api, xValue: api.value(0), yValue: api.value(1), x: location[0], y: location[1], xAxisPoint: api.coord([api.value(0), 0]) }, style: { fill: topColor } }] }; }; } else if (shape === 'cylinder') { var baseWidth = '100%'; var nextSerieDatas = dataOptions.series[index + 1] && dataOptions.series[index + 1].data; serie.type = 'bar'; serie.barGap = '-100%'; options.tooltip.trigger === 'axis' && (options.tooltip.trigger = 'item'); dataOptions.series[index] && (dataOptions.series[index].type = 'bar'); var cirCleColor = defaultColor || colorGroup[index]; if (typeof cirCleColor === 'string') { cirCleColor = _this9.setGradientColor(cirCleColor, '#fff'); } extraSeries.push( // 头部的圆片 { name: '', type: 'pictorialBar', symbolOffset: [0, -8], symbolPosition: 'end', z: 12, itemStyle: { normal: { color: cirCleColor } }, data: dataOptions.series[index].data.map(function (item, dataIndex) { return { value: item, symbolSize: !nextSerieDatas || nextSerieDatas[dataIndex] && +item >= +nextSerieDatas[dataIndex] ? [baseWidth, 15] : [0, 15] }; }) }, { // 底部的圆片 name: '', type: 'pictorialBar', symbolSize: [baseWidth, 10], symbolOffset: [0, 5], z: 12, itemStyle: { normal: { color: cirCleColor } }, data: dataOptions.series[index].data }); } delete serie.shape; } } return serie; }); // 玫瑰图多个选中 if (options.series[0].type === 'pie' && options.series[0].roseType) { options.series = options.series.map(function (serie) { if (!serie.roseType) { serie.roseType = options.series[0].roseType; } return serie; }); } // pie的图例需要一个扇形是一个图例 if (options.legend && options.series.length > 0 && options.series[0].type === 'pie') { options.legend.data = []; options.series.forEach(function (element) { if (element.data) { var _options$legend$data; (_options$legend$data = options.legend.data).push.apply(_options$legend$data, (0, _toConsumableArray2.default)(element.data.map(function (item) { return item.name; }))); } }); } } } if (options && options.radar && dataOptions.radar) { options.radar.indicator = Object.assign({}, dataOptions.radar.indicator || {}); } var series = dataOptions.series; if (series && series.length && series[0].type === 'pie') { this.setItemStyleColor(false, series); } if (this.highlightOptions && this.highlightOptions.length > 0) { this.setItemStyleColor(true, series); } dataOptions.series = this._createRingShineSeries(series, options.series); var mergeOptions = (0, _lodash2.default)(options, dataOptions); if (extraSeries.length > 0) { var _mergeOptions$series; (_mergeOptions$series = mergeOptions.series).push.apply(_mergeOptions$series, extraSeries); } return mergeOptions; }, _createRingShineSeries: function _createRingShineSeries(series, optionsSeries) { var _this10 = this; if (optionsSeries) { this.datasetOptions.forEach(function (datasetOption, index) { var _ref4 = optionsSeries[index] || {}, type = _ref4.type, outerGap = _ref4.outerGap, isShine = _ref4.isShine; if (type === 'pie' && outerGap >= 0) { var data = series[index].data.map(function (val) { return val.value; }); outerGap = outerGap || Math.min.apply(null, data) / 5; series[index].data = _this10._createRingShineDataOption(series[index].data, outerGap, isShine); delete optionsSeries[index].outerGap; delete optionsSeries[index].isShine; } }); } return series; }, _createRingShineDataOption: function _createRingShineDataOption(data, outerGap, isShine) { if (!data) { return; } var colors = this._handlerColorGroup(data.length); var gapItem = { value: outerGap, name: '', itemStyle: { normal: { label: { show: false }, labelLine: { show: false }, color: 'rgba(0, 0, 0, 0)', borderColor: 'rgba(0, 0, 0, 0)', borderWidth: 0 } } }; var result = []; for (var i = 0; i < data.length; i++) { var dataItem = { value: data[i].value, name: data[i].name }; if (isShine) { dataItem.itemStyle = { normal: { borderWidth: 5, shadowBlur: 10, color: colors[i], borderColor: colors[i], shadowColor: colors[i] } }; } result.push(dataItem); if (data.length > 1) { result.push(gapItem); } } return result; }, _handlerColorGroup: function _handlerColorGroup(serielDataLength) { if ((0, _typeof2.default)(this.colorGroupsData[0]) === 'object') { return (0, _chart.handleMultiGradient)(this.colorGroupsData, serielDataLength); } else { return SuperMap.ColorsPickerUtil.getGradientColors(this.colorGroupsData, serielDataLength, 'RANGE'); } }, // 控制label显示条数 _controlLabel: function _controlLabel(normalLabel, maxLabels) { if (normalLabel && normalLabel.show && maxLabels) { var endNormalLabel = (0, _lodash4.default)(normalLabel); var formatMode; if (endNormalLabel.formatter && typeof endNormalLabel.formatter === 'string') { formatMode = endNormalLabel.formatter; } endNormalLabel.formatter = function (_ref5) { var dataIndex = _ref5.dataIndex, value = _ref5.value, name = _ref5.name, percent = _ref5.percent; var FORMATTER_MAP = { '{b}: {c}': "".concat(name, ": ").concat(value), '{b}': "".concat(name), '{c}': "".concat(value), '{d}%': "".concat(percent, "%") }; var result = ''; if (dataIndex < maxLabels) { result = FORMATTER_MAP[formatMode || '{c}']; } return result; }; return endNormalLabel; } return normalLabel; }, // 当datasetUrl不变,datasetOptions改变时 _changeChartData: function _changeChartData(echartsDataService, datasetOptions, echartOptions) { var options; options = echartsDataService.formatChartData(datasetOptions, this.xBar); // 缓存dataSeriesCache,格式化成echart的数据 this.dataSeriesCache = Object.assign({}, options); // 设置echartOptions this.echartOptions = this._optionsHandler(echartOptions, options); }, _setChartTheme: function _setChartTheme() { if (!this.theme) { var colorNumber = this.colorNumber; this.chartTheme = (0, _chart.chartThemeUtil)(this.backgroundData, this.textColorsData, this.colorGroupsData, colorNumber); } }, // 获取echart实例 _getEchart: function _getEchart() { return this.smChart; }, // 以下全是同名调用echart的方法 /** * 提供了一个更贴切的名称来描述 setOption 方法的实际行为。 * @param {Object} options - 图表的配置项和数据 * @param {Boolean} [notMerge = false] - 可选,是否不跟之前设置的 option 进行合并,默认为 false,即合并 * @param {Boolean} [lazyUpdate = false] - 可选,阻止调用 setOption 时抛出事件,默认为 false,即抛出事件 */ mergeOptions: function mergeOptions(options, notMerge, lazyUpdate) { this._delegateMethod('mergeOptions', options, notMerge, lazyUpdate); }, /** * 此接口用于,在大数据量(百万以上)的渲染场景,分片加载数据和增量渲染。 * @param {Object} params - 数据配置 */ appendData: function appendData(params) { this._delegateMethod('appendData', params); }, /** * 此接口用于,改变图表尺寸,在容器大小发生改变时需要手动调用。 * @param {Object} [options] - options可缺省。有下面几个可选项:width, height, silent */ resize: function resize(options) { this._delegateMethod('resize', options); }, /** * 此接口用于,触发图表行为。 * @param {Object} payload - 参数可以通过batch属性同时触发多个行为。 */ dispatchAction: function dispatchAction(payload) { this._delegateMethod('dispatchAction', payload); }, /** * 此接口用于,转换坐标系上的点到像素坐标值。 * @param {Object} finder - 用于指示『在哪个坐标系或者系列上判断』。 * @param {Array|string} value - 要被转换的值。 */ convertToPixel: function convertToPixel(finder, value) { return this._delegateMethod('convertToPixel', finder, value); }, /** * 此接口用于,转换像素坐标值到逻辑坐标系上的点。是 convertToPixel 的逆运算。 * @param {Object} finder - 用于指示『在哪个坐标系或者系列上判断』。 * @param {Array|string} value - 要被转换的值。 */ convertFromPixel: function convertFromPixel(finder, value) { return this._delegateMethod('convertFromPixel', finder, value); }, /** * 此接口用于,判断给定的点是否在指定的坐标系或者系列上。 * @param {Object} finder - 用于指示『在哪个坐标系或者系列上判断』。 * @param {Array} value - 要被判断的点。 */ containPixel: function containPixel(finder, value) { return this._delegateMethod('containPixel', finder, value); }, /** * 此接口用于,显示加载动画效果。可以在加载数据前手动调用该接口显示加载动画,在数据加载完成后调用 hideLoading 隐藏加载动画。 * @param {Object} [type] - 可选,加载动画类型,目前只有一种'default'。 * @param {Object} [options] - 可选,加载动画配置项,跟type有关。 */ showLoading: function showLoading(type, options) { this._delegateMethod('showLoading', type, options); }, /** * 此接口用于,隐藏动画加载效果。 */ hideLoading: function hideLoading() { this._delegateMethod('hideLoading'); }, /** * 此接口用于,导出图表图片,返回一个 base64 的 URL,可以设置为Image的src。 * @param {Object} options - 导出配置 */ getDataURL: function getDataURL(options) { return this._delegateMethod('getDataURL', options); }, /** * 此接口用于,导出联动的图表图片,返回一个 base64 的 url,可以设置为Image的src。导出图片中每个图表的相对位置跟容器的相对位置有关。 * @param {Object} options - 导出配置 */ getConnectedDataURL: function getConnectedDataURL(options) { return this._delegateMethod('getConnectedDataURL', options); }, /** * 此接口用于,清空当前实例,会移除实例中所有的组件和图表。清空后调用 getOption 方法返回一个{}空对象。 */ clear: function clear() { this._delegateMethod('clear'); }, /** * 此接口用于,销毁实例,销毁后实例无法再被使用。 */ dispose: function dispose() { this._delegateMethod('dispose'); }, // 内部调用的方法 _delegateMethod: function _delegateMethod(name) { var _this$smChart; for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { args[_key - 1] = arguments[_key]; } return (_this$smChart = this.smChart)[name].apply(_this$smChart, args); }, unSupportedFeatureTip: function unSupportedFeatureTip() { this.$message.destroy(); this.$message.warning(this.$t('chart.unSupportedData')); }, handleChartClick: function handleChartClick(params) { if (this.associatedMap) { var dataIndex = params.dataIndex; var features = []; if (this.echartsDataService && this.echartsDataService.sortDataCache) { features = this.echartsDataService.sortDataCache.features || features; } var selectedFeature = features[dataIndex]; this.showDetailInfo(selectedFeature); } }, showDetailInfo: function showDetailInfo(feature) { var _this11 = this; var coordinates = ((feature || {}).geometry || {}).coordinates; var hasCoordinates = coordinates && !!coordinates.length; if (hasCoordinates && this.viewModel) { var properties = feature.properties || {}; var _coordinates = (0, _util.getFeatureCenter)(feature); var propsData = this.generateTableData(properties); this.tablePopupProps = _objectSpread({}, propsData); this.$nextTick(function () { _this11.viewModel.setPopupContent(_coordinates, _this11.$refs.chartTablePopup.$el, _this11.changePopupArrowStyle); }); } else { var mapNotLoaded = this.mapNotLoadedTip(); if (mapNotLoaded) { return; } if (!hasCoordinates) { this.unSupportedFeatureTip(); } } }, generateTableData: function generateTableData(properties) { var propsData = { columns: [{ title: this.$t('search.attribute'), dataIndex: 'attribute', width: 120 }, { title: this.$t('search.attributeValue'), dataIndex: 'attributeValue', width: 150 }], data: [] }; for (var key in properties) { if (key && properties[key]) { var dataItem = {}; dataItem.attribute = key; dataItem.attributeValue = properties[key]; propsData.data.push(dataItem); } } return propsData; }, changePopupArrowStyle: function changePopupArrowStyle() {}, mapNotLoadedTip: function mapNotLoadedTip() {}, _dataZoomChanged: function _dataZoomChanged() { var flag = false; this.options.series && this.options.series.forEach(function (serie, index) { var labelConfig = serie.label && serie.label.normal; flag = labelConfig.show && labelConfig.smart; }); if (flag) { this.echartOptions = this._optionsHandler(this.options, this.dataSeriesCache, true); } }, registerShape: function registerShape() { var _this12 = this; this.datasetOptions && this.options.series && this.datasetOptions.forEach(function (item, index) { var graphicIntance = _this12.$options.graphic; if (item.seriesType === '2.5Bar') { var cubeType = _this12.options.series[index].shape; if (graphicIntance.getShapeClass("Cube".concat(cubeType, "Left"))) { return; } var CubeLeft, CubeRight, CubeTop; switch (cubeType) { case 'square': // 绘制左侧面 CubeLeft = graphicIntance.extendShape({ shape: { x: 0, y: 0 }, buildPath: function buildPath(ctx, shape) { // 会canvas的应该都能看得懂,shape是从custom传入的 var xAxisPoint = shape.xAxisPoint; var c0 = [shape.x, shape.y]; var c1 = [shape.x - 13, shape.y - 13]; var c2 = [xAxisPoint[0] - 13, xAxisPoint[1] - 13]; var c3 = [xAxisPoint[0], xAxisPoint[1]]; ctx.moveTo(c0[0], c0[1]).lineTo(c1[0], c1[1]).lineTo(c2[0], c2[1]).lineTo(c3[0], c3[1]).closePath(); } }); // 绘制右侧面 CubeRight = graphicIntance.extendShape({ shape: { x: 0, y: 0 }, buildPath: function buildPath(ctx, shape) { var xAxisPoint = shape.xAxisPoint; var c1 = [shape.x, shape.y]; var c2 = [xAxisPoint[0], xAxisPoint[1]]; var c3 = [xAxisPoint[0] + 18, xAxisPoint[1] - 9]; var c4 = [shape.x + 18, shape.y - 9]; ctx.moveTo(c1[0], c1[1]).lineTo(c2[0], c2[1]).lineTo(c3[0], c3[1]).lineTo(c4[0], c4[1]).closePath(); } }); // 绘制顶面 CubeTop = graphicIntance.extendShape({ shape: { x: 0, y: 0 }, buildPath: function buildPath(ctx, shape) { var c1 = [shape.x, shape.y]; var c2 = [shape.x + 18, shape.y - 9]; var c3 = [shape.x + 5, shape.y - 22]; var c4 = [shape.x - 13, shape.y - 13]; ctx.moveTo(c1[0], c1[1]).lineTo(c2[0], c2[1]).lineTo(c3[0], c3[1]).lineTo(c4[0], c4[1]).closePath(); } }); break; case 'rectangle': // 绘制左侧面 CubeLeft = graphicIntance.extendShape({ shape: { x: 0, y: 0 }, buildPath: function buildPath(ctx, shape) { var xAxisPoint = shape.xAxisPoint; var c0 = [shape.x, shape.y]; var c1 = [shape.x - 9, shape.y - 9]; var c2 = [xAxisPoint[0] - 9, xAxisPoint[1] - 9]; var c3 = [xAxisPoint[0], xAxisPoint[1]]; ctx.moveTo(c0[0], c0[1]).lineTo(c1[0], c1[1]).lineTo(c2[0], c2[1]).lineTo(c3[0], c3[1]).closePath(); } }); CubeRight = graphicIntance.extendShape({ shape: { x: 0, y: 0 }, buildPath: function buildPath(ctx, shape) { var xAxisPoint = shape.xAxisPoint; var c1 = [shape.x, shape.y]; var c2 = [xAxisPoint[0], xAxisPoint[1]]; var c3 = [xAxisPoint[0] + 18, xAxisPoint[1] - 9]; var c4 = [shape.x + 18, shape.y - 9]; ctx.moveTo(c1[0], c1[1]).lineTo(c2[0], c2[1]).lineTo(c3[0], c3[1]).lineTo(c4[0], c4[1]).closePath(); } }); CubeTop = graphicIntance.extendShape({ shape: { x: 0, y: 0 }, buildPath: function buildPath(ctx, shape) { var c1 = [shape.x, shape.y]; var c2 = [shape.x + 18, shape.y - 9]; var c3 = [shape.x + 9, shape.y - 18]; var c4 = [shape.x - 9, shape.y - 9]; ctx.moveTo(c1[0], c1[1]).lineTo(c2[0], c2[1]).lineTo(c3[0], c3[1]).lineTo(c4[0], c4[1]).closePath(); } }); break; } CubeLeft && graphicIntance.registerShape("Cube".concat(cubeType, "Left"), CubeLeft); CubeRight && graphicIntance.registerShape("Cube".concat(cubeType, "Right"), CubeRight); CubeTop && graphicIntance.registerShape("Cube".concat(cubeType, "Top"), CubeTop); } }); }, getCirlPoint: function getCirlPoint(x0, y0, r, angle) { var x1 = x0 + r * Math.cos(angle * Math.PI / 180); var y1 = y0 + r * Math.sin(angle * Math.PI / 180); return { x: x1, y: y1 }; }, spinLine: function spinLine(startAngle, endAngle, angle, effectColor, radius) { return function (params, api) { return { type: 'arc', shape: { cx: api.getWidth() / 2, cy: api.getHeight() / 2, r: Math.min(api.getWidth(), api.getHeight()) / 2 * radius, startAngle: (startAngle + angle) * Math.PI / 180, endAngle: (endAngle + angle) * Math.PI / 180 }, style: { stroke: effectColor, fill: 'transparent', lineWidth: 1.5 }, silent: true }; }; }, spinPoint: function spinPoint(angle, spinAngle, effectColor, radius) { var _this13 = this; return function (params, api) { var x0 = api.getWidth() / 2; var y0 = api.getHeight() / 2; var r = Math.min(api.getWidth(), api.getHeight()) / 2 * radius; var point = _this13.getCirlPoint(x0, y0, r, angle + spinAngle); return { type: 'circle', shape: { cx: point.x, cy: point.y, r: 4 }, style: { stroke: effectColor, fill: effectColor }, silent: true }; }; }, customRingsLine: function customRingsLine(startAngle, endAngle, angle, effectColor, effectRadius) { var series = { name: 'ring0', type: 'custom', coordinateSystem: 'none', renderItem: null, data: [0] }; series.renderItem = this.spinLine(startAngle, endAngle, angle, effectColor, effectRadius); return series; }, customRingsPoint: function customRingsPoint(startAngle, angle, effectColor, outEffectRadius) { var series = { name: 'ring4', type: 'custom', coordinateSystem: 'none', renderItem: null, data: [0] }; series.renderItem = this.spinPoint(startAngle, angle, effectColor, outEffectRadius); return series; }, addEffect: function addEffect(angle) { angle = angle || 0; var effectColor = this.options.series[0].customOptions.color; var effectRadius = this.options.series[0].customOptions.radius; var outEffectRadius = effectRadius + 0.1; // customRightBottomLine this.customSeries.push(this.customRingsLine(0, 90, angle, effectColor, effectRadius)); // customRightTopLine this.customSeries.push(this.customRingsLine(270, 40, -angle, effectColor, outEffectRadius)); // customLeftTopLine this.customSeries.push(this.customRingsLine(180, 270, angle, effectColor, effectRadius)); // customLeftBottomLine this.customSeries.push(this.customRingsLine(90, 220, -angle, effectColor, outEffectRadius)); if (this.options.series[0].customOptions.pointState === 'startPoint') { this.customSeries.push(this.customRingsPoint(270, -angle, effectColor, outEffectRadius)); this.customSeries.push(this.customRingsPoint(90, -angle, effectColor, outEffectRadius)); } }, startEffect: function startEffect() { var _this14 = this; var angle = 0; this.startSpin = setInterval(function () { if (!_this14.options.series) { return; } if (_this14.options.series[0].customType === 'customRingsSeries') { _this14.customSeries = []; angle += 3; _this14.addEffect(angle); } }, 100); }, customRenderItem: function customRenderItem() {} }, // echarts所有静态方法 /** * @function connect * 多个图表实例实现联动。 * @param {string|Array} group - group的id,或者图表实例的数组。 */ connect: function connect(group) { _vueEcharts.default && _vueEcharts.default.connect(group); }, /** * 解除图表实例的联动,如果只需要移除单个实例,可以将通过将该图表实例 group 设为空。 * @param {string} group - group的id。 */ disconnect: function disconnect(group) { _vueEcharts.default && _vueEcharts.default.disConnect(group); }, /** * 注册可用的地图,必须在包括 geo 组件或者 map 图表类型的时候才能使用。 * @param {string} mapName - 地图名称,在 geo 组件或者 map 图表类型中设置的 map 对应的就是该值。 * @param {Object} geoJSON - GeoJson 格式的数据,具体格式见 http://geojson.org/。 * @param {Object} [specialAreas] - 可选。将地图中的部分区域缩放到合适的位置,可以使得整个地图的显示更加好看。 */ registerMap: function registerMap(mapName, geoJSON, specialAreas) { _vueEcharts.default && _vueEcharts.default.registerMap(mapName, geoJSON, specialAreas); }, /** * 注册主题,用于初始化实例的时候指定。 * @param {string} name - 主题命名。 * @param {Object} theme - 主题配置。 */ registerTheme: function registerTheme(name, theme) { _vueEcharts.default && _vueEcharts.default.registerTheme(name, theme); }, /** * @desc 图形相关帮助方法。 */ graphic: _vueEcharts.default && _vueEcharts.default.graphic }; exports.default = _default2; /***/ }), /***/ "0fb2": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _propsBinder = __webpack_require__("efee"); var _default = { props: { pane: { type: String, default: 'overlayPane' }, name: { type: String, default: undefined }, attribution: { type: String, default: null } }, mounted: function mounted() { var _this = this; if (this.layer) { this.layer.on('add', function (e) { _this.$emit('load', e); }); } (0, _propsBinder.propsBinder)(this, this.$props); } }; exports.default = _default; /***/ }), /***/ 1: /***/ (function(module, exports) { /* (ignored) */ /***/ }), /***/ "10ba": /***/ (function(module, exports, __webpack_require__) { "use strict"; var _interopRequireDefault = __webpack_require__("8e6d"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _theme = _interopRequireDefault(__webpack_require__("9259")); var _util = __webpack_require__("1448"); // // // // // // // // // // // // // var _default2 = { name: 'SmTablePopup', mixins: [_theme.default], props: { data: { type: Array, default: function _default() { return []; } }, columns: { type: Array, default: function _default() { return []; } } }, computed: { styleObject: function styleObject() { return { '--table-popup-active-color--text': this.colorGroupsData[0] }; }, backgroundStyle: function backgroundStyle() { return { background: this.backgroundData ? (0, _util.getColorWithOpacity)(this.backgroundData, 0.5) : this.backgroundData }; } } }; exports.default = _default2; /***/ }), /***/ "1164": /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var meta_1 = __webpack_require__("49c0"); /** * Takes a set of features, calculates the bbox of all input features, and returns a bounding box. * * @name bbox * @param {GeoJSON} geojson any GeoJSON object * @returns {BBox} bbox extent in [minX, minY, maxX, maxY] order * @example * var line = turf.lineString([[-74, 40], [-78, 42], [-82, 35]]); * var bbox = turf.bbox(line); * var bboxPolygon = turf.bboxPolygon(bbox); * * //addToMap * var addToMap = [line, bboxPolygon] */ function bbox(geojson) { var result = [Infinity, Infinity, -Infinity, -Infinity]; meta_1.coordEach(geojson, function (coord) { if (result[0] > coord[0]) { result[0] = coord[0]; } if (result[1] > coord[1]) { result[1] = coord[1]; } if (result[2] < coord[0]) { result[2] = coord[0]; } if (result[3] < coord[1]) { result[3] = coord[1]; } }); return result; } exports.default = bbox; /***/ }), /***/ "11f8": /***/ (function(module, exports, __webpack_require__) { "use strict"; var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; /** * Copyright Marc J. Schmidt. See the LICENSE file at the top-level * directory of this distribution and at * https://github.com/marcj/css-element-queries/blob/master/LICENSE. */ (function (root, factory) { if (true) { !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__("76b8")], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory), __WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ? (__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); } else {} }(typeof window !== 'undefined' ? window : this, function (ResizeSensor) { /** * * @type {Function} * @constructor */ var ElementQueries = function () { //