1 line
6.1 KiB
JSON
1 line
6.1 KiB
JSON
{"ast":null,"code":"/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport default function calendarPrepareCustom(coordSys) {\n var rect = coordSys.getRect();\n var rangeInfo = coordSys.getRangeInfo();\n return {\n coordSys: {\n type: 'calendar',\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height,\n cellWidth: coordSys.getCellWidth(),\n cellHeight: coordSys.getCellHeight(),\n rangeInfo: {\n start: rangeInfo.start,\n end: rangeInfo.end,\n weeks: rangeInfo.weeks,\n dayCount: rangeInfo.allDay\n }\n },\n api: {\n coord: function coord(data, clamp) {\n return coordSys.dataToPoint(data, clamp);\n }\n }\n };\n}","map":{"version":3,"sources":["D:/Work/WorkSpace/GitWorkSpace/TenShop/resource/ElectronicMall/src啊/ElectronicMallVue/node_modules/echarts/lib/coord/calendar/prepareCustom.js"],"names":["calendarPrepareCustom","coordSys","rect","getRect","rangeInfo","getRangeInfo","type","x","y","width","height","cellWidth","getCellWidth","cellHeight","getCellHeight","start","end","weeks","dayCount","allDay","api","coord","data","clamp","dataToPoint"],"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,eAAe,SAASA,qBAAT,CAA+BC,QAA/B,EAAyC;AACtD,MAAIC,IAAI,GAAGD,QAAQ,CAACE,OAAT,EAAX;AACA,MAAIC,SAAS,GAAGH,QAAQ,CAACI,YAAT,EAAhB;AACA,SAAO;AACLJ,IAAAA,QAAQ,EAAE;AACRK,MAAAA,IAAI,EAAE,UADE;AAERC,MAAAA,CAAC,EAAEL,IAAI,CAACK,CAFA;AAGRC,MAAAA,CAAC,EAAEN,IAAI,CAACM,CAHA;AAIRC,MAAAA,KAAK,EAAEP,IAAI,CAACO,KAJJ;AAKRC,MAAAA,MAAM,EAAER,IAAI,CAACQ,MALL;AAMRC,MAAAA,SAAS,EAAEV,QAAQ,CAACW,YAAT,EANH;AAORC,MAAAA,UAAU,EAAEZ,QAAQ,CAACa,aAAT,EAPJ;AAQRV,MAAAA,SAAS,EAAE;AACTW,QAAAA,KAAK,EAAEX,SAAS,CAACW,KADR;AAETC,QAAAA,GAAG,EAAEZ,SAAS,CAACY,GAFN;AAGTC,QAAAA,KAAK,EAAEb,SAAS,CAACa,KAHR;AAITC,QAAAA,QAAQ,EAAEd,SAAS,CAACe;AAJX;AARH,KADL;AAgBLC,IAAAA,GAAG,EAAE;AACHC,MAAAA,KAAK,EAAE,eAAUC,IAAV,EAAgBC,KAAhB,EAAuB;AAC5B,eAAOtB,QAAQ,CAACuB,WAAT,CAAqBF,IAArB,EAA2BC,KAA3B,CAAP;AACD;AAHE;AAhBA,GAAP;AAsBD","sourcesContent":["\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\n\n\n/**\n * AUTO-GENERATED FILE. DO NOT MODIFY.\n */\n\n/*\n* Licensed to the Apache Software Foundation (ASF) under one\n* or more contributor license agreements. See the NOTICE file\n* distributed with this work for additional information\n* regarding copyright ownership. The ASF licenses this file\n* to you under the Apache License, Version 2.0 (the\n* \"License\"); you may not use this file except in compliance\n* with the License. You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing,\n* software distributed under the License is distributed on an\n* \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n* KIND, either express or implied. See the License for the\n* specific language governing permissions and limitations\n* under the License.\n*/\nexport default function calendarPrepareCustom(coordSys) {\n var rect = coordSys.getRect();\n var rangeInfo = coordSys.getRangeInfo();\n return {\n coordSys: {\n type: 'calendar',\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height,\n cellWidth: coordSys.getCellWidth(),\n cellHeight: coordSys.getCellHeight(),\n rangeInfo: {\n start: rangeInfo.start,\n end: rangeInfo.end,\n weeks: rangeInfo.weeks,\n dayCount: rangeInfo.allDay\n }\n },\n api: {\n coord: function (data, clamp) {\n return coordSys.dataToPoint(data, clamp);\n }\n }\n };\n}"]},"metadata":{},"sourceType":"module"} |