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,110 @@
1
+ import { IGraph } from "../IGraph";
2
+ import { IMarkStyle } from "../IMarkStyle";
3
+ import { MarkType } from "../../types";
4
+ export declare class SignPostMark implements IGraph, IMarkStyle {
5
+ private _chart;
6
+ private _series;
7
+ private _time;
8
+ private _price;
9
+ private _renderer;
10
+ private _color;
11
+ private _backgroundColor;
12
+ private _textColor;
13
+ private _fontSize;
14
+ private _lineWidth;
15
+ private _text;
16
+ private markType;
17
+ private _lineLength;
18
+ private _isEditing;
19
+ private _editInput;
20
+ private _isSelected;
21
+ private _isHovered;
22
+ private _cursorVisible;
23
+ private _cursorTimer;
24
+ private _originalText;
25
+ private _isDragging;
26
+ private _graphColor;
27
+ private _graphLineStyle;
28
+ private _graphLineWidth;
29
+ private _isBold;
30
+ private _isItalic;
31
+ constructor(time: string, price: number, text?: string, color?: string, backgroundColor?: string, textColor?: string, fontSize?: number, lineWidth?: number);
32
+ updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
33
+ getMarkType(): MarkType;
34
+ attached(param: any): void;
35
+ private _addEventListeners;
36
+ private _removeEventListeners;
37
+ updateAllViews(): void;
38
+ updatePosition(time: string, price: number): void;
39
+ updateText(text: string): void;
40
+ setPreviewMode(isPreview: boolean): void;
41
+ setShowLabel(show: boolean): void;
42
+ setDragging(dragging: boolean): void;
43
+ dragByPixels(deltaX: number, deltaY: number): void;
44
+ isPointNearLabel(x: number, y: number, threshold?: number): boolean;
45
+ private _isPointInBubble;
46
+ private _onMouseDown;
47
+ private _onDoubleClick;
48
+ private _showEditorModal;
49
+ private _onContextMenu;
50
+ private _onDocumentClick;
51
+ private _onKeyDown;
52
+ private _onInput;
53
+ private _onBlur;
54
+ private _startEditing;
55
+ private _startCursorBlink;
56
+ private _stopCursorBlink;
57
+ private _finishEditing;
58
+ private _cancelEditing;
59
+ private _cleanupEditing;
60
+ private _updateHoverStateAfterEdit;
61
+ private _selectSignPostMark;
62
+ private _deselectSignPostMark;
63
+ private _dispatchSignPostMarkSelected;
64
+ private _dispatchSignPostMarkDeselected;
65
+ private _dispatchSignPostMarkDeleted;
66
+ private _getScreenCoordinates;
67
+ private requestUpdate;
68
+ time(): string;
69
+ priceValue(): number;
70
+ paneViews(): {
71
+ renderer: () => any;
72
+ }[];
73
+ getTime(): string;
74
+ getPrice(): number;
75
+ getText(): string;
76
+ updateStyles(styles: {
77
+ [key: string]: any;
78
+ }): void;
79
+ getCurrentStyles(): Record<string, any>;
80
+ private _buildFontString;
81
+ private _getLineDashPattern;
82
+ getBounds(): {
83
+ x: any;
84
+ y: any;
85
+ minX: number;
86
+ maxX: any;
87
+ minY: number;
88
+ maxY: any;
89
+ } | null;
90
+ /**
91
+ * 吸附到最近的K线 - 修复时间格式处理
92
+ */
93
+ snapToNearestBar(targetTime: number): {
94
+ time: number;
95
+ price: number;
96
+ };
97
+ updateTextContent(text: string, color?: string, backgroundColor?: string, textColor?: string, fontSize?: number): void;
98
+ delete(): void;
99
+ getPosition(): {
100
+ time: string;
101
+ price: number;
102
+ text: string;
103
+ fontSize: number;
104
+ color: string;
105
+ backgroundColor: string;
106
+ textColor: string;
107
+ };
108
+ destroy(): void;
109
+ static createWithSnap(time: string, price: number, text?: string): SignPostMark;
110
+ }
@@ -0,0 +1,105 @@
1
+ import { MarkType } from "../../types";
2
+ import { IGraph } from "../IGraph";
3
+ import { IMarkStyle } from "../IMarkStyle";
4
+ export declare class TextEditMark implements IGraph, IMarkStyle {
5
+ private _chart;
6
+ private _series;
7
+ private _bubbleTime;
8
+ private _bubblePrice;
9
+ private _renderer;
10
+ private _graphColor;
11
+ private _color;
12
+ private _backgroundColor;
13
+ private _textColor;
14
+ private _fontSize;
15
+ private _lineWidth;
16
+ private _text;
17
+ private _isItalic;
18
+ private _isBold;
19
+ private _isDraggingBubble;
20
+ private markType;
21
+ private _isEditing;
22
+ private _editInput;
23
+ private _isSelected;
24
+ private _isHovered;
25
+ private _lastHoverState;
26
+ private _cursorVisible;
27
+ private _cursorTimer;
28
+ private _graphLineStyle;
29
+ constructor(bubbleTime: number, bubblePrice: number, text?: string, color?: string, backgroundColor?: string, textColor?: string, fontSize?: number, lineWidth?: number);
30
+ updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
31
+ getMarkType(): MarkType;
32
+ attached(param: any): void;
33
+ private _addEventListeners;
34
+ private _removeEventListeners;
35
+ updateAllViews(): void;
36
+ updateBubblePosition(time: number, price: number): void;
37
+ setPreviewMode(isPreview: boolean): void;
38
+ setDraggingBubble(isDragging: boolean): void;
39
+ setShowLabel(show: boolean): void;
40
+ dragBubbleByPixels(deltaX: number, deltaY: number): void;
41
+ isPointNearBubble(x: number, y: number, threshold?: number): boolean;
42
+ private _isPointInBubble;
43
+ private _onMouseDown;
44
+ private _startDraggingBubble;
45
+ private _dispatchTextEditMarkDragStart;
46
+ private _onMouseMove;
47
+ private _onMouseUp;
48
+ private _updateHoverState;
49
+ private _onDoubleClick;
50
+ private _showEditorModal;
51
+ private _onContextMenu;
52
+ private _onDocumentClick;
53
+ private _onKeyDown;
54
+ private _onInput;
55
+ private _onBlur;
56
+ private _startEditing;
57
+ private _startCursorBlink;
58
+ private _stopCursorBlink;
59
+ private _finishEditing;
60
+ private _cancelEditing;
61
+ private _cleanupEditing;
62
+ private _updateHoverStateAfterEdit;
63
+ private _selectTextEditMark;
64
+ private _deselectTextEditMark;
65
+ private _dispatchTextEditMarkSelected;
66
+ private _dispatchTextEditMarkDeselected;
67
+ private _dispatchTextEditMarkDeleted;
68
+ private _getScreenCoordinates;
69
+ private requestUpdate;
70
+ bubbleTime(): number;
71
+ bubblePrice(): number;
72
+ getText(): string;
73
+ updateText(text: string): void;
74
+ updateStyles(styles: {
75
+ [key: string]: any;
76
+ }): void;
77
+ getCurrentStyles(): Record<string, any>;
78
+ private _getLineDashPattern;
79
+ getBounds(): {
80
+ bubbleX: any;
81
+ bubbleY: any;
82
+ minX: number;
83
+ maxX: number;
84
+ minY: number;
85
+ maxY: number;
86
+ } | null;
87
+ paneViews(): {
88
+ renderer: () => any;
89
+ }[];
90
+ startEditingImmediately(): void;
91
+ getBubbleTime(): number;
92
+ getBubblePrice(): number;
93
+ updateTextContent(text: string, color?: string, backgroundColor?: string, textColor?: string, fontSize?: number): void;
94
+ delete(): void;
95
+ getPosition(): {
96
+ bubbleTime: number;
97
+ bubblePrice: number;
98
+ text: string;
99
+ fontSize: number;
100
+ color: string;
101
+ backgroundColor: string;
102
+ textColor: string;
103
+ };
104
+ destroy(): void;
105
+ }
@@ -0,0 +1,68 @@
1
+ /// <reference types="react" />
2
+ import { ChartSeries } from "../../ChartLayer/ChartTypeManager";
3
+ import { DisjointChannelMark } from "../../Mark/Channel/DisjointChannelMark";
4
+ import { IMarkManager } from "../../Mark/IMarkManager";
5
+ import { Point } from "../../types";
6
+ export interface DisjointChannelMarkManagerProps {
7
+ chartSeries: ChartSeries | null;
8
+ chart: any;
9
+ containerRef: React.RefObject<HTMLDivElement | null>;
10
+ onCloseDrawing?: () => void;
11
+ }
12
+ export interface DisjointChannelMarkState {
13
+ isDisjointChannelMarkMode: boolean;
14
+ disjointChannelMarkStartPoint: Point | null;
15
+ currentDisjointChannelMark: DisjointChannelMark | null;
16
+ isDragging: boolean;
17
+ dragTarget: DisjointChannelMark | null;
18
+ dragPoint: 'start' | 'end' | 'channel' | 'angle' | 'line' | null;
19
+ drawingPhase: 'firstPoint' | 'secondPoint' | 'widthAdjust' | 'none';
20
+ adjustingMode: 'start' | 'end' | 'channel' | 'angle' | null;
21
+ adjustStartData: {
22
+ time: number;
23
+ price: number;
24
+ channelHeight: number;
25
+ angle?: number;
26
+ } | null;
27
+ }
28
+ export declare class DisjointChannelMarkManager implements IMarkManager<DisjointChannelMark> {
29
+ private props;
30
+ private state;
31
+ private previewDisjointChannelMark;
32
+ private channelMarks;
33
+ private mouseDownPoint;
34
+ private dragStartData;
35
+ private isOperating;
36
+ private firstPointTime;
37
+ private firstPointPrice;
38
+ private secondPointTime;
39
+ private secondPointPrice;
40
+ private hoverPoint;
41
+ constructor(props: DisjointChannelMarkManagerProps);
42
+ clearState(): void;
43
+ getMarkAtPoint(point: Point): DisjointChannelMark | null;
44
+ getCurrentDragTarget(): DisjointChannelMark | null;
45
+ getCurrentDragPoint(): string | null;
46
+ getCurrentOperatingMark(): DisjointChannelMark | null;
47
+ getAllMarks(): DisjointChannelMark[];
48
+ cancelOperationMode(): DisjointChannelMarkState;
49
+ setDisjointChannelMarkMode: () => DisjointChannelMarkState;
50
+ cancelDisjointChannelMarkMode: () => DisjointChannelMarkState;
51
+ handleMouseDown: (point: Point) => DisjointChannelMarkState;
52
+ private handleDrawingPhaseMouseDown;
53
+ private isPointNearLine;
54
+ handleMouseMove: (point: Point) => void;
55
+ handleMouseUp: (point: Point) => DisjointChannelMarkState;
56
+ handleKeyDown: (event: KeyboardEvent) => DisjointChannelMarkState;
57
+ getState(): DisjointChannelMarkState;
58
+ updateProps(newProps: Partial<DisjointChannelMarkManagerProps>): void;
59
+ destroy(): void;
60
+ getDisjointChannelMarks(): DisjointChannelMark[];
61
+ removeDisjointChannelMark(mark: DisjointChannelMark): void;
62
+ isOperatingOnChart(): boolean;
63
+ private hiddenMarks;
64
+ hideAllMarks(): void;
65
+ showAllMarks(): void;
66
+ hideMark(mark: DisjointChannelMark): void;
67
+ showMark(mark: DisjointChannelMark): void;
68
+ }
@@ -0,0 +1,67 @@
1
+ /// <reference types="react" />
2
+ import { ChartSeries } from "../../ChartLayer/ChartTypeManager";
3
+ import { EquidistantChannelMark } from "../../Mark/Channel/EquidistantChannelMark";
4
+ import { IMarkManager } from "../../Mark/IMarkManager";
5
+ import { Point } from "../../types";
6
+ export interface EquidistantChannelMarkManagerProps {
7
+ chartSeries: ChartSeries | null;
8
+ chart: any;
9
+ containerRef: React.RefObject<HTMLDivElement | null>;
10
+ onCloseDrawing?: () => void;
11
+ }
12
+ export interface EquidistantChannelMarkState {
13
+ isEquidistantChannelMarkMode: boolean;
14
+ equidistantChannelMarkStartPoint: Point | null;
15
+ currentEquidistantChannelMark: EquidistantChannelMark | null;
16
+ isDragging: boolean;
17
+ dragTarget: EquidistantChannelMark | null;
18
+ dragPoint: 'start' | 'end' | 'channel' | 'line' | null;
19
+ drawingPhase: 'firstPoint' | 'secondPoint' | 'widthAdjust' | 'none';
20
+ adjustingMode: 'start' | 'end' | 'channel' | null;
21
+ adjustStartData: {
22
+ time: number;
23
+ price: number;
24
+ channelHeight: number;
25
+ } | null;
26
+ }
27
+ export declare class EquidistantChannelMarkManager implements IMarkManager<EquidistantChannelMark> {
28
+ private props;
29
+ private state;
30
+ private previewEquidistantChannelMark;
31
+ private channelMarks;
32
+ private mouseDownPoint;
33
+ private dragStartData;
34
+ private isOperating;
35
+ private firstPointTime;
36
+ private firstPointPrice;
37
+ private secondPointTime;
38
+ private secondPointPrice;
39
+ private hoverPoint;
40
+ constructor(props: EquidistantChannelMarkManagerProps);
41
+ clearState(): void;
42
+ getMarkAtPoint(point: Point): EquidistantChannelMark | null;
43
+ getCurrentDragTarget(): EquidistantChannelMark | null;
44
+ getCurrentDragPoint(): string | null;
45
+ getCurrentOperatingMark(): EquidistantChannelMark | null;
46
+ getAllMarks(): EquidistantChannelMark[];
47
+ cancelOperationMode(): EquidistantChannelMarkState;
48
+ setEquidistantChannelMarkMode: () => EquidistantChannelMarkState;
49
+ cancelEquidistantChannelMarkMode: () => EquidistantChannelMarkState;
50
+ handleMouseDown: (point: Point) => EquidistantChannelMarkState;
51
+ private handleDrawingPhaseMouseDown;
52
+ private isPointNearLine;
53
+ handleMouseMove: (point: Point) => void;
54
+ handleMouseUp: (point: Point) => EquidistantChannelMarkState;
55
+ handleKeyDown: (event: KeyboardEvent) => EquidistantChannelMarkState;
56
+ getState(): EquidistantChannelMarkState;
57
+ updateProps(newProps: Partial<EquidistantChannelMarkManagerProps>): void;
58
+ destroy(): void;
59
+ getEquidistantChannelMarks(): EquidistantChannelMark[];
60
+ removeEquidistantChannelMark(mark: EquidistantChannelMark): void;
61
+ isOperatingOnChart(): boolean;
62
+ private hiddenMarks;
63
+ hideAllMarks(): void;
64
+ showAllMarks(): void;
65
+ hideMark(mark: EquidistantChannelMark): void;
66
+ showMark(mark: EquidistantChannelMark): void;
67
+ }
@@ -0,0 +1,64 @@
1
+ /// <reference types="react" />
2
+ import { ChartSeries } from "../../ChartLayer/ChartTypeManager";
3
+ import { LinearRegressionChannelMark } from "../../Mark/Channel/LinearRegressionChannelMark";
4
+ import { IMarkManager } from "../../Mark/IMarkManager";
5
+ import { Point } from "../../types";
6
+ export interface LinearRegressionChannelMarkManagerProps {
7
+ chartSeries: ChartSeries | null;
8
+ chart: any;
9
+ containerRef: React.RefObject<HTMLDivElement | null>;
10
+ onCloseDrawing?: () => void;
11
+ }
12
+ export interface LinearRegressionChannelMarkState {
13
+ isLinearRegressionChannelMode: boolean;
14
+ linearRegressionChannelStartPoint: Point | null;
15
+ currentLinearRegressionChannel: LinearRegressionChannelMark | null;
16
+ isDragging: boolean;
17
+ dragTarget: LinearRegressionChannelMark | null;
18
+ dragPoint: 'start' | 'end' | 'channel' | 'line' | null;
19
+ drawingPhase: 'firstPoint' | 'secondPoint' | 'widthAdjust' | 'none';
20
+ adjustingMode: 'start' | 'end' | 'channel' | 'line' | null;
21
+ adjustStartData: {
22
+ time: number;
23
+ price: number;
24
+ deviation: number;
25
+ } | null;
26
+ }
27
+ export declare class LinearRegressionChannelMarkManager implements IMarkManager<LinearRegressionChannelMark> {
28
+ private props;
29
+ private state;
30
+ private previewLinearRegressionChannel;
31
+ private channelMarks;
32
+ private isOperating;
33
+ private firstPointTime;
34
+ private firstPointPrice;
35
+ private secondPointTime;
36
+ private secondPointPrice;
37
+ constructor(props: LinearRegressionChannelMarkManagerProps);
38
+ clearState(): void;
39
+ getMarkAtPoint(point: Point): LinearRegressionChannelMark | null;
40
+ getCurrentDragTarget(): LinearRegressionChannelMark | null;
41
+ getCurrentDragPoint(): string | null;
42
+ getCurrentOperatingMark(): LinearRegressionChannelMark | null;
43
+ getAllMarks(): LinearRegressionChannelMark[];
44
+ cancelOperationMode(): LinearRegressionChannelMarkState;
45
+ setLinearRegressionChannelMode: () => LinearRegressionChannelMarkState;
46
+ cancelLinearRegressionChannelMode: () => LinearRegressionChannelMarkState;
47
+ handleMouseDown: (point: Point) => LinearRegressionChannelMarkState;
48
+ private handleDrawingPhaseMouseDown;
49
+ handleMouseMove: (point: Point) => void;
50
+ private isPointInChannelArea;
51
+ handleMouseUp: (point: Point) => LinearRegressionChannelMarkState;
52
+ handleKeyDown: (event: KeyboardEvent) => LinearRegressionChannelMarkState;
53
+ getState(): LinearRegressionChannelMarkState;
54
+ updateProps(newProps: Partial<LinearRegressionChannelMarkManagerProps>): void;
55
+ destroy(): void;
56
+ getLinearRegressionChannelMarks(): LinearRegressionChannelMark[];
57
+ removeLinearRegressionChannelMark(mark: LinearRegressionChannelMark): void;
58
+ isOperatingOnChart(): boolean;
59
+ private hiddenMarks;
60
+ hideAllMarks(): void;
61
+ showAllMarks(): void;
62
+ hideMark(mark: LinearRegressionChannelMark): void;
63
+ showMark(mark: LinearRegressionChannelMark): void;
64
+ }
@@ -0,0 +1,67 @@
1
+ /// <reference types="react" />
2
+ import { ChartSeries } from "../../ChartLayer/ChartTypeManager";
3
+ import { ParallelChannelMark } from "../../Mark/Channel/ParallelChannelMark";
4
+ import { IMarkManager } from "../../Mark/IMarkManager";
5
+ import { Point } from "../../types";
6
+ export interface ParallelChannelMarkManagerProps {
7
+ chartSeries: ChartSeries | null;
8
+ chart: any;
9
+ containerRef: React.RefObject<HTMLDivElement | null>;
10
+ onCloseDrawing?: () => void;
11
+ }
12
+ export interface ParallelChannelMarkState {
13
+ isParallelChannelMarkMode: boolean;
14
+ parallelChannelMarkStartPoint: Point | null;
15
+ currentParallelChannelMark: ParallelChannelMark | null;
16
+ isDragging: boolean;
17
+ dragTarget: ParallelChannelMark | null;
18
+ dragPoint: 'start' | 'end' | 'channel' | 'line' | null;
19
+ drawingPhase: 'firstPoint' | 'secondPoint' | 'widthAdjust' | 'none';
20
+ adjustingMode: 'start' | 'end' | 'channel' | null;
21
+ adjustStartData: {
22
+ time: number;
23
+ price: number;
24
+ channelHeight: number;
25
+ } | null;
26
+ }
27
+ export declare class ParallelChannelMarkManager implements IMarkManager<ParallelChannelMark> {
28
+ private props;
29
+ private state;
30
+ private previewParallelChannelMark;
31
+ private channelMarks;
32
+ private mouseDownPoint;
33
+ private dragStartData;
34
+ private isOperating;
35
+ private firstPointTime;
36
+ private firstPointPrice;
37
+ private secondPointTime;
38
+ private secondPointPrice;
39
+ private hoverPoint;
40
+ constructor(props: ParallelChannelMarkManagerProps);
41
+ clearState(): void;
42
+ getMarkAtPoint(point: Point): ParallelChannelMark | null;
43
+ getCurrentDragTarget(): ParallelChannelMark | null;
44
+ getCurrentDragPoint(): string | null;
45
+ getCurrentOperatingMark(): ParallelChannelMark | null;
46
+ getAllMarks(): ParallelChannelMark[];
47
+ cancelOperationMode(): ParallelChannelMarkState;
48
+ setParallelChannelMarkMode: () => ParallelChannelMarkState;
49
+ cancelParallelChannelMarkMode: () => ParallelChannelMarkState;
50
+ handleMouseDown: (point: Point) => ParallelChannelMarkState;
51
+ private handleDrawingPhaseMouseDown;
52
+ private isPointNearLine;
53
+ handleMouseMove: (point: Point) => void;
54
+ handleMouseUp: (point: Point) => ParallelChannelMarkState;
55
+ handleKeyDown: (event: KeyboardEvent) => ParallelChannelMarkState;
56
+ getState(): ParallelChannelMarkState;
57
+ updateProps(newProps: Partial<ParallelChannelMarkManagerProps>): void;
58
+ destroy(): void;
59
+ getParallelChannelMarks(): ParallelChannelMark[];
60
+ removeParallelChannelMark(mark: ParallelChannelMark): void;
61
+ isOperatingOnChart(): boolean;
62
+ private hiddenMarks;
63
+ hideAllMarks(): void;
64
+ showAllMarks(): void;
65
+ hideMark(mark: ParallelChannelMark): void;
66
+ showMark(mark: ParallelChannelMark): void;
67
+ }
@@ -0,0 +1,58 @@
1
+ /// <reference types="react" />
2
+ import { ChartSeries } from "../../ChartLayer/ChartTypeManager";
3
+ import { ImageMark } from "../../Mark/Content/ImageMark";
4
+ import { IMarkManager } from "../../Mark/IMarkManager";
5
+ import { Point } from "../../types";
6
+ export interface ImageMarkManagerProps {
7
+ chartSeries: ChartSeries | null;
8
+ chart: any;
9
+ containerRef: React.RefObject<HTMLDivElement | null>;
10
+ onCloseDrawing?: () => void;
11
+ }
12
+ export interface ImageMarkState {
13
+ isImageMarkMode: boolean;
14
+ imageMarkStartPoint: Point | null;
15
+ currentImageMark: ImageMark | null;
16
+ isDragging: boolean;
17
+ dragTarget: ImageMark | null;
18
+ dragPoint: 'start' | 'end' | 'line' | null;
19
+ showImageModal: boolean;
20
+ selectedImageUrl: string;
21
+ }
22
+ export declare class ImageMarkManager implements IMarkManager<ImageMark> {
23
+ private props;
24
+ private state;
25
+ private previewImageMark;
26
+ private imageMarks;
27
+ private hiddenMarks;
28
+ private dragStartData;
29
+ private isOperating;
30
+ constructor(props: ImageMarkManagerProps);
31
+ clearState(): void;
32
+ getMarkAtPoint(point: Point): ImageMark | null;
33
+ getCurrentDragTarget(): ImageMark | null;
34
+ getCurrentDragPoint(): string | null;
35
+ getCurrentOperatingMark(): ImageMark | null;
36
+ getAllMarks(): ImageMark[];
37
+ cancelOperationMode(): ImageMarkState;
38
+ openImageUploadModal: () => void;
39
+ closeImageUploadModal: () => void;
40
+ setSelectedImageUrl: (url: string) => void;
41
+ confirmImageSelection: () => void;
42
+ startImageMarkMode: () => ImageMarkState;
43
+ cancelImageMarkMode: () => ImageMarkState;
44
+ handleMouseDown: (point: Point) => ImageMarkState;
45
+ handleMouseMove: (point: Point) => void;
46
+ handleMouseUp: (point: Point) => ImageMarkState;
47
+ handleKeyDown: (event: KeyboardEvent) => ImageMarkState;
48
+ getState(): ImageMarkState;
49
+ updateProps(newProps: Partial<ImageMarkManagerProps>): void;
50
+ destroy(): void;
51
+ getImageMarks(): ImageMark[];
52
+ removeImageMark(mark: ImageMark): void;
53
+ isOperatingOnChart(): boolean;
54
+ hideAllMarks(): void;
55
+ showAllMarks(): void;
56
+ hideMark(mark: ImageMark): void;
57
+ showMark(mark: ImageMark): void;
58
+ }
@@ -0,0 +1,54 @@
1
+ /// <reference types="react" />
2
+ import { ChartSeries } from "../../ChartLayer/ChartTypeManager";
3
+ import { IMarkManager } from "../../Mark/IMarkManager";
4
+ import { ElliottCorrectiveMark } from "../../Mark/Pattern/ElliottCorrectiveMark";
5
+ import { Point } from "../../types";
6
+ export interface ElliottCorrectiveMarkManagerProps {
7
+ chartSeries: ChartSeries | null;
8
+ chart: any;
9
+ containerRef: React.RefObject<HTMLDivElement | null>;
10
+ onCloseDrawing?: () => void;
11
+ }
12
+ export interface ElliottCorrectiveMarkState {
13
+ isElliottCorrectiveMode: boolean;
14
+ currentPoints: Point[];
15
+ currentElliottCorrectiveMark: ElliottCorrectiveMark | null;
16
+ isDragging: boolean;
17
+ dragTarget: ElliottCorrectiveMark | null;
18
+ dragPoint: number | null;
19
+ }
20
+ export declare class ElliottCorrectiveMarkManager implements IMarkManager<ElliottCorrectiveMark> {
21
+ private props;
22
+ private state;
23
+ private previewMark;
24
+ private elliottCorrectiveMarks;
25
+ private mouseDownPoint;
26
+ private dragStartData;
27
+ private isOperating;
28
+ private defaultColor;
29
+ constructor(props: ElliottCorrectiveMarkManagerProps);
30
+ clearState(): void;
31
+ getMarkAtPoint(point: Point): ElliottCorrectiveMark | null;
32
+ getCurrentDragTarget(): ElliottCorrectiveMark | null;
33
+ getCurrentDragPoint(): string | null;
34
+ getCurrentOperatingMark(): ElliottCorrectiveMark | null;
35
+ getAllMarks(): ElliottCorrectiveMark[];
36
+ cancelOperationMode(): ElliottCorrectiveMarkState;
37
+ setElliottCorrectiveMode: () => ElliottCorrectiveMarkState;
38
+ cancelElliottCorrectiveMode: () => ElliottCorrectiveMarkState;
39
+ handleMouseDown: (point: Point) => ElliottCorrectiveMarkState;
40
+ handleMouseMove: (point: Point) => void;
41
+ handleMouseUp: (point: Point) => ElliottCorrectiveMarkState;
42
+ handleKeyDown: (event: KeyboardEvent) => ElliottCorrectiveMarkState;
43
+ getState(): ElliottCorrectiveMarkState;
44
+ updateProps(newProps: Partial<ElliottCorrectiveMarkManagerProps>): void;
45
+ destroy(): void;
46
+ getElliottCorrectiveMarks(): ElliottCorrectiveMark[];
47
+ removeElliottCorrectiveMark(mark: ElliottCorrectiveMark): void;
48
+ isOperatingOnChart(): boolean;
49
+ private hiddenMarks;
50
+ hideAllMarks(): void;
51
+ showAllMarks(): void;
52
+ hideMark(mark: ElliottCorrectiveMark): void;
53
+ showMark(mark: ElliottCorrectiveMark): void;
54
+ }
@@ -0,0 +1,54 @@
1
+ /// <reference types="react" />
2
+ import { ChartSeries } from "../../ChartLayer/ChartTypeManager";
3
+ import { IMarkManager } from "../../Mark/IMarkManager";
4
+ import { ElliottDoubleCombinationMark } from "../../Mark/Pattern/ElliottDoubleCombinationMark";
5
+ import { Point } from "../../types";
6
+ export interface ElliottDoubleCombinationMarkManagerProps {
7
+ chartSeries: ChartSeries | null;
8
+ chart: any;
9
+ containerRef: React.RefObject<HTMLDivElement | null>;
10
+ onCloseDrawing?: () => void;
11
+ }
12
+ export interface ElliottDoubleCombinationMarkState {
13
+ isElliottDoubleCombinationMode: boolean;
14
+ currentPoints: Point[];
15
+ currentElliottDoubleCombinationMark: ElliottDoubleCombinationMark | null;
16
+ isDragging: boolean;
17
+ dragTarget: ElliottDoubleCombinationMark | null;
18
+ dragPoint: number | null;
19
+ }
20
+ export declare class ElliottDoubleCombinationMarkManager implements IMarkManager<ElliottDoubleCombinationMark> {
21
+ private props;
22
+ private state;
23
+ private previewMark;
24
+ private elliottDoubleCombinationMarks;
25
+ private mouseDownPoint;
26
+ private dragStartData;
27
+ private isOperating;
28
+ private defaultColor;
29
+ constructor(props: ElliottDoubleCombinationMarkManagerProps);
30
+ clearState(): void;
31
+ getMarkAtPoint(point: Point): ElliottDoubleCombinationMark | null;
32
+ getCurrentDragTarget(): ElliottDoubleCombinationMark | null;
33
+ getCurrentDragPoint(): string | null;
34
+ getCurrentOperatingMark(): ElliottDoubleCombinationMark | null;
35
+ getAllMarks(): ElliottDoubleCombinationMark[];
36
+ cancelOperationMode(): ElliottDoubleCombinationMarkState;
37
+ setElliottDoubleCombinationMode: () => ElliottDoubleCombinationMarkState;
38
+ cancelElliottDoubleCombinationMode: () => ElliottDoubleCombinationMarkState;
39
+ handleMouseDown: (point: Point) => ElliottDoubleCombinationMarkState;
40
+ handleMouseMove: (point: Point) => void;
41
+ handleMouseUp: (point: Point) => ElliottDoubleCombinationMarkState;
42
+ handleKeyDown: (event: KeyboardEvent) => ElliottDoubleCombinationMarkState;
43
+ getState(): ElliottDoubleCombinationMarkState;
44
+ updateProps(newProps: Partial<ElliottDoubleCombinationMarkManagerProps>): void;
45
+ destroy(): void;
46
+ getElliottDoubleCombinationMarks(): ElliottDoubleCombinationMark[];
47
+ removeElliottDoubleCombinationMark(mark: ElliottDoubleCombinationMark): void;
48
+ isOperatingOnChart(): boolean;
49
+ private hiddenMarks;
50
+ hideAllMarks(): void;
51
+ showAllMarks(): void;
52
+ hideMark(mark: ElliottDoubleCombinationMark): void;
53
+ showMark(mark: ElliottDoubleCombinationMark): void;
54
+ }