1 line
7.4 KiB
JSON
1 line
7.4 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\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/qingge-Market/qingge-vue/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":["\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// @ts-nocheck\r\nimport * as zrUtil from 'zrender/lib/core/util.js';\r\nvar each = zrUtil.each;\r\nexport default function visualMapPreprocessor(option) {\r\n var visualMap = option && option.visualMap;\r\n\r\n if (!zrUtil.isArray(visualMap)) {\r\n visualMap = visualMap ? [visualMap] : [];\r\n }\r\n\r\n each(visualMap, function (opt) {\r\n if (!opt) {\r\n return;\r\n } // rename splitList to pieces\r\n\r\n\r\n if (has(opt, 'splitList') && !has(opt, 'pieces')) {\r\n opt.pieces = opt.splitList;\r\n delete opt.splitList;\r\n }\r\n\r\n var pieces = opt.pieces;\r\n\r\n if (pieces && zrUtil.isArray(pieces)) {\r\n each(pieces, function (piece) {\r\n if (zrUtil.isObject(piece)) {\r\n if (has(piece, 'start') && !has(piece, 'min')) {\r\n piece.min = piece.start;\r\n }\r\n\r\n if (has(piece, 'end') && !has(piece, 'max')) {\r\n piece.max = piece.end;\r\n }\r\n }\r\n });\r\n }\r\n });\r\n}\r\n\r\nfunction has(obj, name) {\r\n return obj && obj.hasOwnProperty && obj.hasOwnProperty(name);\r\n}"]},"metadata":{},"sourceType":"module"} |