1 line
7.0 KiB
JSON
1 line
7.0 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*/\n\n/**\n * For geo and graph.\n */\nexport function updateViewOnPan(controllerHost, dx, dy) {\n var target = controllerHost.target;\n target.x += dx;\n target.y += dy;\n target.dirty();\n}\n/**\n * For geo and graph.\n */\n\nexport function updateViewOnZoom(controllerHost, zoomDelta, zoomX, zoomY) {\n var target = controllerHost.target;\n var zoomLimit = controllerHost.zoomLimit;\n var newZoom = controllerHost.zoom = controllerHost.zoom || 1;\n newZoom *= zoomDelta;\n\n if (zoomLimit) {\n var zoomMin = zoomLimit.min || 0;\n var zoomMax = zoomLimit.max || Infinity;\n newZoom = Math.max(Math.min(zoomMax, newZoom), zoomMin);\n }\n\n var zoomScale = newZoom / controllerHost.zoom;\n controllerHost.zoom = newZoom; // Keep the mouse center when scaling\n\n target.x -= (zoomX - target.x) * (zoomScale - 1);\n target.y -= (zoomY - target.y) * (zoomScale - 1);\n target.scaleX *= zoomScale;\n target.scaleY *= zoomScale;\n target.dirty();\n}","map":{"version":3,"sources":["D:/Work/WorkSpace/GitWorkSpace/TenShop/resource/ElectronicMall/src啊/ElectronicMallVue/node_modules/echarts/lib/component/helper/roamHelper.js"],"names":["updateViewOnPan","controllerHost","dx","dy","target","x","y","dirty","updateViewOnZoom","zoomDelta","zoomX","zoomY","zoomLimit","newZoom","zoom","zoomMin","min","zoomMax","max","Infinity","Math","zoomScale","scaleX","scaleY"],"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;;AAEA;AACA;AACA;AACA,OAAO,SAASA,eAAT,CAAyBC,cAAzB,EAAyCC,EAAzC,EAA6CC,EAA7C,EAAiD;AACtD,MAAIC,MAAM,GAAGH,cAAc,CAACG,MAA5B;AACAA,EAAAA,MAAM,CAACC,CAAP,IAAYH,EAAZ;AACAE,EAAAA,MAAM,CAACE,CAAP,IAAYH,EAAZ;AACAC,EAAAA,MAAM,CAACG,KAAP;AACD;AACD;AACA;AACA;;AAEA,OAAO,SAASC,gBAAT,CAA0BP,cAA1B,EAA0CQ,SAA1C,EAAqDC,KAArD,EAA4DC,KAA5D,EAAmE;AACxE,MAAIP,MAAM,GAAGH,cAAc,CAACG,MAA5B;AACA,MAAIQ,SAAS,GAAGX,cAAc,CAACW,SAA/B;AACA,MAAIC,OAAO,GAAGZ,cAAc,CAACa,IAAf,GAAsBb,cAAc,CAACa,IAAf,IAAuB,CAA3D;AACAD,EAAAA,OAAO,IAAIJ,SAAX;;AAEA,MAAIG,SAAJ,EAAe;AACb,QAAIG,OAAO,GAAGH,SAAS,CAACI,GAAV,IAAiB,CAA/B;AACA,QAAIC,OAAO,GAAGL,SAAS,CAACM,GAAV,IAAiBC,QAA/B;AACAN,IAAAA,OAAO,GAAGO,IAAI,CAACF,GAAL,CAASE,IAAI,CAACJ,GAAL,CAASC,OAAT,EAAkBJ,OAAlB,CAAT,EAAqCE,OAArC,CAAV;AACD;;AAED,MAAIM,SAAS,GAAGR,OAAO,GAAGZ,cAAc,CAACa,IAAzC;AACAb,EA
|