1 line
12 KiB
JSON
1 line
12 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 { __extends } from \"tslib\";\nimport createSeriesData from '../helper/createSeriesData.js';\nimport SeriesModel from '../../model/Series.js';\n\nvar ScatterSeriesModel =\n/** @class */\nfunction (_super) {\n __extends(ScatterSeriesModel, _super);\n\n function ScatterSeriesModel() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.type = ScatterSeriesModel.type;\n _this.hasSymbolVisual = true;\n return _this;\n }\n\n ScatterSeriesModel.prototype.getInitialData = function (option, ecModel) {\n return createSeriesData(null, this, {\n useEncodeDefaulter: true\n });\n };\n\n ScatterSeriesModel.prototype.getProgressive = function () {\n var progressive = this.option.progressive;\n\n if (progressive == null) {\n // PENDING\n return this.option.large ? 5e3 : this.get('progressive');\n }\n\n return progressive;\n };\n\n ScatterSeriesModel.prototype.getProgressiveThreshold = function () {\n var progressiveThreshold = this.option.progressiveThreshold;\n\n if (progressiveThreshold == null) {\n // PENDING\n return this.option.large ? 1e4 : this.get('progressiveThreshold');\n }\n\n return progressiveThreshold;\n };\n\n ScatterSeriesModel.prototype.brushSelector = function (dataIndex, data, selectors) {\n return selectors.point(data.getItemLayout(dataIndex));\n };\n\n ScatterSeriesModel.prototype.getZLevelKey = function () {\n // Each progressive series has individual key.\n return this.getData().count() > this.getProgressiveThreshold() ? this.id : '';\n };\n\n ScatterSeriesModel.type = 'series.scatter';\n ScatterSeriesModel.dependencies = ['grid', 'polar', 'geo', 'singleAxis', 'calendar'];\n ScatterSeriesModel.defaultOption = {\n coordinateSystem: 'cartesian2d',\n // zlevel: 0,\n z: 2,\n legendHoverLink: true,\n symbolSize: 10,\n // symbolRotate: null, // 图形旋转控制\n large: false,\n // Available when large is true\n largeThreshold: 2000,\n // cursor: null,\n itemStyle: {\n opacity: 0.8 // color: 各异\n\n },\n emphasis: {\n scale: true\n },\n // If clip the overflow graphics\n // Works on cartesian / polar series\n clip: true,\n select: {\n itemStyle: {\n borderColor: '#212121'\n }\n },\n universalTransition: {\n divideShape: 'clone'\n } // progressive: null\n\n };\n return ScatterSeriesModel;\n}(SeriesModel);\n\nexport default ScatterSeriesModel;","map":{"version":3,"sources":["D:/Work/WorkSpace/GitWorkSpace/TenShop/resource/ElectronicMall/src/qingge-Market/qingge-vue/node_modules/echarts/lib/chart/scatter/ScatterSeries.js"],"names":["__extends","createSeriesData","SeriesModel","ScatterSeriesModel","_super","_this","apply","arguments","type","hasSymbolVisual","prototype","getInitialData","option","ecModel","useEncodeDefaulter","getProgressive","progressive","large","get","getProgressiveThreshold","progressiveThreshold","brushSelector","dataIndex","data","selectors","point","getItemLayout","getZLevelKey","getData","count","id","dependencies","defaultOption","coordinateSystem","z","legendHoverLink","symbolSize","largeThreshold","itemStyle","opacity","emphasis","scale","clip","select","borderColor","universalTransition","divideShape"],"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,SAAT,QAA0B,OAA1B;AACA,OAAOC,gBAAP,MAA6B,+BAA7B;AACA,OAAOC,WAAP,MAAwB,uBAAxB;;AAEA,IAAIC,kBAAkB;AACtB;AACA,UAAUC,MAAV,EAAkB;AAChBJ,EAAAA,SAAS,CAACG,kBAAD,EAAqBC,MAArB,CAAT;;AAEA,WAASD,kBAAT,GAA8B;AAC5B,QAAIE,KAAK,GAAGD,MAAM,KAAK,IAAX,IAAmBA,MAAM,CAACE,KAAP,CAAa,IAAb,EAAmBC,SAAnB,CAAnB,IAAoD,IAAhE;;AAEAF,IAAAA,KAAK,CAACG,IAAN,GAAaL,kBAAkB,CAACK,IAAhC;AACAH,IAAAA,KAAK,CAACI,eAAN,GAAwB,IAAxB;AACA,WAAOJ,KAAP;AACD;;AAEDF,EAAAA,kBAAkB,CAACO,SAAnB,CAA6BC,cAA7B,GAA8C,UAAUC,MAAV,EAAkBC,OAAlB,EAA2B;AACvE,WAAOZ,gBAAgB,CAAC,IAAD,EAAO,IAAP,EAAa;AAClCa,MAAAA,kBAAkB,EAAE;AADc,KAAb,CAAvB;AAGD,GAJD;;AAMAX,EAAAA,kBAAkB,CAACO,SAAnB,CAA6BK,cAA7B,GAA8C,YAAY;AACxD,QAAIC,WAAW,GAAG,KAAKJ,MAAL,CAAYI,WAA9B;;AAEA,QAAIA,WAAW,IAAI,IAAnB,EAAyB;AACvB;AACA,aAAO,KAAKJ,MAAL,CAAYK,KAAZ,G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C;AACAC,IAAAA,SAAS,EAAE;AACTC,MAAAA,OAAO,EAAE,GADA,CACI;;AADJ,KAXsB;AAejCC,IAAAA,QAAQ,EAAE;AACRC,MAAAA,KAAK,EAAE;AADC,KAfuB;AAkBjC;AACA;AACAC,IAAAA,IAAI,EAAE,IApB2B;AAqBjCC,IAAAA,MAAM,EAAE;AACNL,MAAAA,SAAS,EAAE;AACTM,QAAAA,WAAW,EAAE;AADJ;AADL,KArByB;AA0BjCC,IAAAA,mBAAmB,EAAE;AACnBC,MAAAA,WAAW,EAAE;AADM,KA1BY,CA4B/B;;AA5B+B,GAAnC;AA+BA,SAAO3C,kBAAP;AACD,CAlFD,CAkFED,WAlFF,CAFA;;AAsFA,eAAeC,kBAAf","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 { __extends } from \"tslib\";\r\nimport createSeriesData from '../helper/createSeriesData.js';\r\nimport SeriesModel from '../../model/Series.js';\r\n\r\nvar ScatterSeriesModel =\r\n/** @class */\r\nfunction (_super) {\r\n __extends(ScatterSeriesModel, _super);\r\n\r\n function ScatterSeriesModel() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n\r\n _this.type = ScatterSeriesModel.type;\r\n _this.hasSymbolVisual = true;\r\n return _this;\r\n }\r\n\r\n ScatterSeriesModel.prototype.getInitialData = function (option, ecModel) {\r\n return createSeriesData(null, this, {\r\n useEncodeDefaulter: true\r\n });\r\n };\r\n\r\n ScatterSeriesModel.prototype.getProgressive = function () {\r\n var progressive = this.option.progressive;\r\n\r\n if (progressive == null) {\r\n // PENDING\r\n return this.option.large ? 5e3 : this.get('progressive');\r\n }\r\n\r\n return progressive;\r\n };\r\n\r\n ScatterSeriesModel.prototype.getProgressiveThreshold = function () {\r\n var progressiveThreshold = this.option.progressiveThreshold;\r\n\r\n if (progressiveThreshold == null) {\r\n // PENDING\r\n return this.option.large ? 1e4 : this.get('progressiveThreshold');\r\n }\r\n\r\n return progressiveThreshold;\r\n };\r\n\r\n ScatterSeriesModel.prototype.brushSelector = function (dataIndex, data, selectors) {\r\n return selectors.point(data.getItemLayout(dataIndex));\r\n };\r\n\r\n ScatterSeriesModel.prototype.getZLevelKey = function () {\r\n // Each progressive series has individual key.\r\n return this.getData().count() > this.getProgressiveThreshold() ? this.id : '';\r\n };\r\n\r\n ScatterSeriesModel.type = 'series.scatter';\r\n ScatterSeriesModel.dependencies = ['grid', 'polar', 'geo', 'singleAxis', 'calendar'];\r\n ScatterSeriesModel.defaultOption = {\r\n coordinateSystem: 'cartesian2d',\r\n // zlevel: 0,\r\n z: 2,\r\n legendHoverLink: true,\r\n symbolSize: 10,\r\n // symbolRotate: null, // 图形旋转控制\r\n large: false,\r\n // Available when large is true\r\n largeThreshold: 2000,\r\n // cursor: null,\r\n itemStyle: {\r\n opacity: 0.8 // color: 各异\r\n\r\n },\r\n emphasis: {\r\n scale: true\r\n },\r\n // If clip the overflow graphics\r\n // Works on cartesian / polar series\r\n clip: true,\r\n select: {\r\n itemStyle: {\r\n borderColor: '#212121'\r\n }\r\n },\r\n universalTransition: {\r\n divideShape: 'clone'\r\n } // progressive: null\r\n\r\n };\r\n return ScatterSeriesModel;\r\n}(SeriesModel);\r\n\r\nexport default ScatterSeriesModel;"]},"metadata":{},"sourceType":"module"} |