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,67 @@
1
+ import { MarkType } from "../../types";
2
+ import { IDeletableMark } from "../IDeletableMark";
3
+ import { IGraph } from "../IGraph";
4
+ import { IMarkStyle } from "../IMarkStyle";
5
+ export declare class BrushMark implements IGraph, IMarkStyle, IDeletableMark {
6
+ private _chart;
7
+ private _series;
8
+ private _renderer;
9
+ private _color;
10
+ private _lineWidth;
11
+ private _lineStyle;
12
+ private _isPreview;
13
+ private _isDragging;
14
+ private _points;
15
+ private markType;
16
+ private _showHandles;
17
+ private _brushPressure;
18
+ constructor(points?: Array<{
19
+ time: number;
20
+ price: number;
21
+ }>, color?: string, lineWidth?: number, isPreview?: boolean);
22
+ getMarkType(): MarkType;
23
+ attached(param: any): void;
24
+ updateAllViews(): void;
25
+ addPoint(time: number, price: number): void;
26
+ updatePoints(points: Array<{
27
+ time: number;
28
+ price: number;
29
+ }>): void;
30
+ setPreviewMode(isPreview: boolean): void;
31
+ setDragging(isDragging: boolean): void;
32
+ setShowHandles(show: boolean): void;
33
+ dragByPixels(deltaX: number, deltaY: number): void;
34
+ isPointNearPath(x: number, y: number, threshold?: number): boolean;
35
+ private requestUpdate;
36
+ time(): number;
37
+ priceValue(): number;
38
+ paneViews(): {
39
+ renderer: () => any;
40
+ }[];
41
+ private drawBrushStroke;
42
+ private drawControlPoints;
43
+ private adjustColorBrightness;
44
+ updateStyles(styles: {
45
+ color?: string;
46
+ lineWidth?: number;
47
+ lineStyle?: 'solid' | 'dashed' | 'dotted';
48
+ brushPressure?: number;
49
+ [key: string]: any;
50
+ }): void;
51
+ getCurrentStyles(): Record<string, any>;
52
+ getPoints(): Array<{
53
+ time: number;
54
+ price: number;
55
+ }>;
56
+ updateColor(color: string): void;
57
+ updateLineWidth(lineWidth: number): void;
58
+ updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
59
+ getBounds(): {
60
+ minX: number;
61
+ maxX: number;
62
+ minY: number;
63
+ maxY: number;
64
+ } | null;
65
+ clear(): void;
66
+ getPointCount(): number;
67
+ }
@@ -0,0 +1,51 @@
1
+ import { MarkType } from "../../types";
2
+ import { IGraph } from "../IGraph";
3
+ import { IMarkStyle } from "../IMarkStyle";
4
+ export declare class EraserMark implements IGraph, IMarkStyle {
5
+ private _chart;
6
+ private _series;
7
+ private _renderer;
8
+ private _color;
9
+ private _lineWidth;
10
+ private _lineStyle;
11
+ private _points;
12
+ private markType;
13
+ constructor(points?: Array<{
14
+ time: number;
15
+ price: number;
16
+ }>, color?: string, lineWidth?: number, isPreview?: boolean);
17
+ getMarkType(): MarkType;
18
+ attached(param: any): void;
19
+ updateAllViews(): void;
20
+ addPoint(time: number, price: number): void;
21
+ clearPoints(): void;
22
+ setPreviewMode(isPreview: boolean): void;
23
+ private requestUpdate;
24
+ time(): number;
25
+ priceValue(): number;
26
+ paneViews(): {
27
+ renderer: () => any;
28
+ }[];
29
+ getPoints(): Array<{
30
+ time: number;
31
+ price: number;
32
+ }>;
33
+ updateColor(color: string): void;
34
+ updateLineWidth(lineWidth: number): void;
35
+ updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
36
+ updateStyles(styles: {
37
+ color?: string;
38
+ lineWidth?: number;
39
+ lineStyle?: 'solid' | 'dashed' | 'dotted';
40
+ [key: string]: any;
41
+ }): void;
42
+ getCurrentStyles(): Record<string, any>;
43
+ getBounds(): {
44
+ minX: number;
45
+ maxX: number;
46
+ minY: number;
47
+ maxY: number;
48
+ } | null;
49
+ clear(): void;
50
+ getPointCount(): number;
51
+ }
@@ -0,0 +1,62 @@
1
+ import { MarkType } from "../../types";
2
+ import { IDeletableMark } from "../IDeletableMark";
3
+ import { IGraph } from "../IGraph";
4
+ import { IMarkStyle } from "../IMarkStyle";
5
+ export declare class MarkerPenMark implements IGraph, IMarkStyle, IDeletableMark {
6
+ private _chart;
7
+ private _series;
8
+ private _renderer;
9
+ private _color;
10
+ private _lineWidth;
11
+ private _lineStyle;
12
+ private _isPreview;
13
+ private _isDragging;
14
+ private _points;
15
+ private markType;
16
+ private _showHandles;
17
+ constructor(points?: Array<{
18
+ time: number;
19
+ price: number;
20
+ }>, color?: string, lineWidth?: number, isPreview?: boolean);
21
+ getMarkType(): MarkType;
22
+ attached(param: any): void;
23
+ updateAllViews(): void;
24
+ addPoint(time: number, price: number): void;
25
+ updatePoints(points: Array<{
26
+ time: number;
27
+ price: number;
28
+ }>): void;
29
+ setPreviewMode(isPreview: boolean): void;
30
+ setDragging(isDragging: boolean): void;
31
+ setShowHandles(show: boolean): void;
32
+ dragByPixels(deltaX: number, deltaY: number): void;
33
+ isPointNearPath(x: number, y: number, threshold?: number): boolean;
34
+ private requestUpdate;
35
+ time(): number;
36
+ priceValue(): number;
37
+ paneViews(): {
38
+ renderer: () => any;
39
+ }[];
40
+ getPoints(): Array<{
41
+ time: number;
42
+ price: number;
43
+ }>;
44
+ updateColor(color: string): void;
45
+ updateLineWidth(lineWidth: number): void;
46
+ updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
47
+ updateStyles(styles: {
48
+ color?: string;
49
+ lineWidth?: number;
50
+ lineStyle?: 'solid' | 'dashed' | 'dotted';
51
+ [key: string]: any;
52
+ }): void;
53
+ getCurrentStyles(): Record<string, any>;
54
+ getBounds(): {
55
+ minX: number;
56
+ maxX: number;
57
+ minY: number;
58
+ maxY: number;
59
+ } | null;
60
+ clear(): void;
61
+ getPointCount(): number;
62
+ }
@@ -0,0 +1,62 @@
1
+ import { MarkType } from "../../types";
2
+ import { IDeletableMark } from "../IDeletableMark";
3
+ import { IGraph } from "../IGraph";
4
+ import { IMarkStyle } from "../IMarkStyle";
5
+ export declare class PenMark implements IGraph, IMarkStyle, IDeletableMark {
6
+ private _chart;
7
+ private _series;
8
+ private _renderer;
9
+ private _color;
10
+ private _lineWidth;
11
+ private _lineStyle;
12
+ private _isPreview;
13
+ private _isDragging;
14
+ private _points;
15
+ private markType;
16
+ private _showHandles;
17
+ constructor(points?: Array<{
18
+ time: number;
19
+ price: number;
20
+ }>, color?: string, lineWidth?: number, isPreview?: boolean);
21
+ getMarkType(): MarkType;
22
+ attached(param: any): void;
23
+ updateAllViews(): void;
24
+ addPoint(time: number, price: number): void;
25
+ updatePoints(points: Array<{
26
+ time: number;
27
+ price: number;
28
+ }>): void;
29
+ setPreviewMode(isPreview: boolean): void;
30
+ setDragging(isDragging: boolean): void;
31
+ setShowHandles(show: boolean): void;
32
+ dragByPixels(deltaX: number, deltaY: number): void;
33
+ isPointNearPath(x: number, y: number, threshold?: number): boolean;
34
+ private requestUpdate;
35
+ time(): number;
36
+ priceValue(): number;
37
+ paneViews(): {
38
+ renderer: () => any;
39
+ }[];
40
+ getPoints(): Array<{
41
+ time: number;
42
+ price: number;
43
+ }>;
44
+ updateColor(color: string): void;
45
+ updateLineWidth(lineWidth: number): void;
46
+ updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
47
+ updateStyles(styles: {
48
+ color?: string;
49
+ lineWidth?: number;
50
+ lineStyle?: 'solid' | 'dashed' | 'dotted';
51
+ [key: string]: any;
52
+ }): void;
53
+ getCurrentStyles(): Record<string, any>;
54
+ getBounds(): {
55
+ minX: number;
56
+ maxX: number;
57
+ minY: number;
58
+ maxY: number;
59
+ } | null;
60
+ clear(): void;
61
+ getPointCount(): number;
62
+ }
@@ -0,0 +1,62 @@
1
+ import { MarkType } from "../../types";
2
+ import { IDeletableMark } from "../IDeletableMark";
3
+ import { IGraph } from "../IGraph";
4
+ import { IMarkStyle } from "../IMarkStyle";
5
+ export declare class PencilMark implements IGraph, IMarkStyle, IDeletableMark {
6
+ private _chart;
7
+ private _series;
8
+ private _renderer;
9
+ private _color;
10
+ private _lineWidth;
11
+ private _lineStyle;
12
+ private _isPreview;
13
+ private _isDragging;
14
+ private _points;
15
+ private markType;
16
+ private _showHandles;
17
+ constructor(points?: Array<{
18
+ time: number;
19
+ price: number;
20
+ }>, color?: string, lineWidth?: number, isPreview?: boolean);
21
+ getMarkType(): MarkType;
22
+ attached(param: any): void;
23
+ updateAllViews(): void;
24
+ addPoint(time: number, price: number): void;
25
+ updatePoints(points: Array<{
26
+ time: number;
27
+ price: number;
28
+ }>): void;
29
+ setPreviewMode(isPreview: boolean): void;
30
+ setDragging(isDragging: boolean): void;
31
+ setShowHandles(show: boolean): void;
32
+ dragByPixels(deltaX: number, deltaY: number): void;
33
+ isPointNearPath(x: number, y: number, threshold?: number): boolean;
34
+ private requestUpdate;
35
+ time(): number;
36
+ priceValue(): number;
37
+ paneViews(): {
38
+ renderer: () => any;
39
+ }[];
40
+ getPoints(): Array<{
41
+ time: number;
42
+ price: number;
43
+ }>;
44
+ updateColor(color: string): void;
45
+ updateLineWidth(lineWidth: number): void;
46
+ updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
47
+ updateStyles(styles: {
48
+ color?: string;
49
+ lineWidth?: number;
50
+ lineStyle?: 'solid' | 'dashed' | 'dotted';
51
+ [key: string]: any;
52
+ }): void;
53
+ getCurrentStyles(): Record<string, any>;
54
+ getBounds(): {
55
+ minX: number;
56
+ maxX: number;
57
+ minY: number;
58
+ maxY: number;
59
+ } | null;
60
+ clear(): void;
61
+ getPointCount(): number;
62
+ }
@@ -0,0 +1,79 @@
1
+ import { MarkType } from "../../types";
2
+ import { IGraph } from "../IGraph";
3
+ import { IMarkStyle } from "../IMarkStyle";
4
+ export declare class LongPositionMark implements IGraph, IMarkStyle {
5
+ private _chart;
6
+ private _series;
7
+ private _startTime;
8
+ private _endTime;
9
+ private _upperPrice;
10
+ private _lowerPrice;
11
+ private _middlePrice;
12
+ private _renderer;
13
+ private _color;
14
+ private _lineWidth;
15
+ private _lineStyle;
16
+ private _isPreview;
17
+ private _isDragging;
18
+ private _dragPoint;
19
+ private _showHandles;
20
+ private markType;
21
+ private _hoverPoint;
22
+ private _upperFillColor;
23
+ private _lowerFillColor;
24
+ private _fillOpacity;
25
+ constructor(startTime: number, endTime: number, upperPrice: number, lowerPrice: number, color?: string, lineWidth?: number, isPreview?: boolean, upperFillColor?: string, lowerFillColor?: string);
26
+ getMarkType(): MarkType;
27
+ attached(param: any): void;
28
+ updateAllViews(): void;
29
+ updatePrices(upperPrice: number, lowerPrice: number): void;
30
+ updateTimeRange(startTime: number, endTime: number): void;
31
+ setPreviewMode(isPreview: boolean): void;
32
+ setDragging(isDragging: boolean, dragPoint?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'middle' | null): void;
33
+ setShowHandles(show: boolean): void;
34
+ setHoverPoint(hoverPoint: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'middle' | null): void;
35
+ dragByPixels(deltaX: number, deltaY: number): void;
36
+ adjustByHandle(handleType: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'middle', newTime: number, newPrice: number): void;
37
+ isPointNearHandle(x: number, y: number, threshold?: number): 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'middle' | null;
38
+ private requestUpdate;
39
+ time(): number;
40
+ priceValue(): number;
41
+ paneViews(): {
42
+ renderer: () => any;
43
+ }[];
44
+ private drawHandles;
45
+ private drawCornerHandle;
46
+ private drawMiddleHandle;
47
+ getStartTime(): number;
48
+ getEndTime(): number;
49
+ getUpperPrice(): number;
50
+ getLowerPrice(): number;
51
+ getMiddlePrice(): number;
52
+ updateColor(color: string): void;
53
+ updateLineWidth(lineWidth: number): void;
54
+ updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
55
+ updateUpperFillColor(upperFillColor: string): void;
56
+ updateLowerFillColor(lowerFillColor: string): void;
57
+ updateFillOpacity(fillOpacity: number): void;
58
+ updateStyles(styles: {
59
+ color?: string;
60
+ lineWidth?: number;
61
+ lineStyle?: 'solid' | 'dashed' | 'dotted';
62
+ upperFillColor?: string;
63
+ lowerFillColor?: string;
64
+ fillOpacity?: number;
65
+ [key: string]: any;
66
+ }): void;
67
+ getCurrentStyles(): Record<string, any>;
68
+ getBounds(): {
69
+ startX: any;
70
+ endX: any;
71
+ upperY: any;
72
+ lowerY: any;
73
+ minX: number;
74
+ maxX: number;
75
+ minY: number;
76
+ maxY: number;
77
+ } | null;
78
+ isPointInRect(x: number, y: number): boolean;
79
+ }
@@ -0,0 +1,71 @@
1
+ import { MarkType } from "../../types";
2
+ import { IGraph } from "../IGraph";
3
+ import { IMarkStyle } from "../IMarkStyle";
4
+ export declare class PriceRangeMark implements IGraph, IMarkStyle {
5
+ private _chart;
6
+ private _series;
7
+ private _startPrice;
8
+ private _endPrice;
9
+ private _startTime;
10
+ private _endTime;
11
+ private _renderer;
12
+ private _color;
13
+ private _lineWidth;
14
+ private _lineStyle;
15
+ private _isPreview;
16
+ private _isDragging;
17
+ private _dragPoint;
18
+ private _showHandles;
19
+ private markType;
20
+ private _hoverPoint;
21
+ private _fillColor;
22
+ private _fillOpacity;
23
+ constructor(startPrice: number, endPrice: number, startTime: number, endTime: number, color?: string, lineWidth?: number, isPreview?: boolean, fillColor?: string);
24
+ getMarkType(): MarkType;
25
+ attached(param: any): void;
26
+ updateAllViews(): void;
27
+ updateEndPoint(endPrice: number, endTime: number): void;
28
+ updateStartPoint(startPrice: number, startTime: number): void;
29
+ setPreviewMode(isPreview: boolean): void;
30
+ setDragging(isDragging: boolean, dragPoint?: 'start' | 'end' | 'line' | null): void;
31
+ setShowHandles(show: boolean): void;
32
+ setHoverPoint(hoverPoint: 'start' | 'end' | 'line' | null): void;
33
+ dragLineByPixels(deltaX: number, deltaY: number): void;
34
+ isPointNearHandle(x: number, y: number, threshold?: number): 'start' | 'end' | null;
35
+ private requestUpdate;
36
+ time(): number;
37
+ priceValue(): number;
38
+ paneViews(): {
39
+ renderer: () => any;
40
+ }[];
41
+ private drawArrowLine;
42
+ getStartPrice(): number;
43
+ getEndPrice(): number;
44
+ getStartTime(): number;
45
+ getEndTime(): number;
46
+ updateColor(color: string): void;
47
+ updateLineWidth(lineWidth: number): void;
48
+ updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
49
+ updateFillColor(fillColor: string): void;
50
+ updateFillOpacity(fillOpacity: number): void;
51
+ updateStyles(styles: {
52
+ color?: string;
53
+ lineWidth?: number;
54
+ lineStyle?: 'solid' | 'dashed' | 'dotted';
55
+ fillColor?: string;
56
+ fillOpacity?: number;
57
+ [key: string]: any;
58
+ }): void;
59
+ getCurrentStyles(): Record<string, any>;
60
+ getBounds(): {
61
+ startX: any;
62
+ startY: any;
63
+ endX: any;
64
+ endY: any;
65
+ minX: number;
66
+ maxX: number;
67
+ minY: number;
68
+ maxY: number;
69
+ } | null;
70
+ isPointInRect(x: number, y: number): boolean;
71
+ }
@@ -0,0 +1,79 @@
1
+ import { MarkType } from "../../types";
2
+ import { IGraph } from "../IGraph";
3
+ import { IMarkStyle } from "../IMarkStyle";
4
+ export declare class ShortPositionMark implements IGraph, IMarkStyle {
5
+ private _chart;
6
+ private _series;
7
+ private _startTime;
8
+ private _endTime;
9
+ private _upperPrice;
10
+ private _lowerPrice;
11
+ private _middlePrice;
12
+ private _renderer;
13
+ private _color;
14
+ private _lineWidth;
15
+ private _lineStyle;
16
+ private _isPreview;
17
+ private _isDragging;
18
+ private _dragPoint;
19
+ private _showHandles;
20
+ private markType;
21
+ private _hoverPoint;
22
+ private _upperFillColor;
23
+ private _lowerFillColor;
24
+ private _fillOpacity;
25
+ constructor(startTime: number, endTime: number, upperPrice: number, lowerPrice: number, color?: string, lineWidth?: number, isPreview?: boolean, upperFillColor?: string, lowerFillColor?: string);
26
+ getMarkType(): MarkType;
27
+ attached(param: any): void;
28
+ updateAllViews(): void;
29
+ updatePrices(upperPrice: number, lowerPrice: number): void;
30
+ updateTimeRange(startTime: number, endTime: number): void;
31
+ setPreviewMode(isPreview: boolean): void;
32
+ setDragging(isDragging: boolean, dragPoint?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'middle' | null): void;
33
+ setShowHandles(show: boolean): void;
34
+ setHoverPoint(hoverPoint: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'middle' | null): void;
35
+ dragByPixels(deltaX: number, deltaY: number): void;
36
+ adjustByHandle(handleType: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'middle', newTime: number, newPrice: number): void;
37
+ isPointNearHandle(x: number, y: number, threshold?: number): 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'middle' | null;
38
+ private requestUpdate;
39
+ time(): number;
40
+ priceValue(): number;
41
+ paneViews(): {
42
+ renderer: () => any;
43
+ }[];
44
+ private drawHandles;
45
+ private drawCornerHandle;
46
+ private drawMiddleHandle;
47
+ getStartTime(): number;
48
+ getEndTime(): number;
49
+ getUpperPrice(): number;
50
+ getLowerPrice(): number;
51
+ getMiddlePrice(): number;
52
+ updateColor(color: string): void;
53
+ updateLineWidth(lineWidth: number): void;
54
+ updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
55
+ updateUpperFillColor(upperFillColor: string): void;
56
+ updateLowerFillColor(lowerFillColor: string): void;
57
+ updateFillOpacity(fillOpacity: number): void;
58
+ updateStyles(styles: {
59
+ color?: string;
60
+ lineWidth?: number;
61
+ lineStyle?: 'solid' | 'dashed' | 'dotted';
62
+ upperFillColor?: string;
63
+ lowerFillColor?: string;
64
+ fillOpacity?: number;
65
+ [key: string]: any;
66
+ }): void;
67
+ getCurrentStyles(): Record<string, any>;
68
+ getBounds(): {
69
+ startX: any;
70
+ endX: any;
71
+ upperY: any;
72
+ lowerY: any;
73
+ minX: number;
74
+ maxX: number;
75
+ minY: number;
76
+ maxY: number;
77
+ } | null;
78
+ isPointInRect(x: number, y: number): boolean;
79
+ }
@@ -0,0 +1,74 @@
1
+ import { MarkType } from "../../types";
2
+ import { IGraph } from "../IGraph";
3
+ import { IMarkStyle } from "../IMarkStyle";
4
+ export declare class TimePriceRangeMark implements IGraph, IMarkStyle {
5
+ private _chart;
6
+ private _series;
7
+ private _startTime;
8
+ private _startPrice;
9
+ private _endTime;
10
+ private _endPrice;
11
+ private _renderer;
12
+ private _color;
13
+ private _lineWidth;
14
+ private _lineStyle;
15
+ private _isPreview;
16
+ private _isDragging;
17
+ private _dragPoint;
18
+ private _showHandles;
19
+ private markType;
20
+ private _hoverPoint;
21
+ private _fillColor;
22
+ private _fillOpacity;
23
+ constructor(startTime: number, startPrice: number, endTime: number, endPrice: number, color?: string, lineWidth?: number, isPreview?: boolean, fillColor?: string);
24
+ getMarkType(): MarkType;
25
+ attached(param: any): void;
26
+ updateAllViews(): void;
27
+ updateEndPoint(endTime: number, endPrice: number): void;
28
+ updateStartPoint(startTime: number, startPrice: number): void;
29
+ setPreviewMode(isPreview: boolean): void;
30
+ setDragging(isDragging: boolean, dragPoint?: 'start' | 'end' | 'line' | null): void;
31
+ setShowHandles(show: boolean): void;
32
+ setHoverPoint(hoverPoint: 'start' | 'end' | 'line' | null): void;
33
+ dragLineByPixels(deltaX: number, deltaY: number): void;
34
+ isPointNearHandle(x: number, y: number, threshold?: number): 'start' | 'end' | null;
35
+ private requestUpdate;
36
+ time(): number;
37
+ priceValue(): number;
38
+ paneViews(): {
39
+ renderer: () => any;
40
+ }[];
41
+ private drawTimeAxisLines;
42
+ private drawPriceAxisLines;
43
+ private drawHandles;
44
+ private isStartTimeEarlier;
45
+ getStartTime(): number;
46
+ getStartPrice(): number;
47
+ getEndTime(): number;
48
+ getEndPrice(): number;
49
+ updateColor(color: string): void;
50
+ updateLineWidth(lineWidth: number): void;
51
+ updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
52
+ updateFillColor(fillColor: string): void;
53
+ updateFillOpacity(fillOpacity: number): void;
54
+ updateStyles(styles: {
55
+ color?: string;
56
+ lineWidth?: number;
57
+ lineStyle?: 'solid' | 'dashed' | 'dotted';
58
+ fillColor?: string;
59
+ fillOpacity?: number;
60
+ [key: string]: any;
61
+ }): void;
62
+ getCurrentStyles(): Record<string, any>;
63
+ getBounds(): {
64
+ startX: any;
65
+ startY: any;
66
+ endX: any;
67
+ endY: any;
68
+ minX: number;
69
+ maxX: number;
70
+ minY: number;
71
+ maxY: number;
72
+ } | null;
73
+ isPointInRect(x: number, y: number): boolean;
74
+ }
@@ -0,0 +1,71 @@
1
+ import { MarkType } from "../../types";
2
+ import { IGraph } from "../IGraph";
3
+ import { IMarkStyle } from "../IMarkStyle";
4
+ export declare class TimeRangeMark implements IGraph, IMarkStyle {
5
+ private _chart;
6
+ private _series;
7
+ private _startTime;
8
+ private _endTime;
9
+ private _startPrice;
10
+ private _endPrice;
11
+ private _renderer;
12
+ private _color;
13
+ private _lineWidth;
14
+ private _lineStyle;
15
+ private _isPreview;
16
+ private _isDragging;
17
+ private _dragPoint;
18
+ private _showHandles;
19
+ private markType;
20
+ private _hoverPoint;
21
+ private _fillColor;
22
+ private _fillOpacity;
23
+ constructor(startTime: number, endTime: number, startPrice: number, endPrice: number, color?: string, lineWidth?: number, isPreview?: boolean, fillColor?: string);
24
+ getMarkType(): MarkType;
25
+ attached(param: any): void;
26
+ updateAllViews(): void;
27
+ updateEndPoint(endTime: number, endPrice: number): void;
28
+ updateStartPoint(startTime: number, startPrice: number): void;
29
+ setPreviewMode(isPreview: boolean): void;
30
+ setDragging(isDragging: boolean, dragPoint?: 'start' | 'end' | 'line' | null): void;
31
+ setShowHandles(show: boolean): void;
32
+ setHoverPoint(hoverPoint: 'start' | 'end' | 'line' | null): void;
33
+ dragLineByPixels(deltaX: number, deltaY: number): void;
34
+ isPointNearHandle(x: number, y: number, threshold?: number): 'start' | 'end' | null;
35
+ private requestUpdate;
36
+ time(): number;
37
+ priceValue(): number;
38
+ paneViews(): {
39
+ renderer: () => any;
40
+ }[];
41
+ private drawArrowLine;
42
+ getStartTime(): number;
43
+ getEndTime(): number;
44
+ getStartPrice(): number;
45
+ getEndPrice(): number;
46
+ updateColor(color: string): void;
47
+ updateLineWidth(lineWidth: number): void;
48
+ updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
49
+ updateFillColor(fillColor: string): void;
50
+ updateFillOpacity(fillOpacity: number): void;
51
+ updateStyles(styles: {
52
+ color?: string;
53
+ lineWidth?: number;
54
+ lineStyle?: 'solid' | 'dashed' | 'dotted';
55
+ fillColor?: string;
56
+ fillOpacity?: number;
57
+ [key: string]: any;
58
+ }): void;
59
+ getCurrentStyles(): Record<string, any>;
60
+ getBounds(): {
61
+ startX: any;
62
+ startY: any;
63
+ endX: any;
64
+ endY: any;
65
+ minX: number;
66
+ maxX: number;
67
+ minY: number;
68
+ maxY: number;
69
+ } | null;
70
+ isPointInRect(x: number, y: number): boolean;
71
+ }