constants.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. "use strict";
  2. // import { TimelineStyleProps } from './types';
  3. // const DEFAULT_BUTTON_STYLE = {
  4. // margin: [2, 4],
  5. // markerStyle: {
  6. // stroke: '#bfbfbf',
  7. // active: {
  8. // stroke: '#3471F9',
  9. // },
  10. // },
  11. // backgroundStyle: {
  12. // fill: 'transparent',
  13. // },
  14. // };
  15. // export const DEFAULT_TIMELINE_STYLE: TimelineStyleProps = {
  16. // x: 0,
  17. // y: 0,
  18. // data: [],
  19. // width: 500,
  20. // height: 40,
  21. // selection: [0, 0],
  22. // orientation: 'horizontal',
  23. // singleModeControl: {
  24. // width: 56,
  25. // size: 12,
  26. // labelStyle: {
  27. // text: '单一时间',
  28. // fontSize: 10,
  29. // dx: 4,
  30. // },
  31. // },
  32. // speedControl: {
  33. // width: 32,
  34. // markerSize: 4,
  35. // speeds: [1.0, 2.0, 3.0, 4.0, 5.0],
  36. // labelStyle: {
  37. // fontFamily: 'sans-serif',
  38. // fill: 'rgba(0,0,0,0.45)',
  39. // fontStyle: 'normal',
  40. // fontWeight: 500,
  41. // fontSize: 10,
  42. // textBaseline: 'top',
  43. // },
  44. // formatter: (value: number) => `${value.toFixed(1)}x`,
  45. // },
  46. // controlPosition: 'bottom',
  47. // controlButton: {
  48. // spacing: 14,
  49. // prevBtn: {
  50. // ...DEFAULT_BUTTON_STYLE,
  51. // symbol: 'timeline-prev-btn',
  52. // padding: 0,
  53. // size: 8,
  54. // },
  55. // nextBtn: {
  56. // ...DEFAULT_BUTTON_STYLE,
  57. // symbol: 'timeline-next-btn',
  58. // padding: 0,
  59. // size: 8,
  60. // },
  61. // playBtn: {
  62. // margin: 4,
  63. // padding: 0,
  64. // size: 20,
  65. // symbol: '',
  66. // markerStyle: {
  67. // stroke: '#bfbfbf',
  68. // fill: '#bfbfbf',
  69. // active: {
  70. // stroke: '#3471F9',
  71. // fill: '#3471F9',
  72. // },
  73. // },
  74. // backgroundStyle: {
  75. // stroke: '#bfbfbf',
  76. // lineWidth: 1,
  77. // fill: '#F7F7F7',
  78. // active: {
  79. // fill: 'rgba(52, 113, 249, 0.1)',
  80. // stroke: '#3471F9',
  81. // },
  82. // },
  83. // },
  84. // },
  85. // padding: [0, 8],
  86. // playAxis: {
  87. // appendPadding: [4, 0],
  88. // handleStyle: {
  89. // r: 3,
  90. // lineWidth: 1,
  91. // },
  92. // label: {
  93. // position: 1,
  94. // tickPadding: 2,
  95. // tickLine: {
  96. // len: 4,
  97. // style: {
  98. // stroke: 'rgba(0,0,0,0.25)',
  99. // lineWidth: 1,
  100. // },
  101. // },
  102. // style: {
  103. // fontSize: 10,
  104. // fillOpacity: 1,
  105. // fill: 'rgba(0,0,0,0.45)',
  106. // },
  107. // },
  108. // loop: false,
  109. // },
  110. // playInterval: 2000,
  111. // autoPlay: false,
  112. // };
  113. //# sourceMappingURL=constants.js.map