SliderZoomModel.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  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 =
  44. /** @class */
  45. function (_super) {
  46. __extends(SliderZoomModel, _super);
  47. function SliderZoomModel() {
  48. var _this = _super !== null && _super.apply(this, arguments) || this;
  49. _this.type = SliderZoomModel.type;
  50. return _this;
  51. }
  52. SliderZoomModel.type = 'dataZoom.slider';
  53. SliderZoomModel.layoutMode = 'box';
  54. SliderZoomModel.defaultOption = inheritDefaultOption(DataZoomModel.defaultOption, {
  55. show: true,
  56. // deault value can only be drived in view stage.
  57. right: 'ph',
  58. top: 'ph',
  59. width: 'ph',
  60. height: 'ph',
  61. left: null,
  62. bottom: null,
  63. borderColor: '#d2dbee',
  64. borderRadius: 3,
  65. backgroundColor: 'rgba(47,69,84,0)',
  66. // dataBackgroundColor: '#ddd',
  67. dataBackground: {
  68. lineStyle: {
  69. color: '#d2dbee',
  70. width: 0.5
  71. },
  72. areaStyle: {
  73. color: '#d2dbee',
  74. opacity: 0.2
  75. }
  76. },
  77. selectedDataBackground: {
  78. lineStyle: {
  79. color: '#8fb0f7',
  80. width: 0.5
  81. },
  82. areaStyle: {
  83. color: '#8fb0f7',
  84. opacity: 0.2
  85. }
  86. },
  87. // Color of selected window.
  88. fillerColor: 'rgba(135,175,274,0.2)',
  89. 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',
  90. // Percent of the slider height
  91. handleSize: '100%',
  92. handleStyle: {
  93. color: '#fff',
  94. borderColor: '#ACB8D1'
  95. },
  96. moveHandleSize: 7,
  97. 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',
  98. moveHandleStyle: {
  99. color: '#D2DBEE',
  100. opacity: 0.7
  101. },
  102. showDetail: true,
  103. showDataShadow: 'auto',
  104. realtime: true,
  105. zoomLock: false,
  106. textStyle: {
  107. color: '#6E7079'
  108. },
  109. brushSelect: true,
  110. brushStyle: {
  111. color: 'rgba(135,175,274,0.15)'
  112. },
  113. emphasis: {
  114. handleStyle: {
  115. borderColor: '#8FB0F7'
  116. },
  117. moveHandleStyle: {
  118. color: '#8FB0F7'
  119. }
  120. }
  121. });
  122. return SliderZoomModel;
  123. }(DataZoomModel);
  124. export default SliderZoomModel;