candleview 1.0.4 → 1.0.5
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/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 +290 -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 +64 -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 +67 -0
- package/dist/components/CandleView/MarkManager/Channel/EquidistantChannelMarkManager.d.ts +66 -0
- package/dist/components/CandleView/MarkManager/Channel/LinearRegressionChannelMarkManager.d.ts +63 -0
- package/dist/components/CandleView/MarkManager/Channel/ParallelChannelMarkManager.d.ts +66 -0
- package/dist/components/CandleView/MarkManager/Content/ImageMarkManager.d.ts +57 -0
- package/dist/components/CandleView/MarkManager/Elliott/ElliottCorrectiveMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Elliott/ElliottDoubleCombinationMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Elliott/ElliottImpulseMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Elliott/ElliottTriangleMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Elliott/ElliottTripleCombinationMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciArcMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciChannelMarkManager.d.ts +64 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciCircleMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciExtensionBasePriceMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciExtensionBaseTimeMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciFanMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciRetracementMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciSpiralMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciTimeZoonMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciWedgeMarkManager.d.ts +56 -0
- package/dist/components/CandleView/MarkManager/Fork/AndrewPitchforkMarkManager.d.ts +71 -0
- package/dist/components/CandleView/MarkManager/Fork/EnhancedAndrewPitchforkMarkManager.d.ts +71 -0
- package/dist/components/CandleView/MarkManager/Fork/SchiffPitchforkMarkManager.d.ts +76 -0
- package/dist/components/CandleView/MarkManager/Gann/GannBoxMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Gann/GannFanMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Gann/GannRectangleManager.d.ts +56 -0
- package/dist/components/CandleView/MarkManager/Line/ArrowLineMarkManager.d.ts +52 -0
- package/dist/components/CandleView/MarkManager/Line/AxisLineMarkManager.d.ts +56 -0
- package/dist/components/CandleView/MarkManager/Line/LineSegmentMarkManager.d.ts +52 -0
- package/dist/components/CandleView/MarkManager/Line/ThickArrowLineMarkManager.d.ts +52 -0
- package/dist/components/CandleView/MarkManager/Map/HeatMapMarkManager.d.ts +64 -0
- package/dist/components/CandleView/MarkManager/Mock/MockKLineMarkManager.d.ts +52 -0
- package/dist/components/CandleView/MarkManager/Pattern/ABCDMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Pattern/HeadAndShouldersMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Pattern/TriangleABCDMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Pattern/XABCDMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Pen/BrushMarkManager.d.ts +55 -0
- package/dist/components/CandleView/MarkManager/Pen/EraserMarkManager.d.ts +51 -0
- package/dist/components/CandleView/MarkManager/Pen/MarkerPenMarkManager.d.ts +55 -0
- package/dist/components/CandleView/MarkManager/Pen/PenMarkManager.d.ts +55 -0
- package/dist/components/CandleView/MarkManager/Pen/PencilMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Range/LongPositionMarkManager.d.ts +63 -0
- package/dist/components/CandleView/MarkManager/Range/PriceRangeMarkManager.d.ts +63 -0
- package/dist/components/CandleView/MarkManager/Range/ShortPositionMarkManager.d.ts +63 -0
- package/dist/components/CandleView/MarkManager/Range/TimePriceRangeMarkManager.d.ts +63 -0
- package/dist/components/CandleView/MarkManager/Range/TimeRangeMarkManager.d.ts +63 -0
- package/dist/components/CandleView/MarkManager/Shape/CircleMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Shape/CurveMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Shape/DoubleCurveMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Shape/EllipseMarkManager.d.ts +55 -0
- package/dist/components/CandleView/MarkManager/Shape/RectangleMarkManager.d.ts +51 -0
- package/dist/components/CandleView/MarkManager/Shape/SectorMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Shape/TriangleMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/StaticMarkManager.d.ts +46 -0
- package/dist/components/CandleView/MarkManager/Text/BubbleBoxMarkManager.d.ts +61 -0
- package/dist/components/CandleView/MarkManager/Text/EmojiMarkManager.d.ts +52 -0
- package/dist/components/CandleView/MarkManager/Text/FlagMarkManager.d.ts +51 -0
- package/dist/components/CandleView/MarkManager/Text/PinMarkManager.d.ts +56 -0
- package/dist/components/CandleView/MarkManager/Text/PriceLabelMarkManager.d.ts +51 -0
- package/dist/components/CandleView/MarkManager/Text/PriceNoteMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Text/SignPostMarkManager.d.ts +55 -0
- package/dist/components/CandleView/MarkManager/Text/TextEditMarkManager.d.ts +61 -0
- package/dist/components/CandleView/Theme.d.ts +59 -0
- package/dist/components/CandleView/TopPanel/Config.d.ts +23 -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 +4 -0
- package/dist/index.test.d.ts +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
+
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
3
|
+
import { BubbleBoxMark } from '../../Mark/Text/BubbleBoxMark';
|
|
4
|
+
import { Point } from '../../types';
|
|
5
|
+
export interface BubbleBoxMarkManagerProps {
|
|
6
|
+
chartSeries: ChartSeries | null;
|
|
7
|
+
chart: any;
|
|
8
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
+
onCloseDrawing?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface BubbleBoxMarkState {
|
|
12
|
+
isBubbleBoxMarkMode: boolean;
|
|
13
|
+
bubbleBoxMarkPoints: Point[] | null;
|
|
14
|
+
currentBubbleBoxMark: BubbleBoxMark | null;
|
|
15
|
+
isDragging: boolean;
|
|
16
|
+
dragTarget: BubbleBoxMark | null;
|
|
17
|
+
dragType: 'controlPoint' | 'bubble' | 'connection' | null;
|
|
18
|
+
}
|
|
19
|
+
export declare class BubbleBoxMarkManager implements IMarkManager<BubbleBoxMark> {
|
|
20
|
+
private props;
|
|
21
|
+
private state;
|
|
22
|
+
private previewBubbleBoxMark;
|
|
23
|
+
private bubbleBoxMarks;
|
|
24
|
+
private dragStartData;
|
|
25
|
+
private isOperating;
|
|
26
|
+
private isCreatingNewBubble;
|
|
27
|
+
private creationStep;
|
|
28
|
+
constructor(props: BubbleBoxMarkManagerProps);
|
|
29
|
+
private _addEventListeners;
|
|
30
|
+
private _removeEventListeners;
|
|
31
|
+
private _handleBubbleBoxMarkDragStart;
|
|
32
|
+
clearState(): void;
|
|
33
|
+
getMarkAtPoint(point: Point): BubbleBoxMark | null;
|
|
34
|
+
getMarkAtPointWithType(point: Point): {
|
|
35
|
+
mark: BubbleBoxMark;
|
|
36
|
+
type: 'controlPoint' | 'bubble' | 'connection';
|
|
37
|
+
} | null;
|
|
38
|
+
getCurrentDragTarget(): BubbleBoxMark | null;
|
|
39
|
+
getCurrentDragPoint(): string | null;
|
|
40
|
+
getCurrentOperatingMark(): BubbleBoxMark | null;
|
|
41
|
+
getAllMarks(): BubbleBoxMark[];
|
|
42
|
+
cancelOperationMode(): BubbleBoxMarkState;
|
|
43
|
+
setBubbleBoxMarkMode: () => BubbleBoxMarkState;
|
|
44
|
+
cancelBubbleBoxMarkMode: () => BubbleBoxMarkState;
|
|
45
|
+
handleMouseDown: (point: Point) => BubbleBoxMarkState;
|
|
46
|
+
handleMouseMove: (point: Point) => void;
|
|
47
|
+
handleMouseUp: (point: Point) => BubbleBoxMarkState;
|
|
48
|
+
handleKeyDown: (event: KeyboardEvent) => BubbleBoxMarkState;
|
|
49
|
+
getState(): BubbleBoxMarkState;
|
|
50
|
+
updateProps(newProps: Partial<BubbleBoxMarkManagerProps>): void;
|
|
51
|
+
destroy(): void;
|
|
52
|
+
getBubbleBoxMarks(): BubbleBoxMark[];
|
|
53
|
+
removeBubbleBoxMark(mark: BubbleBoxMark): void;
|
|
54
|
+
isOperatingOnChart(): boolean;
|
|
55
|
+
updateBubbleText(mark: BubbleBoxMark, text: string): void;
|
|
56
|
+
private hiddenBubbleBoxMarks;
|
|
57
|
+
hideAllMarks(): void;
|
|
58
|
+
showAllMarks(): void;
|
|
59
|
+
hideMark(mark: BubbleBoxMark): void;
|
|
60
|
+
showMark(mark: BubbleBoxMark): void;
|
|
61
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
+
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
3
|
+
import { EmojiMark } from '../../Mark/Text/EmojiMark';
|
|
4
|
+
import { Point } from '../../types';
|
|
5
|
+
export interface EmojiMarkManagerProps {
|
|
6
|
+
chartSeries: ChartSeries | null;
|
|
7
|
+
chart: any;
|
|
8
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
+
onCloseDrawing?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface EmojiMarkState {
|
|
12
|
+
isEmojiMarkMode: boolean;
|
|
13
|
+
emojiMarkStartPoint: Point | null;
|
|
14
|
+
currentEmojiMark: EmojiMark | null;
|
|
15
|
+
isDragging: boolean;
|
|
16
|
+
dragTarget: EmojiMark | null;
|
|
17
|
+
dragPoint: 'start' | 'end' | 'line' | null;
|
|
18
|
+
selectedEmoji: string | undefined;
|
|
19
|
+
}
|
|
20
|
+
export declare class EmojiMarkManager implements IMarkManager<EmojiMark> {
|
|
21
|
+
private props;
|
|
22
|
+
private state;
|
|
23
|
+
private previewEmojiMark;
|
|
24
|
+
private emojiMarks;
|
|
25
|
+
private dragStartData;
|
|
26
|
+
private isOperating;
|
|
27
|
+
constructor(props: EmojiMarkManagerProps);
|
|
28
|
+
clearState(): void;
|
|
29
|
+
getMarkAtPoint(point: Point): EmojiMark | null;
|
|
30
|
+
getCurrentDragTarget(): EmojiMark | null;
|
|
31
|
+
getCurrentDragPoint(): string | null;
|
|
32
|
+
getCurrentOperatingMark(): EmojiMark | null;
|
|
33
|
+
getAllMarks(): EmojiMark[];
|
|
34
|
+
cancelOperationMode(): EmojiMarkState;
|
|
35
|
+
setEmojiMarkMode: (emoji: string) => EmojiMarkState;
|
|
36
|
+
cancelEmojiMarkMode: () => EmojiMarkState;
|
|
37
|
+
handleMouseDown: (point: Point) => EmojiMarkState;
|
|
38
|
+
handleMouseMove: (point: Point) => void;
|
|
39
|
+
handleMouseUp: (point: Point) => EmojiMarkState;
|
|
40
|
+
handleKeyDown: (event: KeyboardEvent) => EmojiMarkState;
|
|
41
|
+
getState(): EmojiMarkState;
|
|
42
|
+
updateProps(newProps: Partial<EmojiMarkManagerProps>): void;
|
|
43
|
+
destroy(): void;
|
|
44
|
+
getEmojiMarks(): EmojiMark[];
|
|
45
|
+
removeEmojiMark(mark: EmojiMark): void;
|
|
46
|
+
isOperatingOnChart(): boolean;
|
|
47
|
+
private hiddenEmojiMarks;
|
|
48
|
+
hideAllMarks(): void;
|
|
49
|
+
showAllMarks(): void;
|
|
50
|
+
hideMark(mark: EmojiMark): void;
|
|
51
|
+
showMark(mark: EmojiMark): void;
|
|
52
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
+
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
3
|
+
import { FlagMark } from '../../Mark/Text/FlagMark';
|
|
4
|
+
import { Point } from '../../types';
|
|
5
|
+
export interface FlagMarkManagerProps {
|
|
6
|
+
chartSeries: ChartSeries | null;
|
|
7
|
+
chart: any;
|
|
8
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
+
onCloseDrawing?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface FlagMarkState {
|
|
12
|
+
isFlagMarkMode: boolean;
|
|
13
|
+
flagMarkPoint: Point | null;
|
|
14
|
+
currentFlagMark: FlagMark | null;
|
|
15
|
+
isDragging: boolean;
|
|
16
|
+
dragTarget: FlagMark | null;
|
|
17
|
+
}
|
|
18
|
+
export declare class FlagMarkManager implements IMarkManager<FlagMark> {
|
|
19
|
+
private props;
|
|
20
|
+
private state;
|
|
21
|
+
private previewFlagMark;
|
|
22
|
+
private flagMarks;
|
|
23
|
+
private dragStartData;
|
|
24
|
+
private isOperating;
|
|
25
|
+
private isCreatingNewFlag;
|
|
26
|
+
constructor(props: FlagMarkManagerProps);
|
|
27
|
+
clearState(): void;
|
|
28
|
+
getMarkAtPoint(point: Point): FlagMark | null;
|
|
29
|
+
getCurrentDragTarget(): FlagMark | null;
|
|
30
|
+
getCurrentDragPoint(): string | null;
|
|
31
|
+
getCurrentOperatingMark(): FlagMark | null;
|
|
32
|
+
getAllMarks(): FlagMark[];
|
|
33
|
+
cancelOperationMode(): FlagMarkState;
|
|
34
|
+
setFlagMarkMode: () => FlagMarkState;
|
|
35
|
+
cancelFlagMarkMode: () => FlagMarkState;
|
|
36
|
+
handleMouseDown: (point: Point) => FlagMarkState;
|
|
37
|
+
handleMouseMove: (point: Point) => void;
|
|
38
|
+
handleMouseUp: (point: Point) => FlagMarkState;
|
|
39
|
+
handleKeyDown: (event: KeyboardEvent) => FlagMarkState;
|
|
40
|
+
getState(): FlagMarkState;
|
|
41
|
+
updateProps(newProps: Partial<FlagMarkManagerProps>): void;
|
|
42
|
+
destroy(): void;
|
|
43
|
+
getFlagMarks(): FlagMark[];
|
|
44
|
+
removeFlagMark(mark: FlagMark): void;
|
|
45
|
+
isOperatingOnChart(): boolean;
|
|
46
|
+
private hiddenFlagMarks;
|
|
47
|
+
hideAllMarks(): void;
|
|
48
|
+
showAllMarks(): void;
|
|
49
|
+
hideMark(mark: FlagMark): void;
|
|
50
|
+
showMark(mark: FlagMark): void;
|
|
51
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
+
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
3
|
+
import { PinMark } from '../../Mark/Text/PinMark';
|
|
4
|
+
import { Point } from '../../types';
|
|
5
|
+
export interface PinMarkManagerProps {
|
|
6
|
+
chartSeries: ChartSeries | null;
|
|
7
|
+
chart: any;
|
|
8
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
+
onCloseDrawing?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface PinMarkState {
|
|
12
|
+
isPinMarkMode: boolean;
|
|
13
|
+
pinMarkPoint: Point | null;
|
|
14
|
+
currentPinMark: PinMark | null;
|
|
15
|
+
isDragging: boolean;
|
|
16
|
+
dragTarget: PinMark | null;
|
|
17
|
+
}
|
|
18
|
+
export declare class PinMarkManager implements IMarkManager<PinMark> {
|
|
19
|
+
private props;
|
|
20
|
+
private state;
|
|
21
|
+
private previewPinMark;
|
|
22
|
+
private pinMarks;
|
|
23
|
+
private dragStartData;
|
|
24
|
+
private isOperating;
|
|
25
|
+
private isCreatingNewPin;
|
|
26
|
+
constructor(props: PinMarkManagerProps);
|
|
27
|
+
private _addEventListeners;
|
|
28
|
+
private _removeEventListeners;
|
|
29
|
+
private _handlePinMarkDragStart;
|
|
30
|
+
clearState(): void;
|
|
31
|
+
getMarkAtPoint(point: Point): PinMark | null;
|
|
32
|
+
getCurrentDragTarget(): PinMark | null;
|
|
33
|
+
getCurrentDragPoint(): string | null;
|
|
34
|
+
getCurrentOperatingMark(): PinMark | null;
|
|
35
|
+
getAllMarks(): PinMark[];
|
|
36
|
+
cancelOperationMode(): PinMarkState;
|
|
37
|
+
setPinMarkMode: () => PinMarkState;
|
|
38
|
+
cancelPinMarkMode: () => PinMarkState;
|
|
39
|
+
handleMouseDown: (point: Point) => PinMarkState;
|
|
40
|
+
private hideAllBubbles;
|
|
41
|
+
handleMouseMove: (point: Point) => void;
|
|
42
|
+
handleMouseUp: (point: Point) => PinMarkState;
|
|
43
|
+
handleKeyDown: (event: KeyboardEvent) => PinMarkState;
|
|
44
|
+
getState(): PinMarkState;
|
|
45
|
+
updateProps(newProps: Partial<PinMarkManagerProps>): void;
|
|
46
|
+
destroy(): void;
|
|
47
|
+
getPinMarks(): PinMark[];
|
|
48
|
+
removePinMark(mark: PinMark): void;
|
|
49
|
+
isOperatingOnChart(): boolean;
|
|
50
|
+
updatePinText(mark: PinMark, text: string): void;
|
|
51
|
+
private hiddenPinMarks;
|
|
52
|
+
hideAllMarks(): void;
|
|
53
|
+
showAllMarks(): void;
|
|
54
|
+
hideMark(mark: PinMark): void;
|
|
55
|
+
showMark(mark: PinMark): void;
|
|
56
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
+
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
3
|
+
import { PriceLabelMark } from '../../Mark/Text/PriceLabelMark';
|
|
4
|
+
import { Point } from '../../types';
|
|
5
|
+
export interface PriceLabelMarkManagerProps {
|
|
6
|
+
chartSeries: ChartSeries | null;
|
|
7
|
+
chart: any;
|
|
8
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
+
onCloseDrawing?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface PriceLabelMarkState {
|
|
12
|
+
isPriceLabelMarkMode: boolean;
|
|
13
|
+
priceLabelMarkPoint: Point | null;
|
|
14
|
+
currentPriceLabelMark: PriceLabelMark | null;
|
|
15
|
+
isDragging: boolean;
|
|
16
|
+
dragTarget: PriceLabelMark | null;
|
|
17
|
+
}
|
|
18
|
+
export declare class PriceLabelMarkManager implements IMarkManager<PriceLabelMark> {
|
|
19
|
+
private props;
|
|
20
|
+
private state;
|
|
21
|
+
private previewPriceLabelMark;
|
|
22
|
+
private priceLabelMarks;
|
|
23
|
+
private dragStartData;
|
|
24
|
+
private isOperating;
|
|
25
|
+
private isCreatingNewLabel;
|
|
26
|
+
constructor(props: PriceLabelMarkManagerProps);
|
|
27
|
+
clearState(): void;
|
|
28
|
+
getMarkAtPoint(point: Point): PriceLabelMark | null;
|
|
29
|
+
getCurrentDragTarget(): PriceLabelMark | null;
|
|
30
|
+
getCurrentDragPoint(): string | null;
|
|
31
|
+
getCurrentOperatingMark(): PriceLabelMark | null;
|
|
32
|
+
getAllMarks(): PriceLabelMark[];
|
|
33
|
+
cancelOperationMode(): PriceLabelMarkState;
|
|
34
|
+
setPriceLabelMarkMode: () => PriceLabelMarkState;
|
|
35
|
+
cancelPriceLabelMarkMode: () => PriceLabelMarkState;
|
|
36
|
+
handleMouseDown: (point: Point) => PriceLabelMarkState;
|
|
37
|
+
handleMouseMove: (point: Point) => void;
|
|
38
|
+
handleMouseUp: (point: Point) => PriceLabelMarkState;
|
|
39
|
+
handleKeyDown: (event: KeyboardEvent) => PriceLabelMarkState;
|
|
40
|
+
getState(): PriceLabelMarkState;
|
|
41
|
+
updateProps(newProps: Partial<PriceLabelMarkManagerProps>): void;
|
|
42
|
+
destroy(): void;
|
|
43
|
+
getPriceLabelMarks(): PriceLabelMark[];
|
|
44
|
+
removePriceLabelMark(mark: PriceLabelMark): void;
|
|
45
|
+
isOperatingOnChart(): boolean;
|
|
46
|
+
private hiddenPriceLabelMarks;
|
|
47
|
+
hideAllMarks(): void;
|
|
48
|
+
showAllMarks(): void;
|
|
49
|
+
hideMark(mark: PriceLabelMark): void;
|
|
50
|
+
showMark(mark: PriceLabelMark): void;
|
|
51
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
+
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
3
|
+
import { PriceNoteMark } from '../../Mark/Text/PriceNoteMark';
|
|
4
|
+
import { Point } from '../../types';
|
|
5
|
+
export interface PriceNoteMarkManagerProps {
|
|
6
|
+
chartSeries: ChartSeries | null;
|
|
7
|
+
chart: any;
|
|
8
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
+
onCloseDrawing?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface PriceNoteMarkState {
|
|
12
|
+
isPriceNoteMarkMode: boolean;
|
|
13
|
+
priceNoteMarkStartPoint: Point | null;
|
|
14
|
+
currentPriceNoteMark: PriceNoteMark | null;
|
|
15
|
+
isDragging: boolean;
|
|
16
|
+
dragTarget: PriceNoteMark | null;
|
|
17
|
+
dragPoint: 'start' | 'end' | 'line' | null;
|
|
18
|
+
}
|
|
19
|
+
export declare class PriceNoteMarkManager implements IMarkManager<PriceNoteMark> {
|
|
20
|
+
private props;
|
|
21
|
+
private state;
|
|
22
|
+
private previewPriceNoteMark;
|
|
23
|
+
private priceNoteMarks;
|
|
24
|
+
private mouseDownPoint;
|
|
25
|
+
private dragStartData;
|
|
26
|
+
private isOperating;
|
|
27
|
+
constructor(props: PriceNoteMarkManagerProps);
|
|
28
|
+
clearState(): void;
|
|
29
|
+
getMarkAtPoint(point: Point): PriceNoteMark | null;
|
|
30
|
+
getCurrentDragTarget(): PriceNoteMark | null;
|
|
31
|
+
getCurrentDragPoint(): string | null;
|
|
32
|
+
getCurrentOperatingMark(): PriceNoteMark | null;
|
|
33
|
+
getAllMarks(): PriceNoteMark[];
|
|
34
|
+
cancelOperationMode(): PriceNoteMarkState;
|
|
35
|
+
setPriceNoteMarkMode: () => PriceNoteMarkState;
|
|
36
|
+
cancelPriceNoteMarkMode: () => PriceNoteMarkState;
|
|
37
|
+
handleMouseDown: (point: Point) => PriceNoteMarkState;
|
|
38
|
+
private isPointNearLine;
|
|
39
|
+
handleMouseMove: (point: Point) => void;
|
|
40
|
+
handleMouseUp: (point: Point) => PriceNoteMarkState;
|
|
41
|
+
handleKeyDown: (event: KeyboardEvent) => PriceNoteMarkState;
|
|
42
|
+
getState(): PriceNoteMarkState;
|
|
43
|
+
updateProps(newProps: Partial<PriceNoteMarkManagerProps>): void;
|
|
44
|
+
destroy(): void;
|
|
45
|
+
getPriceNoteMarks(): PriceNoteMark[];
|
|
46
|
+
removePriceNoteMark(mark: PriceNoteMark): void;
|
|
47
|
+
isOperatingOnChart(): boolean;
|
|
48
|
+
private hiddenPriceNoteMarks;
|
|
49
|
+
hideAllMarks(): void;
|
|
50
|
+
showAllMarks(): void;
|
|
51
|
+
hideMark(mark: PriceNoteMark): void;
|
|
52
|
+
showMark(mark: PriceNoteMark): void;
|
|
53
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
+
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
3
|
+
import { SignPostMark } from '../../Mark/Text/SignPostMark';
|
|
4
|
+
import { Point } from '../../types';
|
|
5
|
+
export interface SignPostMarkManagerProps {
|
|
6
|
+
chartSeries: ChartSeries | null;
|
|
7
|
+
chart: any;
|
|
8
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
+
onCloseDrawing?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface SignPostMarkState {
|
|
12
|
+
isSignPostMarkMode: boolean;
|
|
13
|
+
signPostMarkPoint: Point | null;
|
|
14
|
+
currentSignPostMark: SignPostMark | null;
|
|
15
|
+
isDragging: boolean;
|
|
16
|
+
dragTarget: SignPostMark | null;
|
|
17
|
+
}
|
|
18
|
+
export declare class SignPostMarkManager implements IMarkManager<SignPostMark> {
|
|
19
|
+
private props;
|
|
20
|
+
private state;
|
|
21
|
+
private previewSignPostMark;
|
|
22
|
+
private landmarkLabelMarks;
|
|
23
|
+
private dragStartData;
|
|
24
|
+
private isOperating;
|
|
25
|
+
private isCreatingNewLabel;
|
|
26
|
+
constructor(props: SignPostMarkManagerProps);
|
|
27
|
+
private _addEventListeners;
|
|
28
|
+
private _removeEventListeners;
|
|
29
|
+
private _handleSignPostMarkDragStart;
|
|
30
|
+
clearState(): void;
|
|
31
|
+
getMarkAtPoint(point: Point): SignPostMark | null;
|
|
32
|
+
getCurrentDragTarget(): SignPostMark | null;
|
|
33
|
+
getCurrentDragPoint(): string | null;
|
|
34
|
+
getCurrentOperatingMark(): SignPostMark | null;
|
|
35
|
+
getAllMarks(): SignPostMark[];
|
|
36
|
+
cancelOperationMode(): SignPostMarkState;
|
|
37
|
+
setSignPostMarkMode: () => SignPostMarkState;
|
|
38
|
+
cancelSignPostMarkMode: () => SignPostMarkState;
|
|
39
|
+
handleMouseDown: (point: Point) => SignPostMarkState;
|
|
40
|
+
handleMouseMove: (point: Point) => void;
|
|
41
|
+
handleMouseUp: (point: Point) => SignPostMarkState;
|
|
42
|
+
handleKeyDown: (event: KeyboardEvent) => SignPostMarkState;
|
|
43
|
+
getState(): SignPostMarkState;
|
|
44
|
+
updateProps(newProps: Partial<SignPostMarkManagerProps>): void;
|
|
45
|
+
destroy(): void;
|
|
46
|
+
getSignPostMarks(): SignPostMark[];
|
|
47
|
+
removeSignPostMark(mark: SignPostMark): void;
|
|
48
|
+
isOperatingOnChart(): boolean;
|
|
49
|
+
updateSignPostText(mark: SignPostMark, text: string): void;
|
|
50
|
+
private hiddenSignPostMarks;
|
|
51
|
+
hideAllMarks(): void;
|
|
52
|
+
showAllMarks(): void;
|
|
53
|
+
hideMark(mark: SignPostMark): void;
|
|
54
|
+
showMark(mark: SignPostMark): void;
|
|
55
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
+
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
3
|
+
import { TextEditMark } from '../../Mark/Text/TextEditMark';
|
|
4
|
+
import { Point } from '../../types';
|
|
5
|
+
export interface TextEditMarkManagerProps {
|
|
6
|
+
chartSeries: ChartSeries | null;
|
|
7
|
+
chart: any;
|
|
8
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
+
onCloseDrawing?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface TextEditMarkState {
|
|
12
|
+
isTextEditMarkMode: boolean;
|
|
13
|
+
textEditMarkPoints: Point[] | null;
|
|
14
|
+
currentTextEditMark: TextEditMark | null;
|
|
15
|
+
isDragging: boolean;
|
|
16
|
+
dragTarget: TextEditMark | null;
|
|
17
|
+
dragType: 'bubble' | null;
|
|
18
|
+
}
|
|
19
|
+
export declare class TextEditMarkManager implements IMarkManager<TextEditMark> {
|
|
20
|
+
private props;
|
|
21
|
+
private state;
|
|
22
|
+
private previewTextEditMark;
|
|
23
|
+
private textEditMarks;
|
|
24
|
+
private dragStartData;
|
|
25
|
+
private isOperating;
|
|
26
|
+
private isCreatingNewText;
|
|
27
|
+
private creationStep;
|
|
28
|
+
constructor(props: TextEditMarkManagerProps);
|
|
29
|
+
private _addEventListeners;
|
|
30
|
+
private _removeEventListeners;
|
|
31
|
+
private _handleTextEditMarkDragStart;
|
|
32
|
+
clearState(): void;
|
|
33
|
+
getMarkAtPoint(point: Point): TextEditMark | null;
|
|
34
|
+
getMarkAtPointWithType(point: Point): {
|
|
35
|
+
mark: TextEditMark;
|
|
36
|
+
type: 'bubble';
|
|
37
|
+
} | null;
|
|
38
|
+
getCurrentDragTarget(): TextEditMark | null;
|
|
39
|
+
getCurrentDragPoint(): string | null;
|
|
40
|
+
getCurrentOperatingMark(): TextEditMark | null;
|
|
41
|
+
getAllMarks(): TextEditMark[];
|
|
42
|
+
cancelOperationMode(): TextEditMarkState;
|
|
43
|
+
setTextEditMarkMode: () => TextEditMarkState;
|
|
44
|
+
cancelTextEditMarkMode: () => TextEditMarkState;
|
|
45
|
+
handleMouseDown: (point: Point) => TextEditMarkState;
|
|
46
|
+
handleMouseMove: (point: Point) => void;
|
|
47
|
+
handleMouseUp: (point: Point) => TextEditMarkState;
|
|
48
|
+
handleKeyDown: (event: KeyboardEvent) => TextEditMarkState;
|
|
49
|
+
getState(): TextEditMarkState;
|
|
50
|
+
updateProps(newProps: Partial<TextEditMarkManagerProps>): void;
|
|
51
|
+
destroy(): void;
|
|
52
|
+
getTextEditMarks(): TextEditMark[];
|
|
53
|
+
removeTextEditMark(mark: TextEditMark): void;
|
|
54
|
+
isOperatingOnChart(): boolean;
|
|
55
|
+
updateTextEditText(mark: TextEditMark, text: string): void;
|
|
56
|
+
private hiddenTextEditMarks;
|
|
57
|
+
hideAllMarks(): void;
|
|
58
|
+
showAllMarks(): void;
|
|
59
|
+
hideMark(mark: TextEditMark): void;
|
|
60
|
+
showMark(mark: TextEditMark): void;
|
|
61
|
+
}
|
|
@@ -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,23 @@
|
|
|
1
|
+
import { CandleViewTopPanelState } from '.';
|
|
2
|
+
import { I18n } from '../I18n';
|
|
3
|
+
import { MainChartIndicatorType, SubChartIndicatorType, TimeframeEnum } from '../types';
|
|
4
|
+
export declare const mainIndicators: {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
type: MainChartIndicatorType;
|
|
8
|
+
}[];
|
|
9
|
+
export declare const mainChartMaps: {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
type: MainChartIndicatorType;
|
|
13
|
+
}[];
|
|
14
|
+
export declare const subChartIndicators: {
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
type: SubChartIndicatorType;
|
|
18
|
+
}[];
|
|
19
|
+
export declare function getAllTimeframes(i18n: I18n): {
|
|
20
|
+
type: string;
|
|
21
|
+
sectionKey: keyof CandleViewTopPanelState["timeframeSections"];
|
|
22
|
+
values: TimeframeEnum[];
|
|
23
|
+
}[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as 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;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ThemeConfig } from '../Theme';
|
|
3
|
+
import { MainChartIndicatorInfo } from '../Indicators/MainChart/MainChartIndicatorInfo';
|
|
4
|
+
import { MainChartType, SubChartIndicatorType } from '../types';
|
|
5
|
+
import { I18n } from '../I18n';
|
|
6
|
+
interface CandleViewTopPanelProps {
|
|
7
|
+
currentTheme: ThemeConfig;
|
|
8
|
+
activeTimeframe: string;
|
|
9
|
+
activeMainChartType: MainChartType;
|
|
10
|
+
isDarkTheme: boolean;
|
|
11
|
+
isTimeframeModalOpen: boolean;
|
|
12
|
+
isIndicatorModalOpen: boolean;
|
|
13
|
+
isChartTypeModalOpen: boolean;
|
|
14
|
+
isSubChartModalOpen: boolean;
|
|
15
|
+
isTimezoneModalOpen: boolean;
|
|
16
|
+
isTimeFormatModalOpen: boolean;
|
|
17
|
+
isCloseTimeModalOpen: boolean;
|
|
18
|
+
isTradingDayModalOpen: boolean;
|
|
19
|
+
isMobileMenuOpen: boolean;
|
|
20
|
+
onMobileMenuToggle: () => void;
|
|
21
|
+
onThemeToggle: () => void;
|
|
22
|
+
onTimeframeClick: () => void;
|
|
23
|
+
onIndicatorClick: () => void;
|
|
24
|
+
onChartTypeClick: () => void;
|
|
25
|
+
onCompareClick: () => void;
|
|
26
|
+
onFullscreenClick: () => void;
|
|
27
|
+
onReplayClick: () => void;
|
|
28
|
+
onTimezoneClick: () => void;
|
|
29
|
+
onTimeFormatClick: () => void;
|
|
30
|
+
onCloseTimeClick: () => void;
|
|
31
|
+
onTradingDayClick: () => void;
|
|
32
|
+
onTimeframeSelect: (timeframe: string) => void;
|
|
33
|
+
onChartTypeSelect: (mainChartType: MainChartType) => void;
|
|
34
|
+
onTimezoneSelect: (timezone: string) => void;
|
|
35
|
+
handleSelectedMainChartIndicator: (indicators: MainChartIndicatorInfo) => void;
|
|
36
|
+
handleSelectedSubChartIndicator: (indicators: SubChartIndicatorType[]) => void;
|
|
37
|
+
showToolbar?: boolean;
|
|
38
|
+
onCloseModals?: () => void;
|
|
39
|
+
onSubChartClick?: () => void;
|
|
40
|
+
selectedSubChartIndicators?: SubChartIndicatorType[];
|
|
41
|
+
onCameraClick: () => void;
|
|
42
|
+
i18n: I18n;
|
|
43
|
+
currentTimezone: string;
|
|
44
|
+
currentCloseTime: string;
|
|
45
|
+
currentTradingDayType: string;
|
|
46
|
+
}
|
|
47
|
+
export interface CandleViewTopPanelState {
|
|
48
|
+
mainIndicatorsSearch: string;
|
|
49
|
+
subChartIndicatorsSearch: string;
|
|
50
|
+
chartTypeSearch: string;
|
|
51
|
+
selectedMainIndicator: MainChartIndicatorInfo | null;
|
|
52
|
+
selectedSubChartIndicators: SubChartIndicatorType[];
|
|
53
|
+
timeframeSections: {
|
|
54
|
+
Second: boolean;
|
|
55
|
+
Minute: boolean;
|
|
56
|
+
Hour: boolean;
|
|
57
|
+
Day: boolean;
|
|
58
|
+
Week: boolean;
|
|
59
|
+
Month: boolean;
|
|
60
|
+
};
|
|
61
|
+
timezoneSearch: string;
|
|
62
|
+
indicatorSections: {
|
|
63
|
+
technicalIndicators: boolean;
|
|
64
|
+
chart: boolean;
|
|
65
|
+
subChartIndicators: boolean;
|
|
66
|
+
};
|
|
67
|
+
windowWidth: number;
|
|
68
|
+
}
|
|
69
|
+
declare class CandleViewTopPanel extends React.Component<CandleViewTopPanelProps> {
|
|
70
|
+
private timeframeModalRef;
|
|
71
|
+
private chartTypeModalRef;
|
|
72
|
+
private indicatorModalRef;
|
|
73
|
+
private timezoneModalRef;
|
|
74
|
+
private mobileMenuModalRef;
|
|
75
|
+
state: CandleViewTopPanelState;
|
|
76
|
+
componentDidMount(): void;
|
|
77
|
+
componentWillUnmount(): void;
|
|
78
|
+
componentDidUpdate(prevProps: CandleViewTopPanelProps): void;
|
|
79
|
+
private handleResize;
|
|
80
|
+
private isMobileView;
|
|
81
|
+
private toggleMobileMenu;
|
|
82
|
+
private closeMobileMenu;
|
|
83
|
+
private handleTimeframeSelect;
|
|
84
|
+
private handleChartTypeSelect;
|
|
85
|
+
private handleTimezoneSelect;
|
|
86
|
+
private handleMainIndicatorsSearch;
|
|
87
|
+
private handleTimezoneSearch;
|
|
88
|
+
private filteredMaps;
|
|
89
|
+
private filteredMainIndicators;
|
|
90
|
+
private filteredSubChartIndicators;
|
|
91
|
+
private toggleTimeframeSection;
|
|
92
|
+
private toggleIndicatorSection;
|
|
93
|
+
private getChartTypeLabel;
|
|
94
|
+
private getCurrentTimezoneDisplayName;
|
|
95
|
+
private handleMenuItemClick;
|
|
96
|
+
private renderMobileMenuModal;
|
|
97
|
+
private renderTimeframeModal;
|
|
98
|
+
private handleChartTypeSearch;
|
|
99
|
+
private renderChartTypeModal;
|
|
100
|
+
private renderIndicatorModal;
|
|
101
|
+
private renderTimezoneModal;
|
|
102
|
+
render(): import("react/jsx-runtime").JSX.Element | null;
|
|
103
|
+
}
|
|
104
|
+
export default CandleViewTopPanel;
|