candleview 1.0.5 → 1.0.6
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/index.d.ts +758 -4
- package/package.json +1 -1
- package/dist/components/CandleView/Camera.d.ts +0 -16
- package/dist/components/CandleView/CandleView.d.ts +0 -149
- package/dist/components/CandleView/ChartLayer/ChartEventManager.d.ts +0 -47
- package/dist/components/CandleView/ChartLayer/ChartInfo.d.ts +0 -62
- package/dist/components/CandleView/ChartLayer/ChartLayerMarkState.d.ts +0 -281
- package/dist/components/CandleView/ChartLayer/ChartManager.d.ts +0 -11
- package/dist/components/CandleView/ChartLayer/ChartMarkManager.d.ts +0 -203
- package/dist/components/CandleView/ChartLayer/ChartMarkTextEditManager.d.ts +0 -16
- package/dist/components/CandleView/ChartLayer/ChartTypeManager.d.ts +0 -17
- package/dist/components/CandleView/ChartLayer/MainChart/Area.d.ts +0 -13
- package/dist/components/CandleView/ChartLayer/MainChart/Bar.d.ts +0 -13
- package/dist/components/CandleView/ChartLayer/MainChart/BaseLine.d.ts +0 -12
- package/dist/components/CandleView/ChartLayer/MainChart/BaselineArea.d.ts +0 -12
- package/dist/components/CandleView/ChartLayer/MainChart/Candlestick.d.ts +0 -12
- package/dist/components/CandleView/ChartLayer/MainChart/HLCArea.d.ts +0 -35
- package/dist/components/CandleView/ChartLayer/MainChart/HeikinAshi.d.ts +0 -12
- package/dist/components/CandleView/ChartLayer/MainChart/HighLow.d.ts +0 -12
- package/dist/components/CandleView/ChartLayer/MainChart/Histogram.d.ts +0 -13
- package/dist/components/CandleView/ChartLayer/MainChart/HollowCandle.d.ts +0 -13
- package/dist/components/CandleView/ChartLayer/MainChart/IMainChart.d.ts +0 -7
- package/dist/components/CandleView/ChartLayer/MainChart/Line.d.ts +0 -13
- package/dist/components/CandleView/ChartLayer/MainChart/LineBreak.d.ts +0 -15
- package/dist/components/CandleView/ChartLayer/MainChart/MainChartManager.d.ts +0 -17
- package/dist/components/CandleView/ChartLayer/MainChart/MarketProfile.d.ts +0 -52
- package/dist/components/CandleView/ChartLayer/MainChart/Mountain.d.ts +0 -12
- package/dist/components/CandleView/ChartLayer/MainChart/StepLine.d.ts +0 -12
- package/dist/components/CandleView/ChartLayer/MainChart/Volume.d.ts +0 -6
- package/dist/components/CandleView/ChartLayer/MainChart/VolumeHeatMap.d.ts +0 -41
- package/dist/components/CandleView/ChartLayer/Modal/ImageUploadModal.d.ts +0 -10
- package/dist/components/CandleView/ChartLayer/Modal/MainChartIndicatorsSettingModal.d.ts +0 -17
- package/dist/components/CandleView/ChartLayer/Modal/SubChartIndicatorsSettingModal.d.ts +0 -17
- package/dist/components/CandleView/ChartLayer/Modal/TextMarkEditorModal.d.ts +0 -21
- package/dist/components/CandleView/ChartLayer/Panes/BaseChartPane.d.ts +0 -41
- package/dist/components/CandleView/ChartLayer/Panes/ChartPaneFactory.d.ts +0 -6
- package/dist/components/CandleView/ChartLayer/Panes/ChartPanesManager.d.ts +0 -31
- package/dist/components/CandleView/ChartLayer/Panes/IChartPanes.d.ts +0 -42
- package/dist/components/CandleView/ChartLayer/SubChart/ADX.d.ts +0 -25
- package/dist/components/CandleView/ChartLayer/SubChart/ATR.d.ts +0 -25
- package/dist/components/CandleView/ChartLayer/SubChart/BBWidth.d.ts +0 -26
- package/dist/components/CandleView/ChartLayer/SubChart/CCI.d.ts +0 -25
- package/dist/components/CandleView/ChartLayer/SubChart/KDJ.d.ts +0 -23
- package/dist/components/CandleView/ChartLayer/SubChart/MACD.d.ts +0 -23
- package/dist/components/CandleView/ChartLayer/SubChart/OBV.d.ts +0 -24
- package/dist/components/CandleView/ChartLayer/SubChart/RSI.d.ts +0 -25
- package/dist/components/CandleView/ChartLayer/SubChart/SAR.d.ts +0 -23
- package/dist/components/CandleView/ChartLayer/SubChart/Stochastic.d.ts +0 -23
- package/dist/components/CandleView/ChartLayer/SubChart/Volume.d.ts +0 -24
- package/dist/components/CandleView/ChartLayer/ToolBar/GraphMarkToolBar.d.ts +0 -51
- package/dist/components/CandleView/ChartLayer/ToolBar/TextMarkToolBar.d.ts +0 -65
- package/dist/components/CandleView/ChartLayer/index.d.ts +0 -290
- package/dist/components/CandleView/DataAdapter.d.ts +0 -28
- package/dist/components/CandleView/DataLoader.d.ts +0 -15
- package/dist/components/CandleView/DataManager.d.ts +0 -23
- package/dist/components/CandleView/DataPointManager.d.ts +0 -45
- package/dist/components/CandleView/I18n.d.ts +0 -418
- package/dist/components/CandleView/Icons.d.ts +0 -161
- package/dist/components/CandleView/Indicators/MainChart/BaseIndicator.d.ts +0 -26
- package/dist/components/CandleView/Indicators/MainChart/BollingerBandsIndicator.d.ts +0 -51
- package/dist/components/CandleView/Indicators/MainChart/DonchianChannelIndicator.d.ts +0 -24
- package/dist/components/CandleView/Indicators/MainChart/EMAIndicator.d.ts +0 -24
- package/dist/components/CandleView/Indicators/MainChart/EnvelopeIndicator.d.ts +0 -52
- package/dist/components/CandleView/Indicators/MainChart/IchimokuIndicator.d.ts +0 -58
- package/dist/components/CandleView/Indicators/MainChart/MAIndicator.d.ts +0 -24
- package/dist/components/CandleView/Indicators/MainChart/MainChartIndicatorInfo.d.ts +0 -24
- package/dist/components/CandleView/Indicators/MainChart/MainChartIndicatorManager.d.ts +0 -28
- package/dist/components/CandleView/Indicators/MainChart/VWAPIndicator.d.ts +0 -26
- package/dist/components/CandleView/Indicators/SubChart/ADXIndicator.d.ts +0 -6
- package/dist/components/CandleView/Indicators/SubChart/ATRIndicator.d.ts +0 -6
- package/dist/components/CandleView/Indicators/SubChart/BBWidthIndicator.d.ts +0 -6
- package/dist/components/CandleView/Indicators/SubChart/CCIIndicator.d.ts +0 -6
- package/dist/components/CandleView/Indicators/SubChart/IIndicator.d.ts +0 -15
- package/dist/components/CandleView/Indicators/SubChart/KDJIndicator.d.ts +0 -6
- package/dist/components/CandleView/Indicators/SubChart/MACDIndicator.d.ts +0 -6
- package/dist/components/CandleView/Indicators/SubChart/OBVIndicator.d.ts +0 -6
- package/dist/components/CandleView/Indicators/SubChart/RSIIndicator.d.ts +0 -6
- package/dist/components/CandleView/Indicators/SubChart/SARIndicator.d.ts +0 -6
- package/dist/components/CandleView/Indicators/SubChart/StochasticIndicator.d.ts +0 -25
- package/dist/components/CandleView/Indicators/SubChart/VolumeIndicator.d.ts +0 -11
- package/dist/components/CandleView/LeftPanel/Config.d.ts +0 -64
- package/dist/components/CandleView/LeftPanel/EmojiConfig.d.ts +0 -21
- package/dist/components/CandleView/LeftPanel/ToolManager.d.ts +0 -5
- package/dist/components/CandleView/LeftPanel/index.d.ts +0 -95
- package/dist/components/CandleView/Mark/Arrow/ArrowLineMark.d.ts +0 -67
- package/dist/components/CandleView/Mark/Arrow/ThickArrowLineMark.d.ts +0 -73
- package/dist/components/CandleView/Mark/Channel/DisjointChannelMark.d.ts +0 -74
- package/dist/components/CandleView/Mark/Channel/EquidistantChannelMark.d.ts +0 -67
- package/dist/components/CandleView/Mark/Channel/LinearRegressionChannelMark.d.ts +0 -70
- package/dist/components/CandleView/Mark/Channel/ParallelChannelMark.d.ts +0 -67
- package/dist/components/CandleView/Mark/Content/ImageMark.d.ts +0 -75
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciArcMark.d.ts +0 -88
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciChannelMark.d.ts +0 -80
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciCircleMark.d.ts +0 -81
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciExtensionBasePriceMark.d.ts +0 -89
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciExtensionBaseTimeMark.d.ts +0 -89
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciFanMark.d.ts +0 -91
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciRetracementMark.d.ts +0 -81
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciSpiralMark.d.ts +0 -95
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciTimeZoonMark.d.ts +0 -71
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciWedgeMark.d.ts +0 -97
- package/dist/components/CandleView/Mark/Fork/AndrewPitchforkMark.d.ts +0 -77
- package/dist/components/CandleView/Mark/Fork/EnhancedAndrewPitchforkMark.d.ts +0 -78
- package/dist/components/CandleView/Mark/Fork/SchiffPitchforkMark.d.ts +0 -86
- package/dist/components/CandleView/Mark/Gann/GannBoxMark.d.ts +0 -100
- package/dist/components/CandleView/Mark/Gann/GannFanMark.d.ts +0 -90
- package/dist/components/CandleView/Mark/Gann/GannRectangleMark.d.ts +0 -106
- package/dist/components/CandleView/Mark/IDeletableMark.d.ts +0 -5
- package/dist/components/CandleView/Mark/IGraph.d.ts +0 -7
- package/dist/components/CandleView/Mark/IMarkManager.d.ts +0 -11
- package/dist/components/CandleView/Mark/IMarkStyle.d.ts +0 -6
- package/dist/components/CandleView/Mark/Line/HorizontalLineMark.d.ts +0 -51
- package/dist/components/CandleView/Mark/Line/LineSegmentMark.d.ts +0 -62
- package/dist/components/CandleView/Mark/Line/VerticalLineMark.d.ts +0 -51
- package/dist/components/CandleView/Mark/Map/HeatMapMark.d.ts +0 -75
- package/dist/components/CandleView/Mark/Mock/MockKLineMark.d.ts +0 -70
- package/dist/components/CandleView/Mark/Pattern/ABCDMark.d.ts +0 -57
- package/dist/components/CandleView/Mark/Pattern/ElliottCorrectiveMark.d.ts +0 -59
- package/dist/components/CandleView/Mark/Pattern/ElliottDoubleCombinationMark.d.ts +0 -59
- package/dist/components/CandleView/Mark/Pattern/ElliottImpulseMark.d.ts +0 -59
- package/dist/components/CandleView/Mark/Pattern/ElliottTriangleMark.d.ts +0 -59
- package/dist/components/CandleView/Mark/Pattern/ElliottTripleCombinationMark.d.ts +0 -59
- package/dist/components/CandleView/Mark/Pattern/HeadAndShouldersMark.d.ts +0 -63
- package/dist/components/CandleView/Mark/Pattern/TriangleABCDMark.d.ts +0 -66
- package/dist/components/CandleView/Mark/Pattern/XABCDMark.d.ts +0 -58
- package/dist/components/CandleView/Mark/Pen/BrushMark.d.ts +0 -67
- package/dist/components/CandleView/Mark/Pen/EraserMark.d.ts +0 -51
- package/dist/components/CandleView/Mark/Pen/MarkerPenMark.d.ts +0 -62
- package/dist/components/CandleView/Mark/Pen/PenMark.d.ts +0 -62
- package/dist/components/CandleView/Mark/Pen/PencilMark.d.ts +0 -62
- package/dist/components/CandleView/Mark/Range/LongPositionMark.d.ts +0 -79
- package/dist/components/CandleView/Mark/Range/PriceRangeMark.d.ts +0 -71
- package/dist/components/CandleView/Mark/Range/ShortPositionMark.d.ts +0 -79
- package/dist/components/CandleView/Mark/Range/TimePriceRangeMark.d.ts +0 -74
- package/dist/components/CandleView/Mark/Range/TimeRangeMark.d.ts +0 -71
- package/dist/components/CandleView/Mark/Shape/CircleMark.d.ts +0 -78
- package/dist/components/CandleView/Mark/Shape/CurveMark.d.ts +0 -70
- package/dist/components/CandleView/Mark/Shape/DoubleCurveMark.d.ts +0 -75
- package/dist/components/CandleView/Mark/Shape/EllipseMark.d.ts +0 -85
- package/dist/components/CandleView/Mark/Shape/RectangleMark.ts.d.ts +0 -65
- package/dist/components/CandleView/Mark/Shape/SectorMark.d.ts +0 -83
- package/dist/components/CandleView/Mark/Shape/TriangleMark.d.ts +0 -91
- package/dist/components/CandleView/Mark/Static/BottomArrowMark.d.ts +0 -13
- package/dist/components/CandleView/Mark/Static/BottomTextMark.d.ts +0 -22
- package/dist/components/CandleView/Mark/Static/MultiBottomArrowMark.d.ts +0 -14
- package/dist/components/CandleView/Mark/Static/MultiBottomTextMark.d.ts +0 -36
- package/dist/components/CandleView/Mark/Static/MultiTopArrowMark.d.ts +0 -14
- package/dist/components/CandleView/Mark/Static/MultiTopTextMark.d.ts +0 -36
- package/dist/components/CandleView/Mark/Static/TopArrowMark.d.ts +0 -13
- package/dist/components/CandleView/Mark/Static/TopTextMark.d.ts +0 -22
- package/dist/components/CandleView/Mark/Text/BubbleBoxMark.d.ts +0 -126
- package/dist/components/CandleView/Mark/Text/EmojiMark.d.ts +0 -72
- package/dist/components/CandleView/Mark/Text/FlagMark.d.ts +0 -63
- package/dist/components/CandleView/Mark/Text/PinMark.d.ts +0 -110
- package/dist/components/CandleView/Mark/Text/PriceLabelMark.d.ts +0 -70
- package/dist/components/CandleView/Mark/Text/PriceNoteMark.d.ts +0 -87
- package/dist/components/CandleView/Mark/Text/SignPostMark.d.ts +0 -110
- package/dist/components/CandleView/Mark/Text/TextEditMark.d.ts +0 -105
- package/dist/components/CandleView/MarkManager/Channel/DisjointChannelMarkManager.d.ts +0 -67
- package/dist/components/CandleView/MarkManager/Channel/EquidistantChannelMarkManager.d.ts +0 -66
- package/dist/components/CandleView/MarkManager/Channel/LinearRegressionChannelMarkManager.d.ts +0 -63
- package/dist/components/CandleView/MarkManager/Channel/ParallelChannelMarkManager.d.ts +0 -66
- package/dist/components/CandleView/MarkManager/Content/ImageMarkManager.d.ts +0 -57
- package/dist/components/CandleView/MarkManager/Elliott/ElliottCorrectiveMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Elliott/ElliottDoubleCombinationMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Elliott/ElliottImpulseMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Elliott/ElliottTriangleMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Elliott/ElliottTripleCombinationMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciArcMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciChannelMarkManager.d.ts +0 -64
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciCircleMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciExtensionBasePriceMarkManager.d.ts +0 -54
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciExtensionBaseTimeMarkManager.d.ts +0 -54
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciFanMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciRetracementMarkManager.d.ts +0 -54
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciSpiralMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciTimeZoonMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciWedgeMarkManager.d.ts +0 -56
- package/dist/components/CandleView/MarkManager/Fork/AndrewPitchforkMarkManager.d.ts +0 -71
- package/dist/components/CandleView/MarkManager/Fork/EnhancedAndrewPitchforkMarkManager.d.ts +0 -71
- package/dist/components/CandleView/MarkManager/Fork/SchiffPitchforkMarkManager.d.ts +0 -76
- package/dist/components/CandleView/MarkManager/Gann/GannBoxMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Gann/GannFanMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Gann/GannRectangleManager.d.ts +0 -56
- package/dist/components/CandleView/MarkManager/Line/ArrowLineMarkManager.d.ts +0 -52
- package/dist/components/CandleView/MarkManager/Line/AxisLineMarkManager.d.ts +0 -56
- package/dist/components/CandleView/MarkManager/Line/LineSegmentMarkManager.d.ts +0 -52
- package/dist/components/CandleView/MarkManager/Line/ThickArrowLineMarkManager.d.ts +0 -52
- package/dist/components/CandleView/MarkManager/Map/HeatMapMarkManager.d.ts +0 -64
- package/dist/components/CandleView/MarkManager/Mock/MockKLineMarkManager.d.ts +0 -52
- package/dist/components/CandleView/MarkManager/Pattern/ABCDMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Pattern/HeadAndShouldersMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Pattern/TriangleABCDMarkManager.d.ts +0 -54
- package/dist/components/CandleView/MarkManager/Pattern/XABCDMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Pen/BrushMarkManager.d.ts +0 -55
- package/dist/components/CandleView/MarkManager/Pen/EraserMarkManager.d.ts +0 -51
- package/dist/components/CandleView/MarkManager/Pen/MarkerPenMarkManager.d.ts +0 -55
- package/dist/components/CandleView/MarkManager/Pen/PenMarkManager.d.ts +0 -55
- package/dist/components/CandleView/MarkManager/Pen/PencilMarkManager.d.ts +0 -54
- package/dist/components/CandleView/MarkManager/Range/LongPositionMarkManager.d.ts +0 -63
- package/dist/components/CandleView/MarkManager/Range/PriceRangeMarkManager.d.ts +0 -63
- package/dist/components/CandleView/MarkManager/Range/ShortPositionMarkManager.d.ts +0 -63
- package/dist/components/CandleView/MarkManager/Range/TimePriceRangeMarkManager.d.ts +0 -63
- package/dist/components/CandleView/MarkManager/Range/TimeRangeMarkManager.d.ts +0 -63
- package/dist/components/CandleView/MarkManager/Shape/CircleMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Shape/CurveMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Shape/DoubleCurveMarkManager.d.ts +0 -54
- package/dist/components/CandleView/MarkManager/Shape/EllipseMarkManager.d.ts +0 -55
- package/dist/components/CandleView/MarkManager/Shape/RectangleMarkManager.d.ts +0 -51
- package/dist/components/CandleView/MarkManager/Shape/SectorMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Shape/TriangleMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/StaticMarkManager.d.ts +0 -46
- package/dist/components/CandleView/MarkManager/Text/BubbleBoxMarkManager.d.ts +0 -61
- package/dist/components/CandleView/MarkManager/Text/EmojiMarkManager.d.ts +0 -52
- package/dist/components/CandleView/MarkManager/Text/FlagMarkManager.d.ts +0 -51
- package/dist/components/CandleView/MarkManager/Text/PinMarkManager.d.ts +0 -56
- package/dist/components/CandleView/MarkManager/Text/PriceLabelMarkManager.d.ts +0 -51
- package/dist/components/CandleView/MarkManager/Text/PriceNoteMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Text/SignPostMarkManager.d.ts +0 -55
- package/dist/components/CandleView/MarkManager/Text/TextEditMarkManager.d.ts +0 -61
- package/dist/components/CandleView/Theme.d.ts +0 -59
- package/dist/components/CandleView/TopPanel/Config.d.ts +0 -23
- package/dist/components/CandleView/TopPanel/IndicatorProcessing.d.ts +0 -4
- package/dist/components/CandleView/TopPanel/index.d.ts +0 -104
- package/dist/components/CandleView/ViewportManager.d.ts +0 -53
- package/dist/components/CandleView/index.d.ts +0 -2
- package/dist/components/CandleView/tools.d.ts +0 -7
- package/dist/components/CandleView/types.d.ts +0 -200
- package/dist/index.test.d.ts +0 -1
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
-
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
3
|
-
import { PriceRangeMark } from '../../Mark/Range/PriceRangeMark';
|
|
4
|
-
import { Point } from '../../types';
|
|
5
|
-
export interface PriceRangeMarkManagerProps {
|
|
6
|
-
chartSeries: ChartSeries | null;
|
|
7
|
-
chart: any;
|
|
8
|
-
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
-
onCloseDrawing?: () => void;
|
|
10
|
-
}
|
|
11
|
-
export interface PriceRangeMarkState {
|
|
12
|
-
isPriceRangeMarkMode: boolean;
|
|
13
|
-
priceRangeMarkStartPoint: Point | null;
|
|
14
|
-
currentPriceRangeMark: PriceRangeMark | null;
|
|
15
|
-
isDragging: boolean;
|
|
16
|
-
dragTarget: PriceRangeMark | null;
|
|
17
|
-
dragPoint: 'start' | 'end' | 'line' | null;
|
|
18
|
-
drawingPhase: 'firstPoint' | 'secondPoint' | 'none';
|
|
19
|
-
adjustingMode: 'start' | 'end' | null;
|
|
20
|
-
adjustStartData: {
|
|
21
|
-
time: number;
|
|
22
|
-
price: number;
|
|
23
|
-
} | null;
|
|
24
|
-
}
|
|
25
|
-
export declare class PriceRangeMarkManager implements IMarkManager<PriceRangeMark> {
|
|
26
|
-
private props;
|
|
27
|
-
private state;
|
|
28
|
-
private previewPriceRangeMark;
|
|
29
|
-
private priceRangeMarks;
|
|
30
|
-
private dragStartData;
|
|
31
|
-
private isOperating;
|
|
32
|
-
private firstPointPrice;
|
|
33
|
-
private firstPointTime;
|
|
34
|
-
private secondPointPrice;
|
|
35
|
-
private secondPointTime;
|
|
36
|
-
constructor(props: PriceRangeMarkManagerProps);
|
|
37
|
-
clearState(): void;
|
|
38
|
-
getMarkAtPoint(point: Point): PriceRangeMark | null;
|
|
39
|
-
getCurrentDragTarget(): PriceRangeMark | null;
|
|
40
|
-
getCurrentDragPoint(): string | null;
|
|
41
|
-
getCurrentOperatingMark(): PriceRangeMark | null;
|
|
42
|
-
getAllMarks(): PriceRangeMark[];
|
|
43
|
-
cancelOperationMode(): PriceRangeMarkState;
|
|
44
|
-
setPriceRangeMarkMode: () => PriceRangeMarkState;
|
|
45
|
-
cancelPriceRangeMarkMode: () => PriceRangeMarkState;
|
|
46
|
-
handleMouseDown: (point: Point) => PriceRangeMarkState;
|
|
47
|
-
private handleExistingMarkInteraction;
|
|
48
|
-
private completePriceRangeMark;
|
|
49
|
-
handleMouseMove: (point: Point) => void;
|
|
50
|
-
handleMouseUp: (point: Point) => PriceRangeMarkState;
|
|
51
|
-
handleKeyDown: (event: KeyboardEvent) => PriceRangeMarkState;
|
|
52
|
-
getState(): PriceRangeMarkState;
|
|
53
|
-
updateProps(newProps: Partial<PriceRangeMarkManagerProps>): void;
|
|
54
|
-
destroy(): void;
|
|
55
|
-
getPriceRangeMarks(): PriceRangeMark[];
|
|
56
|
-
removePriceRangeMark(mark: PriceRangeMark): void;
|
|
57
|
-
isOperatingOnChart(): boolean;
|
|
58
|
-
private hiddenPriceRangeMarks;
|
|
59
|
-
hideAllMarks(): void;
|
|
60
|
-
showAllMarks(): void;
|
|
61
|
-
hideMark(mark: PriceRangeMark): void;
|
|
62
|
-
showMark(mark: PriceRangeMark): void;
|
|
63
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
-
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
3
|
-
import { ShortPositionMark } from '../../Mark/Range/ShortPositionMark';
|
|
4
|
-
import { Point } from '../../types';
|
|
5
|
-
export interface ShortPositionMarkManagerProps {
|
|
6
|
-
chartSeries: ChartSeries | null;
|
|
7
|
-
chart: any;
|
|
8
|
-
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
-
onCloseDrawing?: () => void;
|
|
10
|
-
}
|
|
11
|
-
export interface ShortPositionMarkState {
|
|
12
|
-
isShortPositionMarkMode: boolean;
|
|
13
|
-
shortPositionMarkStartPoint: Point | null;
|
|
14
|
-
currentShortPositionMark: ShortPositionMark | null;
|
|
15
|
-
isDragging: boolean;
|
|
16
|
-
dragTarget: ShortPositionMark | null;
|
|
17
|
-
dragPoint: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'middle' | null;
|
|
18
|
-
drawingPhase: 'firstPoint' | 'secondPoint' | 'none';
|
|
19
|
-
adjustingMode: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'middle' | null;
|
|
20
|
-
adjustStartData: {
|
|
21
|
-
time: number;
|
|
22
|
-
price: number;
|
|
23
|
-
} | null;
|
|
24
|
-
}
|
|
25
|
-
export declare class ShortPositionMarkManager implements IMarkManager<ShortPositionMark> {
|
|
26
|
-
private props;
|
|
27
|
-
private state;
|
|
28
|
-
private previewShortPositionMark;
|
|
29
|
-
private shortPositionMarks;
|
|
30
|
-
private dragStartData;
|
|
31
|
-
private isOperating;
|
|
32
|
-
private firstPointTime;
|
|
33
|
-
private firstPointPrice;
|
|
34
|
-
private secondPointTime;
|
|
35
|
-
private secondPointPrice;
|
|
36
|
-
constructor(props: ShortPositionMarkManagerProps);
|
|
37
|
-
clearState(): void;
|
|
38
|
-
getMarkAtPoint(point: Point): ShortPositionMark | null;
|
|
39
|
-
getCurrentDragTarget(): ShortPositionMark | null;
|
|
40
|
-
getCurrentDragPoint(): string | null;
|
|
41
|
-
getCurrentOperatingMark(): ShortPositionMark | null;
|
|
42
|
-
getAllMarks(): ShortPositionMark[];
|
|
43
|
-
cancelOperationMode(): ShortPositionMarkState;
|
|
44
|
-
setShortPositionMarkMode: () => ShortPositionMarkState;
|
|
45
|
-
cancelShortPositionMarkMode: () => ShortPositionMarkState;
|
|
46
|
-
handleMouseDown: (point: Point) => ShortPositionMarkState;
|
|
47
|
-
private handleExistingMarkInteraction;
|
|
48
|
-
private completeShortPositionMark;
|
|
49
|
-
handleMouseMove: (point: Point) => void;
|
|
50
|
-
handleMouseUp: (point: Point) => ShortPositionMarkState;
|
|
51
|
-
handleKeyDown: (event: KeyboardEvent) => ShortPositionMarkState;
|
|
52
|
-
getState(): ShortPositionMarkState;
|
|
53
|
-
updateProps(newProps: Partial<ShortPositionMarkManagerProps>): void;
|
|
54
|
-
destroy(): void;
|
|
55
|
-
getShortPositionMarks(): ShortPositionMark[];
|
|
56
|
-
removeShortPositionMark(mark: ShortPositionMark): void;
|
|
57
|
-
isOperatingOnChart(): boolean;
|
|
58
|
-
private hiddenShortPositionMarks;
|
|
59
|
-
hideAllMarks(): void;
|
|
60
|
-
showAllMarks(): void;
|
|
61
|
-
hideMark(mark: ShortPositionMark): void;
|
|
62
|
-
showMark(mark: ShortPositionMark): void;
|
|
63
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
-
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
3
|
-
import { TimePriceRangeMark } from '../../Mark/Range/TimePriceRangeMark';
|
|
4
|
-
import { Point } from '../../types';
|
|
5
|
-
export interface TimePriceRangeMarkManagerProps {
|
|
6
|
-
chartSeries: ChartSeries | null;
|
|
7
|
-
chart: any;
|
|
8
|
-
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
-
onCloseDrawing?: () => void;
|
|
10
|
-
}
|
|
11
|
-
export interface TimePriceRangeMarkState {
|
|
12
|
-
isTimePriceRangeMarkMode: boolean;
|
|
13
|
-
timePriceRangeMarkStartPoint: Point | null;
|
|
14
|
-
currentTimePriceRangeMark: TimePriceRangeMark | null;
|
|
15
|
-
isDragging: boolean;
|
|
16
|
-
dragTarget: TimePriceRangeMark | null;
|
|
17
|
-
dragPoint: 'start' | 'end' | 'line' | null;
|
|
18
|
-
drawingPhase: 'firstPoint' | 'secondPoint' | 'none';
|
|
19
|
-
adjustingMode: 'start' | 'end' | null;
|
|
20
|
-
adjustStartData: {
|
|
21
|
-
time: number;
|
|
22
|
-
price: number;
|
|
23
|
-
} | null;
|
|
24
|
-
}
|
|
25
|
-
export declare class TimePriceRangeMarkManager implements IMarkManager<TimePriceRangeMark> {
|
|
26
|
-
private props;
|
|
27
|
-
private state;
|
|
28
|
-
private previewTimePriceRangeMark;
|
|
29
|
-
private timePriceRangeMarks;
|
|
30
|
-
private dragStartData;
|
|
31
|
-
private isOperating;
|
|
32
|
-
private firstPointTime;
|
|
33
|
-
private firstPointPrice;
|
|
34
|
-
private secondPointTime;
|
|
35
|
-
private secondPointPrice;
|
|
36
|
-
constructor(props: TimePriceRangeMarkManagerProps);
|
|
37
|
-
clearState(): void;
|
|
38
|
-
getMarkAtPoint(point: Point): TimePriceRangeMark | null;
|
|
39
|
-
getCurrentDragTarget(): TimePriceRangeMark | null;
|
|
40
|
-
getCurrentDragPoint(): string | null;
|
|
41
|
-
getCurrentOperatingMark(): TimePriceRangeMark | null;
|
|
42
|
-
getAllMarks(): TimePriceRangeMark[];
|
|
43
|
-
cancelOperationMode(): TimePriceRangeMarkState;
|
|
44
|
-
setTimePriceRangeMarkMode: () => TimePriceRangeMarkState;
|
|
45
|
-
cancelTimePriceRangeMarkMode: () => TimePriceRangeMarkState;
|
|
46
|
-
handleMouseDown: (point: Point) => TimePriceRangeMarkState;
|
|
47
|
-
private handleExistingMarkInteraction;
|
|
48
|
-
private completeTimePriceRangeMark;
|
|
49
|
-
handleMouseMove: (point: Point) => void;
|
|
50
|
-
handleMouseUp: (point: Point) => TimePriceRangeMarkState;
|
|
51
|
-
handleKeyDown: (event: KeyboardEvent) => TimePriceRangeMarkState;
|
|
52
|
-
getState(): TimePriceRangeMarkState;
|
|
53
|
-
updateProps(newProps: Partial<TimePriceRangeMarkManagerProps>): void;
|
|
54
|
-
destroy(): void;
|
|
55
|
-
getTimePriceRangeMarks(): TimePriceRangeMark[];
|
|
56
|
-
removeTimePriceRangeMark(mark: TimePriceRangeMark): void;
|
|
57
|
-
isOperatingOnChart(): boolean;
|
|
58
|
-
private hiddenTimePriceRangeMarks;
|
|
59
|
-
hideAllMarks(): void;
|
|
60
|
-
showAllMarks(): void;
|
|
61
|
-
hideMark(mark: TimePriceRangeMark): void;
|
|
62
|
-
showMark(mark: TimePriceRangeMark): void;
|
|
63
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
-
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
3
|
-
import { TimeRangeMark } from '../../Mark/Range/TimeRangeMark';
|
|
4
|
-
import { Point } from '../../types';
|
|
5
|
-
export interface TimeRangeMarkManagerProps {
|
|
6
|
-
chartSeries: ChartSeries | null;
|
|
7
|
-
chart: any;
|
|
8
|
-
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
-
onCloseDrawing?: () => void;
|
|
10
|
-
}
|
|
11
|
-
export interface TimeRangeMarkState {
|
|
12
|
-
isTimeRangeMarkMode: boolean;
|
|
13
|
-
timeRangeMarkStartPoint: Point | null;
|
|
14
|
-
currentTimeRangeMark: TimeRangeMark | null;
|
|
15
|
-
isDragging: boolean;
|
|
16
|
-
dragTarget: TimeRangeMark | null;
|
|
17
|
-
dragPoint: 'start' | 'end' | 'line' | null;
|
|
18
|
-
drawingPhase: 'firstPoint' | 'secondPoint' | 'none';
|
|
19
|
-
adjustingMode: 'start' | 'end' | null;
|
|
20
|
-
adjustStartData: {
|
|
21
|
-
time: number;
|
|
22
|
-
price: number;
|
|
23
|
-
} | null;
|
|
24
|
-
}
|
|
25
|
-
export declare class TimeRangeMarkManager implements IMarkManager<TimeRangeMark> {
|
|
26
|
-
private props;
|
|
27
|
-
private state;
|
|
28
|
-
private previewTimeRangeMark;
|
|
29
|
-
private timeRangeMarks;
|
|
30
|
-
private dragStartData;
|
|
31
|
-
private isOperating;
|
|
32
|
-
private firstPointPrice;
|
|
33
|
-
private firstPointTime;
|
|
34
|
-
private secondPointPrice;
|
|
35
|
-
private secondPointTime;
|
|
36
|
-
constructor(props: TimeRangeMarkManagerProps);
|
|
37
|
-
clearState(): void;
|
|
38
|
-
getMarkAtPoint(point: Point): TimeRangeMark | null;
|
|
39
|
-
getCurrentDragTarget(): TimeRangeMark | null;
|
|
40
|
-
getCurrentDragPoint(): string | null;
|
|
41
|
-
getCurrentOperatingMark(): TimeRangeMark | null;
|
|
42
|
-
getAllMarks(): TimeRangeMark[];
|
|
43
|
-
cancelOperationMode(): TimeRangeMarkState;
|
|
44
|
-
setTimeRangeMarkMode: () => TimeRangeMarkState;
|
|
45
|
-
cancelTimeRangeMarkMode: () => TimeRangeMarkState;
|
|
46
|
-
handleMouseDown: (point: Point) => TimeRangeMarkState;
|
|
47
|
-
private handleExistingMarkInteraction;
|
|
48
|
-
private completeTimeRangeMark;
|
|
49
|
-
handleMouseMove: (point: Point) => void;
|
|
50
|
-
handleMouseUp: (point: Point) => TimeRangeMarkState;
|
|
51
|
-
handleKeyDown: (event: KeyboardEvent) => TimeRangeMarkState;
|
|
52
|
-
getState(): TimeRangeMarkState;
|
|
53
|
-
updateProps(newProps: Partial<TimeRangeMarkManagerProps>): void;
|
|
54
|
-
destroy(): void;
|
|
55
|
-
getTimeRangeMarks(): TimeRangeMark[];
|
|
56
|
-
removeTimeRangeMark(mark: TimeRangeMark): void;
|
|
57
|
-
isOperatingOnChart(): boolean;
|
|
58
|
-
private hiddenTimeRangeMarks;
|
|
59
|
-
hideAllMarks(): void;
|
|
60
|
-
showAllMarks(): void;
|
|
61
|
-
hideMark(mark: TimeRangeMark): void;
|
|
62
|
-
showMark(mark: TimeRangeMark): void;
|
|
63
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
-
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
3
|
-
import { CircleMark } from '../../Mark/Shape/CircleMark';
|
|
4
|
-
import { Point } from '../../types';
|
|
5
|
-
export interface CircleMarkManagerProps {
|
|
6
|
-
chartSeries: ChartSeries | null;
|
|
7
|
-
chart: any;
|
|
8
|
-
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
-
onCloseDrawing?: () => void;
|
|
10
|
-
}
|
|
11
|
-
export interface CircleMarkState {
|
|
12
|
-
isCircleMarkMode: boolean;
|
|
13
|
-
circleMarkStartPoint: Point | null;
|
|
14
|
-
currentCircleMark: CircleMark | null;
|
|
15
|
-
isDragging: boolean;
|
|
16
|
-
dragTarget: CircleMark | null;
|
|
17
|
-
dragPoint: 'center' | 'radius' | 'circle' | null;
|
|
18
|
-
isDrawing: boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare class CircleMarkManager implements IMarkManager<CircleMark> {
|
|
21
|
-
private props;
|
|
22
|
-
private state;
|
|
23
|
-
private previewCircleMark;
|
|
24
|
-
private circleMarks;
|
|
25
|
-
private isOperating;
|
|
26
|
-
private dragStartData;
|
|
27
|
-
constructor(props: CircleMarkManagerProps);
|
|
28
|
-
clearState(): void;
|
|
29
|
-
getMarkAtPoint(point: Point): CircleMark | null;
|
|
30
|
-
getCurrentDragTarget(): CircleMark | null;
|
|
31
|
-
getCurrentDragPoint(): string | null;
|
|
32
|
-
getCurrentOperatingMark(): CircleMark | null;
|
|
33
|
-
getAllMarks(): CircleMark[];
|
|
34
|
-
cancelOperationMode(): CircleMarkState;
|
|
35
|
-
setCircleMarkMode: () => CircleMarkState;
|
|
36
|
-
cancelCircleMarkMode: () => CircleMarkState;
|
|
37
|
-
private getValidTimeFromCoordinate;
|
|
38
|
-
handleMouseDown: (point: Point) => CircleMarkState;
|
|
39
|
-
handleMouseMove: (point: Point) => void;
|
|
40
|
-
handleMouseUp: (point: Point) => CircleMarkState;
|
|
41
|
-
handleKeyDown: (event: KeyboardEvent) => CircleMarkState;
|
|
42
|
-
getState(): CircleMarkState;
|
|
43
|
-
updateProps(newProps: Partial<CircleMarkManagerProps>): void;
|
|
44
|
-
destroy(): void;
|
|
45
|
-
getCircleMarks(): CircleMark[];
|
|
46
|
-
removeCircleMark(mark: CircleMark): void;
|
|
47
|
-
isOperatingOnChart(): boolean;
|
|
48
|
-
private hiddenCircleMarks;
|
|
49
|
-
hideAllMarks(): void;
|
|
50
|
-
showAllMarks(): void;
|
|
51
|
-
hideMark(mark: CircleMark): void;
|
|
52
|
-
showMark(mark: CircleMark): void;
|
|
53
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
-
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
3
|
-
import { CurveMark } from '../../Mark/Shape/CurveMark';
|
|
4
|
-
import { Point } from '../../types';
|
|
5
|
-
export interface CurveMarkManagerProps {
|
|
6
|
-
chartSeries: ChartSeries | null;
|
|
7
|
-
chart: any;
|
|
8
|
-
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
-
onCloseDrawing?: () => void;
|
|
10
|
-
}
|
|
11
|
-
export interface CurveMarkState {
|
|
12
|
-
isCurveMarkMode: boolean;
|
|
13
|
-
curveMarkStartPoint: Point | null;
|
|
14
|
-
currentCurveMark: CurveMark | null;
|
|
15
|
-
isDragging: boolean;
|
|
16
|
-
dragTarget: CurveMark | null;
|
|
17
|
-
dragPoint: 'start' | 'end' | 'line' | 'mid' | null;
|
|
18
|
-
}
|
|
19
|
-
export declare class CurveMarkManager implements IMarkManager<CurveMark> {
|
|
20
|
-
private props;
|
|
21
|
-
private state;
|
|
22
|
-
private previewCurveMark;
|
|
23
|
-
private curveMarks;
|
|
24
|
-
private dragStartData;
|
|
25
|
-
private isOperating;
|
|
26
|
-
constructor(props: CurveMarkManagerProps);
|
|
27
|
-
clearState(): void;
|
|
28
|
-
getMarkAtPoint(point: Point): CurveMark | null;
|
|
29
|
-
getCurrentDragTarget(): CurveMark | null;
|
|
30
|
-
getCurrentDragPoint(): string | null;
|
|
31
|
-
getCurrentOperatingMark(): CurveMark | null;
|
|
32
|
-
getAllMarks(): CurveMark[];
|
|
33
|
-
cancelOperationMode(): CurveMarkState;
|
|
34
|
-
setCurveMarkMode: () => CurveMarkState;
|
|
35
|
-
cancelCurveMarkMode: () => CurveMarkState;
|
|
36
|
-
handleMouseDown: (point: Point) => CurveMarkState;
|
|
37
|
-
private isPointNearLine;
|
|
38
|
-
handleMouseMove: (point: Point) => void;
|
|
39
|
-
private quadraticBezierPoint;
|
|
40
|
-
handleMouseUp: (point: Point) => CurveMarkState;
|
|
41
|
-
handleKeyDown: (event: KeyboardEvent) => CurveMarkState;
|
|
42
|
-
getState(): CurveMarkState;
|
|
43
|
-
updateProps(newProps: Partial<CurveMarkManagerProps>): void;
|
|
44
|
-
destroy(): void;
|
|
45
|
-
getCurveMarks(): CurveMark[];
|
|
46
|
-
removeCurveMark(mark: CurveMark): void;
|
|
47
|
-
isOperatingOnChart(): boolean;
|
|
48
|
-
private hiddenCurveMarks;
|
|
49
|
-
hideAllMarks(): void;
|
|
50
|
-
showAllMarks(): void;
|
|
51
|
-
hideMark(mark: CurveMark): void;
|
|
52
|
-
showMark(mark: CurveMark): void;
|
|
53
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
-
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
3
|
-
import { DoubleCurveMark } from '../../Mark/Shape/DoubleCurveMark';
|
|
4
|
-
import { Point } from '../../types';
|
|
5
|
-
export interface DoubleCurveMarkManagerProps {
|
|
6
|
-
chartSeries: ChartSeries | null;
|
|
7
|
-
chart: any;
|
|
8
|
-
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
-
onCloseDrawing?: () => void;
|
|
10
|
-
}
|
|
11
|
-
export interface DoubleCurveMarkState {
|
|
12
|
-
isDoubleCurveMarkMode: boolean;
|
|
13
|
-
doubleCurveMarkStartPoint: Point | null;
|
|
14
|
-
currentDoubleCurveMark: DoubleCurveMark | null;
|
|
15
|
-
isDragging: boolean;
|
|
16
|
-
dragTarget: DoubleCurveMark | null;
|
|
17
|
-
dragPoint: 'start' | 'end' | 'line' | 'mid1' | 'mid2' | null;
|
|
18
|
-
}
|
|
19
|
-
export declare class DoubleCurveMarkManager implements IMarkManager<DoubleCurveMark> {
|
|
20
|
-
private props;
|
|
21
|
-
private state;
|
|
22
|
-
private previewDoubleCurveMark;
|
|
23
|
-
private curveMarks;
|
|
24
|
-
private mouseDownPoint;
|
|
25
|
-
private dragStartData;
|
|
26
|
-
private isOperating;
|
|
27
|
-
constructor(props: DoubleCurveMarkManagerProps);
|
|
28
|
-
clearState(): void;
|
|
29
|
-
getMarkAtPoint(point: Point): DoubleCurveMark | null;
|
|
30
|
-
getCurrentDragTarget(): DoubleCurveMark | null;
|
|
31
|
-
getCurrentDragPoint(): string | null;
|
|
32
|
-
getCurrentOperatingMark(): DoubleCurveMark | null;
|
|
33
|
-
getAllMarks(): DoubleCurveMark[];
|
|
34
|
-
cancelOperationMode(): DoubleCurveMarkState;
|
|
35
|
-
setDoubleCurveMarkMode: () => DoubleCurveMarkState;
|
|
36
|
-
cancelDoubleCurveMarkMode: () => DoubleCurveMarkState;
|
|
37
|
-
handleMouseDown: (point: Point) => DoubleCurveMarkState;
|
|
38
|
-
private isPointNearLine;
|
|
39
|
-
private cubicBezierPoint;
|
|
40
|
-
handleMouseMove: (point: Point) => void;
|
|
41
|
-
handleMouseUp: (point: Point) => DoubleCurveMarkState;
|
|
42
|
-
handleKeyDown: (event: KeyboardEvent) => DoubleCurveMarkState;
|
|
43
|
-
getState(): DoubleCurveMarkState;
|
|
44
|
-
updateProps(newProps: Partial<DoubleCurveMarkManagerProps>): void;
|
|
45
|
-
destroy(): void;
|
|
46
|
-
getDoubleCurveMarks(): DoubleCurveMark[];
|
|
47
|
-
removeDoubleCurveMark(mark: DoubleCurveMark): void;
|
|
48
|
-
isOperatingOnChart(): boolean;
|
|
49
|
-
private hiddenCurveMarks;
|
|
50
|
-
hideAllMarks(): void;
|
|
51
|
-
showAllMarks(): void;
|
|
52
|
-
hideMark(mark: DoubleCurveMark): void;
|
|
53
|
-
showMark(mark: DoubleCurveMark): void;
|
|
54
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
-
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
3
|
-
import { EllipseMark } from '../../Mark/Shape/EllipseMark';
|
|
4
|
-
import { Point } from '../../types';
|
|
5
|
-
export interface EllipseMarkManagerProps {
|
|
6
|
-
chartSeries: ChartSeries | null;
|
|
7
|
-
chart: any;
|
|
8
|
-
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
-
onCloseDrawing?: () => void;
|
|
10
|
-
}
|
|
11
|
-
export interface EllipseMarkState {
|
|
12
|
-
isEllipseMarkMode: boolean;
|
|
13
|
-
ellipseMarkStartPoint: Point | null;
|
|
14
|
-
currentEllipseMark: EllipseMark | null;
|
|
15
|
-
isDragging: boolean;
|
|
16
|
-
dragTarget: EllipseMark | null;
|
|
17
|
-
dragPoint: 'center' | 'top' | 'bottom' | 'left' | 'right' | 'rotate' | 'ellipse' | null;
|
|
18
|
-
isDrawing: boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare class EllipseMarkManager implements IMarkManager<EllipseMark> {
|
|
21
|
-
private props;
|
|
22
|
-
private state;
|
|
23
|
-
private previewEllipseMark;
|
|
24
|
-
private ellipseMarks;
|
|
25
|
-
private isOperating;
|
|
26
|
-
private dragStartData;
|
|
27
|
-
constructor(props: EllipseMarkManagerProps);
|
|
28
|
-
clearState(): void;
|
|
29
|
-
getMarkAtPoint(point: Point): EllipseMark | null;
|
|
30
|
-
getCurrentDragTarget(): EllipseMark | null;
|
|
31
|
-
getCurrentDragPoint(): string | null;
|
|
32
|
-
getCurrentOperatingMark(): EllipseMark | null;
|
|
33
|
-
getAllMarks(): EllipseMark[];
|
|
34
|
-
cancelOperationMode(): EllipseMarkState;
|
|
35
|
-
setEllipseMarkMode: () => EllipseMarkState;
|
|
36
|
-
cancelEllipseMarkMode: () => EllipseMarkState;
|
|
37
|
-
private getValidTimeFromCoordinate;
|
|
38
|
-
handleMouseDown: (point: Point) => EllipseMarkState;
|
|
39
|
-
handleMouseMove: (point: Point) => void;
|
|
40
|
-
private handleControlPointDrag;
|
|
41
|
-
handleMouseUp: (point: Point) => EllipseMarkState;
|
|
42
|
-
handleKeyDown: (event: KeyboardEvent) => EllipseMarkState;
|
|
43
|
-
getState(): EllipseMarkState;
|
|
44
|
-
updateProps(newProps: Partial<EllipseMarkManagerProps>): void;
|
|
45
|
-
destroy(): void;
|
|
46
|
-
getEllipseMarks(): EllipseMark[];
|
|
47
|
-
removeEllipseMark(mark: EllipseMark): void;
|
|
48
|
-
isOperatingOnChart(): boolean;
|
|
49
|
-
onChartUpdate(): void;
|
|
50
|
-
private hiddenEllipseMarks;
|
|
51
|
-
hideAllMarks(): void;
|
|
52
|
-
showAllMarks(): void;
|
|
53
|
-
hideMark(mark: EllipseMark): void;
|
|
54
|
-
showMark(mark: EllipseMark): void;
|
|
55
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
-
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
3
|
-
import { RectangleMark } from '../../Mark/Shape/RectangleMark.ts';
|
|
4
|
-
import { Point } from '../../types';
|
|
5
|
-
export interface RectangleMarkManagerProps {
|
|
6
|
-
chartSeries: ChartSeries | null;
|
|
7
|
-
chart: any;
|
|
8
|
-
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
-
onCloseDrawing?: () => void;
|
|
10
|
-
}
|
|
11
|
-
export interface RectangleMarkState {
|
|
12
|
-
isRectangleMarkMode: boolean;
|
|
13
|
-
rectangleMarkStartPoint: Point | null;
|
|
14
|
-
currentRectangleMark: RectangleMark | null;
|
|
15
|
-
isDragging: boolean;
|
|
16
|
-
dragTarget: RectangleMark | null;
|
|
17
|
-
dragPoint: 'start' | 'end' | 'line' | null;
|
|
18
|
-
}
|
|
19
|
-
export declare class RectangleMarkManager implements IMarkManager<RectangleMark> {
|
|
20
|
-
private props;
|
|
21
|
-
private state;
|
|
22
|
-
private previewRectangleMark;
|
|
23
|
-
private rectangleMarks;
|
|
24
|
-
private dragStartData;
|
|
25
|
-
private isOperating;
|
|
26
|
-
constructor(props: RectangleMarkManagerProps);
|
|
27
|
-
clearState(): void;
|
|
28
|
-
getMarkAtPoint(point: Point): RectangleMark | null;
|
|
29
|
-
getCurrentDragTarget(): RectangleMark | null;
|
|
30
|
-
getCurrentDragPoint(): string | null;
|
|
31
|
-
getCurrentOperatingMark(): RectangleMark | null;
|
|
32
|
-
getAllMarks(): RectangleMark[];
|
|
33
|
-
cancelOperationMode(): RectangleMarkState;
|
|
34
|
-
setRectangleMarkMode: () => RectangleMarkState;
|
|
35
|
-
cancelRectangleMarkMode: () => RectangleMarkState;
|
|
36
|
-
handleMouseDown: (point: Point) => RectangleMarkState;
|
|
37
|
-
handleMouseMove: (point: Point) => void;
|
|
38
|
-
handleMouseUp: (point: Point) => RectangleMarkState;
|
|
39
|
-
handleKeyDown: (event: KeyboardEvent) => RectangleMarkState;
|
|
40
|
-
getState(): RectangleMarkState;
|
|
41
|
-
updateProps(newProps: Partial<RectangleMarkManagerProps>): void;
|
|
42
|
-
destroy(): void;
|
|
43
|
-
getRectangleMarks(): RectangleMark[];
|
|
44
|
-
removeRectangleMark(mark: RectangleMark): void;
|
|
45
|
-
isOperatingOnChart(): boolean;
|
|
46
|
-
private hiddenRectangleMarks;
|
|
47
|
-
hideAllMarks(): void;
|
|
48
|
-
showAllMarks(): void;
|
|
49
|
-
hideMark(mark: RectangleMark): void;
|
|
50
|
-
showMark(mark: RectangleMark): void;
|
|
51
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
-
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
3
|
-
import { SectorMark } from '../../Mark/Shape/SectorMark';
|
|
4
|
-
import { Point } from '../../types';
|
|
5
|
-
export interface SectorMarkManagerProps {
|
|
6
|
-
chartSeries: ChartSeries | null;
|
|
7
|
-
chart: any;
|
|
8
|
-
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
-
onCloseDrawing?: () => void;
|
|
10
|
-
}
|
|
11
|
-
export interface SectorMarkState {
|
|
12
|
-
isSectorMode: boolean;
|
|
13
|
-
sectorPoints: Point[];
|
|
14
|
-
currentSector: SectorMark | null;
|
|
15
|
-
isDragging: boolean;
|
|
16
|
-
dragTarget: SectorMark | null;
|
|
17
|
-
dragPoint: 'center' | 'radius' | 'angle' | 'sector' | null;
|
|
18
|
-
}
|
|
19
|
-
export declare class SectorMarkManager implements IMarkManager<SectorMark> {
|
|
20
|
-
private props;
|
|
21
|
-
private state;
|
|
22
|
-
private previewSectorMark;
|
|
23
|
-
private sectorMarks;
|
|
24
|
-
private dragStartData;
|
|
25
|
-
private isOperating;
|
|
26
|
-
constructor(props: SectorMarkManagerProps);
|
|
27
|
-
clearState(): void;
|
|
28
|
-
getMarkAtPoint(point: Point): SectorMark | null;
|
|
29
|
-
getCurrentDragTarget(): SectorMark | null;
|
|
30
|
-
getCurrentDragPoint(): string | null;
|
|
31
|
-
getCurrentOperatingMark(): SectorMark | null;
|
|
32
|
-
getAllMarks(): SectorMark[];
|
|
33
|
-
cancelOperationMode(): SectorMarkState;
|
|
34
|
-
setSectorMode: () => SectorMarkState;
|
|
35
|
-
cancelSectorMode: () => SectorMarkState;
|
|
36
|
-
handleMouseDown: (point: Point) => SectorMarkState;
|
|
37
|
-
private coordinateToPriceFallback;
|
|
38
|
-
private priceToCoordinateFallback;
|
|
39
|
-
handleMouseMove: (point: Point) => void;
|
|
40
|
-
handleMouseUp: (point: Point) => SectorMarkState;
|
|
41
|
-
handleKeyDown: (event: KeyboardEvent) => SectorMarkState;
|
|
42
|
-
getState(): SectorMarkState;
|
|
43
|
-
updateProps(newProps: Partial<SectorMarkManagerProps>): void;
|
|
44
|
-
destroy(): void;
|
|
45
|
-
getSectorMarks(): SectorMark[];
|
|
46
|
-
removeSectorMark(mark: SectorMark): void;
|
|
47
|
-
isOperatingOnChart(): boolean;
|
|
48
|
-
private hiddenSectorMarks;
|
|
49
|
-
hideAllMarks(): void;
|
|
50
|
-
showAllMarks(): void;
|
|
51
|
-
hideMark(mark: SectorMark): void;
|
|
52
|
-
showMark(mark: SectorMark): void;
|
|
53
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
-
import { Point } from '../../types';
|
|
3
|
-
import { TriangleMark } from '../../Mark/Shape/TriangleMark';
|
|
4
|
-
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
5
|
-
export interface TriangleMarkManagerProps {
|
|
6
|
-
chartSeries: ChartSeries | null;
|
|
7
|
-
chart: any;
|
|
8
|
-
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
-
onCloseDrawing?: () => void;
|
|
10
|
-
}
|
|
11
|
-
export interface TriangleMarkState {
|
|
12
|
-
isTriangleMarkMode: boolean;
|
|
13
|
-
triangleMarkStartPoint: Point | null;
|
|
14
|
-
currentTriangleMark: TriangleMark | null;
|
|
15
|
-
isDragging: boolean;
|
|
16
|
-
dragTarget: TriangleMark | null;
|
|
17
|
-
dragPoint: 'center' | 'vertex1' | 'vertex2' | 'vertex3' | 'triangle' | 'rotation' | null;
|
|
18
|
-
isDrawing: boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare class TriangleMarkManager implements IMarkManager<TriangleMark> {
|
|
21
|
-
private props;
|
|
22
|
-
private state;
|
|
23
|
-
private previewTriangleMark;
|
|
24
|
-
private triangleMarks;
|
|
25
|
-
private isOperating;
|
|
26
|
-
private dragStartData;
|
|
27
|
-
constructor(props: TriangleMarkManagerProps);
|
|
28
|
-
clearState(): void;
|
|
29
|
-
getMarkAtPoint(point: Point): TriangleMark | null;
|
|
30
|
-
getCurrentDragTarget(): TriangleMark | null;
|
|
31
|
-
getCurrentDragPoint(): string | null;
|
|
32
|
-
getCurrentOperatingMark(): TriangleMark | null;
|
|
33
|
-
getAllMarks(): TriangleMark[];
|
|
34
|
-
cancelOperationMode(): TriangleMarkState;
|
|
35
|
-
setTriangleMarkMode: () => TriangleMarkState;
|
|
36
|
-
cancelTriangleMarkMode: () => TriangleMarkState;
|
|
37
|
-
private getValidTimeFromCoordinate;
|
|
38
|
-
handleMouseDown: (point: Point) => TriangleMarkState;
|
|
39
|
-
handleMouseMove: (point: Point) => void;
|
|
40
|
-
handleMouseUp: (point: Point) => TriangleMarkState;
|
|
41
|
-
handleKeyDown: (event: KeyboardEvent) => TriangleMarkState;
|
|
42
|
-
getState(): TriangleMarkState;
|
|
43
|
-
updateProps(newProps: Partial<TriangleMarkManagerProps>): void;
|
|
44
|
-
destroy(): void;
|
|
45
|
-
getTriangleMarks(): TriangleMark[];
|
|
46
|
-
removeTriangleMark(mark: TriangleMark): void;
|
|
47
|
-
isOperatingOnChart(): boolean;
|
|
48
|
-
private hiddenTriangleMarks;
|
|
49
|
-
hideAllMarks(): void;
|
|
50
|
-
showAllMarks(): void;
|
|
51
|
-
hideMark(mark: TriangleMark): void;
|
|
52
|
-
showMark(mark: TriangleMark): void;
|
|
53
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
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
|
-
}
|