qauMaWeb/node_modules/.cache/babel-loader/fe7c4c17a42ea3056bd6acf99c3...

1 line
10 KiB
JSON

{"ast":null,"code":"/*\r\n* Licensed to the Apache Software Foundation (ASF) under one\r\n* or more contributor license agreements. See the NOTICE file\r\n* distributed with this work for additional information\r\n* regarding copyright ownership. The ASF licenses this file\r\n* to you under the Apache License, Version 2.0 (the\r\n* \"License\"); you may not use this file except in compliance\r\n* with the License. You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing,\r\n* software distributed under the License is distributed on an\r\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n* KIND, either express or implied. See the License for the\r\n* specific language governing permissions and limitations\r\n* under the License.\r\n*/\n\n/**\r\n * AUTO-GENERATED FILE. DO NOT MODIFY.\r\n */\n\n/*\r\n* Licensed to the Apache Software Foundation (ASF) under one\r\n* or more contributor license agreements. See the NOTICE file\r\n* distributed with this work for additional information\r\n* regarding copyright ownership. The ASF licenses this file\r\n* to you under the Apache License, Version 2.0 (the\r\n* \"License\"); you may not use this file except in compliance\r\n* with the License. You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing,\r\n* software distributed under the License is distributed on an\r\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n* KIND, either express or implied. See the License for the\r\n* specific language governing permissions and limitations\r\n* under the License.\r\n*/\n\n/**\r\n * Animate multiple elements with a single done-callback.\r\n *\r\n * @example\r\n * animation\r\n * .createWrap()\r\n * .add(el1, {x: 10, y: 10})\r\n * .add(el2, {shape: {width: 500}, style: {fill: 'red'}}, 400)\r\n * .done(function () { // done })\r\n * .start('cubicOut');\r\n */\nvar AnimationWrap =\n/** @class */\nfunction () {\n function AnimationWrap() {\n this._storage = [];\n this._elExistsMap = {};\n }\n /**\r\n * Caution: a el can only be added once, otherwise 'done'\r\n * might not be called. This method checks this (by el.id),\r\n * suppresses adding and returns false when existing el found.\r\n *\r\n * @return Whether adding succeeded.\r\n */\n\n\n AnimationWrap.prototype.add = function (el, target, duration, delay, easing) {\n if (this._elExistsMap[el.id]) {\n return false;\n }\n\n this._elExistsMap[el.id] = true;\n\n this._storage.push({\n el: el,\n target: target,\n duration: duration,\n delay: delay,\n easing: easing\n });\n\n return true;\n };\n /**\r\n * Only execute when animation done/aborted.\r\n */\n\n\n AnimationWrap.prototype.finished = function (callback) {\n this._finishedCallback = callback;\n return this;\n };\n /**\r\n * Will stop exist animation firstly.\r\n */\n\n\n AnimationWrap.prototype.start = function () {\n var _this = this;\n\n var count = this._storage.length;\n\n var checkTerminate = function checkTerminate() {\n count--;\n\n if (count <= 0) {\n // Guard.\n _this._storage.length = 0;\n _this._elExistsMap = {};\n _this._finishedCallback && _this._finishedCallback();\n }\n };\n\n for (var i = 0, len = this._storage.length; i < len; i++) {\n var item = this._storage[i];\n item.el.animateTo(item.target, {\n duration: item.duration,\n delay: item.delay,\n easing: item.easing,\n setToFinal: true,\n done: checkTerminate,\n aborted: checkTerminate\n });\n }\n\n return this;\n };\n\n return AnimationWrap;\n}();\n\nexport function createWrap() {\n return new AnimationWrap();\n}","map":{"version":3,"sources":["D:/Work/WorkSpace/GitWorkSpace/TenShop/resource/ElectronicMall/src/qingge-Market/qingge-vue/node_modules/echarts/lib/util/animation.js"],"names":["AnimationWrap","_storage","_elExistsMap","prototype","add","el","target","duration","delay","easing","id","push","finished","callback","_finishedCallback","start","_this","count","length","checkTerminate","i","len","item","animateTo","setToFinal","done","aborted","createWrap"],"mappings":"AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;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F,QAAAA,KAAK,CAACd,YAAN,GAAqB,EAArB;AACAc,QAAAA,KAAK,CAACF,iBAAN,IAA2BE,KAAK,CAACF,iBAAN,EAA3B;AACD;AACF,KATD;;AAWA,SAAK,IAAIM,CAAC,GAAG,CAAR,EAAWC,GAAG,GAAG,KAAKpB,QAAL,CAAciB,MAApC,EAA4CE,CAAC,GAAGC,GAAhD,EAAqDD,CAAC,EAAtD,EAA0D;AACxD,UAAIE,IAAI,GAAG,KAAKrB,QAAL,CAAcmB,CAAd,CAAX;AACAE,MAAAA,IAAI,CAACjB,EAAL,CAAQkB,SAAR,CAAkBD,IAAI,CAAChB,MAAvB,EAA+B;AAC7BC,QAAAA,QAAQ,EAAEe,IAAI,CAACf,QADc;AAE7BC,QAAAA,KAAK,EAAEc,IAAI,CAACd,KAFiB;AAG7BC,QAAAA,MAAM,EAAEa,IAAI,CAACb,MAHgB;AAI7Be,QAAAA,UAAU,EAAE,IAJiB;AAK7BC,QAAAA,IAAI,EAAEN,cALuB;AAM7BO,QAAAA,OAAO,EAAEP;AANoB,OAA/B;AAQD;;AAED,WAAO,IAAP;AACD,GA7BD;;AA+BA,SAAOnB,aAAP;AACD,CA7ED,EAFA;;AAiFA,OAAO,SAAS2B,UAAT,GAAsB;AAC3B,SAAO,IAAI3B,aAAJ,EAAP;AACD","sourcesContent":["\r\n/*\r\n* Licensed to the Apache Software Foundation (ASF) under one\r\n* or more contributor license agreements. See the NOTICE file\r\n* distributed with this work for additional information\r\n* regarding copyright ownership. The ASF licenses this file\r\n* to you under the Apache License, Version 2.0 (the\r\n* \"License\"); you may not use this file except in compliance\r\n* with the License. You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing,\r\n* software distributed under the License is distributed on an\r\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n* KIND, either express or implied. See the License for the\r\n* specific language governing permissions and limitations\r\n* under the License.\r\n*/\r\n\r\n\r\n/**\r\n * AUTO-GENERATED FILE. DO NOT MODIFY.\r\n */\r\n\r\n/*\r\n* Licensed to the Apache Software Foundation (ASF) under one\r\n* or more contributor license agreements. See the NOTICE file\r\n* distributed with this work for additional information\r\n* regarding copyright ownership. The ASF licenses this file\r\n* to you under the Apache License, Version 2.0 (the\r\n* \"License\"); you may not use this file except in compliance\r\n* with the License. You may obtain a copy of the License at\r\n*\r\n* http://www.apache.org/licenses/LICENSE-2.0\r\n*\r\n* Unless required by applicable law or agreed to in writing,\r\n* software distributed under the License is distributed on an\r\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n* KIND, either express or implied. See the License for the\r\n* specific language governing permissions and limitations\r\n* under the License.\r\n*/\r\n\r\n/**\r\n * Animate multiple elements with a single done-callback.\r\n *\r\n * @example\r\n * animation\r\n * .createWrap()\r\n * .add(el1, {x: 10, y: 10})\r\n * .add(el2, {shape: {width: 500}, style: {fill: 'red'}}, 400)\r\n * .done(function () { // done })\r\n * .start('cubicOut');\r\n */\r\nvar AnimationWrap =\r\n/** @class */\r\nfunction () {\r\n function AnimationWrap() {\r\n this._storage = [];\r\n this._elExistsMap = {};\r\n }\r\n /**\r\n * Caution: a el can only be added once, otherwise 'done'\r\n * might not be called. This method checks this (by el.id),\r\n * suppresses adding and returns false when existing el found.\r\n *\r\n * @return Whether adding succeeded.\r\n */\r\n\r\n\r\n AnimationWrap.prototype.add = function (el, target, duration, delay, easing) {\r\n if (this._elExistsMap[el.id]) {\r\n return false;\r\n }\r\n\r\n this._elExistsMap[el.id] = true;\r\n\r\n this._storage.push({\r\n el: el,\r\n target: target,\r\n duration: duration,\r\n delay: delay,\r\n easing: easing\r\n });\r\n\r\n return true;\r\n };\r\n /**\r\n * Only execute when animation done/aborted.\r\n */\r\n\r\n\r\n AnimationWrap.prototype.finished = function (callback) {\r\n this._finishedCallback = callback;\r\n return this;\r\n };\r\n /**\r\n * Will stop exist animation firstly.\r\n */\r\n\r\n\r\n AnimationWrap.prototype.start = function () {\r\n var _this = this;\r\n\r\n var count = this._storage.length;\r\n\r\n var checkTerminate = function () {\r\n count--;\r\n\r\n if (count <= 0) {\r\n // Guard.\r\n _this._storage.length = 0;\r\n _this._elExistsMap = {};\r\n _this._finishedCallback && _this._finishedCallback();\r\n }\r\n };\r\n\r\n for (var i = 0, len = this._storage.length; i < len; i++) {\r\n var item = this._storage[i];\r\n item.el.animateTo(item.target, {\r\n duration: item.duration,\r\n delay: item.delay,\r\n easing: item.easing,\r\n setToFinal: true,\r\n done: checkTerminate,\r\n aborted: checkTerminate\r\n });\r\n }\r\n\r\n return this;\r\n };\r\n\r\n return AnimationWrap;\r\n}();\r\n\r\nexport function createWrap() {\r\n return new AnimationWrap();\r\n}"]},"metadata":{},"sourceType":"module"}