AxisPointerModel.js 3.6 KB

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