candleview 1.0.5 → 1.0.7
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 +14 -6
- 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
- /package/dist/{candleview.js → index.js} +0 -0
- /package/dist/{candleview.mjs → index.mjs} +0 -0
|
@@ -1,290 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { ThemeConfig } from '../Theme';
|
|
3
|
-
import { ChartSeries } from './ChartTypeManager';
|
|
4
|
-
import { CursorType, HistoryRecord, ICandleViewDataPoint, MainChartIndicatorType, MainChartType, MarkDrawing, Point, SubChartIndicatorType } from '../types';
|
|
5
|
-
import { IMarkStyle } from '../Mark/IMarkStyle';
|
|
6
|
-
import { ChartMarkManager } from './ChartMarkManager';
|
|
7
|
-
import { ChartMarkTextEditManager } from './ChartMarkTextEditManager';
|
|
8
|
-
import { MainChartTechnicalIndicatorManager } from '../Indicators/MainChart/MainChartIndicatorManager';
|
|
9
|
-
import { ChartMarkState } from './ChartLayerMarkState';
|
|
10
|
-
import { MainChartIndicatorInfo } from '../Indicators/MainChart/MainChartIndicatorInfo';
|
|
11
|
-
import { I18n } from '../I18n';
|
|
12
|
-
import { IStaticMarkData } from '../MarkManager/StaticMarkManager';
|
|
13
|
-
import { ChartPanesManager } from './Panes/ChartPanesManager';
|
|
14
|
-
import { IIndicatorInfo } from '../Indicators/SubChart/IIndicator';
|
|
15
|
-
import { MainChartManager } from './MainChart/MainChartManager';
|
|
16
|
-
import { ViewportManager } from '../ViewportManager';
|
|
17
|
-
export interface ChartLayerProps {
|
|
18
|
-
chart: any;
|
|
19
|
-
chartSeries: ChartSeries | null;
|
|
20
|
-
currentTheme: ThemeConfig;
|
|
21
|
-
activeTool: string | null;
|
|
22
|
-
onCloseDrawing?: () => void;
|
|
23
|
-
onToolSelect?: (tool: string) => void;
|
|
24
|
-
onTextClick?: (toolId: string) => void;
|
|
25
|
-
onEmojiClick?: (toolId: string) => void;
|
|
26
|
-
selectedEmoji?: string;
|
|
27
|
-
chartData: ICandleViewDataPoint[];
|
|
28
|
-
title?: string;
|
|
29
|
-
selectedMainChartIndicator: MainChartIndicatorInfo | null;
|
|
30
|
-
selectedSubChartIndicators: SubChartIndicatorType[];
|
|
31
|
-
handleRemoveSubChartIndicator?: (type: SubChartIndicatorType) => void;
|
|
32
|
-
showInfoLayer: boolean;
|
|
33
|
-
i18n: I18n;
|
|
34
|
-
markData?: IStaticMarkData[];
|
|
35
|
-
onMainChartIndicatorChange: (indicator: MainChartIndicatorInfo | null) => void;
|
|
36
|
-
currentMainChartType: MainChartType;
|
|
37
|
-
viewportManager: ViewportManager | null;
|
|
38
|
-
}
|
|
39
|
-
export interface ChartLayerState extends ChartMarkState {
|
|
40
|
-
isDrawing: boolean;
|
|
41
|
-
drawingPoints: Point[];
|
|
42
|
-
currentDrawing: any;
|
|
43
|
-
drawingStartPoint: Point | null;
|
|
44
|
-
drawings: MarkDrawing[];
|
|
45
|
-
isTextMarkToolbar: boolean;
|
|
46
|
-
dragStartPoint: Point | null;
|
|
47
|
-
history: HistoryRecord[];
|
|
48
|
-
historyIndex: number;
|
|
49
|
-
isDragging: boolean;
|
|
50
|
-
isResizing: boolean;
|
|
51
|
-
isRotating: boolean;
|
|
52
|
-
resizeHandle: string | null;
|
|
53
|
-
isTextInputActive: boolean;
|
|
54
|
-
textInputPosition: Point | null;
|
|
55
|
-
textInputValue: string;
|
|
56
|
-
textInputCursorVisible: boolean;
|
|
57
|
-
textInputCursorTimer: NodeJS.Timeout | null;
|
|
58
|
-
activePanel: null;
|
|
59
|
-
editingTextId: string | null;
|
|
60
|
-
isFirstTimeTextMode: boolean;
|
|
61
|
-
isEmojiInputActive: boolean;
|
|
62
|
-
emojiInputPosition: Point | null;
|
|
63
|
-
editingEmojiId: string | null;
|
|
64
|
-
mousePosition: Point | null;
|
|
65
|
-
currentOHLC: {
|
|
66
|
-
time: string;
|
|
67
|
-
open: number;
|
|
68
|
-
high: number;
|
|
69
|
-
low: number;
|
|
70
|
-
close: number;
|
|
71
|
-
volume?: number;
|
|
72
|
-
} | null;
|
|
73
|
-
showOHLC: boolean;
|
|
74
|
-
maIndicatorValues?: {
|
|
75
|
-
[key: string]: number;
|
|
76
|
-
};
|
|
77
|
-
emaIndicatorValues?: {
|
|
78
|
-
[key: string]: number;
|
|
79
|
-
};
|
|
80
|
-
bollingerBandsValues?: {
|
|
81
|
-
[key: string]: number;
|
|
82
|
-
};
|
|
83
|
-
ichimokuValues?: {
|
|
84
|
-
[key: string]: number;
|
|
85
|
-
};
|
|
86
|
-
donchianChannelValues?: {
|
|
87
|
-
[key: string]: number;
|
|
88
|
-
};
|
|
89
|
-
envelopeValues?: {
|
|
90
|
-
[key: string]: number;
|
|
91
|
-
};
|
|
92
|
-
vwapValue?: number | null;
|
|
93
|
-
isMainChartIndicatorsModalOpen: boolean;
|
|
94
|
-
selectedMainChartIndicators: MainChartIndicatorInfo[];
|
|
95
|
-
selectedMainChartIndicatorTypes: MainChartIndicatorType[];
|
|
96
|
-
modalEditingChartInfoIndicator: MainChartIndicatorInfo | null;
|
|
97
|
-
modalConfirmChartInfoIndicators: MainChartIndicatorInfo[];
|
|
98
|
-
isSubChartIndicatorsSettingModalOpen: boolean;
|
|
99
|
-
subChartIndicatorsSettingModalParams: IIndicatorInfo[];
|
|
100
|
-
currentSubChartIndicatorType: SubChartIndicatorType | null;
|
|
101
|
-
cursorType: CursorType | null;
|
|
102
|
-
}
|
|
103
|
-
declare class ChartLayer extends React.Component<ChartLayerProps, ChartLayerState> {
|
|
104
|
-
canvasRef: React.RefObject<HTMLCanvasElement | null>;
|
|
105
|
-
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
106
|
-
allDrawings: MarkDrawing[];
|
|
107
|
-
private doubleClickTimeout;
|
|
108
|
-
private chartEventManager;
|
|
109
|
-
private originalChartOptions;
|
|
110
|
-
currentMarkSettingsStyle: IMarkStyle | null;
|
|
111
|
-
chartMarkManager: ChartMarkManager | null;
|
|
112
|
-
chartMarkTextEditManager: ChartMarkTextEditManager | null;
|
|
113
|
-
mainChartTechnicalIndicatorManager: MainChartTechnicalIndicatorManager | null;
|
|
114
|
-
private staticMarkManager;
|
|
115
|
-
chartPanesManager: ChartPanesManager | null;
|
|
116
|
-
private volume;
|
|
117
|
-
private volumeHeatMap;
|
|
118
|
-
private marketProfile;
|
|
119
|
-
mainChartManager: MainChartManager | null;
|
|
120
|
-
constructor(props: ChartLayerProps);
|
|
121
|
-
componentDidMount(): void;
|
|
122
|
-
componentDidUpdate(prevProps: ChartLayerProps): void;
|
|
123
|
-
componentWillUnmount(): void;
|
|
124
|
-
private handleInitMainChartMaps;
|
|
125
|
-
private handleUpdateMainChartMaps;
|
|
126
|
-
private hasChartDataChanged;
|
|
127
|
-
private hasMainChartIndicatorChanged;
|
|
128
|
-
private initStaticMark;
|
|
129
|
-
private updateStaticMark;
|
|
130
|
-
private swtichMainChartType;
|
|
131
|
-
setCursorType: (cursorType: CursorType) => void;
|
|
132
|
-
private initializeMainChartIndicators;
|
|
133
|
-
private updateAllMainChartIndicatorData;
|
|
134
|
-
private updateMainChartIndicators;
|
|
135
|
-
private updateSelectedMainChartIndicators;
|
|
136
|
-
private handleOpenIndicatorSettings;
|
|
137
|
-
private handleMainChartIndicatorsSettingConfirm;
|
|
138
|
-
private handleRemoveIndicator;
|
|
139
|
-
setMockKLineMarkMode: () => void;
|
|
140
|
-
private initializeGraphManager;
|
|
141
|
-
private initializeGraphManagerProps;
|
|
142
|
-
private destroyGraphManager;
|
|
143
|
-
showAllMark: () => void;
|
|
144
|
-
hideAllMark: () => void;
|
|
145
|
-
clearAllMark: () => void;
|
|
146
|
-
setSchiffPitchforkMode: () => void;
|
|
147
|
-
setHeatMapMode: () => void;
|
|
148
|
-
setTextEditMarkMode: () => void;
|
|
149
|
-
setBubbleBoxMarkMode: () => void;
|
|
150
|
-
setPinMarkMode: () => void;
|
|
151
|
-
setEmojiMarkMode: (emoji: string) => void;
|
|
152
|
-
setSignpostMarkMode: () => void;
|
|
153
|
-
setPriceNoteMarkMode: () => void;
|
|
154
|
-
setFlagMarkMode: () => void;
|
|
155
|
-
setPriceLabelMode: () => void;
|
|
156
|
-
setShortPositionMarkMode: () => void;
|
|
157
|
-
setLongPositionMarkMode: () => void;
|
|
158
|
-
setThickArrowLineMode: () => void;
|
|
159
|
-
setEraserMode: () => void;
|
|
160
|
-
setMarkerPenMode: () => void;
|
|
161
|
-
setBrushMode: () => void;
|
|
162
|
-
setPenMode: () => void;
|
|
163
|
-
setPencilMode: () => void;
|
|
164
|
-
setTimePriceRangeMarkMode: () => void;
|
|
165
|
-
setPriceRangeMarkMode: () => void;
|
|
166
|
-
setTimeRangeMarkMode: () => void;
|
|
167
|
-
setElliottTripleCombinationMode: () => void;
|
|
168
|
-
setElliottDoubleCombinationMode: () => void;
|
|
169
|
-
setElliottTriangleMode: () => void;
|
|
170
|
-
setElliottCorrectiveMode: () => void;
|
|
171
|
-
setElliottImpulseMode: () => void;
|
|
172
|
-
setTriangleABCDMode: () => void;
|
|
173
|
-
setABCDMode: () => void;
|
|
174
|
-
setHeadAndShouldersMode: () => void;
|
|
175
|
-
setXABCDMode: () => void;
|
|
176
|
-
setDoubleCurveMode: () => void;
|
|
177
|
-
setCurveMode: () => void;
|
|
178
|
-
setSectorMode: () => void;
|
|
179
|
-
setFibonacciExtensionBaseTimeMode: () => void;
|
|
180
|
-
setFibonacciExtensionBasePriceMode: () => void;
|
|
181
|
-
setFibonacciChannelMode: () => void;
|
|
182
|
-
setFibonacciFanMode: () => void;
|
|
183
|
-
setFibonacciWedgeMode: () => void;
|
|
184
|
-
setFibonacciSpiralMode: () => void;
|
|
185
|
-
setFibonacciCircleMode: () => void;
|
|
186
|
-
setFibonacciArcMode: () => void;
|
|
187
|
-
setFibonacciRetracementMode: () => void;
|
|
188
|
-
setFibonacciTimeZoonMode: () => void;
|
|
189
|
-
setGannRectangleMode: () => void;
|
|
190
|
-
setGannBoxMode: () => void;
|
|
191
|
-
setGannFanMode: () => void;
|
|
192
|
-
setTriangleMarkMode: () => void;
|
|
193
|
-
setEllipseMarkMode: () => void;
|
|
194
|
-
setCircleMarkMode: () => void;
|
|
195
|
-
setRectangleMarkMode: () => void;
|
|
196
|
-
setEnhancedAndrewPitchforkMode: () => void;
|
|
197
|
-
setAndrewPitchforkMode: () => void;
|
|
198
|
-
setDisjointChannelMarkMode: () => void;
|
|
199
|
-
setEquidistantChannelMarkMode: () => void;
|
|
200
|
-
setLinearRegressionChannelMode: () => void;
|
|
201
|
-
setLineSegmentMarkMode: () => void;
|
|
202
|
-
setHorizontalLineMode: () => void;
|
|
203
|
-
setVerticalLineMode: () => void;
|
|
204
|
-
setArrowLineMarkMode: () => void;
|
|
205
|
-
setParallelChannelMarkMode: () => void;
|
|
206
|
-
showGraphMarkToolBar: (drawing: MarkDrawing) => void;
|
|
207
|
-
closeGraphMarkToolBar: () => void;
|
|
208
|
-
showTableMarkToolBar: (drawing: MarkDrawing) => void;
|
|
209
|
-
closeTableMarkToolBar: () => void;
|
|
210
|
-
showTextEditMarkToolBar: (drawing: MarkDrawing, isShowGrapTool: boolean) => void;
|
|
211
|
-
closeTextMarkToolBar: () => void;
|
|
212
|
-
private setupAllContainerEvents;
|
|
213
|
-
private cleanupAllContainerEvents;
|
|
214
|
-
private setupAllDocumentEvents;
|
|
215
|
-
private cleanupAllDocumentEvents;
|
|
216
|
-
private handleMouseDown;
|
|
217
|
-
private handleMouseUp;
|
|
218
|
-
private handleMouseMove;
|
|
219
|
-
serializeDrawings(): string;
|
|
220
|
-
handleViewportShiftLeft: () => void;
|
|
221
|
-
handleViewportShiftRight: () => void;
|
|
222
|
-
handleZoomIn: () => void;
|
|
223
|
-
handleZoomOut: () => void;
|
|
224
|
-
openIndicatorsModal: () => void;
|
|
225
|
-
private handleToggleIndicator;
|
|
226
|
-
private renderChartInfo;
|
|
227
|
-
private handleIndicatorsClose;
|
|
228
|
-
setImageMarkMode: () => void;
|
|
229
|
-
private handleImageConfirm;
|
|
230
|
-
private handleImageUploadClose;
|
|
231
|
-
private setSelectedImageUrl;
|
|
232
|
-
private handleChangeTextMarkFontColor;
|
|
233
|
-
private handleChangeTextMarkStyle;
|
|
234
|
-
private handleChangeTextMarkFontSize;
|
|
235
|
-
private handleChangeTextMarkGraphColor;
|
|
236
|
-
private handleChangeTextMarkGraphLineStyle;
|
|
237
|
-
private handleChangeTextMarkGraphLineWidth;
|
|
238
|
-
private handleDeleteTextEditMark;
|
|
239
|
-
private handleTextMarkEditorSave;
|
|
240
|
-
private handleTextMarkEditorCancel;
|
|
241
|
-
private handleDeleteGraphMark;
|
|
242
|
-
private handleChangeGraphMarkColor;
|
|
243
|
-
private handleChangeGraphMarkStyle;
|
|
244
|
-
private handleChangeGraphMarkWidth;
|
|
245
|
-
private handleGraphToolbarDrag;
|
|
246
|
-
private handleKeyDown;
|
|
247
|
-
private setupCanvas;
|
|
248
|
-
private handleDocumentMouseUp;
|
|
249
|
-
private handleDocumentMouseDown;
|
|
250
|
-
private handleDocumentMouseMove;
|
|
251
|
-
private handleDocumentMouseWheel;
|
|
252
|
-
getDrawingLayerElementsPosition(): Array<{
|
|
253
|
-
id: string;
|
|
254
|
-
type: string;
|
|
255
|
-
position: {
|
|
256
|
-
x: number;
|
|
257
|
-
y: number;
|
|
258
|
-
};
|
|
259
|
-
element?: HTMLElement;
|
|
260
|
-
}>;
|
|
261
|
-
setDrawingLayerElementsPosition(positions: Array<{
|
|
262
|
-
id: string;
|
|
263
|
-
type: string;
|
|
264
|
-
position: {
|
|
265
|
-
x: number;
|
|
266
|
-
y: number;
|
|
267
|
-
};
|
|
268
|
-
}>): void;
|
|
269
|
-
moveDrawingLayerElements(deltaX: number, deltaY: number): void;
|
|
270
|
-
getDrawingLayerElementsByType(type: 'text' | 'emoji'): Array<{
|
|
271
|
-
id: string;
|
|
272
|
-
position: {
|
|
273
|
-
x: number;
|
|
274
|
-
y: number;
|
|
275
|
-
};
|
|
276
|
-
element: HTMLElement;
|
|
277
|
-
}>;
|
|
278
|
-
private handleTextMarkToolBarDrag;
|
|
279
|
-
private getToolName;
|
|
280
|
-
private toggleOHLCVisibility;
|
|
281
|
-
disableChartMovement(): void;
|
|
282
|
-
enableChartMovement(): void;
|
|
283
|
-
private renderMainChart;
|
|
284
|
-
showSubChartSettingModal: (initialParams: IIndicatorInfo[] | undefined, subChartIndicatorType: SubChartIndicatorType) => void;
|
|
285
|
-
private handleSubChartSettingClose;
|
|
286
|
-
private handleSubChartSettingConfirm;
|
|
287
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
288
|
-
}
|
|
289
|
-
export { ChartLayer };
|
|
290
|
-
export type { MarkDrawing };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { I18n } from './I18n';
|
|
2
|
-
import { ICandleViewDataPoint, TimeframeEnum, TimezoneEnum } from './types';
|
|
3
|
-
export interface TimeframeConfig {
|
|
4
|
-
seconds: number;
|
|
5
|
-
groupBy: 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month';
|
|
6
|
-
}
|
|
7
|
-
export interface TimeConfig {
|
|
8
|
-
timeframe?: TimeframeEnum;
|
|
9
|
-
timezone?: TimezoneEnum;
|
|
10
|
-
}
|
|
11
|
-
export declare const TIMEFRAME_CONFIGS: {
|
|
12
|
-
[key: string]: TimeframeConfig;
|
|
13
|
-
};
|
|
14
|
-
export declare function getTimeframeDisplayName(timeframe: string, i18n: I18n): string;
|
|
15
|
-
export declare function generateExtendedVirtualData(originalData: ICandleViewDataPoint[], beforeCount: number, afterCount: number, timeframe?: string): ICandleViewDataPoint[];
|
|
16
|
-
export declare function convertTimeZone(data: ICandleViewDataPoint[], timezone: TimezoneEnum): ICandleViewDataPoint[];
|
|
17
|
-
export interface TimeZoneConfig {
|
|
18
|
-
name: string;
|
|
19
|
-
offset: string;
|
|
20
|
-
displayName: string;
|
|
21
|
-
}
|
|
22
|
-
export declare const TIMEZONE_CONFIGS: {
|
|
23
|
-
[key in TimezoneEnum]: TimeZoneConfig;
|
|
24
|
-
};
|
|
25
|
-
export declare function aggregateForTimeFrame(data: ICandleViewDataPoint[], timeframe: TimeframeEnum): ICandleViewDataPoint[];
|
|
26
|
-
export declare function getTimeframeSeconds(timeframe: TimeframeEnum): number;
|
|
27
|
-
export declare function createAggregatedCandle(group: ICandleViewDataPoint[]): ICandleViewDataPoint;
|
|
28
|
-
export declare function fillMissingCandleTimeframe(timeframe: TimeframeEnum, data: ICandleViewDataPoint[]): ICandleViewDataPoint[];
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ICandleViewDataPoint } from './types';
|
|
2
|
-
export interface DataLoaderConfig {
|
|
3
|
-
jsonFilePath?: string;
|
|
4
|
-
data?: ICandleViewDataPoint[];
|
|
5
|
-
url?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare class DataLoader {
|
|
8
|
-
static loadData(config: DataLoaderConfig): ICandleViewDataPoint[];
|
|
9
|
-
private static loadFromLocalFile;
|
|
10
|
-
private static loadFromUrl;
|
|
11
|
-
private static parseOHLCData;
|
|
12
|
-
private static validateAndFormatData;
|
|
13
|
-
static validateConfig(config: DataLoaderConfig): boolean;
|
|
14
|
-
static getActiveDataSource(config: DataLoaderConfig): string;
|
|
15
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ICandleViewDataPoint, MainChartType, TimeframeEnum, TimezoneEnum } from './types';
|
|
2
|
-
import { TimeConfig } from './DataAdapter';
|
|
3
|
-
export interface DataProcessingConfig {
|
|
4
|
-
timeframe: TimeframeEnum;
|
|
5
|
-
timezone: TimezoneEnum;
|
|
6
|
-
shouldExtendVirtualData?: boolean;
|
|
7
|
-
virtualDataBeforeCount?: number;
|
|
8
|
-
virtualDataAfterCount?: number;
|
|
9
|
-
chartType?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare function buildDefaultDataProcessingConfig(timeConfig: TimeConfig, chartType: MainChartType, virtualDataBeforeCount?: number, virtualDataAfterCount?: number): DataProcessingConfig;
|
|
12
|
-
export declare class DataManager {
|
|
13
|
-
static handleData(originalData: ICandleViewDataPoint[], config: DataProcessingConfig, chartType: MainChartType): ICandleViewDataPoint[];
|
|
14
|
-
private static extendWithVirtualData;
|
|
15
|
-
private static calculateOptimalVirtualDataCount;
|
|
16
|
-
private static formatCache;
|
|
17
|
-
static handleChartDisplayData(data: ICandleViewDataPoint[], mainChartType: MainChartType): ICandleViewDataPoint[];
|
|
18
|
-
static filterRealData(data: ICandleViewDataPoint[]): ICandleViewDataPoint[];
|
|
19
|
-
static getTimeframeConfig(timeframe: TimeframeEnum): import('./DataAdapter').TimeframeConfig;
|
|
20
|
-
static validateData(data: ICandleViewDataPoint[]): boolean;
|
|
21
|
-
static sampleData(data: ICandleViewDataPoint[], sampleRate?: number): ICandleViewDataPoint[];
|
|
22
|
-
}
|
|
23
|
-
export declare const processChartData: (originalData: ICandleViewDataPoint[], config: DataProcessingConfig, chartType: MainChartType) => ICandleViewDataPoint[];
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { ICandleViewDataPoint } from './types';
|
|
2
|
-
export declare class DataPointManager {
|
|
3
|
-
private static lastFirstRealDataInViewport;
|
|
4
|
-
private static lastLastRealDataInViewport;
|
|
5
|
-
private static lastFirstRealDataLeftViewport;
|
|
6
|
-
private static lastFirstRealDataRightViewport;
|
|
7
|
-
private static lastLastRealDataLeftViewport;
|
|
8
|
-
private static lastLastRealDataRightViewport;
|
|
9
|
-
private static lastFirstRealDataNearRightViewport;
|
|
10
|
-
private static lastLastRealDataNearLeftViewport;
|
|
11
|
-
static getRealDataRange(data: ICandleViewDataPoint[]): {
|
|
12
|
-
firstIndex: number;
|
|
13
|
-
lastIndex: number;
|
|
14
|
-
} | null;
|
|
15
|
-
static checkDataPointPositions(visibleLogicalRange: {
|
|
16
|
-
from: number;
|
|
17
|
-
to: number;
|
|
18
|
-
} | null, realDataRange: {
|
|
19
|
-
firstIndex: number;
|
|
20
|
-
lastIndex: number;
|
|
21
|
-
} | null, callbacks: {
|
|
22
|
-
onFirstRealDataExitLeftViewport?: () => void;
|
|
23
|
-
onFirstRealDataExitRightViewport?: () => void;
|
|
24
|
-
onLastRealDataExitLeftViewport?: () => void;
|
|
25
|
-
onLastRealDataExitRightViewport?: () => void;
|
|
26
|
-
onFirstRealDataExitViewport?: () => void;
|
|
27
|
-
onLastRealDataExitViewport?: () => void;
|
|
28
|
-
onFirstRealDataEnterLeftViewport?: () => void;
|
|
29
|
-
onFirstRealDataNearRightViewport?: () => void;
|
|
30
|
-
onLastRealDataNearLeftViewport?: () => void;
|
|
31
|
-
onFirstRealDataLeaveNearRightViewport?: () => void;
|
|
32
|
-
onLastRealDataLeaveNearLeftViewport?: () => void;
|
|
33
|
-
}): void;
|
|
34
|
-
static reset(): void;
|
|
35
|
-
static getCurrentState(): {
|
|
36
|
-
lastFirstRealDataInViewport: boolean;
|
|
37
|
-
lastLastRealDataInViewport: boolean;
|
|
38
|
-
lastFirstRealDataLeftViewport: boolean;
|
|
39
|
-
lastFirstRealDataRightViewport: boolean;
|
|
40
|
-
lastLastRealDataLeftViewport: boolean;
|
|
41
|
-
lastLastRealDataRightViewport: boolean;
|
|
42
|
-
lastFirstRealDataNearRightViewport: boolean;
|
|
43
|
-
lastLastRealDataNearLeftViewport: boolean;
|
|
44
|
-
};
|
|
45
|
-
}
|