AxisPointerModel.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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 ComponentModel from '../../model/Component.js';
  42. var AxisPointerModel = /** @class */function (_super) {
  43. __extends(AxisPointerModel, _super);
  44. function AxisPointerModel() {
  45. var _this = _super !== null && _super.apply(this, arguments) || this;
  46. _this.type = AxisPointerModel.type;
  47. return _this;
  48. }
  49. AxisPointerModel.type = 'axisPointer';
  50. AxisPointerModel.defaultOption = {
  51. // 'auto' means that show when triggered by tooltip or handle.
  52. show: 'auto',
  53. // zlevel: 0,
  54. z: 50,
  55. type: 'line',
  56. // axispointer triggered by tootip determine snap automatically,
  57. // see `modelHelper`.
  58. snap: false,
  59. triggerTooltip: true,
  60. triggerEmphasis: true,
  61. value: null,
  62. status: null,
  63. link: [],
  64. // Do not set 'auto' here, otherwise global animation: false
  65. // will not effect at this axispointer.
  66. animation: null,
  67. animationDurationUpdate: 200,
  68. lineStyle: {
  69. color: '#B9BEC9',
  70. width: 1,
  71. type: 'dashed'
  72. },
  73. shadowStyle: {
  74. color: 'rgba(210,219,238,0.2)'
  75. },
  76. label: {
  77. show: true,
  78. formatter: null,
  79. precision: 'auto',
  80. margin: 3,
  81. color: '#fff',
  82. padding: [5, 7, 5, 7],
  83. backgroundColor: 'auto',
  84. borderColor: null,
  85. borderWidth: 0,
  86. borderRadius: 3
  87. },
  88. handle: {
  89. show: false,
  90. // eslint-disable-next-line
  91. icon: 'M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z',
  92. size: 45,
  93. // handle margin is from symbol center to axis, which is stable when circular move.
  94. margin: 50,
  95. // color: '#1b8bbd'
  96. // color: '#2f4554'
  97. color: '#333',
  98. shadowBlur: 3,
  99. shadowColor: '#aaa',
  100. shadowOffsetX: 0,
  101. shadowOffsetY: 2,
  102. // For mobile performance
  103. throttle: 40
  104. }
  105. };
  106. return AxisPointerModel;
  107. }(ComponentModel);
  108. export default AxisPointerModel;