AxisPointerModel.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. value: null,
  63. status: null,
  64. link: [],
  65. // Do not set 'auto' here, otherwise global animation: false
  66. // will not effect at this axispointer.
  67. animation: null,
  68. animationDurationUpdate: 200,
  69. lineStyle: {
  70. color: '#B9BEC9',
  71. width: 1,
  72. type: 'dashed'
  73. },
  74. shadowStyle: {
  75. color: 'rgba(210,219,238,0.2)'
  76. },
  77. label: {
  78. show: true,
  79. formatter: null,
  80. precision: 'auto',
  81. margin: 3,
  82. color: '#fff',
  83. padding: [5, 7, 5, 7],
  84. backgroundColor: 'auto',
  85. borderColor: null,
  86. borderWidth: 0,
  87. borderRadius: 3
  88. },
  89. handle: {
  90. show: false,
  91. // eslint-disable-next-line
  92. 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',
  93. size: 45,
  94. // handle margin is from symbol center to axis, which is stable when circular move.
  95. margin: 50,
  96. // color: '#1b8bbd'
  97. // color: '#2f4554'
  98. color: '#333',
  99. shadowBlur: 3,
  100. shadowColor: '#aaa',
  101. shadowOffsetX: 0,
  102. shadowOffsetY: 2,
  103. // For mobile performance
  104. throttle: 40
  105. }
  106. };
  107. return AxisPointerModel;
  108. }(ComponentModel);
  109. export default AxisPointerModel;