1 line
6.0 KiB
JSON
1 line
6.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 { isArray, map } from 'zrender/lib/core/util.js';\nimport { parsePercent } from 'zrender/lib/contain/text.js';\nexport function getSectorCornerRadius(model, shape, zeroIfNull) {\n var cornerRadius = model.get('borderRadius');\n\n if (cornerRadius == null) {\n return zeroIfNull ? {\n cornerRadius: 0\n } : null;\n }\n\n if (!isArray(cornerRadius)) {\n cornerRadius = [cornerRadius, cornerRadius, cornerRadius, cornerRadius];\n }\n\n var dr = Math.abs(shape.r || 0 - shape.r0 || 0);\n return {\n cornerRadius: map(cornerRadius, function (cr) {\n return parsePercent(cr, dr);\n })\n };\n}","map":{"version":3,"sources":["D:/Work/WorkSpace/GitWorkSpace/TenShop/resource/ElectronicMall/src/qingge-Market/qingge-vue/node_modules/echarts/lib/chart/helper/pieHelper.js"],"names":["isArray","map","parsePercent","getSectorCornerRadius","model","shape","zeroIfNull","cornerRadius","get","dr","Math","abs","r","r0","cr"],"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,OAAT,EAAkBC,GAAlB,QAA6B,0BAA7B;AACA,SAASC,YAAT,QAA6B,6BAA7B;AACA,OAAO,SAASC,qBAAT,CAA+BC,KAA/B,EAAsCC,KAAtC,EAA6CC,UAA7C,EAAyD;AAC9D,MAAIC,YAAY,GAAGH,KAAK,CAACI,GAAN,CAAU,cAAV,CAAnB;;AAEA,MAAID,YAAY,IAAI,IAApB,EAA0B;AACxB,WAAOD,UAAU,GAAG;AAClBC,MAAAA,YAAY,EAAE;AADI,KAAH,GAEb,IAFJ;AAGD;;AAED,MAAI,CAACP,OAAO,CAACO,YAAD,CAAZ,EAA4B;AAC1BA,IAAAA,YAAY,GAAG,CAACA,YAAD,EAAeA,YAAf,EAA6BA,YAA7B,EAA2CA,YAA3C,CAAf;AACD;;AAED,MAAIE,EAAE,GAAGC,IAAI,CAACC,GAAL,CAASN,KAAK,CAACO,CAAN,IAAW,IAAIP,KAAK,CAACQ,EAArB,IAA2B,CAApC,CAAT;AACA,SAAO;AACLN,IAAAA,YAAY,EAAEN,GAAG,CAACM,YAAD,EAAe,UAAUO,EAAV,EAAc;AAC5C,aAAOZ,YAAY,CAACY,EAAD,EAAKL,EAAL,CAAnB;AACD,KAFgB;AADZ,GAAP;AAKD","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 { isArray, map } from 'zrender/lib/core/util.js';\r\nimport { parsePercent } from 'zrender/lib/contain/text.js';\r\nexport function getSectorCornerRadius(model, shape, zeroIfNull) {\r\n var cornerRadius = model.get('borderRadius');\r\n\r\n if (cornerRadius == null) {\r\n return zeroIfNull ? {\r\n cornerRadius: 0\r\n } : null;\r\n }\r\n\r\n if (!isArray(cornerRadius)) {\r\n cornerRadius = [cornerRadius, cornerRadius, cornerRadius, cornerRadius];\r\n }\r\n\r\n var dr = Math.abs(shape.r || 0 - shape.r0 || 0);\r\n return {\r\n cornerRadius: map(cornerRadius, function (cr) {\r\n return parsePercent(cr, dr);\r\n })\r\n };\r\n}"]},"metadata":{},"sourceType":"module"} |