SliderZoomModel.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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 DataZoomModel from './DataZoomModel.js';
  42. import { inheritDefaultOption } from '../../util/component.js';
  43. var SliderZoomModel = /** @class */function (_super) {
  44. __extends(SliderZoomModel, _super);
  45. function SliderZoomModel() {
  46. var _this = _super !== null && _super.apply(this, arguments) || this;
  47. _this.type = SliderZoomModel.type;
  48. return _this;
  49. }
  50. SliderZoomModel.type = 'dataZoom.slider';
  51. SliderZoomModel.layoutMode = 'box';
  52. SliderZoomModel.defaultOption = inheritDefaultOption(DataZoomModel.defaultOption, {
  53. show: true,
  54. // deault value can only be drived in view stage.
  55. right: 'ph',
  56. top: 'ph',
  57. width: 'ph',
  58. height: 'ph',
  59. left: null,
  60. bottom: null,
  61. borderColor: '#d2dbee',
  62. borderRadius: 3,
  63. backgroundColor: 'rgba(47,69,84,0)',
  64. // dataBackgroundColor: '#ddd',
  65. dataBackground: {
  66. lineStyle: {
  67. color: '#d2dbee',
  68. width: 0.5
  69. },
  70. areaStyle: {
  71. color: '#d2dbee',
  72. opacity: 0.2
  73. }
  74. },
  75. selectedDataBackground: {
  76. lineStyle: {
  77. color: '#8fb0f7',
  78. width: 0.5
  79. },
  80. areaStyle: {
  81. color: '#8fb0f7',
  82. opacity: 0.2
  83. }
  84. },
  85. // Color of selected window.
  86. fillerColor: 'rgba(135,175,274,0.2)',
  87. handleIcon: 'path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z',
  88. // Percent of the slider height
  89. handleSize: '100%',
  90. handleStyle: {
  91. color: '#fff',
  92. borderColor: '#ACB8D1'
  93. },
  94. moveHandleSize: 7,
  95. moveHandleIcon: 'path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z',
  96. moveHandleStyle: {
  97. color: '#D2DBEE',
  98. opacity: 0.7
  99. },
  100. showDetail: true,
  101. showDataShadow: 'auto',
  102. realtime: true,
  103. zoomLock: false,
  104. textStyle: {
  105. color: '#6E7079'
  106. },
  107. brushSelect: true,
  108. brushStyle: {
  109. color: 'rgba(135,175,274,0.15)'
  110. },
  111. emphasis: {
  112. handleStyle: {
  113. borderColor: '#8FB0F7'
  114. },
  115. moveHandleStyle: {
  116. color: '#8FB0F7'
  117. }
  118. }
  119. });
  120. return SliderZoomModel;
  121. }(DataZoomModel);
  122. export default SliderZoomModel;