qauMaWeb/node_modules/.cache/babel-loader/4b67cb2d848d8f7dbb0c8c892ea...

1 line
9.0 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*/\nimport * as zrUtil from 'zrender/lib/core/util.js'; // import AngleAxis from './AngleAxis.js';\n\nfunction dataToCoordSize(dataSize, dataItem) {\n // dataItem is necessary in log axis.\n dataItem = dataItem || [0, 0];\n return zrUtil.map(['Radius', 'Angle'], function (dim, dimIdx) {\n var getterName = 'get' + dim + 'Axis'; // TODO: TYPE Check Angle Axis\n\n var axis = this[getterName]();\n var val = dataItem[dimIdx];\n var halfSize = dataSize[dimIdx] / 2;\n var result = axis.type === 'category' ? axis.getBandWidth() : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize));\n\n if (dim === 'Angle') {\n result = result * Math.PI / 180;\n }\n\n return result;\n }, this);\n}\n\nexport default function polarPrepareCustom(coordSys) {\n var radiusAxis = coordSys.getRadiusAxis();\n var angleAxis = coordSys.getAngleAxis();\n var radius = radiusAxis.getExtent();\n radius[0] > radius[1] && radius.reverse();\n return {\n coordSys: {\n type: 'polar',\n cx: coordSys.cx,\n cy: coordSys.cy,\n r: radius[1],\n r0: radius[0]\n },\n api: {\n coord: function coord(data) {\n var radius = radiusAxis.dataToRadius(data[0]);\n var angle = angleAxis.dataToAngle(data[1]);\n var coord = coordSys.coordToPoint([radius, angle]);\n coord.push(radius, angle * Math.PI / 180);\n return coord;\n },\n size: zrUtil.bind(dataToCoordSize, coordSys)\n }\n };\n}","map":{"version":3,"sources":["D:/Work/WorkSpace/GitWorkSpace/TenShop/resource/ElectronicMall/src/qingge-Market/qingge-vue/node_modules/echarts/lib/coord/polar/prepareCustom.js"],"names":["zrUtil","dataToCoordSize","dataSize","dataItem","map","dim","dimIdx","getterName","axis","val","halfSize","result","type","getBandWidth","Math","abs","dataToCoord","PI","polarPrepareCustom","coordSys","radiusAxis","getRadiusAxis","angleAxis","getAngleAxis","radius","getExtent","reverse","cx","cy","r","r0","api","coord","data","dataToRadius","angle","dataToAngle","coordToPoint","push","size","bind"],"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,OAAO,KAAKA,MAAZ,MAAwB,0BAAxB,C,CAAoD;;AAEpD,SAASC,eAAT,CAAyBC,QAAzB,EAAmCC,QAAnC,EAA6C;AAC3C;AACAA,EAAAA,QAAQ,GAAGA,QAAQ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EAAET,QAAQ,CAACS,EAHL;AAIRC,MAAAA,CAAC,EAAEL,MAAM,CAAC,CAAD,CAJD;AAKRM,MAAAA,EAAE,EAAEN,MAAM,CAAC,CAAD;AALF,KADL;AAQLO,IAAAA,GAAG,EAAE;AACHC,MAAAA,KAAK,EAAE,eAAUC,IAAV,EAAgB;AACrB,YAAIT,MAAM,GAAGJ,UAAU,CAACc,YAAX,CAAwBD,IAAI,CAAC,CAAD,CAA5B,CAAb;AACA,YAAIE,KAAK,GAAGb,SAAS,CAACc,WAAV,CAAsBH,IAAI,CAAC,CAAD,CAA1B,CAAZ;AACA,YAAID,KAAK,GAAGb,QAAQ,CAACkB,YAAT,CAAsB,CAACb,MAAD,EAASW,KAAT,CAAtB,CAAZ;AACAH,QAAAA,KAAK,CAACM,IAAN,CAAWd,MAAX,EAAmBW,KAAK,GAAGrB,IAAI,CAACG,EAAb,GAAkB,GAArC;AACA,eAAOe,KAAP;AACD,OAPE;AAQHO,MAAAA,IAAI,EAAEvC,MAAM,CAACwC,IAAP,CAAYvC,eAAZ,EAA6BkB,QAA7B;AARH;AARA,GAAP;AAmBD","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 * as zrUtil from 'zrender/lib/core/util.js'; // import AngleAxis from './AngleAxis.js';\r\n\r\nfunction dataToCoordSize(dataSize, dataItem) {\r\n // dataItem is necessary in log axis.\r\n dataItem = dataItem || [0, 0];\r\n return zrUtil.map(['Radius', 'Angle'], function (dim, dimIdx) {\r\n var getterName = 'get' + dim + 'Axis'; // TODO: TYPE Check Angle Axis\r\n\r\n var axis = this[getterName]();\r\n var val = dataItem[dimIdx];\r\n var halfSize = dataSize[dimIdx] / 2;\r\n var result = axis.type === 'category' ? axis.getBandWidth() : Math.abs(axis.dataToCoord(val - halfSize) - axis.dataToCoord(val + halfSize));\r\n\r\n if (dim === 'Angle') {\r\n result = result * Math.PI / 180;\r\n }\r\n\r\n return result;\r\n }, this);\r\n}\r\n\r\nexport default function polarPrepareCustom(coordSys) {\r\n var radiusAxis = coordSys.getRadiusAxis();\r\n var angleAxis = coordSys.getAngleAxis();\r\n var radius = radiusAxis.getExtent();\r\n radius[0] > radius[1] && radius.reverse();\r\n return {\r\n coordSys: {\r\n type: 'polar',\r\n cx: coordSys.cx,\r\n cy: coordSys.cy,\r\n r: radius[1],\r\n r0: radius[0]\r\n },\r\n api: {\r\n coord: function (data) {\r\n var radius = radiusAxis.dataToRadius(data[0]);\r\n var angle = angleAxis.dataToAngle(data[1]);\r\n var coord = coordSys.coordToPoint([radius, angle]);\r\n coord.push(radius, angle * Math.PI / 180);\r\n return coord;\r\n },\r\n size: zrUtil.bind(dataToCoordSize, coordSys)\r\n }\r\n };\r\n}"]},"metadata":{},"sourceType":"module"}