candleview 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +397 -0
  3. package/dist/components/CandleView/Camera.d.ts +16 -0
  4. package/dist/components/CandleView/CandleView.d.ts +149 -0
  5. package/dist/components/CandleView/ChartLayer/ChartEventManager.d.ts +47 -0
  6. package/dist/components/CandleView/ChartLayer/ChartInfo.d.ts +62 -0
  7. package/dist/components/CandleView/ChartLayer/ChartLayerMarkState.d.ts +281 -0
  8. package/dist/components/CandleView/ChartLayer/ChartManager.d.ts +11 -0
  9. package/dist/components/CandleView/ChartLayer/ChartMarkManager.d.ts +203 -0
  10. package/dist/components/CandleView/ChartLayer/ChartMarkTextEditManager.d.ts +16 -0
  11. package/dist/components/CandleView/ChartLayer/ChartTypeManager.d.ts +17 -0
  12. package/dist/components/CandleView/ChartLayer/MainChart/Area.d.ts +13 -0
  13. package/dist/components/CandleView/ChartLayer/MainChart/Bar.d.ts +13 -0
  14. package/dist/components/CandleView/ChartLayer/MainChart/BaseLine.d.ts +12 -0
  15. package/dist/components/CandleView/ChartLayer/MainChart/BaselineArea.d.ts +12 -0
  16. package/dist/components/CandleView/ChartLayer/MainChart/Candlestick.d.ts +12 -0
  17. package/dist/components/CandleView/ChartLayer/MainChart/HLCArea.d.ts +35 -0
  18. package/dist/components/CandleView/ChartLayer/MainChart/HeikinAshi.d.ts +12 -0
  19. package/dist/components/CandleView/ChartLayer/MainChart/HighLow.d.ts +12 -0
  20. package/dist/components/CandleView/ChartLayer/MainChart/Histogram.d.ts +13 -0
  21. package/dist/components/CandleView/ChartLayer/MainChart/HollowCandle.d.ts +13 -0
  22. package/dist/components/CandleView/ChartLayer/MainChart/IMainChart.d.ts +7 -0
  23. package/dist/components/CandleView/ChartLayer/MainChart/Line.d.ts +13 -0
  24. package/dist/components/CandleView/ChartLayer/MainChart/LineBreak.d.ts +15 -0
  25. package/dist/components/CandleView/ChartLayer/MainChart/MainChartManager.d.ts +17 -0
  26. package/dist/components/CandleView/ChartLayer/MainChart/MarketProfile.d.ts +52 -0
  27. package/dist/components/CandleView/ChartLayer/MainChart/Mountain.d.ts +12 -0
  28. package/dist/components/CandleView/ChartLayer/MainChart/StepLine.d.ts +12 -0
  29. package/dist/components/CandleView/ChartLayer/MainChart/Volume.d.ts +6 -0
  30. package/dist/components/CandleView/ChartLayer/MainChart/VolumeHeatMap.d.ts +41 -0
  31. package/dist/components/CandleView/ChartLayer/Modal/ImageUploadModal.d.ts +10 -0
  32. package/dist/components/CandleView/ChartLayer/Modal/MainChartIndicatorsSettingModal.d.ts +17 -0
  33. package/dist/components/CandleView/ChartLayer/Modal/SubChartIndicatorsSettingModal.d.ts +17 -0
  34. package/dist/components/CandleView/ChartLayer/Modal/TextMarkEditorModal.d.ts +21 -0
  35. package/dist/components/CandleView/ChartLayer/Panes/BaseChartPane.d.ts +41 -0
  36. package/dist/components/CandleView/ChartLayer/Panes/ChartPaneFactory.d.ts +6 -0
  37. package/dist/components/CandleView/ChartLayer/Panes/ChartPanesManager.d.ts +31 -0
  38. package/dist/components/CandleView/ChartLayer/Panes/IChartPanes.d.ts +42 -0
  39. package/dist/components/CandleView/ChartLayer/SubChart/ADX.d.ts +25 -0
  40. package/dist/components/CandleView/ChartLayer/SubChart/ATR.d.ts +25 -0
  41. package/dist/components/CandleView/ChartLayer/SubChart/BBWidth.d.ts +26 -0
  42. package/dist/components/CandleView/ChartLayer/SubChart/CCI.d.ts +25 -0
  43. package/dist/components/CandleView/ChartLayer/SubChart/KDJ.d.ts +23 -0
  44. package/dist/components/CandleView/ChartLayer/SubChart/MACD.d.ts +23 -0
  45. package/dist/components/CandleView/ChartLayer/SubChart/OBV.d.ts +24 -0
  46. package/dist/components/CandleView/ChartLayer/SubChart/RSI.d.ts +25 -0
  47. package/dist/components/CandleView/ChartLayer/SubChart/SAR.d.ts +23 -0
  48. package/dist/components/CandleView/ChartLayer/SubChart/Stochastic.d.ts +23 -0
  49. package/dist/components/CandleView/ChartLayer/SubChart/Volume.d.ts +24 -0
  50. package/dist/components/CandleView/ChartLayer/ToolBar/GraphMarkToolBar.d.ts +51 -0
  51. package/dist/components/CandleView/ChartLayer/ToolBar/TextMarkToolBar.d.ts +65 -0
  52. package/dist/components/CandleView/ChartLayer/index.d.ts +291 -0
  53. package/dist/components/CandleView/DataAdapter.d.ts +28 -0
  54. package/dist/components/CandleView/DataLoader.d.ts +15 -0
  55. package/dist/components/CandleView/DataManager.d.ts +23 -0
  56. package/dist/components/CandleView/DataPointManager.d.ts +45 -0
  57. package/dist/components/CandleView/I18n.d.ts +418 -0
  58. package/dist/components/CandleView/Icons.d.ts +161 -0
  59. package/dist/components/CandleView/Indicators/MainChart/BaseIndicator.d.ts +26 -0
  60. package/dist/components/CandleView/Indicators/MainChart/BollingerBandsIndicator.d.ts +51 -0
  61. package/dist/components/CandleView/Indicators/MainChart/DonchianChannelIndicator.d.ts +24 -0
  62. package/dist/components/CandleView/Indicators/MainChart/EMAIndicator.d.ts +24 -0
  63. package/dist/components/CandleView/Indicators/MainChart/EnvelopeIndicator.d.ts +52 -0
  64. package/dist/components/CandleView/Indicators/MainChart/IchimokuIndicator.d.ts +58 -0
  65. package/dist/components/CandleView/Indicators/MainChart/MAIndicator.d.ts +24 -0
  66. package/dist/components/CandleView/Indicators/MainChart/MainChartIndicatorInfo.d.ts +24 -0
  67. package/dist/components/CandleView/Indicators/MainChart/MainChartIndicatorManager.d.ts +28 -0
  68. package/dist/components/CandleView/Indicators/MainChart/VWAPIndicator.d.ts +26 -0
  69. package/dist/components/CandleView/Indicators/SubChart/ADXIndicator.d.ts +6 -0
  70. package/dist/components/CandleView/Indicators/SubChart/ATRIndicator.d.ts +6 -0
  71. package/dist/components/CandleView/Indicators/SubChart/BBWidthIndicator.d.ts +6 -0
  72. package/dist/components/CandleView/Indicators/SubChart/CCIIndicator.d.ts +6 -0
  73. package/dist/components/CandleView/Indicators/SubChart/IIndicator.d.ts +15 -0
  74. package/dist/components/CandleView/Indicators/SubChart/KDJIndicator.d.ts +6 -0
  75. package/dist/components/CandleView/Indicators/SubChart/MACDIndicator.d.ts +6 -0
  76. package/dist/components/CandleView/Indicators/SubChart/OBVIndicator.d.ts +6 -0
  77. package/dist/components/CandleView/Indicators/SubChart/RSIIndicator.d.ts +6 -0
  78. package/dist/components/CandleView/Indicators/SubChart/SARIndicator.d.ts +6 -0
  79. package/dist/components/CandleView/Indicators/SubChart/StochasticIndicator.d.ts +25 -0
  80. package/dist/components/CandleView/Indicators/SubChart/VolumeIndicator.d.ts +11 -0
  81. package/dist/components/CandleView/LeftPanel/Config.d.ts +65 -0
  82. package/dist/components/CandleView/LeftPanel/EmojiConfig.d.ts +21 -0
  83. package/dist/components/CandleView/LeftPanel/ToolManager.d.ts +5 -0
  84. package/dist/components/CandleView/LeftPanel/index.d.ts +95 -0
  85. package/dist/components/CandleView/Mark/Arrow/ArrowLineMark.d.ts +67 -0
  86. package/dist/components/CandleView/Mark/Arrow/ThickArrowLineMark.d.ts +73 -0
  87. package/dist/components/CandleView/Mark/Channel/DisjointChannelMark.d.ts +74 -0
  88. package/dist/components/CandleView/Mark/Channel/EquidistantChannelMark.d.ts +67 -0
  89. package/dist/components/CandleView/Mark/Channel/LinearRegressionChannelMark.d.ts +70 -0
  90. package/dist/components/CandleView/Mark/Channel/ParallelChannelMark.d.ts +67 -0
  91. package/dist/components/CandleView/Mark/Content/ImageMark.d.ts +75 -0
  92. package/dist/components/CandleView/Mark/Fibonacci/FibonacciArcMark.d.ts +88 -0
  93. package/dist/components/CandleView/Mark/Fibonacci/FibonacciChannelMark.d.ts +80 -0
  94. package/dist/components/CandleView/Mark/Fibonacci/FibonacciCircleMark.d.ts +81 -0
  95. package/dist/components/CandleView/Mark/Fibonacci/FibonacciExtensionBasePriceMark.d.ts +89 -0
  96. package/dist/components/CandleView/Mark/Fibonacci/FibonacciExtensionBaseTimeMark.d.ts +89 -0
  97. package/dist/components/CandleView/Mark/Fibonacci/FibonacciFanMark.d.ts +91 -0
  98. package/dist/components/CandleView/Mark/Fibonacci/FibonacciRetracementMark.d.ts +81 -0
  99. package/dist/components/CandleView/Mark/Fibonacci/FibonacciSpiralMark.d.ts +95 -0
  100. package/dist/components/CandleView/Mark/Fibonacci/FibonacciTimeZoonMark.d.ts +71 -0
  101. package/dist/components/CandleView/Mark/Fibonacci/FibonacciWedgeMark.d.ts +97 -0
  102. package/dist/components/CandleView/Mark/Fork/AndrewPitchforkMark.d.ts +77 -0
  103. package/dist/components/CandleView/Mark/Fork/EnhancedAndrewPitchforkMark.d.ts +78 -0
  104. package/dist/components/CandleView/Mark/Fork/SchiffPitchforkMark.d.ts +86 -0
  105. package/dist/components/CandleView/Mark/Gann/GannBoxMark.d.ts +100 -0
  106. package/dist/components/CandleView/Mark/Gann/GannFanMark.d.ts +90 -0
  107. package/dist/components/CandleView/Mark/Gann/GannRectangleMark.d.ts +106 -0
  108. package/dist/components/CandleView/Mark/IDeletableMark.d.ts +5 -0
  109. package/dist/components/CandleView/Mark/IGraph.d.ts +7 -0
  110. package/dist/components/CandleView/Mark/IMarkManager.d.ts +11 -0
  111. package/dist/components/CandleView/Mark/IMarkStyle.d.ts +6 -0
  112. package/dist/components/CandleView/Mark/Line/HorizontalLineMark.d.ts +51 -0
  113. package/dist/components/CandleView/Mark/Line/LineSegmentMark.d.ts +62 -0
  114. package/dist/components/CandleView/Mark/Line/VerticalLineMark.d.ts +51 -0
  115. package/dist/components/CandleView/Mark/Map/HeatMapMark.d.ts +75 -0
  116. package/dist/components/CandleView/Mark/Mock/MockKLineMark.d.ts +70 -0
  117. package/dist/components/CandleView/Mark/Pattern/ABCDMark.d.ts +57 -0
  118. package/dist/components/CandleView/Mark/Pattern/ElliottCorrectiveMark.d.ts +59 -0
  119. package/dist/components/CandleView/Mark/Pattern/ElliottDoubleCombinationMark.d.ts +59 -0
  120. package/dist/components/CandleView/Mark/Pattern/ElliottImpulseMark.d.ts +59 -0
  121. package/dist/components/CandleView/Mark/Pattern/ElliottTriangleMark.d.ts +59 -0
  122. package/dist/components/CandleView/Mark/Pattern/ElliottTripleCombinationMark.d.ts +59 -0
  123. package/dist/components/CandleView/Mark/Pattern/HeadAndShouldersMark.d.ts +63 -0
  124. package/dist/components/CandleView/Mark/Pattern/TriangleABCDMark.d.ts +66 -0
  125. package/dist/components/CandleView/Mark/Pattern/XABCDMark.d.ts +58 -0
  126. package/dist/components/CandleView/Mark/Pen/BrushMark.d.ts +67 -0
  127. package/dist/components/CandleView/Mark/Pen/EraserMark.d.ts +51 -0
  128. package/dist/components/CandleView/Mark/Pen/MarkerPenMark.d.ts +62 -0
  129. package/dist/components/CandleView/Mark/Pen/PenMark.d.ts +62 -0
  130. package/dist/components/CandleView/Mark/Pen/PencilMark.d.ts +62 -0
  131. package/dist/components/CandleView/Mark/Range/LongPositionMark.d.ts +79 -0
  132. package/dist/components/CandleView/Mark/Range/PriceRangeMark.d.ts +71 -0
  133. package/dist/components/CandleView/Mark/Range/ShortPositionMark.d.ts +79 -0
  134. package/dist/components/CandleView/Mark/Range/TimePriceRangeMark.d.ts +74 -0
  135. package/dist/components/CandleView/Mark/Range/TimeRangeMark.d.ts +71 -0
  136. package/dist/components/CandleView/Mark/Shape/CircleMark.d.ts +78 -0
  137. package/dist/components/CandleView/Mark/Shape/CurveMark.d.ts +70 -0
  138. package/dist/components/CandleView/Mark/Shape/DoubleCurveMark.d.ts +75 -0
  139. package/dist/components/CandleView/Mark/Shape/EllipseMark.d.ts +85 -0
  140. package/dist/components/CandleView/Mark/Shape/RectangleMark.ts.d.ts +65 -0
  141. package/dist/components/CandleView/Mark/Shape/SectorMark.d.ts +83 -0
  142. package/dist/components/CandleView/Mark/Shape/TriangleMark.d.ts +91 -0
  143. package/dist/components/CandleView/Mark/Static/BottomArrowMark.d.ts +13 -0
  144. package/dist/components/CandleView/Mark/Static/BottomTextMark.d.ts +22 -0
  145. package/dist/components/CandleView/Mark/Static/MultiBottomArrowMark.d.ts +14 -0
  146. package/dist/components/CandleView/Mark/Static/MultiBottomTextMark.d.ts +36 -0
  147. package/dist/components/CandleView/Mark/Static/MultiTopArrowMark.d.ts +14 -0
  148. package/dist/components/CandleView/Mark/Static/MultiTopTextMark.d.ts +36 -0
  149. package/dist/components/CandleView/Mark/Static/TopArrowMark.d.ts +13 -0
  150. package/dist/components/CandleView/Mark/Static/TopTextMark.d.ts +22 -0
  151. package/dist/components/CandleView/Mark/Text/BubbleBoxMark.d.ts +126 -0
  152. package/dist/components/CandleView/Mark/Text/EmojiMark.d.ts +72 -0
  153. package/dist/components/CandleView/Mark/Text/FlagMark.d.ts +63 -0
  154. package/dist/components/CandleView/Mark/Text/PinMark.d.ts +110 -0
  155. package/dist/components/CandleView/Mark/Text/PriceLabelMark.d.ts +70 -0
  156. package/dist/components/CandleView/Mark/Text/PriceNoteMark.d.ts +87 -0
  157. package/dist/components/CandleView/Mark/Text/SignPostMark.d.ts +110 -0
  158. package/dist/components/CandleView/Mark/Text/TextEditMark.d.ts +105 -0
  159. package/dist/components/CandleView/MarkManager/Channel/DisjointChannelMarkManager.d.ts +68 -0
  160. package/dist/components/CandleView/MarkManager/Channel/EquidistantChannelMarkManager.d.ts +67 -0
  161. package/dist/components/CandleView/MarkManager/Channel/LinearRegressionChannelMarkManager.d.ts +64 -0
  162. package/dist/components/CandleView/MarkManager/Channel/ParallelChannelMarkManager.d.ts +67 -0
  163. package/dist/components/CandleView/MarkManager/Content/ImageMarkManager.d.ts +58 -0
  164. package/dist/components/CandleView/MarkManager/Elliott/ElliottCorrectiveMarkManager.d.ts +54 -0
  165. package/dist/components/CandleView/MarkManager/Elliott/ElliottDoubleCombinationMarkManager.d.ts +54 -0
  166. package/dist/components/CandleView/MarkManager/Elliott/ElliottImpulseMarkManager.d.ts +54 -0
  167. package/dist/components/CandleView/MarkManager/Elliott/ElliottTriangleMarkManager.d.ts +54 -0
  168. package/dist/components/CandleView/MarkManager/Elliott/ElliottTripleCombinationMarkManager.d.ts +54 -0
  169. package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciArcMarkManager.d.ts +54 -0
  170. package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciChannelMarkManager.d.ts +65 -0
  171. package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciCircleMarkManager.d.ts +54 -0
  172. package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciExtensionBasePriceMarkManager.d.ts +55 -0
  173. package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciExtensionBaseTimeMarkManager.d.ts +55 -0
  174. package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciFanMarkManager.d.ts +54 -0
  175. package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciRetracementMarkManager.d.ts +55 -0
  176. package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciSpiralMarkManager.d.ts +54 -0
  177. package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciTimeZoonMarkManager.d.ts +54 -0
  178. package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciWedgeMarkManager.d.ts +57 -0
  179. package/dist/components/CandleView/MarkManager/Fork/AndrewPitchforkMarkManager.d.ts +72 -0
  180. package/dist/components/CandleView/MarkManager/Fork/EnhancedAndrewPitchforkMarkManager.d.ts +72 -0
  181. package/dist/components/CandleView/MarkManager/Fork/SchiffPitchforkMarkManager.d.ts +77 -0
  182. package/dist/components/CandleView/MarkManager/Gann/GannBoxMarkManager.d.ts +54 -0
  183. package/dist/components/CandleView/MarkManager/Gann/GannFanMarkManager.d.ts +54 -0
  184. package/dist/components/CandleView/MarkManager/Gann/GannRectangleManager.d.ts +57 -0
  185. package/dist/components/CandleView/MarkManager/Line/ArrowLineMarkManager.d.ts +53 -0
  186. package/dist/components/CandleView/MarkManager/Line/AxisLineMarkManager.d.ts +57 -0
  187. package/dist/components/CandleView/MarkManager/Line/LineSegmentMarkManager.d.ts +53 -0
  188. package/dist/components/CandleView/MarkManager/Line/ThickArrowLineMarkManager.d.ts +53 -0
  189. package/dist/components/CandleView/MarkManager/Map/HeatMapMarkManager.d.ts +65 -0
  190. package/dist/components/CandleView/MarkManager/Mock/MockKLineMarkManager.d.ts +53 -0
  191. package/dist/components/CandleView/MarkManager/Pattern/ABCDMarkManager.d.ts +54 -0
  192. package/dist/components/CandleView/MarkManager/Pattern/HeadAndShouldersMarkManager.d.ts +54 -0
  193. package/dist/components/CandleView/MarkManager/Pattern/TriangleABCDMarkManager.d.ts +55 -0
  194. package/dist/components/CandleView/MarkManager/Pattern/XABCDMarkManager.d.ts +54 -0
  195. package/dist/components/CandleView/MarkManager/Pen/BrushMarkManager.d.ts +56 -0
  196. package/dist/components/CandleView/MarkManager/Pen/EraserMarkManager.d.ts +52 -0
  197. package/dist/components/CandleView/MarkManager/Pen/MarkerPenMarkManager.d.ts +56 -0
  198. package/dist/components/CandleView/MarkManager/Pen/PenMarkManager.d.ts +56 -0
  199. package/dist/components/CandleView/MarkManager/Pen/PencilMarkManager.d.ts +55 -0
  200. package/dist/components/CandleView/MarkManager/Range/LongPositionMarkManager.d.ts +64 -0
  201. package/dist/components/CandleView/MarkManager/Range/PriceRangeMarkManager.d.ts +64 -0
  202. package/dist/components/CandleView/MarkManager/Range/ShortPositionMarkManager.d.ts +64 -0
  203. package/dist/components/CandleView/MarkManager/Range/TimePriceRangeMarkManager.d.ts +64 -0
  204. package/dist/components/CandleView/MarkManager/Range/TimeRangeMarkManager.d.ts +64 -0
  205. package/dist/components/CandleView/MarkManager/Shape/CircleMarkManager.d.ts +54 -0
  206. package/dist/components/CandleView/MarkManager/Shape/CurveMarkManager.d.ts +54 -0
  207. package/dist/components/CandleView/MarkManager/Shape/DoubleCurveMarkManager.d.ts +55 -0
  208. package/dist/components/CandleView/MarkManager/Shape/EllipseMarkManager.d.ts +56 -0
  209. package/dist/components/CandleView/MarkManager/Shape/RectangleMarkManager.d.ts +52 -0
  210. package/dist/components/CandleView/MarkManager/Shape/SectorMarkManager.d.ts +54 -0
  211. package/dist/components/CandleView/MarkManager/Shape/TriangleMarkManager.d.ts +54 -0
  212. package/dist/components/CandleView/MarkManager/StaticMarkManager.d.ts +46 -0
  213. package/dist/components/CandleView/MarkManager/Text/BubbleBoxMarkManager.d.ts +62 -0
  214. package/dist/components/CandleView/MarkManager/Text/EmojiMarkManager.d.ts +53 -0
  215. package/dist/components/CandleView/MarkManager/Text/FlagMarkManager.d.ts +52 -0
  216. package/dist/components/CandleView/MarkManager/Text/PinMarkManager.d.ts +57 -0
  217. package/dist/components/CandleView/MarkManager/Text/PriceLabelMarkManager.d.ts +52 -0
  218. package/dist/components/CandleView/MarkManager/Text/PriceNoteMarkManager.d.ts +54 -0
  219. package/dist/components/CandleView/MarkManager/Text/SignPostMarkManager.d.ts +56 -0
  220. package/dist/components/CandleView/MarkManager/Text/TextEditMarkManager.d.ts +62 -0
  221. package/dist/components/CandleView/Theme.d.ts +59 -0
  222. package/dist/components/CandleView/TopPanel/Config.d.ts +22 -0
  223. package/dist/components/CandleView/TopPanel/IndicatorProcessing.d.ts +4 -0
  224. package/dist/components/CandleView/TopPanel/index.d.ts +104 -0
  225. package/dist/components/CandleView/ViewportManager.d.ts +53 -0
  226. package/dist/components/CandleView/index.d.ts +2 -0
  227. package/dist/components/CandleView/tools.d.ts +7 -0
  228. package/dist/components/CandleView/types.d.ts +200 -0
  229. package/dist/index.d.ts +2 -0
  230. package/dist/index.js +87315 -0
  231. package/dist/index.js.map +1 -0
  232. package/dist/index.modern.js +87312 -0
  233. package/dist/index.modern.js.map +1 -0
  234. package/dist/index.test.d.ts +1 -0
  235. package/package.json +93 -0
@@ -0,0 +1,23 @@
1
+ import { MouseEventParams } from "lightweight-charts";
2
+ import { IIndicatorInfo } from "../../Indicators/SubChart/IIndicator";
3
+ import { BaseChartPane } from "../Panes/BaseChartPane";
4
+ export declare class Stochastic extends BaseChartPane {
5
+ private seriesMap;
6
+ private stochasticIndicator;
7
+ private currentValues;
8
+ private stochasticIndicatorInfo;
9
+ init(chartData: any[], settings?: IIndicatorInfo[]): void;
10
+ updateSettings(chartData: any[], settings?: IIndicatorInfo[]): void;
11
+ getParams(): IIndicatorInfo[];
12
+ private getCurrentValue;
13
+ private updateInfoParams;
14
+ protected getPriceScaleOptions(): any;
15
+ updateData(chartData: any[]): void;
16
+ getSeries(): {
17
+ [key: string]: any;
18
+ };
19
+ updateIndicatorSettings(settings: IIndicatorInfo): void;
20
+ getIndicatorSettings(): IIndicatorInfo | null;
21
+ destroy(): void;
22
+ handleCrosshairMoveEvent(event: MouseEventParams): void;
23
+ }
@@ -0,0 +1,24 @@
1
+ import { MouseEventParams } from "lightweight-charts";
2
+ import { IIndicatorInfo } from "../../Indicators/SubChart/IIndicator";
3
+ import { BaseChartPane } from "../Panes/BaseChartPane";
4
+ export declare class Volume extends BaseChartPane {
5
+ private seriesMap;
6
+ private volumeIndicator;
7
+ private currentValues;
8
+ private _default;
9
+ private volumeIndicatorInfo;
10
+ init(chartData: any[], settings?: IIndicatorInfo[]): void;
11
+ updateSettings(chartData: any[], settings?: IIndicatorInfo[]): void;
12
+ getParams(): IIndicatorInfo[];
13
+ private getCurrentValue;
14
+ private updateInfoParams;
15
+ protected getPriceScaleOptions(): any;
16
+ updateData(chartData: any[]): void;
17
+ getSeries(): {
18
+ [key: string]: any;
19
+ };
20
+ updateIndicatorSettings(settings: IIndicatorInfo): void;
21
+ getIndicatorSettings(): IIndicatorInfo | null;
22
+ destroy(): void;
23
+ handleCrosshairMoveEvent(event: MouseEventParams): void;
24
+ }
@@ -0,0 +1,51 @@
1
+ import React from 'react';
2
+ import { MarkDrawing, Point } from '../../types';
3
+ import { ThemeConfig } from '../../Theme';
4
+ import { I18n } from '../../I18n';
5
+ interface GraphMarkToolBarProps {
6
+ position: Point;
7
+ selectedDrawing: MarkDrawing | null;
8
+ theme: ThemeConfig;
9
+ onClose: () => void;
10
+ onDelete: () => void;
11
+ onChangeColor: (color: string) => void;
12
+ onChangeStyle: (lineStyle: 'solid' | 'dashed' | 'dotted') => void;
13
+ onChangeWidth: (width: number) => void;
14
+ onEditText?: () => void;
15
+ onDragStart: (point: Point) => void;
16
+ isDragging: boolean;
17
+ getToolName: (toolId: string) => string;
18
+ onPanelChange?: (panel: 'color' | 'style' | null) => void;
19
+ i18n: I18n;
20
+ }
21
+ interface GraphMarkToolBarState {
22
+ activePanel: 'color' | 'style' | 'lineSize' | 'lineStyle' | null;
23
+ lineWidth: number;
24
+ lineStyle: 'solid' | 'dashed' | 'dotted';
25
+ isBold: boolean;
26
+ isItalic: boolean;
27
+ currentColor: string;
28
+ }
29
+ export declare class GraphMarkToolBar extends React.Component<GraphMarkToolBarProps, GraphMarkToolBarState> {
30
+ private toolbarRef;
31
+ constructor(props: GraphMarkToolBarProps);
32
+ componentDidMount(): void;
33
+ componentWillUnmount(): void;
34
+ componentDidUpdate(prevProps: GraphMarkToolBarProps): void;
35
+ private handleDocumentClick;
36
+ private stopPropagation;
37
+ private handleDragStart;
38
+ private handleButtonClick;
39
+ private handleClosePanel;
40
+ private handleColorChange;
41
+ private handleLineSizeChange;
42
+ private handleLineStyleChange;
43
+ private renderDragHandle;
44
+ private renderIconButton;
45
+ private renderColorPanel;
46
+ private renderLineSizeDropdown;
47
+ private renderLineStyleDropdown;
48
+ private renderMainToolbar;
49
+ render(): React.JSX.Element | null;
50
+ }
51
+ export {};
@@ -0,0 +1,65 @@
1
+ import React from 'react';
2
+ import { MarkDrawing, Point } from '../../types';
3
+ import { ThemeConfig } from '../../Theme';
4
+ import { I18n } from '../../I18n';
5
+ interface TextMarkToolBarProps {
6
+ position: Point;
7
+ selectedDrawing: MarkDrawing | null;
8
+ theme: ThemeConfig;
9
+ onClose: () => void;
10
+ onDelete: () => void;
11
+ onChangeTextColor: (color: string) => void;
12
+ onChangeTextStyle: (style: {
13
+ isBold?: boolean;
14
+ isItalic?: boolean;
15
+ }) => void;
16
+ onChangeTextSize: (size: number) => void;
17
+ onChangeGraphColor: (color: string) => void;
18
+ onChangeGraphStyle: (lineStyle: 'solid' | 'dashed' | 'dotted') => void;
19
+ onChangeGraphLineWidth: (width: number) => void;
20
+ onEditText?: () => void;
21
+ onDragStart: (point: Point) => void;
22
+ isDragging: boolean;
23
+ getToolName: (toolId: string) => string;
24
+ onPanelChange?: (panel: 'color' | 'style' | null) => void;
25
+ isShowGrapTool?: boolean;
26
+ i18n: I18n;
27
+ }
28
+ interface TextMarkToolBarState {
29
+ activePanel: 'color' | 'style' | 'fontSize' | 'graphColor' | 'graphLineSize' | 'graphLineStyle' | null;
30
+ fontSize: number;
31
+ isBold: boolean;
32
+ isItalic: boolean;
33
+ fontColor: string;
34
+ graphColor: string;
35
+ graphWidth: number;
36
+ graphStyle: 'solid' | 'dashed' | 'dotted';
37
+ }
38
+ export declare class TextMarkToolBar extends React.Component<TextMarkToolBarProps, TextMarkToolBarState> {
39
+ private toolbarRef;
40
+ constructor(props: TextMarkToolBarProps);
41
+ componentDidMount(): void;
42
+ componentWillUnmount(): void;
43
+ private handleDocumentClick;
44
+ private stopPropagation;
45
+ private handleDragStart;
46
+ private handleButtonClick;
47
+ private handleClosePanel;
48
+ private handleColorChange;
49
+ private handleFontSizeChange;
50
+ private handleGraphColorChange;
51
+ private handleGraphStyleChange;
52
+ private handleGraphLineWidthChange;
53
+ private toggleBold;
54
+ private toggleItalic;
55
+ private renderGraphColorPanel;
56
+ private renderGraphLineSizeDropdown;
57
+ private renderGraphLineStyleDropdown;
58
+ private renderDragHandle;
59
+ private renderIconButton;
60
+ private renderColorPanel;
61
+ private renderFontSizePanel;
62
+ renderMainToolbar(): React.JSX.Element;
63
+ render(): React.JSX.Element | null;
64
+ }
65
+ export {};
@@ -0,0 +1,291 @@
1
+ /// <reference types="node" />
2
+ import React from 'react';
3
+ import { ThemeConfig } from '../Theme';
4
+ import { ChartSeries } from './ChartTypeManager';
5
+ import { CursorType, HistoryRecord, ICandleViewDataPoint, MainChartIndicatorType, MainChartType, MarkDrawing, Point, SubChartIndicatorType } from '../types';
6
+ import { IMarkStyle } from '../Mark/IMarkStyle';
7
+ import { ChartMarkManager } from './ChartMarkManager';
8
+ import { ChartMarkTextEditManager } from './ChartMarkTextEditManager';
9
+ import { MainChartTechnicalIndicatorManager } from '../Indicators/MainChart/MainChartIndicatorManager';
10
+ import { ChartMarkState } from './ChartLayerMarkState';
11
+ import { MainChartIndicatorInfo } from '../Indicators/MainChart/MainChartIndicatorInfo';
12
+ import { I18n } from '../I18n';
13
+ import { IStaticMarkData } from '../MarkManager/StaticMarkManager';
14
+ import { ChartPanesManager } from './Panes/ChartPanesManager';
15
+ import { IIndicatorInfo } from '../Indicators/SubChart/IIndicator';
16
+ import { MainChartManager } from './MainChart/MainChartManager';
17
+ import { ViewportManager } from '../ViewportManager';
18
+ export interface ChartLayerProps {
19
+ chart: any;
20
+ chartSeries: ChartSeries | null;
21
+ currentTheme: ThemeConfig;
22
+ activeTool: string | null;
23
+ onCloseDrawing?: () => void;
24
+ onToolSelect?: (tool: string) => void;
25
+ onTextClick?: (toolId: string) => void;
26
+ onEmojiClick?: (toolId: string) => void;
27
+ selectedEmoji?: string;
28
+ chartData: ICandleViewDataPoint[];
29
+ title?: string;
30
+ selectedMainChartIndicator: MainChartIndicatorInfo | null;
31
+ selectedSubChartIndicators: SubChartIndicatorType[];
32
+ handleRemoveSubChartIndicator?: (type: SubChartIndicatorType) => void;
33
+ showInfoLayer: boolean;
34
+ i18n: I18n;
35
+ markData?: IStaticMarkData[];
36
+ onMainChartIndicatorChange: (indicator: MainChartIndicatorInfo | null) => void;
37
+ currentMainChartType: MainChartType;
38
+ viewportManager: ViewportManager | null;
39
+ }
40
+ export interface ChartLayerState extends ChartMarkState {
41
+ isDrawing: boolean;
42
+ drawingPoints: Point[];
43
+ currentDrawing: any;
44
+ drawingStartPoint: Point | null;
45
+ drawings: MarkDrawing[];
46
+ isTextMarkToolbar: boolean;
47
+ dragStartPoint: Point | null;
48
+ history: HistoryRecord[];
49
+ historyIndex: number;
50
+ isDragging: boolean;
51
+ isResizing: boolean;
52
+ isRotating: boolean;
53
+ resizeHandle: string | null;
54
+ isTextInputActive: boolean;
55
+ textInputPosition: Point | null;
56
+ textInputValue: string;
57
+ textInputCursorVisible: boolean;
58
+ textInputCursorTimer: NodeJS.Timeout | null;
59
+ activePanel: null;
60
+ editingTextId: string | null;
61
+ isFirstTimeTextMode: boolean;
62
+ isEmojiInputActive: boolean;
63
+ emojiInputPosition: Point | null;
64
+ editingEmojiId: string | null;
65
+ mousePosition: Point | null;
66
+ currentOHLC: {
67
+ time: string;
68
+ open: number;
69
+ high: number;
70
+ low: number;
71
+ close: number;
72
+ volume?: number;
73
+ } | null;
74
+ showOHLC: boolean;
75
+ maIndicatorValues?: {
76
+ [key: string]: number;
77
+ };
78
+ emaIndicatorValues?: {
79
+ [key: string]: number;
80
+ };
81
+ bollingerBandsValues?: {
82
+ [key: string]: number;
83
+ };
84
+ ichimokuValues?: {
85
+ [key: string]: number;
86
+ };
87
+ donchianChannelValues?: {
88
+ [key: string]: number;
89
+ };
90
+ envelopeValues?: {
91
+ [key: string]: number;
92
+ };
93
+ vwapValue?: number | null;
94
+ isMainChartIndicatorsModalOpen: boolean;
95
+ selectedMainChartIndicators: MainChartIndicatorInfo[];
96
+ selectedMainChartIndicatorTypes: MainChartIndicatorType[];
97
+ modalEditingChartInfoIndicator: MainChartIndicatorInfo | null;
98
+ modalConfirmChartInfoIndicators: MainChartIndicatorInfo[];
99
+ isSubChartIndicatorsSettingModalOpen: boolean;
100
+ subChartIndicatorsSettingModalParams: IIndicatorInfo[];
101
+ currentSubChartIndicatorType: SubChartIndicatorType | null;
102
+ cursorType: CursorType | null;
103
+ }
104
+ declare class ChartLayer extends React.Component<ChartLayerProps, ChartLayerState> {
105
+ canvasRef: React.RefObject<HTMLCanvasElement>;
106
+ containerRef: React.RefObject<HTMLDivElement>;
107
+ allDrawings: MarkDrawing[];
108
+ private doubleClickTimeout;
109
+ private chartEventManager;
110
+ private originalChartOptions;
111
+ currentMarkSettingsStyle: IMarkStyle | null;
112
+ chartMarkManager: ChartMarkManager | null;
113
+ chartMarkTextEditManager: ChartMarkTextEditManager | null;
114
+ mainChartTechnicalIndicatorManager: MainChartTechnicalIndicatorManager | null;
115
+ private staticMarkManager;
116
+ chartPanesManager: ChartPanesManager | null;
117
+ private volume;
118
+ private volumeHeatMap;
119
+ private marketProfile;
120
+ mainChartManager: MainChartManager | null;
121
+ constructor(props: ChartLayerProps);
122
+ componentDidMount(): void;
123
+ componentDidUpdate(prevProps: ChartLayerProps): void;
124
+ componentWillUnmount(): void;
125
+ private handleInitMainChartMaps;
126
+ private handleUpdateMainChartMaps;
127
+ private hasChartDataChanged;
128
+ private hasMainChartIndicatorChanged;
129
+ private initStaticMark;
130
+ private updateStaticMark;
131
+ private swtichMainChartType;
132
+ setCursorType: (cursorType: CursorType) => void;
133
+ private initializeMainChartIndicators;
134
+ private updateAllMainChartIndicatorData;
135
+ private updateMainChartIndicators;
136
+ private updateSelectedMainChartIndicators;
137
+ private handleOpenIndicatorSettings;
138
+ private handleMainChartIndicatorsSettingConfirm;
139
+ private handleRemoveIndicator;
140
+ setMockKLineMarkMode: () => void;
141
+ private initializeGraphManager;
142
+ private initializeGraphManagerProps;
143
+ private destroyGraphManager;
144
+ showAllMark: () => void;
145
+ hideAllMark: () => void;
146
+ clearAllMark: () => void;
147
+ setSchiffPitchforkMode: () => void;
148
+ setHeatMapMode: () => void;
149
+ setTextEditMarkMode: () => void;
150
+ setBubbleBoxMarkMode: () => void;
151
+ setPinMarkMode: () => void;
152
+ setEmojiMarkMode: (emoji: string) => void;
153
+ setSignpostMarkMode: () => void;
154
+ setPriceNoteMarkMode: () => void;
155
+ setFlagMarkMode: () => void;
156
+ setPriceLabelMode: () => void;
157
+ setShortPositionMarkMode: () => void;
158
+ setLongPositionMarkMode: () => void;
159
+ setThickArrowLineMode: () => void;
160
+ setEraserMode: () => void;
161
+ setMarkerPenMode: () => void;
162
+ setBrushMode: () => void;
163
+ setPenMode: () => void;
164
+ setPencilMode: () => void;
165
+ setTimePriceRangeMarkMode: () => void;
166
+ setPriceRangeMarkMode: () => void;
167
+ setTimeRangeMarkMode: () => void;
168
+ setElliottTripleCombinationMode: () => void;
169
+ setElliottDoubleCombinationMode: () => void;
170
+ setElliottTriangleMode: () => void;
171
+ setElliottCorrectiveMode: () => void;
172
+ setElliottImpulseMode: () => void;
173
+ setTriangleABCDMode: () => void;
174
+ setABCDMode: () => void;
175
+ setHeadAndShouldersMode: () => void;
176
+ setXABCDMode: () => void;
177
+ setDoubleCurveMode: () => void;
178
+ setCurveMode: () => void;
179
+ setSectorMode: () => void;
180
+ setFibonacciExtensionBaseTimeMode: () => void;
181
+ setFibonacciExtensionBasePriceMode: () => void;
182
+ setFibonacciChannelMode: () => void;
183
+ setFibonacciFanMode: () => void;
184
+ setFibonacciWedgeMode: () => void;
185
+ setFibonacciSpiralMode: () => void;
186
+ setFibonacciCircleMode: () => void;
187
+ setFibonacciArcMode: () => void;
188
+ setFibonacciRetracementMode: () => void;
189
+ setFibonacciTimeZoonMode: () => void;
190
+ setGannRectangleMode: () => void;
191
+ setGannBoxMode: () => void;
192
+ setGannFanMode: () => void;
193
+ setTriangleMarkMode: () => void;
194
+ setEllipseMarkMode: () => void;
195
+ setCircleMarkMode: () => void;
196
+ setRectangleMarkMode: () => void;
197
+ setEnhancedAndrewPitchforkMode: () => void;
198
+ setAndrewPitchforkMode: () => void;
199
+ setDisjointChannelMarkMode: () => void;
200
+ setEquidistantChannelMarkMode: () => void;
201
+ setLinearRegressionChannelMode: () => void;
202
+ setLineSegmentMarkMode: () => void;
203
+ setHorizontalLineMode: () => void;
204
+ setVerticalLineMode: () => void;
205
+ setArrowLineMarkMode: () => void;
206
+ setParallelChannelMarkMode: () => void;
207
+ showGraphMarkToolBar: (drawing: MarkDrawing) => void;
208
+ closeGraphMarkToolBar: () => void;
209
+ showTableMarkToolBar: (drawing: MarkDrawing) => void;
210
+ closeTableMarkToolBar: () => void;
211
+ showTextEditMarkToolBar: (drawing: MarkDrawing, isShowGrapTool: boolean) => void;
212
+ closeTextMarkToolBar: () => void;
213
+ private setupAllContainerEvents;
214
+ private cleanupAllContainerEvents;
215
+ private setupAllDocumentEvents;
216
+ private cleanupAllDocumentEvents;
217
+ private handleMouseDown;
218
+ private handleMouseUp;
219
+ private handleMouseMove;
220
+ serializeDrawings(): string;
221
+ handleViewportShiftLeft: () => void;
222
+ handleViewportShiftRight: () => void;
223
+ handleZoomIn: () => void;
224
+ handleZoomOut: () => void;
225
+ openIndicatorsModal: () => void;
226
+ private handleToggleIndicator;
227
+ private renderChartInfo;
228
+ private handleIndicatorsClose;
229
+ setImageMarkMode: () => void;
230
+ private handleImageConfirm;
231
+ private handleImageUploadClose;
232
+ private setSelectedImageUrl;
233
+ private handleChangeTextMarkFontColor;
234
+ private handleChangeTextMarkStyle;
235
+ private handleChangeTextMarkFontSize;
236
+ private handleChangeTextMarkGraphColor;
237
+ private handleChangeTextMarkGraphLineStyle;
238
+ private handleChangeTextMarkGraphLineWidth;
239
+ private handleDeleteTextEditMark;
240
+ private handleTextMarkEditorSave;
241
+ private handleTextMarkEditorCancel;
242
+ private handleDeleteGraphMark;
243
+ private handleChangeGraphMarkColor;
244
+ private handleChangeGraphMarkStyle;
245
+ private handleChangeGraphMarkWidth;
246
+ private handleGraphToolbarDrag;
247
+ private handleKeyDown;
248
+ private setupCanvas;
249
+ private handleDocumentMouseUp;
250
+ private handleDocumentMouseDown;
251
+ private handleDocumentMouseMove;
252
+ private handleDocumentMouseWheel;
253
+ getDrawingLayerElementsPosition(): Array<{
254
+ id: string;
255
+ type: string;
256
+ position: {
257
+ x: number;
258
+ y: number;
259
+ };
260
+ element?: HTMLElement;
261
+ }>;
262
+ setDrawingLayerElementsPosition(positions: Array<{
263
+ id: string;
264
+ type: string;
265
+ position: {
266
+ x: number;
267
+ y: number;
268
+ };
269
+ }>): void;
270
+ moveDrawingLayerElements(deltaX: number, deltaY: number): void;
271
+ getDrawingLayerElementsByType(type: 'text' | 'emoji'): Array<{
272
+ id: string;
273
+ position: {
274
+ x: number;
275
+ y: number;
276
+ };
277
+ element: HTMLElement;
278
+ }>;
279
+ private handleTextMarkToolBarDrag;
280
+ private getToolName;
281
+ private toggleOHLCVisibility;
282
+ disableChartMovement(): void;
283
+ enableChartMovement(): void;
284
+ private renderMainChart;
285
+ showSubChartSettingModal: (initialParams: IIndicatorInfo[] | undefined, subChartIndicatorType: SubChartIndicatorType) => void;
286
+ private handleSubChartSettingClose;
287
+ private handleSubChartSettingConfirm;
288
+ render(): React.JSX.Element;
289
+ }
290
+ export { ChartLayer };
291
+ export type { MarkDrawing };
@@ -0,0 +1,28 @@
1
+ import { I18n } from "./I18n";
2
+ import { ICandleViewDataPoint, TimeframeEnum, TimezoneEnum } from "./types";
3
+ export interface TimeframeConfig {
4
+ seconds: number;
5
+ groupBy: 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month';
6
+ }
7
+ export interface TimeConfig {
8
+ timeframe?: TimeframeEnum;
9
+ timezone?: TimezoneEnum;
10
+ }
11
+ export declare const TIMEFRAME_CONFIGS: {
12
+ [key: string]: TimeframeConfig;
13
+ };
14
+ export declare function getTimeframeDisplayName(timeframe: string, i18n: I18n): string;
15
+ export declare function generateExtendedVirtualData(originalData: ICandleViewDataPoint[], beforeCount: number, afterCount: number, timeframe?: string): ICandleViewDataPoint[];
16
+ export declare function convertTimeZone(data: ICandleViewDataPoint[], timezone: TimezoneEnum): ICandleViewDataPoint[];
17
+ export interface TimeZoneConfig {
18
+ name: string;
19
+ offset: string;
20
+ displayName: string;
21
+ }
22
+ export declare const TIMEZONE_CONFIGS: {
23
+ [key in TimezoneEnum]: TimeZoneConfig;
24
+ };
25
+ export declare function aggregateForTimeFrame(data: ICandleViewDataPoint[], timeframe: TimeframeEnum): ICandleViewDataPoint[];
26
+ export declare function getTimeframeSeconds(timeframe: TimeframeEnum): number;
27
+ export declare function createAggregatedCandle(group: ICandleViewDataPoint[]): ICandleViewDataPoint;
28
+ export declare function fillMissingCandleTimeframe(timeframe: TimeframeEnum, data: ICandleViewDataPoint[]): ICandleViewDataPoint[];
@@ -0,0 +1,15 @@
1
+ import { ICandleViewDataPoint } from './types';
2
+ export interface DataLoaderConfig {
3
+ jsonFilePath?: string;
4
+ data?: ICandleViewDataPoint[];
5
+ url?: string;
6
+ }
7
+ export declare class DataLoader {
8
+ static loadData(config: DataLoaderConfig): ICandleViewDataPoint[];
9
+ private static loadFromLocalFile;
10
+ private static loadFromUrl;
11
+ private static parseOHLCData;
12
+ private static validateAndFormatData;
13
+ static validateConfig(config: DataLoaderConfig): boolean;
14
+ static getActiveDataSource(config: DataLoaderConfig): string;
15
+ }
@@ -0,0 +1,23 @@
1
+ import { ICandleViewDataPoint, MainChartType, TimeframeEnum, TimezoneEnum } from './types';
2
+ import { TimeConfig } from './DataAdapter';
3
+ export interface DataProcessingConfig {
4
+ timeframe: TimeframeEnum;
5
+ timezone: TimezoneEnum;
6
+ shouldExtendVirtualData?: boolean;
7
+ virtualDataBeforeCount?: number;
8
+ virtualDataAfterCount?: number;
9
+ chartType?: string;
10
+ }
11
+ export declare function buildDefaultDataProcessingConfig(timeConfig: TimeConfig, chartType: MainChartType, virtualDataBeforeCount?: number, virtualDataAfterCount?: number): DataProcessingConfig;
12
+ export declare class DataManager {
13
+ static handleData(originalData: ICandleViewDataPoint[], config: DataProcessingConfig, chartType: MainChartType): ICandleViewDataPoint[];
14
+ private static extendWithVirtualData;
15
+ private static calculateOptimalVirtualDataCount;
16
+ private static formatCache;
17
+ static handleChartDisplayData(data: ICandleViewDataPoint[], mainChartType: MainChartType): ICandleViewDataPoint[];
18
+ static filterRealData(data: ICandleViewDataPoint[]): ICandleViewDataPoint[];
19
+ static getTimeframeConfig(timeframe: TimeframeEnum): import("./DataAdapter").TimeframeConfig;
20
+ static validateData(data: ICandleViewDataPoint[]): boolean;
21
+ static sampleData(data: ICandleViewDataPoint[], sampleRate?: number): ICandleViewDataPoint[];
22
+ }
23
+ export declare const processChartData: (originalData: ICandleViewDataPoint[], config: DataProcessingConfig, chartType: MainChartType) => ICandleViewDataPoint[];
@@ -0,0 +1,45 @@
1
+ import { ICandleViewDataPoint } from "./types";
2
+ export declare class DataPointManager {
3
+ private static lastFirstRealDataInViewport;
4
+ private static lastLastRealDataInViewport;
5
+ private static lastFirstRealDataLeftViewport;
6
+ private static lastFirstRealDataRightViewport;
7
+ private static lastLastRealDataLeftViewport;
8
+ private static lastLastRealDataRightViewport;
9
+ private static lastFirstRealDataNearRightViewport;
10
+ private static lastLastRealDataNearLeftViewport;
11
+ static getRealDataRange(data: ICandleViewDataPoint[]): {
12
+ firstIndex: number;
13
+ lastIndex: number;
14
+ } | null;
15
+ static checkDataPointPositions(visibleLogicalRange: {
16
+ from: number;
17
+ to: number;
18
+ } | null, realDataRange: {
19
+ firstIndex: number;
20
+ lastIndex: number;
21
+ } | null, callbacks: {
22
+ onFirstRealDataExitLeftViewport?: () => void;
23
+ onFirstRealDataExitRightViewport?: () => void;
24
+ onLastRealDataExitLeftViewport?: () => void;
25
+ onLastRealDataExitRightViewport?: () => void;
26
+ onFirstRealDataExitViewport?: () => void;
27
+ onLastRealDataExitViewport?: () => void;
28
+ onFirstRealDataEnterLeftViewport?: () => void;
29
+ onFirstRealDataNearRightViewport?: () => void;
30
+ onLastRealDataNearLeftViewport?: () => void;
31
+ onFirstRealDataLeaveNearRightViewport?: () => void;
32
+ onLastRealDataLeaveNearLeftViewport?: () => void;
33
+ }): void;
34
+ static reset(): void;
35
+ static getCurrentState(): {
36
+ lastFirstRealDataInViewport: boolean;
37
+ lastLastRealDataInViewport: boolean;
38
+ lastFirstRealDataLeftViewport: boolean;
39
+ lastFirstRealDataRightViewport: boolean;
40
+ lastLastRealDataLeftViewport: boolean;
41
+ lastLastRealDataRightViewport: boolean;
42
+ lastFirstRealDataNearRightViewport: boolean;
43
+ lastLastRealDataNearLeftViewport: boolean;
44
+ };
45
+ }