qauMaWeb/node_modules/.cache/babel-loader/687cc936e7923a3e2a1b3688a0b...

1 line
7.8 KiB
JSON

{"ast":null,"code":"import \"core-js/modules/es.array.join.js\";\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 * 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*/\nimport { retrieveRawValue } from '../../data/helper/dataProvider.js';\nimport { isArray } from 'zrender/lib/core/util.js';\n/**\r\n * @return label string. Not null/undefined\r\n */\n\nexport function getDefaultLabel(data, dataIndex) {\n var labelDims = data.mapDimensionsAll('defaultedLabel');\n var len = labelDims.length; // Simple optimization (in lots of cases, label dims length is 1)\n\n if (len === 1) {\n var rawVal = retrieveRawValue(data, dataIndex, labelDims[0]);\n return rawVal != null ? rawVal + '' : null;\n } else if (len) {\n var vals = [];\n\n for (var i = 0; i < labelDims.length; i++) {\n vals.push(retrieveRawValue(data, dataIndex, labelDims[i]));\n }\n\n return vals.join(' ');\n }\n}\nexport function getDefaultInterpolatedLabel(data, interpolatedValue) {\n var labelDims = data.mapDimensionsAll('defaultedLabel');\n\n if (!isArray(interpolatedValue)) {\n return interpolatedValue + '';\n }\n\n var vals = [];\n\n for (var i = 0; i < labelDims.length; i++) {\n var dimIndex = data.getDimensionIndex(labelDims[i]);\n\n if (dimIndex >= 0) {\n vals.push(interpolatedValue[dimIndex]);\n }\n }\n\n return vals.join(' ');\n}","map":{"version":3,"sources":["D:/Work/WorkSpace/GitWorkSpace/TenShop/resource/ElectronicMall/src/qingge-Market/qingge-vue/node_modules/echarts/lib/chart/helper/labelHelper.js"],"names":["retrieveRawValue","isArray","getDefaultLabel","data","dataIndex","labelDims","mapDimensionsAll","len","length","rawVal","vals","i","push","join","getDefaultInterpolatedLabel","interpolatedValue","dimIndex","getDimensionIndex"],"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,SAASA,gBAAT,QAAiC,mCAAjC;AACA,SAASC,OAAT,QAAwB,0BAAxB;AACA;AACA;AACA;;AAEA,OAAO,SAASC,eAAT,CAAyBC,IAAzB,EAA+BC,SAA/B,EAA0C;AAC/C,MAAIC,SAAS,GAAGF,IAAI,CAACG,gBAAL,CAAsB,gBAAtB,CAAhB;AACA,MAAIC,GAAG,GAAGF,SAAS,CAACG,MAApB,CAF+C,CAEnB;;AAE5B,MAAID,GAAG,KAAK,CAAZ,EAAe;AACb,QAAIE,MAAM,GAAGT,gBAAgB,CAACG,IAAD,EAAOC,SAAP,EAAkBC,SAAS,CAAC,CAAD,CAA3B,CAA7B;AACA,WAAOI,MAAM,IAAI,IAAV,GAAiBA,MAAM,GAAG,EAA1B,GAA+B,IAAtC;AACD,GAHD,MAGO,IAAIF,GAAJ,EAAS;AACd,QAAIG,IAAI,GAAG,EAAX;;AAEA,SAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGN,SAAS,CAACG,MAA9B,EAAsCG,CAAC,EAAvC,EAA2C;AACzCD,MAAAA,IAAI,CAACE,IAAL,CAAUZ,gBAAgB,CAACG,IAAD,EAAOC,SAAP,EAAkBC,SAAS,CAACM,CAAD,CAA3B,CAA1B;AACD;;AAED,WAAOD,IAAI,CAACG,IAAL,CAAU,GAAV,CAAP;AACD;AACF;AACD,OAAO,SAASC,2BAAT,CAAqCX,IAArC,EAA2CY,iBAA3C,EAA8D;AACnE,MAAIV,SAAS,GAAGF,IAAI,CAACG,gBAAL,CAAsB,gBAAtB,CAAhB;;AAEA,MAAI,CAACL,OAAO,CAACc,iBAAD,CAAZ,EAAiC;AAC/B,WAAOA,iBAAiB,GAAG,EAA3B;AACD;;AAED,MAAIL,IAAI,GAAG,EAAX;;AAEA,OAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGN,SAAS,CAACG,MAA9B,EAAsCG,CAAC,EAAvC,EAA2C;AACzC,QAAIK,QAAQ,GAAGb,IAAI,CAACc,iBAAL,CAAuBZ,SAAS,CAACM,CAAD,CAAhC,CAAf;;AAEA,QAAIK,QAAQ,IAAI,CAAhB,EAAmB;AACjBN,MAAAA,IAAI,CAACE,IAAL,CAAUG,iBAAiB,CAACC,QAAD,CAA3B;AACD;AACF;;AAED,SAAON,IAAI,CAACG,IAAL,CAAU,GAAV,CAAP;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\nimport { retrieveRawValue } from '../../data/helper/dataProvider.js';\r\nimport { isArray } from 'zrender/lib/core/util.js';\r\n/**\r\n * @return label string. Not null/undefined\r\n */\r\n\r\nexport function getDefaultLabel(data, dataIndex) {\r\n var labelDims = data.mapDimensionsAll('defaultedLabel');\r\n var len = labelDims.length; // Simple optimization (in lots of cases, label dims length is 1)\r\n\r\n if (len === 1) {\r\n var rawVal = retrieveRawValue(data, dataIndex, labelDims[0]);\r\n return rawVal != null ? rawVal + '' : null;\r\n } else if (len) {\r\n var vals = [];\r\n\r\n for (var i = 0; i < labelDims.length; i++) {\r\n vals.push(retrieveRawValue(data, dataIndex, labelDims[i]));\r\n }\r\n\r\n return vals.join(' ');\r\n }\r\n}\r\nexport function getDefaultInterpolatedLabel(data, interpolatedValue) {\r\n var labelDims = data.mapDimensionsAll('defaultedLabel');\r\n\r\n if (!isArray(interpolatedValue)) {\r\n return interpolatedValue + '';\r\n }\r\n\r\n var vals = [];\r\n\r\n for (var i = 0; i < labelDims.length; i++) {\r\n var dimIndex = data.getDimensionIndex(labelDims[i]);\r\n\r\n if (dimIndex >= 0) {\r\n vals.push(interpolatedValue[dimIndex]);\r\n }\r\n }\r\n\r\n return vals.join(' ');\r\n}"]},"metadata":{},"sourceType":"module"}