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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "candleview",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "Chart engine in the financial field.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Finance",
|
|
@@ -16,10 +16,17 @@
|
|
|
16
16
|
"url": "https://github.com/0xhappyboy/candleview/issues"
|
|
17
17
|
},
|
|
18
18
|
"homepage": "https://github.com/0xhappyboy/candleview#readme",
|
|
19
|
-
"main": "dist/index.
|
|
20
|
-
"module": "dist/index.
|
|
19
|
+
"main": "dist/index.js",
|
|
20
|
+
"module": "dist/index.mjs",
|
|
21
21
|
"types": "dist/index.d.ts",
|
|
22
22
|
"source": "src/index.tsx",
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"import": "./dist/index.mjs",
|
|
26
|
+
"require": "./dist/index.js",
|
|
27
|
+
"types": "./dist/index.d.ts"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
23
30
|
"engines": {
|
|
24
31
|
"node": ">=16"
|
|
25
32
|
},
|
|
@@ -40,13 +47,13 @@
|
|
|
40
47
|
"deploy": "gh-pages -d example/build"
|
|
41
48
|
},
|
|
42
49
|
"peerDependencies": {
|
|
50
|
+
"lightweight-charts": "^5.0.9",
|
|
43
51
|
"react": "^18.0.0 || ^19.0.0",
|
|
44
52
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
45
53
|
},
|
|
46
54
|
"dependencies": {
|
|
47
55
|
"lightweight-charts": "^5.0.9",
|
|
48
|
-
"resize-observer-polyfill": "^1.5.1"
|
|
49
|
-
"vite-plugin-dts": "^4.5.4"
|
|
56
|
+
"resize-observer-polyfill": "^1.5.1"
|
|
50
57
|
},
|
|
51
58
|
"devDependencies": {
|
|
52
59
|
"@types/react": "^19.2.0",
|
|
@@ -63,7 +70,8 @@
|
|
|
63
70
|
"react-dom": "^19.2.0",
|
|
64
71
|
"react-scripts": "^5.0.1",
|
|
65
72
|
"typescript": "^5.7.3",
|
|
66
|
-
"vite": "^7.2.6"
|
|
73
|
+
"vite": "^7.2.6",
|
|
74
|
+
"vite-plugin-dts": "^4.5.4"
|
|
67
75
|
},
|
|
68
76
|
"files": [
|
|
69
77
|
"dist"
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { CandleView } from './CandleView';
|
|
2
|
-
export interface CaptureResult {
|
|
3
|
-
success: boolean;
|
|
4
|
-
dataUrl?: string;
|
|
5
|
-
blob?: Blob;
|
|
6
|
-
error?: string;
|
|
7
|
-
width: number;
|
|
8
|
-
height: number;
|
|
9
|
-
timestamp: number;
|
|
10
|
-
}
|
|
11
|
-
export type CaptureCallback = (result: CaptureResult) => void;
|
|
12
|
-
export declare function captureWithCanvas(candleView: CandleView, callback?: CaptureCallback): Promise<CaptureResult>;
|
|
13
|
-
export declare function drawHTMLElementsToCanvas(candleView: CandleView, container: HTMLElement, ctx: CanvasRenderingContext2D, width: number, height: number): void;
|
|
14
|
-
export declare function drawElementToCanvas(candleView: CandleView, element: HTMLElement, ctx: CanvasRenderingContext2D, container: HTMLElement): void;
|
|
15
|
-
export declare function drawElementContent(candleView: CandleView, element: HTMLElement, ctx: CanvasRenderingContext2D, width: number, height: number): void;
|
|
16
|
-
export declare function wrapText(candleView: CandleView, ctx: CanvasRenderingContext2D, text: string, maxWidth: number): string[];
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { MainChartIndicatorInfo } from './Indicators/MainChart/MainChartIndicatorInfo';
|
|
3
|
-
import { I18n } from './I18n';
|
|
4
|
-
import { ICandleViewDataPoint, MainChartType, SubChartIndicatorType, TimeframeEnum, TimezoneEnum } from './types';
|
|
5
|
-
import { IStaticMarkData } from './MarkManager/StaticMarkManager';
|
|
6
|
-
import { ThemeConfig } from './Theme';
|
|
7
|
-
export interface CandleViewProps {
|
|
8
|
-
theme?: 'dark' | 'light';
|
|
9
|
-
i18n?: 'en' | 'zh-cn';
|
|
10
|
-
showToolbar?: boolean;
|
|
11
|
-
showIndicators?: boolean;
|
|
12
|
-
height?: number | string;
|
|
13
|
-
title: string;
|
|
14
|
-
showTopPanel?: boolean;
|
|
15
|
-
showLeftPanel?: boolean;
|
|
16
|
-
markData?: IStaticMarkData[];
|
|
17
|
-
timeframe?: string;
|
|
18
|
-
timezone?: string;
|
|
19
|
-
data?: ICandleViewDataPoint[];
|
|
20
|
-
jsonFilePath?: string;
|
|
21
|
-
url?: string;
|
|
22
|
-
handleScreenshotCapture?: (imageData: {
|
|
23
|
-
dataUrl: string;
|
|
24
|
-
blob: Blob;
|
|
25
|
-
width: number;
|
|
26
|
-
height: number;
|
|
27
|
-
timestamp: number;
|
|
28
|
-
}) => void;
|
|
29
|
-
}
|
|
30
|
-
interface CandleViewState {
|
|
31
|
-
isIndicatorModalOpen: boolean;
|
|
32
|
-
isTimeframeModalOpen: boolean;
|
|
33
|
-
isTradeModalOpen: boolean;
|
|
34
|
-
isChartTypeModalOpen: boolean;
|
|
35
|
-
isSubChartModalOpen: boolean;
|
|
36
|
-
isMobileMenuOpen: boolean;
|
|
37
|
-
activeTool: string | null;
|
|
38
|
-
currentTheme: ThemeConfig;
|
|
39
|
-
currentI18N: I18n;
|
|
40
|
-
chartInitialized: boolean;
|
|
41
|
-
isDarkTheme: boolean;
|
|
42
|
-
selectedEmoji: string;
|
|
43
|
-
subChartPanelHeight: number;
|
|
44
|
-
isResizing: boolean;
|
|
45
|
-
showInfoLayer: boolean;
|
|
46
|
-
isTimezoneModalOpen: boolean;
|
|
47
|
-
currentTimezone: string;
|
|
48
|
-
isTimeFormatModalOpen: boolean;
|
|
49
|
-
isCloseTimeModalOpen: boolean;
|
|
50
|
-
isTradingDayModalOpen: boolean;
|
|
51
|
-
currentCloseTime: string;
|
|
52
|
-
currentTradingDayType: string;
|
|
53
|
-
activeTimeframe: TimeframeEnum;
|
|
54
|
-
timeframe?: TimeframeEnum;
|
|
55
|
-
timezone?: TimezoneEnum;
|
|
56
|
-
savedVisibleRange: {
|
|
57
|
-
from: number;
|
|
58
|
-
to: number;
|
|
59
|
-
} | null;
|
|
60
|
-
currentMainChartType: MainChartType;
|
|
61
|
-
selectedSubChartIndicators: SubChartIndicatorType[];
|
|
62
|
-
selectedMainChartIndicator: MainChartIndicatorInfo | null;
|
|
63
|
-
virtualDataBeforeCount: number;
|
|
64
|
-
virtualDataAfterCount: number;
|
|
65
|
-
displayData: ICandleViewDataPoint[];
|
|
66
|
-
isDataLoading: boolean;
|
|
67
|
-
dataLoadProgress: number;
|
|
68
|
-
loadError: string | null;
|
|
69
|
-
}
|
|
70
|
-
export declare class CandleView extends React.Component<CandleViewProps, CandleViewState> {
|
|
71
|
-
candleViewContainerRef: React.RefObject<HTMLDivElement | null>;
|
|
72
|
-
private chartRef;
|
|
73
|
-
private chartContainerRef;
|
|
74
|
-
private drawingLayerRef;
|
|
75
|
-
private chart;
|
|
76
|
-
private resizeObserver;
|
|
77
|
-
private realTimeInterval;
|
|
78
|
-
private currentSeries;
|
|
79
|
-
private chartManager;
|
|
80
|
-
private updateTimeout;
|
|
81
|
-
private viewportManager;
|
|
82
|
-
private chartEventManager;
|
|
83
|
-
private preparedData;
|
|
84
|
-
private originalData;
|
|
85
|
-
constructor(props: CandleViewProps);
|
|
86
|
-
componentDidMount(): void;
|
|
87
|
-
componentDidUpdate(prevProps: CandleViewProps, prevState: CandleViewState): void;
|
|
88
|
-
componentWillUnmount(): void;
|
|
89
|
-
private loadDataAsync;
|
|
90
|
-
private loadExternalData;
|
|
91
|
-
private loadInternalData;
|
|
92
|
-
initializeChart(): void;
|
|
93
|
-
handleTimeFormatClick: () => void;
|
|
94
|
-
handleCloseTimeClick: () => void;
|
|
95
|
-
handleTradingDayClick: () => void;
|
|
96
|
-
handleTimezoneClick: () => void;
|
|
97
|
-
handleCloseModals: () => void;
|
|
98
|
-
handleTimezoneSelect: (timezone: string) => void;
|
|
99
|
-
handleTimeframeSelect: (timeframe: string) => void;
|
|
100
|
-
private loadInternalDataAsync;
|
|
101
|
-
private initChart;
|
|
102
|
-
private refreshChart;
|
|
103
|
-
private refreshExternalData;
|
|
104
|
-
private refreshInternalData;
|
|
105
|
-
handleSelectedSubChartIndicator: (indicators: SubChartIndicatorType[]) => void;
|
|
106
|
-
handleRemoveSubChartIndicator: (indicatorId: string) => void;
|
|
107
|
-
handleCameraClick: () => void;
|
|
108
|
-
private fallbackToDownload;
|
|
109
|
-
serializeDrawings: () => string;
|
|
110
|
-
handleSubChartClick: () => void;
|
|
111
|
-
deserializeDrawings: (data: string) => void;
|
|
112
|
-
clearAllDrawings: () => void;
|
|
113
|
-
private viewportDataBufferSize;
|
|
114
|
-
private handleVisibleTimeRangeChange;
|
|
115
|
-
setupResizeObserver(): void;
|
|
116
|
-
updateChartTheme(): void;
|
|
117
|
-
getThemeConfig(theme: 'dark' | 'light'): ThemeConfig;
|
|
118
|
-
getI18nConfig(i18n: 'en' | 'zh-cn'): I18n;
|
|
119
|
-
handleEmojiSelect: (emoji: string) => void;
|
|
120
|
-
handleThemeToggle: () => void;
|
|
121
|
-
handleMobileMenuToggle: () => void;
|
|
122
|
-
handleClickOutside: (event: MouseEvent) => void;
|
|
123
|
-
handleToolSelect: (tool: string) => void;
|
|
124
|
-
handleChartTypeSelect: (mainChartType: MainChartType) => void;
|
|
125
|
-
handleCloseChartTypeModal: () => void;
|
|
126
|
-
handleCloseDrawing: () => void;
|
|
127
|
-
handleTimeframeClick: () => void;
|
|
128
|
-
handleChartTypeClick: () => void;
|
|
129
|
-
handleIndicatorClick: () => void;
|
|
130
|
-
handleTradeClick: () => void;
|
|
131
|
-
handleSelectedMainChartIndicator: (selectedMainChartIndicator: MainChartIndicatorInfo) => void;
|
|
132
|
-
handleMainChartIndicatorChange: (indicator: MainChartIndicatorInfo | null) => void;
|
|
133
|
-
handleCloseIndicatorModal: () => void;
|
|
134
|
-
handleCloseTimeframeModal: () => void;
|
|
135
|
-
handleCloseTradeModal: () => void;
|
|
136
|
-
handleTradeAction: (action: string) => void;
|
|
137
|
-
handleFullscreen: () => void;
|
|
138
|
-
handleCompareClick: () => void;
|
|
139
|
-
handleReplayClick: () => void;
|
|
140
|
-
stopRealTimeDataSimulation: () => void;
|
|
141
|
-
private handleContextMenu;
|
|
142
|
-
handleLeftArrowClick: () => void;
|
|
143
|
-
handleRightArrowClick: () => void;
|
|
144
|
-
handleRefreshClick: () => void;
|
|
145
|
-
handleZoomIn: () => void;
|
|
146
|
-
handleZoomOut: () => void;
|
|
147
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
148
|
-
}
|
|
149
|
-
export {};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { MouseEventParams } from 'lightweight-charts';
|
|
2
|
-
import { ChartLayer } from '.';
|
|
3
|
-
export declare class ChartEventManager {
|
|
4
|
-
constructor();
|
|
5
|
-
registerClickEvent(chart: any, callback: (event: MouseEventParams) => void): void;
|
|
6
|
-
registerDblClickEvent(chart: any, callback: (event: MouseEventParams) => void): void;
|
|
7
|
-
registerCrosshairMoveEvent(chartLayer: ChartLayer): void;
|
|
8
|
-
private updateCurrentOHLCByCrosshair;
|
|
9
|
-
registerVisibleTimeRangeChangeEvent(chart: any, callback: (event: {
|
|
10
|
-
from: number;
|
|
11
|
-
to: number;
|
|
12
|
-
} | null) => void): void;
|
|
13
|
-
registerVisibleLogicalRangeChangeEvent(chart: any, callback: (event: {
|
|
14
|
-
from: number;
|
|
15
|
-
to: number;
|
|
16
|
-
} | null) => void): void;
|
|
17
|
-
handleKeyDown: (chartLayer: ChartLayer, event: KeyboardEvent) => void;
|
|
18
|
-
mouseUp(chartLayer: ChartLayer, event: MouseEvent): void;
|
|
19
|
-
mouseMove(chartLayer: ChartLayer, event: MouseEvent): void;
|
|
20
|
-
mouseDown(chartLayer: ChartLayer, event: MouseEvent): void;
|
|
21
|
-
documentMouseDown(chartLayer: ChartLayer, event: MouseEvent): void;
|
|
22
|
-
documentMouseMove(chartLayer: ChartLayer, event: MouseEvent): void;
|
|
23
|
-
documentMouseUp(chartLayer: ChartLayer, event: MouseEvent): void;
|
|
24
|
-
documentMouseWheel(chartLayer: ChartLayer, event: MouseEvent): void;
|
|
25
|
-
private getMousePosition;
|
|
26
|
-
private setMouseStyle;
|
|
27
|
-
private removeCircleCursor;
|
|
28
|
-
private removeDotCursor;
|
|
29
|
-
private handleLineMarkMouseDown;
|
|
30
|
-
private updateMAValues;
|
|
31
|
-
private updateEMAValues;
|
|
32
|
-
private updateBollingerBandsValues;
|
|
33
|
-
private updateIchimokuValues;
|
|
34
|
-
private updateDonchianChannelValues;
|
|
35
|
-
private updateEnvelopeValues;
|
|
36
|
-
private updateVWAPValues;
|
|
37
|
-
private coordinateToPrice;
|
|
38
|
-
private getChartPriceRange;
|
|
39
|
-
private isChartArea;
|
|
40
|
-
private isPriceArea;
|
|
41
|
-
private isTimeArea;
|
|
42
|
-
private handleDocumentMainChartPriceAreaMouseWheel;
|
|
43
|
-
private handleDocumentMainChartTimeAreaMouseWheel;
|
|
44
|
-
private handleDocumentMainChartAreaMouseWheel;
|
|
45
|
-
private handleDocumentMainChartMouseDownMove;
|
|
46
|
-
private handleGraphStyle;
|
|
47
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { MainChartIndicatorType, Point } from '../types';
|
|
3
|
-
import { ThemeConfig } from '../Theme';
|
|
4
|
-
import { MainChartIndicatorInfo, MainChartIndicatorParam } from '../Indicators/MainChart/MainChartIndicatorInfo';
|
|
5
|
-
import { I18n } from '../I18n';
|
|
6
|
-
export interface ChartInfoProps {
|
|
7
|
-
currentTheme: ThemeConfig;
|
|
8
|
-
title?: string;
|
|
9
|
-
currentOHLC: any;
|
|
10
|
-
mousePosition: Point | null;
|
|
11
|
-
showOHLC: boolean;
|
|
12
|
-
onToggleOHLC: () => void;
|
|
13
|
-
onOpenIndicatorsModal?: () => void;
|
|
14
|
-
indicators?: MainChartIndicatorInfo[];
|
|
15
|
-
onRemoveIndicator?: (type: MainChartIndicatorType) => void;
|
|
16
|
-
onToggleIndicator?: (type: MainChartIndicatorType) => void;
|
|
17
|
-
onEditIndicatorParams?: (id: string, newParams: MainChartIndicatorParam[]) => void;
|
|
18
|
-
visibleIndicatorTypes?: MainChartIndicatorType[];
|
|
19
|
-
onOpenIndicatorSettings?: (indicator: MainChartIndicatorInfo) => void;
|
|
20
|
-
maIndicatorValues?: {
|
|
21
|
-
[key: string]: number;
|
|
22
|
-
};
|
|
23
|
-
emaIndicatorValues?: {
|
|
24
|
-
[key: string]: number;
|
|
25
|
-
};
|
|
26
|
-
bollingerBandsValues?: {
|
|
27
|
-
[key: string]: number;
|
|
28
|
-
};
|
|
29
|
-
ichimokuValues?: {
|
|
30
|
-
[key: string]: number;
|
|
31
|
-
};
|
|
32
|
-
donchianChannelValues?: {
|
|
33
|
-
[key: string]: number;
|
|
34
|
-
};
|
|
35
|
-
envelopeValues?: {
|
|
36
|
-
[key: string]: number;
|
|
37
|
-
};
|
|
38
|
-
vwapValue?: number | null;
|
|
39
|
-
i18n: I18n;
|
|
40
|
-
}
|
|
41
|
-
interface ChartInfoState {
|
|
42
|
-
currentOHLC: any;
|
|
43
|
-
mousePosition: Point | null;
|
|
44
|
-
showOHLC: boolean;
|
|
45
|
-
visibleIndicatorsMap: Map<MainChartIndicatorType, boolean>;
|
|
46
|
-
}
|
|
47
|
-
export declare class ChartInfo extends React.Component<ChartInfoProps, ChartInfoState> {
|
|
48
|
-
constructor(props: ChartInfoProps);
|
|
49
|
-
componentDidMount(): void;
|
|
50
|
-
componentWillUnmount(): void;
|
|
51
|
-
componentDidUpdate(prevProps: ChartInfoProps): void;
|
|
52
|
-
private handleRemoveIndicator;
|
|
53
|
-
private handleToggleIndicator;
|
|
54
|
-
private handleEditParams;
|
|
55
|
-
renderEyeIcon: (isVisible: boolean) => import("react/jsx-runtime").JSX.Element;
|
|
56
|
-
renderIndicatorWithValues: (item: MainChartIndicatorInfo) => import("react/jsx-runtime").JSX.Element | null;
|
|
57
|
-
private getActualIndicatorValue;
|
|
58
|
-
getFilteredIndicators: () => MainChartIndicatorInfo[];
|
|
59
|
-
renderNormalIndicatorParams: (item: MainChartIndicatorInfo) => import("react/jsx-runtime").JSX.Element | null;
|
|
60
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
61
|
-
}
|
|
62
|
-
export {};
|
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
import { ArrowLineMark } from '../Mark/Arrow/ArrowLineMark';
|
|
2
|
-
import { ThickArrowLineMark } from '../Mark/Arrow/ThickArrowLineMark';
|
|
3
|
-
import { DisjointChannelMark } from '../Mark/Channel/DisjointChannelMark';
|
|
4
|
-
import { EquidistantChannelMark } from '../Mark/Channel/EquidistantChannelMark';
|
|
5
|
-
import { LinearRegressionChannelMark } from '../Mark/Channel/LinearRegressionChannelMark';
|
|
6
|
-
import { ParallelChannelMark } from '../Mark/Channel/ParallelChannelMark';
|
|
7
|
-
import { ImageMark } from '../Mark/Content/ImageMark';
|
|
8
|
-
import { FibonacciArcMark } from '../Mark/Fibonacci/FibonacciArcMark';
|
|
9
|
-
import { FibonacciChannelMark } from '../Mark/Fibonacci/FibonacciChannelMark';
|
|
10
|
-
import { FibonacciCircleMark } from '../Mark/Fibonacci/FibonacciCircleMark';
|
|
11
|
-
import { FibonacciExtensionBasePriceMark } from '../Mark/Fibonacci/FibonacciExtensionBasePriceMark';
|
|
12
|
-
import { FibonacciExtensionBaseTimeMark } from '../Mark/Fibonacci/FibonacciExtensionBaseTimeMark';
|
|
13
|
-
import { FibonacciFanMark } from '../Mark/Fibonacci/FibonacciFanMark';
|
|
14
|
-
import { FibonacciRetracementMark } from '../Mark/Fibonacci/FibonacciRetracementMark';
|
|
15
|
-
import { FibonacciSpiralMark } from '../Mark/Fibonacci/FibonacciSpiralMark';
|
|
16
|
-
import { FibonacciTimeZoonMark } from '../Mark/Fibonacci/FibonacciTimeZoonMark';
|
|
17
|
-
import { FibonacciWedgeMark } from '../Mark/Fibonacci/FibonacciWedgeMark';
|
|
18
|
-
import { AndrewPitchforkMark } from '../Mark/Fork/AndrewPitchforkMark';
|
|
19
|
-
import { EnhancedAndrewPitchforkMark } from '../Mark/Fork/EnhancedAndrewPitchforkMark';
|
|
20
|
-
import { GannBoxMark } from '../Mark/Gann/GannBoxMark';
|
|
21
|
-
import { GannFanMark } from '../Mark/Gann/GannFanMark';
|
|
22
|
-
import { GannRectangleMark } from '../Mark/Gann/GannRectangleMark';
|
|
23
|
-
import { LineSegmentMark } from '../Mark/Line/LineSegmentMark';
|
|
24
|
-
import { HeatMapMark } from '../Mark/Map/HeatMapMark';
|
|
25
|
-
import { ABCDMark } from '../Mark/Pattern/ABCDMark';
|
|
26
|
-
import { ElliottCorrectiveMark } from '../Mark/Pattern/ElliottCorrectiveMark';
|
|
27
|
-
import { ElliottDoubleCombinationMark } from '../Mark/Pattern/ElliottDoubleCombinationMark';
|
|
28
|
-
import { ElliottImpulseMark } from '../Mark/Pattern/ElliottImpulseMark';
|
|
29
|
-
import { ElliottTriangleMark } from '../Mark/Pattern/ElliottTriangleMark';
|
|
30
|
-
import { ElliottTripleCombinationMark } from '../Mark/Pattern/ElliottTripleCombinationMark';
|
|
31
|
-
import { HeadAndShouldersMark } from '../Mark/Pattern/HeadAndShouldersMark';
|
|
32
|
-
import { TriangleABCDMark } from '../Mark/Pattern/TriangleABCDMark';
|
|
33
|
-
import { XABCDMark } from '../Mark/Pattern/XABCDMark';
|
|
34
|
-
import { BrushMark } from '../Mark/Pen/BrushMark';
|
|
35
|
-
import { MarkerPenMark } from '../Mark/Pen/MarkerPenMark';
|
|
36
|
-
import { PencilMark } from '../Mark/Pen/PencilMark';
|
|
37
|
-
import { PenMark } from '../Mark/Pen/PenMark';
|
|
38
|
-
import { PriceRangeMark } from '../Mark/Range/PriceRangeMark';
|
|
39
|
-
import { TimePriceRangeMark } from '../Mark/Range/TimePriceRangeMark';
|
|
40
|
-
import { TimeRangeMark } from '../Mark/Range/TimeRangeMark';
|
|
41
|
-
import { CircleMark } from '../Mark/Shape/CircleMark';
|
|
42
|
-
import { CurveMark } from '../Mark/Shape/CurveMark';
|
|
43
|
-
import { DoubleCurveMark } from '../Mark/Shape/DoubleCurveMark';
|
|
44
|
-
import { EllipseMark } from '../Mark/Shape/EllipseMark';
|
|
45
|
-
import { RectangleMark } from '../Mark/Shape/RectangleMark.ts';
|
|
46
|
-
import { SectorMark } from '../Mark/Shape/SectorMark';
|
|
47
|
-
import { TriangleMark } from '../Mark/Shape/TriangleMark';
|
|
48
|
-
import { BubbleBoxMark } from '../Mark/Text/BubbleBoxMark';
|
|
49
|
-
import { PinMark } from '../Mark/Text/PinMark';
|
|
50
|
-
import { SignPostMark } from '../Mark/Text/SignPostMark';
|
|
51
|
-
import { TextEditMark } from '../Mark/Text/TextEditMark';
|
|
52
|
-
import { MarkType, MarkDrawing, Point } from '../types';
|
|
53
|
-
export interface ChartMarkState {
|
|
54
|
-
pendingEmojiMark: string | null;
|
|
55
|
-
isTextMarkEditorOpen: boolean;
|
|
56
|
-
textMarkEditorPosition: {
|
|
57
|
-
x: number;
|
|
58
|
-
y: number;
|
|
59
|
-
};
|
|
60
|
-
textMarkEditorInitialData: {
|
|
61
|
-
text: string;
|
|
62
|
-
color: string;
|
|
63
|
-
fontSize: number;
|
|
64
|
-
isBold: boolean;
|
|
65
|
-
isItalic: boolean;
|
|
66
|
-
};
|
|
67
|
-
lineSegmentMarkStartPoint: Point | null;
|
|
68
|
-
arrowLineMarkStartPoint: Point | null;
|
|
69
|
-
parallelChannelMarkStartPoint: Point | null;
|
|
70
|
-
currentLineSegmentMark: LineSegmentMark | null;
|
|
71
|
-
currentArrowLineMark: ArrowLineMark | null;
|
|
72
|
-
currentParallelChannelMark: ParallelChannelMark | null;
|
|
73
|
-
linearRegressionChannelStartPoint: Point | null;
|
|
74
|
-
currentLinearRegressionChannel: LinearRegressionChannelMark | null;
|
|
75
|
-
equidistantChannelMarkStartPoint: Point | null;
|
|
76
|
-
currentEquidistantChannelMark: EquidistantChannelMark | null;
|
|
77
|
-
currentMarkMode: MarkType | null;
|
|
78
|
-
showGraphMarkToolBar: boolean;
|
|
79
|
-
showTableMarkToolBar: boolean;
|
|
80
|
-
showTextMarkToolBar: boolean;
|
|
81
|
-
isShowGrapTool: boolean;
|
|
82
|
-
isGraphMarkToolbarDragging: boolean;
|
|
83
|
-
markToolBarPosition: Point;
|
|
84
|
-
selectedTextEditMark: MarkDrawing | null;
|
|
85
|
-
selectedTableMark: MarkDrawing | null;
|
|
86
|
-
selectedGraphMark: MarkDrawing | null;
|
|
87
|
-
graphMarkToolbarDragStartPoint: Point | null;
|
|
88
|
-
disjointChannelMarkStartPoint: Point | null;
|
|
89
|
-
currentDisjointChannelMark: DisjointChannelMark | null;
|
|
90
|
-
andrewPitchforkHandlePoint: Point | null;
|
|
91
|
-
andrewPitchforkBaseStartPoint: Point | null;
|
|
92
|
-
currentAndrewPitchfork: AndrewPitchforkMark | null;
|
|
93
|
-
enhancedAndrewPitchforkHandlePoint: Point | null;
|
|
94
|
-
enhancedAndrewPitchforkBaseStartPoint: Point | null;
|
|
95
|
-
currentEnhancedAndrewPitchfork: EnhancedAndrewPitchforkMark | null;
|
|
96
|
-
rectangleMarkStartPoint: Point | null;
|
|
97
|
-
currentRectangleMark: RectangleMark | null;
|
|
98
|
-
circleMarkStartPoint: Point | null;
|
|
99
|
-
currentCircleMark: CircleMark | null;
|
|
100
|
-
ellipseMarkStartPoint: Point | null;
|
|
101
|
-
currentEllipseMark: EllipseMark | null;
|
|
102
|
-
triangleMarkStartPoint: Point | null;
|
|
103
|
-
currentTriangleMark: TriangleMark | null;
|
|
104
|
-
gannFanStartPoint: Point | null;
|
|
105
|
-
currentGannFan: GannFanMark | null;
|
|
106
|
-
gannBoxStartPoint: Point | null;
|
|
107
|
-
currentGannBox: GannBoxMark | null;
|
|
108
|
-
gannRectangleStartPoint: Point | null;
|
|
109
|
-
currentGannRectangle: GannRectangleMark | null;
|
|
110
|
-
fibonacciTimeZoonStartPoint: Point | null;
|
|
111
|
-
currentFibonacciTimeZoon: FibonacciTimeZoonMark | null;
|
|
112
|
-
fibonacciRetracementStartPoint: Point | null;
|
|
113
|
-
currentFibonacciRetracement: FibonacciRetracementMark | null;
|
|
114
|
-
fibonacciArcStartPoint: Point | null;
|
|
115
|
-
currentFibonacciArc: FibonacciArcMark | null;
|
|
116
|
-
fibonacciCircleCenterPoint: Point | null;
|
|
117
|
-
currentFibonacciCircle: FibonacciCircleMark | null;
|
|
118
|
-
fibonacciSpiralCenterPoint: Point | null;
|
|
119
|
-
currentFibonacciSpiral: FibonacciSpiralMark | null;
|
|
120
|
-
fibonacciWedgeCenterPoint: Point | null;
|
|
121
|
-
currentFibonacciWedge: FibonacciWedgeMark | null;
|
|
122
|
-
fibonacciWedgeDrawingStep: number;
|
|
123
|
-
fibonacciWedgePoints: Point[];
|
|
124
|
-
fibonacciFanStartPoint: Point | null;
|
|
125
|
-
currentFibonacciFan: FibonacciFanMark | null;
|
|
126
|
-
currentFibonacciChannel: FibonacciChannelMark | null;
|
|
127
|
-
isFibonacciChannelMode: boolean;
|
|
128
|
-
fibonacciChannelDrawingStep: number;
|
|
129
|
-
fibonacciExtensionBasePricePoints: Point[];
|
|
130
|
-
currentFibonacciExtensionBasePrice: FibonacciExtensionBasePriceMark | null;
|
|
131
|
-
fibonacciExtensionBaseTimePoints: Point[];
|
|
132
|
-
currentFibonacciExtensionBaseTime: FibonacciExtensionBaseTimeMark | null;
|
|
133
|
-
sectorPoints: Point[];
|
|
134
|
-
currentSector: SectorMark | null;
|
|
135
|
-
curveMarkStartPoint: Point | null;
|
|
136
|
-
currentCurveMark: CurveMark | null;
|
|
137
|
-
doubleCurveMarkStartPoint: Point | null;
|
|
138
|
-
currentDoubleCurveMark: DoubleCurveMark | null;
|
|
139
|
-
xabcdPoints: Point[];
|
|
140
|
-
currentXABCDMark: XABCDMark | null;
|
|
141
|
-
headAndShouldersPoints: Point[];
|
|
142
|
-
currentHeadAndShouldersMark: HeadAndShouldersMark | null;
|
|
143
|
-
abcdPoints: Point[];
|
|
144
|
-
currentABCDMark: ABCDMark | null;
|
|
145
|
-
triangleABCDPoints: Point[];
|
|
146
|
-
currentTriangleABCDMark: TriangleABCDMark | null;
|
|
147
|
-
elliottImpulsePoints: Point[];
|
|
148
|
-
currentElliottImpulseMark: ElliottImpulseMark | null;
|
|
149
|
-
elliottCorrectivePoints: Point[];
|
|
150
|
-
currentElliottCorrectiveMark: ElliottCorrectiveMark | null;
|
|
151
|
-
elliottTrianglePoints: Point[];
|
|
152
|
-
currentElliottTriangleMark: ElliottTriangleMark | null;
|
|
153
|
-
elliottDoubleCombinationPoints: Point[];
|
|
154
|
-
currentElliottDoubleCombinationMark: ElliottDoubleCombinationMark | null;
|
|
155
|
-
elliottTripleCombinationPoints: Point[];
|
|
156
|
-
currentElliottTripleCombinationMark: ElliottTripleCombinationMark | null;
|
|
157
|
-
timeRangeMarkStartPoint: Point | null;
|
|
158
|
-
currentTimeRangeMark: TimeRangeMark | null;
|
|
159
|
-
isTimeRangeMarkMode: boolean;
|
|
160
|
-
priceRangeMarkStartPoint: Point | null;
|
|
161
|
-
currentPriceRangeMark: PriceRangeMark | null;
|
|
162
|
-
isPriceRangeMarkMode: boolean;
|
|
163
|
-
timePriceRangeMarkStartPoint: Point | null;
|
|
164
|
-
currentTimePriceRangeMark: TimePriceRangeMark | null;
|
|
165
|
-
isTimePriceRangeMarkMode: boolean;
|
|
166
|
-
isPencilMode: boolean;
|
|
167
|
-
isPencilDrawing: boolean;
|
|
168
|
-
currentPencilMark: PencilMark | null;
|
|
169
|
-
pencilPoints: Point[];
|
|
170
|
-
isPenMode: boolean;
|
|
171
|
-
isPenDrawing: boolean;
|
|
172
|
-
currentPenMark: PenMark | null;
|
|
173
|
-
penPoints: Point[];
|
|
174
|
-
isBrushMode: boolean;
|
|
175
|
-
isBrushDrawing: boolean;
|
|
176
|
-
currentBrushMark: BrushMark | null;
|
|
177
|
-
brushPoints: Point[];
|
|
178
|
-
isMarkerPenMode: boolean;
|
|
179
|
-
isMarkerPenDrawing: boolean;
|
|
180
|
-
currentMarkerPen: MarkerPenMark | null;
|
|
181
|
-
markerPenPoints: Point[];
|
|
182
|
-
isEraserMode?: boolean;
|
|
183
|
-
isErasing?: boolean;
|
|
184
|
-
eraserHoveredMark?: any;
|
|
185
|
-
thickArrowLineMarkStartPoint: Point | null;
|
|
186
|
-
currentThickArrowLineMark: ThickArrowLineMark | null;
|
|
187
|
-
isImageMarkMode: boolean;
|
|
188
|
-
imageMarkStartPoint: Point | null;
|
|
189
|
-
currentImageMark: ImageMark | null;
|
|
190
|
-
showImageModal: boolean;
|
|
191
|
-
selectedImageUrl: string;
|
|
192
|
-
isImageUploadModalOpen: boolean;
|
|
193
|
-
isLongPositionMarkMode: boolean;
|
|
194
|
-
longPositionMarkStartPoint: Point | null;
|
|
195
|
-
currentLongPositionMark: any | null;
|
|
196
|
-
longPositionDrawingPhase: 'firstPoint' | 'secondPoint' | 'none';
|
|
197
|
-
isLongPositionDragging: boolean;
|
|
198
|
-
dragTarget: any | null;
|
|
199
|
-
dragPoint: string | null;
|
|
200
|
-
adjustingMode: string | null;
|
|
201
|
-
adjustStartData: {
|
|
202
|
-
time: string;
|
|
203
|
-
price: number;
|
|
204
|
-
} | null;
|
|
205
|
-
isShortPositionMarkMode: boolean;
|
|
206
|
-
shortPositionMarkStartPoint: Point | null;
|
|
207
|
-
currentShortPositionMark: any | null;
|
|
208
|
-
shortPositionDrawingPhase: 'firstPoint' | 'secondPoint' | 'none';
|
|
209
|
-
isShortPositionDragging: boolean;
|
|
210
|
-
shortPositionDragTarget: any | null;
|
|
211
|
-
shortPositionDragPoint: string | null;
|
|
212
|
-
shortPositionAdjustingMode: string | null;
|
|
213
|
-
shortPositionAdjustStartData: {
|
|
214
|
-
time: string;
|
|
215
|
-
price: number;
|
|
216
|
-
} | null;
|
|
217
|
-
isPriceLabelMarkMode: boolean;
|
|
218
|
-
priceLabelMarkPoint: Point | null;
|
|
219
|
-
currentPriceLabelMark: any | null;
|
|
220
|
-
isPriceLabelDragging: boolean;
|
|
221
|
-
priceLabelDragTarget: any | null;
|
|
222
|
-
isFlagMarkMode: boolean;
|
|
223
|
-
flagMarkPoint: Point | null;
|
|
224
|
-
currentFlagMark: any | null;
|
|
225
|
-
isFlagDragging: boolean;
|
|
226
|
-
flagDragTarget: any | null;
|
|
227
|
-
isPriceNoteMarkMode: boolean;
|
|
228
|
-
priceNoteMarkStartPoint: Point | null;
|
|
229
|
-
currentPriceNoteMark: any | null;
|
|
230
|
-
isPriceNoteDragging: boolean;
|
|
231
|
-
priceNoteDragTarget: any | null;
|
|
232
|
-
priceNoteDragPoint: 'start' | 'end' | 'line' | null;
|
|
233
|
-
isSignpostMarkMode: boolean;
|
|
234
|
-
signpostMarkPoint: Point | null;
|
|
235
|
-
currentSignpostMark: SignPostMark | null;
|
|
236
|
-
isSignpostDragging: boolean;
|
|
237
|
-
signpostDragTarget: SignPostMark | null;
|
|
238
|
-
isEmojiMarkMode?: boolean;
|
|
239
|
-
emojiMarkStartPoint?: Point | null;
|
|
240
|
-
currentEmojiMark?: any | null;
|
|
241
|
-
isEmojiDragging?: boolean;
|
|
242
|
-
emojiDragTarget?: any | null;
|
|
243
|
-
emojiDragPoint?: 'start' | 'end' | 'line' | null;
|
|
244
|
-
isPinMarkMode: boolean;
|
|
245
|
-
pinMarkPoint: Point | null;
|
|
246
|
-
currentPinMark: PinMark | null;
|
|
247
|
-
isPinDragging: boolean;
|
|
248
|
-
pinDragTarget: PinMark | null;
|
|
249
|
-
isBubbleBoxMarkMode: boolean;
|
|
250
|
-
bubbleBoxMarkPoints: Point[] | null;
|
|
251
|
-
currentBubbleBoxMark: BubbleBoxMark | null;
|
|
252
|
-
isBubbleBoxDragging: boolean;
|
|
253
|
-
bubbleBoxDragTarget: BubbleBoxMark | null;
|
|
254
|
-
bubbleBoxDragType: 'controlPoint' | 'bubble' | 'connection' | null;
|
|
255
|
-
isTextEditMarkMode: boolean;
|
|
256
|
-
isTextEditDragging: boolean;
|
|
257
|
-
textEditDragTarget: TextEditMark | null;
|
|
258
|
-
isMockKLineMarkMode: boolean;
|
|
259
|
-
mockKLineMarkStartPoint: Point | null;
|
|
260
|
-
currentMockKLineMark: any;
|
|
261
|
-
isMockKLineDragging: boolean;
|
|
262
|
-
mockKLineDragTarget: any;
|
|
263
|
-
mockKLineDragPoint: 'start' | 'end' | 'line' | null;
|
|
264
|
-
isHeatMapMode?: boolean;
|
|
265
|
-
heatMapStartPoint?: Point | null;
|
|
266
|
-
currentHeatMap?: HeatMapMark | null;
|
|
267
|
-
isHeatMapDragging?: boolean;
|
|
268
|
-
heatMapDragTarget?: HeatMapMark | null;
|
|
269
|
-
heatMapDragPoint?: 'start' | 'end' | 'body' | null;
|
|
270
|
-
heatMapDrawingPhase?: 'firstPoint' | 'secondPoint' | 'none';
|
|
271
|
-
heatMapAdjustingMode?: 'start' | 'end' | 'body' | null;
|
|
272
|
-
schiffPitchforkHandlePoint: Point | null;
|
|
273
|
-
schiffPitchforkBaseStartPoint: Point | null;
|
|
274
|
-
currentSchiffPitchfork: any | null;
|
|
275
|
-
isSchiffPitchforkMode: boolean;
|
|
276
|
-
isSchiffPitchforkDragging: boolean;
|
|
277
|
-
schiffPitchforkDragTarget: any | null;
|
|
278
|
-
schiffPitchforkDragPoint: 'handle' | 'baseStart' | 'baseEnd' | 'line' | null;
|
|
279
|
-
schiffPitchforkDrawingPhase: 'handle' | 'baseStart' | 'baseEnd' | 'none';
|
|
280
|
-
schiffPitchforkAdjustingMode: 'handle' | 'baseStart' | 'baseEnd' | null;
|
|
281
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ThemeConfig } from '../Theme';
|
|
2
|
-
import { ChartSeries } from './ChartTypeManager';
|
|
3
|
-
export declare class ChartManager {
|
|
4
|
-
private chart;
|
|
5
|
-
private series;
|
|
6
|
-
private locale;
|
|
7
|
-
constructor(container: string | HTMLElement, width: number, height: number, theme: ThemeConfig, locale?: 'en' | 'zh-cn');
|
|
8
|
-
getChart(): any;
|
|
9
|
-
getSeries(): ChartSeries | null;
|
|
10
|
-
getLocale(): 'en' | 'zh-cn';
|
|
11
|
-
}
|