qauMaWeb/node_modules/.cache/babel-loader/13b3d4f716cabd08823b54ea94c...

1 line
7.2 KiB
JSON

{"ast":null,"code":"/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// @ts-nocheck\nimport * as zrUtil from 'zrender/lib/core/util.js';\nvar each = zrUtil.each;\nexport default function visualMapPreprocessor(option) {\n var visualMap = option && option.visualMap;\n\n if (!zrUtil.isArray(visualMap)) {\n visualMap = visualMap ? [visualMap] : [];\n }\n\n each(visualMap, function (opt) {\n if (!opt) {\n return;\n } // rename splitList to pieces\n\n\n if (has(opt, 'splitList') && !has(opt, 'pieces')) {\n opt.pieces = opt.splitList;\n delete opt.splitList;\n }\n\n var pieces = opt.pieces;\n\n if (pieces && zrUtil.isArray(pieces)) {\n each(pieces, function (piece) {\n if (zrUtil.isObject(piece)) {\n if (has(piece, 'start') && !has(piece, 'min')) {\n piece.min = piece.start;\n }\n\n if (has(piece, 'end') && !has(piece, 'max')) {\n piece.max = piece.end;\n }\n }\n });\n }\n });\n}\n\nfunction has(obj, name) {\n return obj && obj.hasOwnProperty && obj.hasOwnProperty(name);\n}","map":{"version":3,"sources":["D:/Work/WorkSpace/GitWorkSpace/TenShop/resource/ElectronicMall/src/ElectronicMallVue/node_modules/echarts/lib/component/visualMap/preprocessor.js"],"names":["zrUtil","each","visualMapPreprocessor","option","visualMap","isArray","opt","has","pieces","splitList","piece","isObject","min","start","max","end","obj","name","hasOwnProperty"],"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;AACA;AACA,OAAO,KAAKA,MAAZ,MAAwB,0BAAxB;AACA,IAAIC,IAAI,GAAGD,MAAM,CAACC,IAAlB;AACA,eAAe,SAASC,qBAAT,CAA+BC,MAA/B,EAAuC;AACpD,MAAIC,SAAS,GAAGD,MAAM,IAAIA,MAAM,CAACC,SAAjC;;AAEA,MAAI,CAACJ,MAAM,CAACK,OAAP,CAAeD,SAAf,CAAL,EAAgC;AAC9BA,IAAAA,SAAS,GAAGA,SAAS,GAAG,CAACA,SAAD,CAAH,GAAiB,EAAtC;AACD;;AAEDH,EAAAA,IAAI,CAACG,SAAD,EAAY,UAAUE,GAAV,EAAe;AAC7B,QAAI,CAACA,GAAL,EAAU;AACR;AACD,KAH4B,CAG3B;;;AAGF,QAAIC,GAAG,CAACD,GAAD,EAAM,WAAN,CAAH,IAAyB,CAACC,GAAG,CAACD,GAAD,EAAM,QAAN,CAAjC,EAAkD;AAChDA,MAAAA,GAAG,CAACE,MAAJ,GAAaF,GAAG,CAACG,SAAjB;AACA,aAAOH,GAAG,CAACG,SAAX;AACD;;AAED,QAAID,MAAM,GAAGF,GAAG,CAACE,MAAjB;;AAEA,QAAIA,MAAM,IAAIR,MAAM,CAACK,OAAP,CAAeG,MAAf,CAAd,EAAsC;AACpCP,MAAAA,IAAI,CAACO,MAAD,EAAS,UAAUE,KAAV,EAAiB;AAC5B,YAAIV,MAAM,CAACW,QAAP,CAAgBD,KAAhB,CAAJ,EAA4B;AAC1B,cAAIH,GAAG,CAACG,KAAD,EAAQ,OAAR,CAAH,IAAuB,CAACH,GAAG,CAACG,KAAD,EAAQ,KAAR,CAA/B,EAA+C;AAC7CA,YAAAA,KAAK,CAACE,GAAN,GAAYF,KAAK,CAACG,KAAlB;AACD;;AAED,cAAIN,GAAG,CAACG,KAAD,EAAQ,KAAR,CAAH,IAAqB,CAACH,GAAG,CAACG,KAAD,EAAQ,KAAR,CAA7B,EAA6C;AAC3CA,YAAAA,KAAK,CAACI,GAAN,GAAYJ,KAAK,CAACK,GAAlB;AACD;AACF;AACF,OAVG,CAAJ;AAWD;AACF,GA1BG,CAAJ;AA2BD;;AAED,SAASR,GAAT,CAAaS,GAAb,EAAkBC,IAAlB,EAAwB;AACtB,SAAOD,GAAG,IAAIA,GAAG,CAACE,cAAX,IAA6BF,GAAG,CAACE,cAAJ,CAAmBD,IAAnB,CAApC;AACD","sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n// @ts-nocheck\nimport * as zrUtil from 'zrender/lib/core/util.js';\nvar each = zrUtil.each;\nexport default function visualMapPreprocessor(option) {\n var visualMap = option && option.visualMap;\n\n if (!zrUtil.isArray(visualMap)) {\n visualMap = visualMap ? [visualMap] : [];\n }\n\n each(visualMap, function (opt) {\n if (!opt) {\n return;\n } // rename splitList to pieces\n\n\n if (has(opt, 'splitList') && !has(opt, 'pieces')) {\n opt.pieces = opt.splitList;\n delete opt.splitList;\n }\n\n var pieces = opt.pieces;\n\n if (pieces && zrUtil.isArray(pieces)) {\n each(pieces, function (piece) {\n if (zrUtil.isObject(piece)) {\n if (has(piece, 'start') && !has(piece, 'min')) {\n piece.min = piece.start;\n }\n\n if (has(piece, 'end') && !has(piece, 'max')) {\n piece.max = piece.end;\n }\n }\n });\n }\n });\n}\n\nfunction has(obj, name) {\n return obj && obj.hasOwnProperty && obj.hasOwnProperty(name);\n}"]},"metadata":{},"sourceType":"module"}