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.
- package/LICENSE +661 -0
- package/README.md +397 -0
- package/dist/components/CandleView/Camera.d.ts +16 -0
- package/dist/components/CandleView/CandleView.d.ts +149 -0
- package/dist/components/CandleView/ChartLayer/ChartEventManager.d.ts +47 -0
- package/dist/components/CandleView/ChartLayer/ChartInfo.d.ts +62 -0
- package/dist/components/CandleView/ChartLayer/ChartLayerMarkState.d.ts +281 -0
- package/dist/components/CandleView/ChartLayer/ChartManager.d.ts +11 -0
- package/dist/components/CandleView/ChartLayer/ChartMarkManager.d.ts +203 -0
- package/dist/components/CandleView/ChartLayer/ChartMarkTextEditManager.d.ts +16 -0
- package/dist/components/CandleView/ChartLayer/ChartTypeManager.d.ts +17 -0
- package/dist/components/CandleView/ChartLayer/MainChart/Area.d.ts +13 -0
- package/dist/components/CandleView/ChartLayer/MainChart/Bar.d.ts +13 -0
- package/dist/components/CandleView/ChartLayer/MainChart/BaseLine.d.ts +12 -0
- package/dist/components/CandleView/ChartLayer/MainChart/BaselineArea.d.ts +12 -0
- package/dist/components/CandleView/ChartLayer/MainChart/Candlestick.d.ts +12 -0
- package/dist/components/CandleView/ChartLayer/MainChart/HLCArea.d.ts +35 -0
- package/dist/components/CandleView/ChartLayer/MainChart/HeikinAshi.d.ts +12 -0
- package/dist/components/CandleView/ChartLayer/MainChart/HighLow.d.ts +12 -0
- package/dist/components/CandleView/ChartLayer/MainChart/Histogram.d.ts +13 -0
- package/dist/components/CandleView/ChartLayer/MainChart/HollowCandle.d.ts +13 -0
- package/dist/components/CandleView/ChartLayer/MainChart/IMainChart.d.ts +7 -0
- package/dist/components/CandleView/ChartLayer/MainChart/Line.d.ts +13 -0
- package/dist/components/CandleView/ChartLayer/MainChart/LineBreak.d.ts +15 -0
- package/dist/components/CandleView/ChartLayer/MainChart/MainChartManager.d.ts +17 -0
- package/dist/components/CandleView/ChartLayer/MainChart/MarketProfile.d.ts +52 -0
- package/dist/components/CandleView/ChartLayer/MainChart/Mountain.d.ts +12 -0
- package/dist/components/CandleView/ChartLayer/MainChart/StepLine.d.ts +12 -0
- package/dist/components/CandleView/ChartLayer/MainChart/Volume.d.ts +6 -0
- package/dist/components/CandleView/ChartLayer/MainChart/VolumeHeatMap.d.ts +41 -0
- package/dist/components/CandleView/ChartLayer/Modal/ImageUploadModal.d.ts +10 -0
- package/dist/components/CandleView/ChartLayer/Modal/MainChartIndicatorsSettingModal.d.ts +17 -0
- package/dist/components/CandleView/ChartLayer/Modal/SubChartIndicatorsSettingModal.d.ts +17 -0
- package/dist/components/CandleView/ChartLayer/Modal/TextMarkEditorModal.d.ts +21 -0
- package/dist/components/CandleView/ChartLayer/Panes/BaseChartPane.d.ts +41 -0
- package/dist/components/CandleView/ChartLayer/Panes/ChartPaneFactory.d.ts +6 -0
- package/dist/components/CandleView/ChartLayer/Panes/ChartPanesManager.d.ts +31 -0
- package/dist/components/CandleView/ChartLayer/Panes/IChartPanes.d.ts +42 -0
- package/dist/components/CandleView/ChartLayer/SubChart/ADX.d.ts +25 -0
- package/dist/components/CandleView/ChartLayer/SubChart/ATR.d.ts +25 -0
- package/dist/components/CandleView/ChartLayer/SubChart/BBWidth.d.ts +26 -0
- package/dist/components/CandleView/ChartLayer/SubChart/CCI.d.ts +25 -0
- package/dist/components/CandleView/ChartLayer/SubChart/KDJ.d.ts +23 -0
- package/dist/components/CandleView/ChartLayer/SubChart/MACD.d.ts +23 -0
- package/dist/components/CandleView/ChartLayer/SubChart/OBV.d.ts +24 -0
- package/dist/components/CandleView/ChartLayer/SubChart/RSI.d.ts +25 -0
- package/dist/components/CandleView/ChartLayer/SubChart/SAR.d.ts +23 -0
- package/dist/components/CandleView/ChartLayer/SubChart/Stochastic.d.ts +23 -0
- package/dist/components/CandleView/ChartLayer/SubChart/Volume.d.ts +24 -0
- package/dist/components/CandleView/ChartLayer/ToolBar/GraphMarkToolBar.d.ts +51 -0
- package/dist/components/CandleView/ChartLayer/ToolBar/TextMarkToolBar.d.ts +65 -0
- package/dist/components/CandleView/ChartLayer/index.d.ts +291 -0
- package/dist/components/CandleView/DataAdapter.d.ts +28 -0
- package/dist/components/CandleView/DataLoader.d.ts +15 -0
- package/dist/components/CandleView/DataManager.d.ts +23 -0
- package/dist/components/CandleView/DataPointManager.d.ts +45 -0
- package/dist/components/CandleView/I18n.d.ts +418 -0
- package/dist/components/CandleView/Icons.d.ts +161 -0
- package/dist/components/CandleView/Indicators/MainChart/BaseIndicator.d.ts +26 -0
- package/dist/components/CandleView/Indicators/MainChart/BollingerBandsIndicator.d.ts +51 -0
- package/dist/components/CandleView/Indicators/MainChart/DonchianChannelIndicator.d.ts +24 -0
- package/dist/components/CandleView/Indicators/MainChart/EMAIndicator.d.ts +24 -0
- package/dist/components/CandleView/Indicators/MainChart/EnvelopeIndicator.d.ts +52 -0
- package/dist/components/CandleView/Indicators/MainChart/IchimokuIndicator.d.ts +58 -0
- package/dist/components/CandleView/Indicators/MainChart/MAIndicator.d.ts +24 -0
- package/dist/components/CandleView/Indicators/MainChart/MainChartIndicatorInfo.d.ts +24 -0
- package/dist/components/CandleView/Indicators/MainChart/MainChartIndicatorManager.d.ts +28 -0
- package/dist/components/CandleView/Indicators/MainChart/VWAPIndicator.d.ts +26 -0
- package/dist/components/CandleView/Indicators/SubChart/ADXIndicator.d.ts +6 -0
- package/dist/components/CandleView/Indicators/SubChart/ATRIndicator.d.ts +6 -0
- package/dist/components/CandleView/Indicators/SubChart/BBWidthIndicator.d.ts +6 -0
- package/dist/components/CandleView/Indicators/SubChart/CCIIndicator.d.ts +6 -0
- package/dist/components/CandleView/Indicators/SubChart/IIndicator.d.ts +15 -0
- package/dist/components/CandleView/Indicators/SubChart/KDJIndicator.d.ts +6 -0
- package/dist/components/CandleView/Indicators/SubChart/MACDIndicator.d.ts +6 -0
- package/dist/components/CandleView/Indicators/SubChart/OBVIndicator.d.ts +6 -0
- package/dist/components/CandleView/Indicators/SubChart/RSIIndicator.d.ts +6 -0
- package/dist/components/CandleView/Indicators/SubChart/SARIndicator.d.ts +6 -0
- package/dist/components/CandleView/Indicators/SubChart/StochasticIndicator.d.ts +25 -0
- package/dist/components/CandleView/Indicators/SubChart/VolumeIndicator.d.ts +11 -0
- package/dist/components/CandleView/LeftPanel/Config.d.ts +65 -0
- package/dist/components/CandleView/LeftPanel/EmojiConfig.d.ts +21 -0
- package/dist/components/CandleView/LeftPanel/ToolManager.d.ts +5 -0
- package/dist/components/CandleView/LeftPanel/index.d.ts +95 -0
- package/dist/components/CandleView/Mark/Arrow/ArrowLineMark.d.ts +67 -0
- package/dist/components/CandleView/Mark/Arrow/ThickArrowLineMark.d.ts +73 -0
- package/dist/components/CandleView/Mark/Channel/DisjointChannelMark.d.ts +74 -0
- package/dist/components/CandleView/Mark/Channel/EquidistantChannelMark.d.ts +67 -0
- package/dist/components/CandleView/Mark/Channel/LinearRegressionChannelMark.d.ts +70 -0
- package/dist/components/CandleView/Mark/Channel/ParallelChannelMark.d.ts +67 -0
- package/dist/components/CandleView/Mark/Content/ImageMark.d.ts +75 -0
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciArcMark.d.ts +88 -0
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciChannelMark.d.ts +80 -0
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciCircleMark.d.ts +81 -0
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciExtensionBasePriceMark.d.ts +89 -0
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciExtensionBaseTimeMark.d.ts +89 -0
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciFanMark.d.ts +91 -0
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciRetracementMark.d.ts +81 -0
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciSpiralMark.d.ts +95 -0
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciTimeZoonMark.d.ts +71 -0
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciWedgeMark.d.ts +97 -0
- package/dist/components/CandleView/Mark/Fork/AndrewPitchforkMark.d.ts +77 -0
- package/dist/components/CandleView/Mark/Fork/EnhancedAndrewPitchforkMark.d.ts +78 -0
- package/dist/components/CandleView/Mark/Fork/SchiffPitchforkMark.d.ts +86 -0
- package/dist/components/CandleView/Mark/Gann/GannBoxMark.d.ts +100 -0
- package/dist/components/CandleView/Mark/Gann/GannFanMark.d.ts +90 -0
- package/dist/components/CandleView/Mark/Gann/GannRectangleMark.d.ts +106 -0
- package/dist/components/CandleView/Mark/IDeletableMark.d.ts +5 -0
- package/dist/components/CandleView/Mark/IGraph.d.ts +7 -0
- package/dist/components/CandleView/Mark/IMarkManager.d.ts +11 -0
- package/dist/components/CandleView/Mark/IMarkStyle.d.ts +6 -0
- package/dist/components/CandleView/Mark/Line/HorizontalLineMark.d.ts +51 -0
- package/dist/components/CandleView/Mark/Line/LineSegmentMark.d.ts +62 -0
- package/dist/components/CandleView/Mark/Line/VerticalLineMark.d.ts +51 -0
- package/dist/components/CandleView/Mark/Map/HeatMapMark.d.ts +75 -0
- package/dist/components/CandleView/Mark/Mock/MockKLineMark.d.ts +70 -0
- package/dist/components/CandleView/Mark/Pattern/ABCDMark.d.ts +57 -0
- package/dist/components/CandleView/Mark/Pattern/ElliottCorrectiveMark.d.ts +59 -0
- package/dist/components/CandleView/Mark/Pattern/ElliottDoubleCombinationMark.d.ts +59 -0
- package/dist/components/CandleView/Mark/Pattern/ElliottImpulseMark.d.ts +59 -0
- package/dist/components/CandleView/Mark/Pattern/ElliottTriangleMark.d.ts +59 -0
- package/dist/components/CandleView/Mark/Pattern/ElliottTripleCombinationMark.d.ts +59 -0
- package/dist/components/CandleView/Mark/Pattern/HeadAndShouldersMark.d.ts +63 -0
- package/dist/components/CandleView/Mark/Pattern/TriangleABCDMark.d.ts +66 -0
- package/dist/components/CandleView/Mark/Pattern/XABCDMark.d.ts +58 -0
- package/dist/components/CandleView/Mark/Pen/BrushMark.d.ts +67 -0
- package/dist/components/CandleView/Mark/Pen/EraserMark.d.ts +51 -0
- package/dist/components/CandleView/Mark/Pen/MarkerPenMark.d.ts +62 -0
- package/dist/components/CandleView/Mark/Pen/PenMark.d.ts +62 -0
- package/dist/components/CandleView/Mark/Pen/PencilMark.d.ts +62 -0
- package/dist/components/CandleView/Mark/Range/LongPositionMark.d.ts +79 -0
- package/dist/components/CandleView/Mark/Range/PriceRangeMark.d.ts +71 -0
- package/dist/components/CandleView/Mark/Range/ShortPositionMark.d.ts +79 -0
- package/dist/components/CandleView/Mark/Range/TimePriceRangeMark.d.ts +74 -0
- package/dist/components/CandleView/Mark/Range/TimeRangeMark.d.ts +71 -0
- package/dist/components/CandleView/Mark/Shape/CircleMark.d.ts +78 -0
- package/dist/components/CandleView/Mark/Shape/CurveMark.d.ts +70 -0
- package/dist/components/CandleView/Mark/Shape/DoubleCurveMark.d.ts +75 -0
- package/dist/components/CandleView/Mark/Shape/EllipseMark.d.ts +85 -0
- package/dist/components/CandleView/Mark/Shape/RectangleMark.ts.d.ts +65 -0
- package/dist/components/CandleView/Mark/Shape/SectorMark.d.ts +83 -0
- package/dist/components/CandleView/Mark/Shape/TriangleMark.d.ts +91 -0
- package/dist/components/CandleView/Mark/Static/BottomArrowMark.d.ts +13 -0
- package/dist/components/CandleView/Mark/Static/BottomTextMark.d.ts +22 -0
- package/dist/components/CandleView/Mark/Static/MultiBottomArrowMark.d.ts +14 -0
- package/dist/components/CandleView/Mark/Static/MultiBottomTextMark.d.ts +36 -0
- package/dist/components/CandleView/Mark/Static/MultiTopArrowMark.d.ts +14 -0
- package/dist/components/CandleView/Mark/Static/MultiTopTextMark.d.ts +36 -0
- package/dist/components/CandleView/Mark/Static/TopArrowMark.d.ts +13 -0
- package/dist/components/CandleView/Mark/Static/TopTextMark.d.ts +22 -0
- package/dist/components/CandleView/Mark/Text/BubbleBoxMark.d.ts +126 -0
- package/dist/components/CandleView/Mark/Text/EmojiMark.d.ts +72 -0
- package/dist/components/CandleView/Mark/Text/FlagMark.d.ts +63 -0
- package/dist/components/CandleView/Mark/Text/PinMark.d.ts +110 -0
- package/dist/components/CandleView/Mark/Text/PriceLabelMark.d.ts +70 -0
- package/dist/components/CandleView/Mark/Text/PriceNoteMark.d.ts +87 -0
- package/dist/components/CandleView/Mark/Text/SignPostMark.d.ts +110 -0
- package/dist/components/CandleView/Mark/Text/TextEditMark.d.ts +105 -0
- package/dist/components/CandleView/MarkManager/Channel/DisjointChannelMarkManager.d.ts +68 -0
- package/dist/components/CandleView/MarkManager/Channel/EquidistantChannelMarkManager.d.ts +67 -0
- package/dist/components/CandleView/MarkManager/Channel/LinearRegressionChannelMarkManager.d.ts +64 -0
- package/dist/components/CandleView/MarkManager/Channel/ParallelChannelMarkManager.d.ts +67 -0
- package/dist/components/CandleView/MarkManager/Content/ImageMarkManager.d.ts +58 -0
- package/dist/components/CandleView/MarkManager/Elliott/ElliottCorrectiveMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Elliott/ElliottDoubleCombinationMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Elliott/ElliottImpulseMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Elliott/ElliottTriangleMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Elliott/ElliottTripleCombinationMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciArcMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciChannelMarkManager.d.ts +65 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciCircleMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciExtensionBasePriceMarkManager.d.ts +55 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciExtensionBaseTimeMarkManager.d.ts +55 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciFanMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciRetracementMarkManager.d.ts +55 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciSpiralMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciTimeZoonMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciWedgeMarkManager.d.ts +57 -0
- package/dist/components/CandleView/MarkManager/Fork/AndrewPitchforkMarkManager.d.ts +72 -0
- package/dist/components/CandleView/MarkManager/Fork/EnhancedAndrewPitchforkMarkManager.d.ts +72 -0
- package/dist/components/CandleView/MarkManager/Fork/SchiffPitchforkMarkManager.d.ts +77 -0
- package/dist/components/CandleView/MarkManager/Gann/GannBoxMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Gann/GannFanMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Gann/GannRectangleManager.d.ts +57 -0
- package/dist/components/CandleView/MarkManager/Line/ArrowLineMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Line/AxisLineMarkManager.d.ts +57 -0
- package/dist/components/CandleView/MarkManager/Line/LineSegmentMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Line/ThickArrowLineMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Map/HeatMapMarkManager.d.ts +65 -0
- package/dist/components/CandleView/MarkManager/Mock/MockKLineMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Pattern/ABCDMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Pattern/HeadAndShouldersMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Pattern/TriangleABCDMarkManager.d.ts +55 -0
- package/dist/components/CandleView/MarkManager/Pattern/XABCDMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Pen/BrushMarkManager.d.ts +56 -0
- package/dist/components/CandleView/MarkManager/Pen/EraserMarkManager.d.ts +52 -0
- package/dist/components/CandleView/MarkManager/Pen/MarkerPenMarkManager.d.ts +56 -0
- package/dist/components/CandleView/MarkManager/Pen/PenMarkManager.d.ts +56 -0
- package/dist/components/CandleView/MarkManager/Pen/PencilMarkManager.d.ts +55 -0
- package/dist/components/CandleView/MarkManager/Range/LongPositionMarkManager.d.ts +64 -0
- package/dist/components/CandleView/MarkManager/Range/PriceRangeMarkManager.d.ts +64 -0
- package/dist/components/CandleView/MarkManager/Range/ShortPositionMarkManager.d.ts +64 -0
- package/dist/components/CandleView/MarkManager/Range/TimePriceRangeMarkManager.d.ts +64 -0
- package/dist/components/CandleView/MarkManager/Range/TimeRangeMarkManager.d.ts +64 -0
- package/dist/components/CandleView/MarkManager/Shape/CircleMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Shape/CurveMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Shape/DoubleCurveMarkManager.d.ts +55 -0
- package/dist/components/CandleView/MarkManager/Shape/EllipseMarkManager.d.ts +56 -0
- package/dist/components/CandleView/MarkManager/Shape/RectangleMarkManager.d.ts +52 -0
- package/dist/components/CandleView/MarkManager/Shape/SectorMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Shape/TriangleMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/StaticMarkManager.d.ts +46 -0
- package/dist/components/CandleView/MarkManager/Text/BubbleBoxMarkManager.d.ts +62 -0
- package/dist/components/CandleView/MarkManager/Text/EmojiMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Text/FlagMarkManager.d.ts +52 -0
- package/dist/components/CandleView/MarkManager/Text/PinMarkManager.d.ts +57 -0
- package/dist/components/CandleView/MarkManager/Text/PriceLabelMarkManager.d.ts +52 -0
- package/dist/components/CandleView/MarkManager/Text/PriceNoteMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Text/SignPostMarkManager.d.ts +56 -0
- package/dist/components/CandleView/MarkManager/Text/TextEditMarkManager.d.ts +62 -0
- package/dist/components/CandleView/Theme.d.ts +59 -0
- package/dist/components/CandleView/TopPanel/Config.d.ts +22 -0
- package/dist/components/CandleView/TopPanel/IndicatorProcessing.d.ts +4 -0
- package/dist/components/CandleView/TopPanel/index.d.ts +104 -0
- package/dist/components/CandleView/ViewportManager.d.ts +53 -0
- package/dist/components/CandleView/index.d.ts +2 -0
- package/dist/components/CandleView/tools.d.ts +7 -0
- package/dist/components/CandleView/types.d.ts +200 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +87315 -0
- package/dist/index.js.map +1 -0
- package/dist/index.modern.js +87312 -0
- package/dist/index.modern.js.map +1 -0
- package/dist/index.test.d.ts +1 -0
- package/package.json +93 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ChartSeries } from "../ChartLayer/ChartTypeManager";
|
|
2
|
+
export declare enum StaticMarkDirection {
|
|
3
|
+
Top = "Top",
|
|
4
|
+
Bottom = "Bottom"
|
|
5
|
+
}
|
|
6
|
+
export declare enum StaticMarkType {
|
|
7
|
+
Text = "Text",
|
|
8
|
+
Arrow = "Arrow"
|
|
9
|
+
}
|
|
10
|
+
export interface IStaticMarkData {
|
|
11
|
+
time: number;
|
|
12
|
+
type: string;
|
|
13
|
+
data: {
|
|
14
|
+
direction: string;
|
|
15
|
+
text: string;
|
|
16
|
+
fontSize?: number;
|
|
17
|
+
textColor?: string;
|
|
18
|
+
backgroundColor?: string;
|
|
19
|
+
isCircular?: boolean;
|
|
20
|
+
padding?: number;
|
|
21
|
+
}[];
|
|
22
|
+
}
|
|
23
|
+
export declare class StaticMarkManager {
|
|
24
|
+
private _marks;
|
|
25
|
+
private _tolerance;
|
|
26
|
+
private _timeframe;
|
|
27
|
+
private _chartSeries;
|
|
28
|
+
constructor();
|
|
29
|
+
private autoDetectTimeframe;
|
|
30
|
+
private median;
|
|
31
|
+
private calculateTolerance;
|
|
32
|
+
private findClosestBarTime;
|
|
33
|
+
private isInSameTimeUnit;
|
|
34
|
+
private getWeekNumber;
|
|
35
|
+
addMark(data: IStaticMarkData[], chartSeries: ChartSeries): void;
|
|
36
|
+
recalculateMarks(): void;
|
|
37
|
+
refreshTimeframe(): void;
|
|
38
|
+
private addTopMark;
|
|
39
|
+
private addBottomMark;
|
|
40
|
+
removeAllMark(): void;
|
|
41
|
+
getTolerance(): number;
|
|
42
|
+
getTimeframe(): string;
|
|
43
|
+
getMarkCount(): number;
|
|
44
|
+
clearAllMarks(chartSeries?: ChartSeries): void;
|
|
45
|
+
destroy(): void;
|
|
46
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChartSeries } from "../../ChartLayer/ChartTypeManager";
|
|
3
|
+
import { IMarkManager } from "../../Mark/IMarkManager";
|
|
4
|
+
import { BubbleBoxMark } from "../../Mark/Text/BubbleBoxMark";
|
|
5
|
+
import { Point } from "../../types";
|
|
6
|
+
export interface BubbleBoxMarkManagerProps {
|
|
7
|
+
chartSeries: ChartSeries | null;
|
|
8
|
+
chart: any;
|
|
9
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
10
|
+
onCloseDrawing?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export interface BubbleBoxMarkState {
|
|
13
|
+
isBubbleBoxMarkMode: boolean;
|
|
14
|
+
bubbleBoxMarkPoints: Point[] | null;
|
|
15
|
+
currentBubbleBoxMark: BubbleBoxMark | null;
|
|
16
|
+
isDragging: boolean;
|
|
17
|
+
dragTarget: BubbleBoxMark | null;
|
|
18
|
+
dragType: 'controlPoint' | 'bubble' | 'connection' | null;
|
|
19
|
+
}
|
|
20
|
+
export declare class BubbleBoxMarkManager implements IMarkManager<BubbleBoxMark> {
|
|
21
|
+
private props;
|
|
22
|
+
private state;
|
|
23
|
+
private previewBubbleBoxMark;
|
|
24
|
+
private bubbleBoxMarks;
|
|
25
|
+
private dragStartData;
|
|
26
|
+
private isOperating;
|
|
27
|
+
private isCreatingNewBubble;
|
|
28
|
+
private creationStep;
|
|
29
|
+
constructor(props: BubbleBoxMarkManagerProps);
|
|
30
|
+
private _addEventListeners;
|
|
31
|
+
private _removeEventListeners;
|
|
32
|
+
private _handleBubbleBoxMarkDragStart;
|
|
33
|
+
clearState(): void;
|
|
34
|
+
getMarkAtPoint(point: Point): BubbleBoxMark | null;
|
|
35
|
+
getMarkAtPointWithType(point: Point): {
|
|
36
|
+
mark: BubbleBoxMark;
|
|
37
|
+
type: 'controlPoint' | 'bubble' | 'connection';
|
|
38
|
+
} | null;
|
|
39
|
+
getCurrentDragTarget(): BubbleBoxMark | null;
|
|
40
|
+
getCurrentDragPoint(): string | null;
|
|
41
|
+
getCurrentOperatingMark(): BubbleBoxMark | null;
|
|
42
|
+
getAllMarks(): BubbleBoxMark[];
|
|
43
|
+
cancelOperationMode(): BubbleBoxMarkState;
|
|
44
|
+
setBubbleBoxMarkMode: () => BubbleBoxMarkState;
|
|
45
|
+
cancelBubbleBoxMarkMode: () => BubbleBoxMarkState;
|
|
46
|
+
handleMouseDown: (point: Point) => BubbleBoxMarkState;
|
|
47
|
+
handleMouseMove: (point: Point) => void;
|
|
48
|
+
handleMouseUp: (point: Point) => BubbleBoxMarkState;
|
|
49
|
+
handleKeyDown: (event: KeyboardEvent) => BubbleBoxMarkState;
|
|
50
|
+
getState(): BubbleBoxMarkState;
|
|
51
|
+
updateProps(newProps: Partial<BubbleBoxMarkManagerProps>): void;
|
|
52
|
+
destroy(): void;
|
|
53
|
+
getBubbleBoxMarks(): BubbleBoxMark[];
|
|
54
|
+
removeBubbleBoxMark(mark: BubbleBoxMark): void;
|
|
55
|
+
isOperatingOnChart(): boolean;
|
|
56
|
+
updateBubbleText(mark: BubbleBoxMark, text: string): void;
|
|
57
|
+
private hiddenBubbleBoxMarks;
|
|
58
|
+
hideAllMarks(): void;
|
|
59
|
+
showAllMarks(): void;
|
|
60
|
+
hideMark(mark: BubbleBoxMark): void;
|
|
61
|
+
showMark(mark: BubbleBoxMark): void;
|
|
62
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChartSeries } from "../../ChartLayer/ChartTypeManager";
|
|
3
|
+
import { IMarkManager } from "../../Mark/IMarkManager";
|
|
4
|
+
import { EmojiMark } from "../../Mark/Text/EmojiMark";
|
|
5
|
+
import { Point } from "../../types";
|
|
6
|
+
export interface EmojiMarkManagerProps {
|
|
7
|
+
chartSeries: ChartSeries | null;
|
|
8
|
+
chart: any;
|
|
9
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
10
|
+
onCloseDrawing?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export interface EmojiMarkState {
|
|
13
|
+
isEmojiMarkMode: boolean;
|
|
14
|
+
emojiMarkStartPoint: Point | null;
|
|
15
|
+
currentEmojiMark: EmojiMark | null;
|
|
16
|
+
isDragging: boolean;
|
|
17
|
+
dragTarget: EmojiMark | null;
|
|
18
|
+
dragPoint: 'start' | 'end' | 'line' | null;
|
|
19
|
+
selectedEmoji: string | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare class EmojiMarkManager implements IMarkManager<EmojiMark> {
|
|
22
|
+
private props;
|
|
23
|
+
private state;
|
|
24
|
+
private previewEmojiMark;
|
|
25
|
+
private emojiMarks;
|
|
26
|
+
private dragStartData;
|
|
27
|
+
private isOperating;
|
|
28
|
+
constructor(props: EmojiMarkManagerProps);
|
|
29
|
+
clearState(): void;
|
|
30
|
+
getMarkAtPoint(point: Point): EmojiMark | null;
|
|
31
|
+
getCurrentDragTarget(): EmojiMark | null;
|
|
32
|
+
getCurrentDragPoint(): string | null;
|
|
33
|
+
getCurrentOperatingMark(): EmojiMark | null;
|
|
34
|
+
getAllMarks(): EmojiMark[];
|
|
35
|
+
cancelOperationMode(): EmojiMarkState;
|
|
36
|
+
setEmojiMarkMode: (emoji: string) => EmojiMarkState;
|
|
37
|
+
cancelEmojiMarkMode: () => EmojiMarkState;
|
|
38
|
+
handleMouseDown: (point: Point) => EmojiMarkState;
|
|
39
|
+
handleMouseMove: (point: Point) => void;
|
|
40
|
+
handleMouseUp: (point: Point) => EmojiMarkState;
|
|
41
|
+
handleKeyDown: (event: KeyboardEvent) => EmojiMarkState;
|
|
42
|
+
getState(): EmojiMarkState;
|
|
43
|
+
updateProps(newProps: Partial<EmojiMarkManagerProps>): void;
|
|
44
|
+
destroy(): void;
|
|
45
|
+
getEmojiMarks(): EmojiMark[];
|
|
46
|
+
removeEmojiMark(mark: EmojiMark): void;
|
|
47
|
+
isOperatingOnChart(): boolean;
|
|
48
|
+
private hiddenEmojiMarks;
|
|
49
|
+
hideAllMarks(): void;
|
|
50
|
+
showAllMarks(): void;
|
|
51
|
+
hideMark(mark: EmojiMark): void;
|
|
52
|
+
showMark(mark: EmojiMark): void;
|
|
53
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChartSeries } from "../../ChartLayer/ChartTypeManager";
|
|
3
|
+
import { IMarkManager } from "../../Mark/IMarkManager";
|
|
4
|
+
import { FlagMark } from "../../Mark/Text/FlagMark";
|
|
5
|
+
import { Point } from "../../types";
|
|
6
|
+
export interface FlagMarkManagerProps {
|
|
7
|
+
chartSeries: ChartSeries | null;
|
|
8
|
+
chart: any;
|
|
9
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
10
|
+
onCloseDrawing?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export interface FlagMarkState {
|
|
13
|
+
isFlagMarkMode: boolean;
|
|
14
|
+
flagMarkPoint: Point | null;
|
|
15
|
+
currentFlagMark: FlagMark | null;
|
|
16
|
+
isDragging: boolean;
|
|
17
|
+
dragTarget: FlagMark | null;
|
|
18
|
+
}
|
|
19
|
+
export declare class FlagMarkManager implements IMarkManager<FlagMark> {
|
|
20
|
+
private props;
|
|
21
|
+
private state;
|
|
22
|
+
private previewFlagMark;
|
|
23
|
+
private flagMarks;
|
|
24
|
+
private dragStartData;
|
|
25
|
+
private isOperating;
|
|
26
|
+
private isCreatingNewFlag;
|
|
27
|
+
constructor(props: FlagMarkManagerProps);
|
|
28
|
+
clearState(): void;
|
|
29
|
+
getMarkAtPoint(point: Point): FlagMark | null;
|
|
30
|
+
getCurrentDragTarget(): FlagMark | null;
|
|
31
|
+
getCurrentDragPoint(): string | null;
|
|
32
|
+
getCurrentOperatingMark(): FlagMark | null;
|
|
33
|
+
getAllMarks(): FlagMark[];
|
|
34
|
+
cancelOperationMode(): FlagMarkState;
|
|
35
|
+
setFlagMarkMode: () => FlagMarkState;
|
|
36
|
+
cancelFlagMarkMode: () => FlagMarkState;
|
|
37
|
+
handleMouseDown: (point: Point) => FlagMarkState;
|
|
38
|
+
handleMouseMove: (point: Point) => void;
|
|
39
|
+
handleMouseUp: (point: Point) => FlagMarkState;
|
|
40
|
+
handleKeyDown: (event: KeyboardEvent) => FlagMarkState;
|
|
41
|
+
getState(): FlagMarkState;
|
|
42
|
+
updateProps(newProps: Partial<FlagMarkManagerProps>): void;
|
|
43
|
+
destroy(): void;
|
|
44
|
+
getFlagMarks(): FlagMark[];
|
|
45
|
+
removeFlagMark(mark: FlagMark): void;
|
|
46
|
+
isOperatingOnChart(): boolean;
|
|
47
|
+
private hiddenFlagMarks;
|
|
48
|
+
hideAllMarks(): void;
|
|
49
|
+
showAllMarks(): void;
|
|
50
|
+
hideMark(mark: FlagMark): void;
|
|
51
|
+
showMark(mark: FlagMark): void;
|
|
52
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChartSeries } from "../../ChartLayer/ChartTypeManager";
|
|
3
|
+
import { IMarkManager } from "../../Mark/IMarkManager";
|
|
4
|
+
import { PinMark } from "../../Mark/Text/PinMark";
|
|
5
|
+
import { Point } from "../../types";
|
|
6
|
+
export interface PinMarkManagerProps {
|
|
7
|
+
chartSeries: ChartSeries | null;
|
|
8
|
+
chart: any;
|
|
9
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
10
|
+
onCloseDrawing?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export interface PinMarkState {
|
|
13
|
+
isPinMarkMode: boolean;
|
|
14
|
+
pinMarkPoint: Point | null;
|
|
15
|
+
currentPinMark: PinMark | null;
|
|
16
|
+
isDragging: boolean;
|
|
17
|
+
dragTarget: PinMark | null;
|
|
18
|
+
}
|
|
19
|
+
export declare class PinMarkManager implements IMarkManager<PinMark> {
|
|
20
|
+
private props;
|
|
21
|
+
private state;
|
|
22
|
+
private previewPinMark;
|
|
23
|
+
private pinMarks;
|
|
24
|
+
private dragStartData;
|
|
25
|
+
private isOperating;
|
|
26
|
+
private isCreatingNewPin;
|
|
27
|
+
constructor(props: PinMarkManagerProps);
|
|
28
|
+
private _addEventListeners;
|
|
29
|
+
private _removeEventListeners;
|
|
30
|
+
private _handlePinMarkDragStart;
|
|
31
|
+
clearState(): void;
|
|
32
|
+
getMarkAtPoint(point: Point): PinMark | null;
|
|
33
|
+
getCurrentDragTarget(): PinMark | null;
|
|
34
|
+
getCurrentDragPoint(): string | null;
|
|
35
|
+
getCurrentOperatingMark(): PinMark | null;
|
|
36
|
+
getAllMarks(): PinMark[];
|
|
37
|
+
cancelOperationMode(): PinMarkState;
|
|
38
|
+
setPinMarkMode: () => PinMarkState;
|
|
39
|
+
cancelPinMarkMode: () => PinMarkState;
|
|
40
|
+
handleMouseDown: (point: Point) => PinMarkState;
|
|
41
|
+
private hideAllBubbles;
|
|
42
|
+
handleMouseMove: (point: Point) => void;
|
|
43
|
+
handleMouseUp: (point: Point) => PinMarkState;
|
|
44
|
+
handleKeyDown: (event: KeyboardEvent) => PinMarkState;
|
|
45
|
+
getState(): PinMarkState;
|
|
46
|
+
updateProps(newProps: Partial<PinMarkManagerProps>): void;
|
|
47
|
+
destroy(): void;
|
|
48
|
+
getPinMarks(): PinMark[];
|
|
49
|
+
removePinMark(mark: PinMark): void;
|
|
50
|
+
isOperatingOnChart(): boolean;
|
|
51
|
+
updatePinText(mark: PinMark, text: string): void;
|
|
52
|
+
private hiddenPinMarks;
|
|
53
|
+
hideAllMarks(): void;
|
|
54
|
+
showAllMarks(): void;
|
|
55
|
+
hideMark(mark: PinMark): void;
|
|
56
|
+
showMark(mark: PinMark): void;
|
|
57
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChartSeries } from "../../ChartLayer/ChartTypeManager";
|
|
3
|
+
import { IMarkManager } from "../../Mark/IMarkManager";
|
|
4
|
+
import { PriceLabelMark } from "../../Mark/Text/PriceLabelMark";
|
|
5
|
+
import { Point } from "../../types";
|
|
6
|
+
export interface PriceLabelMarkManagerProps {
|
|
7
|
+
chartSeries: ChartSeries | null;
|
|
8
|
+
chart: any;
|
|
9
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
10
|
+
onCloseDrawing?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export interface PriceLabelMarkState {
|
|
13
|
+
isPriceLabelMarkMode: boolean;
|
|
14
|
+
priceLabelMarkPoint: Point | null;
|
|
15
|
+
currentPriceLabelMark: PriceLabelMark | null;
|
|
16
|
+
isDragging: boolean;
|
|
17
|
+
dragTarget: PriceLabelMark | null;
|
|
18
|
+
}
|
|
19
|
+
export declare class PriceLabelMarkManager implements IMarkManager<PriceLabelMark> {
|
|
20
|
+
private props;
|
|
21
|
+
private state;
|
|
22
|
+
private previewPriceLabelMark;
|
|
23
|
+
private priceLabelMarks;
|
|
24
|
+
private dragStartData;
|
|
25
|
+
private isOperating;
|
|
26
|
+
private isCreatingNewLabel;
|
|
27
|
+
constructor(props: PriceLabelMarkManagerProps);
|
|
28
|
+
clearState(): void;
|
|
29
|
+
getMarkAtPoint(point: Point): PriceLabelMark | null;
|
|
30
|
+
getCurrentDragTarget(): PriceLabelMark | null;
|
|
31
|
+
getCurrentDragPoint(): string | null;
|
|
32
|
+
getCurrentOperatingMark(): PriceLabelMark | null;
|
|
33
|
+
getAllMarks(): PriceLabelMark[];
|
|
34
|
+
cancelOperationMode(): PriceLabelMarkState;
|
|
35
|
+
setPriceLabelMarkMode: () => PriceLabelMarkState;
|
|
36
|
+
cancelPriceLabelMarkMode: () => PriceLabelMarkState;
|
|
37
|
+
handleMouseDown: (point: Point) => PriceLabelMarkState;
|
|
38
|
+
handleMouseMove: (point: Point) => void;
|
|
39
|
+
handleMouseUp: (point: Point) => PriceLabelMarkState;
|
|
40
|
+
handleKeyDown: (event: KeyboardEvent) => PriceLabelMarkState;
|
|
41
|
+
getState(): PriceLabelMarkState;
|
|
42
|
+
updateProps(newProps: Partial<PriceLabelMarkManagerProps>): void;
|
|
43
|
+
destroy(): void;
|
|
44
|
+
getPriceLabelMarks(): PriceLabelMark[];
|
|
45
|
+
removePriceLabelMark(mark: PriceLabelMark): void;
|
|
46
|
+
isOperatingOnChart(): boolean;
|
|
47
|
+
private hiddenPriceLabelMarks;
|
|
48
|
+
hideAllMarks(): void;
|
|
49
|
+
showAllMarks(): void;
|
|
50
|
+
hideMark(mark: PriceLabelMark): void;
|
|
51
|
+
showMark(mark: PriceLabelMark): void;
|
|
52
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChartSeries } from "../../ChartLayer/ChartTypeManager";
|
|
3
|
+
import { IMarkManager } from "../../Mark/IMarkManager";
|
|
4
|
+
import { PriceNoteMark } from "../../Mark/Text/PriceNoteMark";
|
|
5
|
+
import { Point } from "../../types";
|
|
6
|
+
export interface PriceNoteMarkManagerProps {
|
|
7
|
+
chartSeries: ChartSeries | null;
|
|
8
|
+
chart: any;
|
|
9
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
10
|
+
onCloseDrawing?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export interface PriceNoteMarkState {
|
|
13
|
+
isPriceNoteMarkMode: boolean;
|
|
14
|
+
priceNoteMarkStartPoint: Point | null;
|
|
15
|
+
currentPriceNoteMark: PriceNoteMark | null;
|
|
16
|
+
isDragging: boolean;
|
|
17
|
+
dragTarget: PriceNoteMark | null;
|
|
18
|
+
dragPoint: 'start' | 'end' | 'line' | null;
|
|
19
|
+
}
|
|
20
|
+
export declare class PriceNoteMarkManager implements IMarkManager<PriceNoteMark> {
|
|
21
|
+
private props;
|
|
22
|
+
private state;
|
|
23
|
+
private previewPriceNoteMark;
|
|
24
|
+
private priceNoteMarks;
|
|
25
|
+
private mouseDownPoint;
|
|
26
|
+
private dragStartData;
|
|
27
|
+
private isOperating;
|
|
28
|
+
constructor(props: PriceNoteMarkManagerProps);
|
|
29
|
+
clearState(): void;
|
|
30
|
+
getMarkAtPoint(point: Point): PriceNoteMark | null;
|
|
31
|
+
getCurrentDragTarget(): PriceNoteMark | null;
|
|
32
|
+
getCurrentDragPoint(): string | null;
|
|
33
|
+
getCurrentOperatingMark(): PriceNoteMark | null;
|
|
34
|
+
getAllMarks(): PriceNoteMark[];
|
|
35
|
+
cancelOperationMode(): PriceNoteMarkState;
|
|
36
|
+
setPriceNoteMarkMode: () => PriceNoteMarkState;
|
|
37
|
+
cancelPriceNoteMarkMode: () => PriceNoteMarkState;
|
|
38
|
+
handleMouseDown: (point: Point) => PriceNoteMarkState;
|
|
39
|
+
private isPointNearLine;
|
|
40
|
+
handleMouseMove: (point: Point) => void;
|
|
41
|
+
handleMouseUp: (point: Point) => PriceNoteMarkState;
|
|
42
|
+
handleKeyDown: (event: KeyboardEvent) => PriceNoteMarkState;
|
|
43
|
+
getState(): PriceNoteMarkState;
|
|
44
|
+
updateProps(newProps: Partial<PriceNoteMarkManagerProps>): void;
|
|
45
|
+
destroy(): void;
|
|
46
|
+
getPriceNoteMarks(): PriceNoteMark[];
|
|
47
|
+
removePriceNoteMark(mark: PriceNoteMark): void;
|
|
48
|
+
isOperatingOnChart(): boolean;
|
|
49
|
+
private hiddenPriceNoteMarks;
|
|
50
|
+
hideAllMarks(): void;
|
|
51
|
+
showAllMarks(): void;
|
|
52
|
+
hideMark(mark: PriceNoteMark): void;
|
|
53
|
+
showMark(mark: PriceNoteMark): void;
|
|
54
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChartSeries } from "../../ChartLayer/ChartTypeManager";
|
|
3
|
+
import { IMarkManager } from "../../Mark/IMarkManager";
|
|
4
|
+
import { SignPostMark } from "../../Mark/Text/SignPostMark";
|
|
5
|
+
import { Point } from "../../types";
|
|
6
|
+
export interface SignPostMarkManagerProps {
|
|
7
|
+
chartSeries: ChartSeries | null;
|
|
8
|
+
chart: any;
|
|
9
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
10
|
+
onCloseDrawing?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export interface SignPostMarkState {
|
|
13
|
+
isSignPostMarkMode: boolean;
|
|
14
|
+
signPostMarkPoint: Point | null;
|
|
15
|
+
currentSignPostMark: SignPostMark | null;
|
|
16
|
+
isDragging: boolean;
|
|
17
|
+
dragTarget: SignPostMark | null;
|
|
18
|
+
}
|
|
19
|
+
export declare class SignPostMarkManager implements IMarkManager<SignPostMark> {
|
|
20
|
+
private props;
|
|
21
|
+
private state;
|
|
22
|
+
private previewSignPostMark;
|
|
23
|
+
private landmarkLabelMarks;
|
|
24
|
+
private dragStartData;
|
|
25
|
+
private isOperating;
|
|
26
|
+
private isCreatingNewLabel;
|
|
27
|
+
constructor(props: SignPostMarkManagerProps);
|
|
28
|
+
private _addEventListeners;
|
|
29
|
+
private _removeEventListeners;
|
|
30
|
+
private _handleSignPostMarkDragStart;
|
|
31
|
+
clearState(): void;
|
|
32
|
+
getMarkAtPoint(point: Point): SignPostMark | null;
|
|
33
|
+
getCurrentDragTarget(): SignPostMark | null;
|
|
34
|
+
getCurrentDragPoint(): string | null;
|
|
35
|
+
getCurrentOperatingMark(): SignPostMark | null;
|
|
36
|
+
getAllMarks(): SignPostMark[];
|
|
37
|
+
cancelOperationMode(): SignPostMarkState;
|
|
38
|
+
setSignPostMarkMode: () => SignPostMarkState;
|
|
39
|
+
cancelSignPostMarkMode: () => SignPostMarkState;
|
|
40
|
+
handleMouseDown: (point: Point) => SignPostMarkState;
|
|
41
|
+
handleMouseMove: (point: Point) => void;
|
|
42
|
+
handleMouseUp: (point: Point) => SignPostMarkState;
|
|
43
|
+
handleKeyDown: (event: KeyboardEvent) => SignPostMarkState;
|
|
44
|
+
getState(): SignPostMarkState;
|
|
45
|
+
updateProps(newProps: Partial<SignPostMarkManagerProps>): void;
|
|
46
|
+
destroy(): void;
|
|
47
|
+
getSignPostMarks(): SignPostMark[];
|
|
48
|
+
removeSignPostMark(mark: SignPostMark): void;
|
|
49
|
+
isOperatingOnChart(): boolean;
|
|
50
|
+
updateSignPostText(mark: SignPostMark, text: string): void;
|
|
51
|
+
private hiddenSignPostMarks;
|
|
52
|
+
hideAllMarks(): void;
|
|
53
|
+
showAllMarks(): void;
|
|
54
|
+
hideMark(mark: SignPostMark): void;
|
|
55
|
+
showMark(mark: SignPostMark): void;
|
|
56
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChartSeries } from "../../ChartLayer/ChartTypeManager";
|
|
3
|
+
import { IMarkManager } from "../../Mark/IMarkManager";
|
|
4
|
+
import { TextEditMark } from "../../Mark/Text/TextEditMark";
|
|
5
|
+
import { Point } from "../../types";
|
|
6
|
+
export interface TextEditMarkManagerProps {
|
|
7
|
+
chartSeries: ChartSeries | null;
|
|
8
|
+
chart: any;
|
|
9
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
10
|
+
onCloseDrawing?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export interface TextEditMarkState {
|
|
13
|
+
isTextEditMarkMode: boolean;
|
|
14
|
+
textEditMarkPoints: Point[] | null;
|
|
15
|
+
currentTextEditMark: TextEditMark | null;
|
|
16
|
+
isDragging: boolean;
|
|
17
|
+
dragTarget: TextEditMark | null;
|
|
18
|
+
dragType: 'bubble' | null;
|
|
19
|
+
}
|
|
20
|
+
export declare class TextEditMarkManager implements IMarkManager<TextEditMark> {
|
|
21
|
+
private props;
|
|
22
|
+
private state;
|
|
23
|
+
private previewTextEditMark;
|
|
24
|
+
private textEditMarks;
|
|
25
|
+
private dragStartData;
|
|
26
|
+
private isOperating;
|
|
27
|
+
private isCreatingNewText;
|
|
28
|
+
private creationStep;
|
|
29
|
+
constructor(props: TextEditMarkManagerProps);
|
|
30
|
+
private _addEventListeners;
|
|
31
|
+
private _removeEventListeners;
|
|
32
|
+
private _handleTextEditMarkDragStart;
|
|
33
|
+
clearState(): void;
|
|
34
|
+
getMarkAtPoint(point: Point): TextEditMark | null;
|
|
35
|
+
getMarkAtPointWithType(point: Point): {
|
|
36
|
+
mark: TextEditMark;
|
|
37
|
+
type: 'bubble';
|
|
38
|
+
} | null;
|
|
39
|
+
getCurrentDragTarget(): TextEditMark | null;
|
|
40
|
+
getCurrentDragPoint(): string | null;
|
|
41
|
+
getCurrentOperatingMark(): TextEditMark | null;
|
|
42
|
+
getAllMarks(): TextEditMark[];
|
|
43
|
+
cancelOperationMode(): TextEditMarkState;
|
|
44
|
+
setTextEditMarkMode: () => TextEditMarkState;
|
|
45
|
+
cancelTextEditMarkMode: () => TextEditMarkState;
|
|
46
|
+
handleMouseDown: (point: Point) => TextEditMarkState;
|
|
47
|
+
handleMouseMove: (point: Point) => void;
|
|
48
|
+
handleMouseUp: (point: Point) => TextEditMarkState;
|
|
49
|
+
handleKeyDown: (event: KeyboardEvent) => TextEditMarkState;
|
|
50
|
+
getState(): TextEditMarkState;
|
|
51
|
+
updateProps(newProps: Partial<TextEditMarkManagerProps>): void;
|
|
52
|
+
destroy(): void;
|
|
53
|
+
getTextEditMarks(): TextEditMark[];
|
|
54
|
+
removeTextEditMark(mark: TextEditMark): void;
|
|
55
|
+
isOperatingOnChart(): boolean;
|
|
56
|
+
updateTextEditText(mark: TextEditMark, text: string): void;
|
|
57
|
+
private hiddenTextEditMarks;
|
|
58
|
+
hideAllMarks(): void;
|
|
59
|
+
showAllMarks(): void;
|
|
60
|
+
hideMark(mark: TextEditMark): void;
|
|
61
|
+
showMark(mark: TextEditMark): void;
|
|
62
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export interface ThemeConfig {
|
|
2
|
+
panel: {
|
|
3
|
+
backgroundColor: string;
|
|
4
|
+
borderColor: string;
|
|
5
|
+
};
|
|
6
|
+
modal: {
|
|
7
|
+
textColor: string;
|
|
8
|
+
};
|
|
9
|
+
layout: {
|
|
10
|
+
background: {
|
|
11
|
+
color: string;
|
|
12
|
+
};
|
|
13
|
+
textColor: string;
|
|
14
|
+
attributionLogo: boolean;
|
|
15
|
+
};
|
|
16
|
+
grid: {
|
|
17
|
+
vertLines: {
|
|
18
|
+
visible: boolean;
|
|
19
|
+
color?: string;
|
|
20
|
+
};
|
|
21
|
+
horzLines: {
|
|
22
|
+
visible: boolean;
|
|
23
|
+
color?: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
chart: {
|
|
27
|
+
candleUpColor: string;
|
|
28
|
+
candleDownColor: string;
|
|
29
|
+
lineColor: string;
|
|
30
|
+
topColor: string;
|
|
31
|
+
bottomColor: string;
|
|
32
|
+
lineWidth: number;
|
|
33
|
+
upColor: string;
|
|
34
|
+
downColor: string;
|
|
35
|
+
background: string;
|
|
36
|
+
baseLineColor: string;
|
|
37
|
+
histogramColor: string;
|
|
38
|
+
stepLineColor: string;
|
|
39
|
+
areaTopColor: string;
|
|
40
|
+
areaBottomColor: string;
|
|
41
|
+
areaLineColor: string;
|
|
42
|
+
volumeColor: string;
|
|
43
|
+
};
|
|
44
|
+
toolbar: {
|
|
45
|
+
background: string;
|
|
46
|
+
border: string;
|
|
47
|
+
button: {
|
|
48
|
+
backgroundColor: string;
|
|
49
|
+
background: string;
|
|
50
|
+
hover: string;
|
|
51
|
+
active: string;
|
|
52
|
+
color: string;
|
|
53
|
+
activeTextColor: string;
|
|
54
|
+
boxShadow: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export declare const Dark: ThemeConfig;
|
|
59
|
+
export declare const Light: ThemeConfig;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { I18n } from "../I18n";
|
|
2
|
+
import { MainChartIndicatorType, SubChartIndicatorType, TimeframeEnum } from "../types";
|
|
3
|
+
export declare const mainIndicators: {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
type: MainChartIndicatorType;
|
|
7
|
+
}[];
|
|
8
|
+
export declare const mainChartMaps: {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
type: MainChartIndicatorType;
|
|
12
|
+
}[];
|
|
13
|
+
export declare const subChartIndicators: {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
type: SubChartIndicatorType;
|
|
17
|
+
}[];
|
|
18
|
+
export declare function getAllTimeframes(i18n: I18n): {
|
|
19
|
+
type: string;
|
|
20
|
+
sectionKey: "Second" | "Minute" | "Hour" | "Day" | "Week" | "Month";
|
|
21
|
+
values: TimeframeEnum[];
|
|
22
|
+
}[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import CandleViewTopPanel from ".";
|
|
2
|
+
import { SubChartIndicatorType } from "../types";
|
|
3
|
+
export declare function handleMainIndicatorToggle(candleViewTopPanel: CandleViewTopPanel, indicatorId: string): void;
|
|
4
|
+
export declare function handleSubChartIndicatorToggle(candleViewTopPanel: CandleViewTopPanel, indicatorType: SubChartIndicatorType): void;
|