AxisModel.js 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. import { AxisModelCommonMixin } from '../axisModelCommonMixin.js';
  43. import { mixin } from 'zrender/lib/core/util.js';
  44. var SingleAxisModel =
  45. /** @class */
  46. function (_super) {
  47. __extends(SingleAxisModel, _super);
  48. function SingleAxisModel() {
  49. var _this = _super !== null && _super.apply(this, arguments) || this;
  50. _this.type = SingleAxisModel.type;
  51. return _this;
  52. }
  53. SingleAxisModel.prototype.getCoordSysModel = function () {
  54. return this;
  55. };
  56. SingleAxisModel.type = 'singleAxis';
  57. SingleAxisModel.layoutMode = 'box';
  58. SingleAxisModel.defaultOption = {
  59. left: '5%',
  60. top: '5%',
  61. right: '5%',
  62. bottom: '5%',
  63. type: 'value',
  64. position: 'bottom',
  65. orient: 'horizontal',
  66. axisLine: {
  67. show: true,
  68. lineStyle: {
  69. width: 1,
  70. type: 'solid'
  71. }
  72. },
  73. // Single coordinate system and single axis is the,
  74. // which is used as the parent tooltip model.
  75. // same model, so we set default tooltip show as true.
  76. tooltip: {
  77. show: true
  78. },
  79. axisTick: {
  80. show: true,
  81. length: 6,
  82. lineStyle: {
  83. width: 1
  84. }
  85. },
  86. axisLabel: {
  87. show: true,
  88. interval: 'auto'
  89. },
  90. splitLine: {
  91. show: true,
  92. lineStyle: {
  93. type: 'dashed',
  94. opacity: 0.2
  95. }
  96. }
  97. };
  98. return SingleAxisModel;
  99. }(ComponentModel);
  100. mixin(SingleAxisModel, AxisModelCommonMixin.prototype);
  101. export default SingleAxisModel;