EffectScatterSeries.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing,
  13. * software distributed under the License is distributed on an
  14. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. * KIND, either express or implied. See the License for the
  16. * specific language governing permissions and limitations
  17. * under the License.
  18. */
  19. /**
  20. * AUTO-GENERATED FILE. DO NOT MODIFY.
  21. */
  22. /*
  23. * Licensed to the Apache Software Foundation (ASF) under one
  24. * or more contributor license agreements. See the NOTICE file
  25. * distributed with this work for additional information
  26. * regarding copyright ownership. The ASF licenses this file
  27. * to you under the Apache License, Version 2.0 (the
  28. * "License"); you may not use this file except in compliance
  29. * with the License. You may obtain a copy of the License at
  30. *
  31. * http://www.apache.org/licenses/LICENSE-2.0
  32. *
  33. * Unless required by applicable law or agreed to in writing,
  34. * software distributed under the License is distributed on an
  35. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  36. * KIND, either express or implied. See the License for the
  37. * specific language governing permissions and limitations
  38. * under the License.
  39. */
  40. import { __extends } from "tslib";
  41. import createSeriesData from '../helper/createSeriesData.js';
  42. import SeriesModel from '../../model/Series.js';
  43. var EffectScatterSeriesModel = /** @class */function (_super) {
  44. __extends(EffectScatterSeriesModel, _super);
  45. function EffectScatterSeriesModel() {
  46. var _this = _super !== null && _super.apply(this, arguments) || this;
  47. _this.type = EffectScatterSeriesModel.type;
  48. _this.hasSymbolVisual = true;
  49. return _this;
  50. }
  51. EffectScatterSeriesModel.prototype.getInitialData = function (option, ecModel) {
  52. return createSeriesData(null, this, {
  53. useEncodeDefaulter: true
  54. });
  55. };
  56. EffectScatterSeriesModel.prototype.brushSelector = function (dataIndex, data, selectors) {
  57. return selectors.point(data.getItemLayout(dataIndex));
  58. };
  59. EffectScatterSeriesModel.type = 'series.effectScatter';
  60. EffectScatterSeriesModel.dependencies = ['grid', 'polar'];
  61. EffectScatterSeriesModel.defaultOption = {
  62. coordinateSystem: 'cartesian2d',
  63. // zlevel: 0,
  64. z: 2,
  65. legendHoverLink: true,
  66. effectType: 'ripple',
  67. progressive: 0,
  68. // When to show the effect, option: 'render'|'emphasis'
  69. showEffectOn: 'render',
  70. clip: true,
  71. // Ripple effect config
  72. rippleEffect: {
  73. period: 4,
  74. // Scale of ripple
  75. scale: 2.5,
  76. // Brush type can be fill or stroke
  77. brushType: 'fill',
  78. // Ripple number
  79. number: 3
  80. },
  81. universalTransition: {
  82. divideShape: 'clone'
  83. },
  84. // Cartesian coordinate system
  85. // xAxisIndex: 0,
  86. // yAxisIndex: 0,
  87. // Polar coordinate system
  88. // polarIndex: 0,
  89. // Geo coordinate system
  90. // geoIndex: 0,
  91. // symbol: null, // 图形类型
  92. symbolSize: 10 // 图形大小,半宽(半径)参数,当图形为方向或菱形则总宽度为symbolSize * 2
  93. // symbolRotate: null, // 图形旋转控制
  94. // itemStyle: {
  95. // opacity: 1
  96. // }
  97. };
  98. return EffectScatterSeriesModel;
  99. }(SeriesModel);
  100. export default EffectScatterSeriesModel;