1 line
7.3 KiB
JSON
1 line
7.3 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// @ts-nocheck\n// Backward compat for radar chart in 2\nimport * as zrUtil from 'zrender/lib/core/util.js';\nexport default function radarBackwardCompat(option) {\n var polarOptArr = option.polar;\n\n if (polarOptArr) {\n if (!zrUtil.isArray(polarOptArr)) {\n polarOptArr = [polarOptArr];\n }\n\n var polarNotRadar_1 = [];\n zrUtil.each(polarOptArr, function (polarOpt, idx) {\n if (polarOpt.indicator) {\n if (polarOpt.type && !polarOpt.shape) {\n polarOpt.shape = polarOpt.type;\n }\n\n option.radar = option.radar || [];\n\n if (!zrUtil.isArray(option.radar)) {\n option.radar = [option.radar];\n }\n\n option.radar.push(polarOpt);\n } else {\n polarNotRadar_1.push(polarOpt);\n }\n });\n option.polar = polarNotRadar_1;\n }\n\n zrUtil.each(option.series, function (seriesOpt) {\n if (seriesOpt && seriesOpt.type === 'radar' && seriesOpt.polarIndex) {\n seriesOpt.radarIndex = seriesOpt.polarIndex;\n }\n });\n}","map":{"version":3,"sources":["D:/Work/WorkSpace/GitWorkSpace/TenShop/resource/ElectronicMall/src/qingge-Market/qingge-vue/node_modules/echarts/lib/chart/radar/backwardCompat.js"],"names":["zrUtil","radarBackwardCompat","option","polarOptArr","polar","isArray","polarNotRadar_1","each","polarOpt","idx","indicator","type","shape","radar","push","series","seriesOpt","polarIndex","radarIndex"],"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;AACA,OAAO,KAAKA,MAAZ,MAAwB,0BAAxB;AACA,eAAe,SAASC,mBAAT,CAA6BC,MAA7B,EAAqC;AAClD,MAAIC,WAAW,GAAGD,MAAM,CAACE,KAAzB;;AAEA,MAAID,WAAJ,EAAiB;AACf,QAAI,CAACH,MAAM,CAACK,OAAP,CAAeF,WAAf,CAAL,EAAkC;AAChCA,MAAAA,WAAW,GAAG,CAACA,WAAD,CAAd;AACD;;AAED,QAAIG,eAAe,GAAG,EAAtB;AACAN,IAAAA,MAAM,CAACO,IAAP,CAAYJ,WAAZ,EAAyB,UAAUK,QAAV,EAAoBC,GAApB,EAAyB;AAChD,UAAID,QAAQ,CAACE,SAAb,EAAwB;AACtB,YAAIF,QAAQ,CAACG,IAAT,IAAiB,CAACH,QAAQ,CAACI,KAA/B,EAAsC;AACpCJ,UAAAA,QAAQ,CAACI,KAAT,GAAiBJ,QAAQ,CAACG,IAA1B;AACD;;AAEDT,QAAAA,MAAM,CAACW,KAAP,GAAeX,MAAM,CAACW,KAAP,IAAgB,EAA/B;;AAEA,YAAI,CAACb,MAAM,CAACK,OAAP,CAAeH,MAAM,CAACW,KAAtB,CAAL,EAAmC;AACjCX,UAAAA,MAAM,CAACW,KAAP,GAAe,CAACX,MAAM,CAAC
|