qauMaWeb/node_modules/.cache/babel-loader/c1dc323279dc80a2119d62f8ae2...

1 line
7.3 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*/\nimport BoundingRect from 'zrender/lib/core/BoundingRect.js';\nimport { onIrrelevantElement } from './cursorHelper.js';\nimport * as graphicUtil from '../../util/graphic.js';\nexport function makeRectPanelClipPath(rect) {\n rect = normalizeRect(rect);\n return function (localPoints) {\n return graphicUtil.clipPointsByRect(localPoints, rect);\n };\n}\nexport function makeLinearBrushOtherExtent(rect, specifiedXYIndex) {\n rect = normalizeRect(rect);\n return function (xyIndex) {\n var idx = specifiedXYIndex != null ? specifiedXYIndex : xyIndex;\n var brushWidth = idx ? rect.width : rect.height;\n var base = idx ? rect.x : rect.y;\n return [base, base + (brushWidth || 0)];\n };\n}\nexport function makeRectIsTargetByCursor(rect, api, targetModel) {\n var boundingRect = normalizeRect(rect);\n return function (e, localCursorPoint) {\n return boundingRect.contain(localCursorPoint[0], localCursorPoint[1]) && !onIrrelevantElement(e, api, targetModel);\n };\n} // Consider width/height is negative.\n\nfunction normalizeRect(rect) {\n return BoundingRect.create(rect);\n}","map":{"version":3,"sources":["D:/Work/WorkSpace/GitWorkSpace/TenShop/resource/ElectronicMall/src啊/ElectronicMallVue/node_modules/echarts/lib/component/helper/brushHelper.js"],"names":["BoundingRect","onIrrelevantElement","graphicUtil","makeRectPanelClipPath","rect","normalizeRect","localPoints","clipPointsByRect","makeLinearBrushOtherExtent","specifiedXYIndex","xyIndex","idx","brushWidth","width","height","base","x","y","makeRectIsTargetByCursor","api","targetModel","boundingRect","e","localCursorPoint","contain","create"],"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,OAAOA,YAAP,MAAyB,kCAAzB;AACA,SAASC,mBAAT,QAAoC,mBAApC;AACA,OAAO,KAAKC,WAAZ,MAA6B,uBAA7B;AACA,OAAO,SAASC,qBAAT,CAA+BC,IAA/B,EAAqC;AAC1CA,EAAAA,IAAI,GAAGC,aAAa,CAACD,IAAD,CAApB;AACA,SAAO,UAAUE,WAAV,EAAuB;AAC5B,WAAOJ,WAAW,CAACK,gBAAZ,CAA6BD,WAA7B,EAA0CF,IAA1C,CAAP;AACD,GAFD;AAGD;AACD,OAAO,SAASI,0BAAT,CAAoCJ,IAApC,EAA0CK,gBAA1C,EAA4D;AACjEL,EAAAA,IAAI,GAAGC,aAAa,CAACD,IAAD,CAApB;AACA,SAAO,UAAUM,OAAV,EAAmB;AACxB,QAAIC,GAAG,GAAGF,gBAAgB,IAAI,IAApB,GAA2BA,gBAA3B,GAA8CC,OAAxD;AACA,QAAIE,UAAU,GAAGD,GAAG,GAAGP,IAAI,CAACS,KAAR,GAAgBT,IAAI,CAACU,MAAzC;AACA,QAAIC,IAAI,GAAGJ,GAAG,GAAGP,IAAI,CAACY,CAAR,GAAYZ,IAAI,CAACa,CAA/B;AACA,WAAO,CAACF,IAAD,EAAOA,IAAI,IAAIH,UAAU,IAAI,CAAlB,CAAX,CAAP;AACD,GALD;AAMD;AACD,OAAO,SAASM,wBAAT,CAAkCd,IAAlC,EAAwCe,GAAxC,EAA6CC,WAA7C,EAA0D;AAC/D,MAAIC,YAAY,GAAGhB,aAAa,CAACD,IAAD,CAAhC;AACA,SAAO,UAAUkB,CAAV,EAAaC,gBAAb,EAA+B;AACpC,WAAOF,YAAY,CAACG,OAAb,CAAqBD,gBAAgB,CAAC,CAAD,CAArC,EAA0CA,gBAAgB,CAAC,CAAD,CAA1D,KAAkE,CAACtB,mBAAmB,CAACqB,CAAD,EAAIH,GAAJ,EAASC,WAAT,CAA7F;AACD,GAFD;AAGD,C,CAAC;;AAEF,SAASf,aAAT,CAAuBD,IAAvB,EAA6B;AAC3B,SAAOJ,YAAY,CAACyB,MAAb,CAAoBrB,IAApB,CAAP;AACD","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*/\nimport BoundingRect from 'zrender/lib/core/BoundingRect.js';\nimport { onIrrelevantElement } from './cursorHelper.js';\nimport * as graphicUtil from '../../util/graphic.js';\nexport function makeRectPanelClipPath(rect) {\n rect = normalizeRect(rect);\n return function (localPoints) {\n return graphicUtil.clipPointsByRect(localPoints, rect);\n };\n}\nexport function makeLinearBrushOtherExtent(rect, specifiedXYIndex) {\n rect = normalizeRect(rect);\n return function (xyIndex) {\n var idx = specifiedXYIndex != null ? specifiedXYIndex : xyIndex;\n var brushWidth = idx ? rect.width : rect.height;\n var base = idx ? rect.x : rect.y;\n return [base, base + (brushWidth || 0)];\n };\n}\nexport function makeRectIsTargetByCursor(rect, api, targetModel) {\n var boundingRect = normalizeRect(rect);\n return function (e, localCursorPoint) {\n return boundingRect.contain(localCursorPoint[0], localCursorPoint[1]) && !onIrrelevantElement(e, api, targetModel);\n };\n} // Consider width/height is negative.\n\nfunction normalizeRect(rect) {\n return BoundingRect.create(rect);\n}"]},"metadata":{},"sourceType":"module"}