candleview 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/CandleView/Camera.d.ts +16 -0
- package/dist/components/CandleView/CandleView.d.ts +149 -0
- package/dist/components/CandleView/ChartLayer/ChartEventManager.d.ts +47 -0
- package/dist/components/CandleView/ChartLayer/ChartInfo.d.ts +62 -0
- package/dist/components/CandleView/ChartLayer/ChartLayerMarkState.d.ts +281 -0
- package/dist/components/CandleView/ChartLayer/ChartManager.d.ts +11 -0
- package/dist/components/CandleView/ChartLayer/ChartMarkManager.d.ts +203 -0
- package/dist/components/CandleView/ChartLayer/ChartMarkTextEditManager.d.ts +16 -0
- package/dist/components/CandleView/ChartLayer/ChartTypeManager.d.ts +17 -0
- package/dist/components/CandleView/ChartLayer/MainChart/Area.d.ts +13 -0
- package/dist/components/CandleView/ChartLayer/MainChart/Bar.d.ts +13 -0
- package/dist/components/CandleView/ChartLayer/MainChart/BaseLine.d.ts +12 -0
- package/dist/components/CandleView/ChartLayer/MainChart/BaselineArea.d.ts +12 -0
- package/dist/components/CandleView/ChartLayer/MainChart/Candlestick.d.ts +12 -0
- package/dist/components/CandleView/ChartLayer/MainChart/HLCArea.d.ts +35 -0
- package/dist/components/CandleView/ChartLayer/MainChart/HeikinAshi.d.ts +12 -0
- package/dist/components/CandleView/ChartLayer/MainChart/HighLow.d.ts +12 -0
- package/dist/components/CandleView/ChartLayer/MainChart/Histogram.d.ts +13 -0
- package/dist/components/CandleView/ChartLayer/MainChart/HollowCandle.d.ts +13 -0
- package/dist/components/CandleView/ChartLayer/MainChart/IMainChart.d.ts +7 -0
- package/dist/components/CandleView/ChartLayer/MainChart/Line.d.ts +13 -0
- package/dist/components/CandleView/ChartLayer/MainChart/LineBreak.d.ts +15 -0
- package/dist/components/CandleView/ChartLayer/MainChart/MainChartManager.d.ts +17 -0
- package/dist/components/CandleView/ChartLayer/MainChart/MarketProfile.d.ts +52 -0
- package/dist/components/CandleView/ChartLayer/MainChart/Mountain.d.ts +12 -0
- package/dist/components/CandleView/ChartLayer/MainChart/StepLine.d.ts +12 -0
- package/dist/components/CandleView/ChartLayer/MainChart/Volume.d.ts +6 -0
- package/dist/components/CandleView/ChartLayer/MainChart/VolumeHeatMap.d.ts +41 -0
- package/dist/components/CandleView/ChartLayer/Modal/ImageUploadModal.d.ts +10 -0
- package/dist/components/CandleView/ChartLayer/Modal/MainChartIndicatorsSettingModal.d.ts +17 -0
- package/dist/components/CandleView/ChartLayer/Modal/SubChartIndicatorsSettingModal.d.ts +17 -0
- package/dist/components/CandleView/ChartLayer/Modal/TextMarkEditorModal.d.ts +21 -0
- package/dist/components/CandleView/ChartLayer/Panes/BaseChartPane.d.ts +41 -0
- package/dist/components/CandleView/ChartLayer/Panes/ChartPaneFactory.d.ts +6 -0
- package/dist/components/CandleView/ChartLayer/Panes/ChartPanesManager.d.ts +31 -0
- package/dist/components/CandleView/ChartLayer/Panes/IChartPanes.d.ts +42 -0
- package/dist/components/CandleView/ChartLayer/SubChart/ADX.d.ts +25 -0
- package/dist/components/CandleView/ChartLayer/SubChart/ATR.d.ts +25 -0
- package/dist/components/CandleView/ChartLayer/SubChart/BBWidth.d.ts +26 -0
- package/dist/components/CandleView/ChartLayer/SubChart/CCI.d.ts +25 -0
- package/dist/components/CandleView/ChartLayer/SubChart/KDJ.d.ts +23 -0
- package/dist/components/CandleView/ChartLayer/SubChart/MACD.d.ts +23 -0
- package/dist/components/CandleView/ChartLayer/SubChart/OBV.d.ts +24 -0
- package/dist/components/CandleView/ChartLayer/SubChart/RSI.d.ts +25 -0
- package/dist/components/CandleView/ChartLayer/SubChart/SAR.d.ts +23 -0
- package/dist/components/CandleView/ChartLayer/SubChart/Stochastic.d.ts +23 -0
- package/dist/components/CandleView/ChartLayer/SubChart/Volume.d.ts +24 -0
- package/dist/components/CandleView/ChartLayer/ToolBar/GraphMarkToolBar.d.ts +51 -0
- package/dist/components/CandleView/ChartLayer/ToolBar/TextMarkToolBar.d.ts +65 -0
- package/dist/components/CandleView/ChartLayer/index.d.ts +290 -0
- package/dist/components/CandleView/DataAdapter.d.ts +28 -0
- package/dist/components/CandleView/DataLoader.d.ts +15 -0
- package/dist/components/CandleView/DataManager.d.ts +23 -0
- package/dist/components/CandleView/DataPointManager.d.ts +45 -0
- package/dist/components/CandleView/I18n.d.ts +418 -0
- package/dist/components/CandleView/Icons.d.ts +161 -0
- package/dist/components/CandleView/Indicators/MainChart/BaseIndicator.d.ts +26 -0
- package/dist/components/CandleView/Indicators/MainChart/BollingerBandsIndicator.d.ts +51 -0
- package/dist/components/CandleView/Indicators/MainChart/DonchianChannelIndicator.d.ts +24 -0
- package/dist/components/CandleView/Indicators/MainChart/EMAIndicator.d.ts +24 -0
- package/dist/components/CandleView/Indicators/MainChart/EnvelopeIndicator.d.ts +52 -0
- package/dist/components/CandleView/Indicators/MainChart/IchimokuIndicator.d.ts +58 -0
- package/dist/components/CandleView/Indicators/MainChart/MAIndicator.d.ts +24 -0
- package/dist/components/CandleView/Indicators/MainChart/MainChartIndicatorInfo.d.ts +24 -0
- package/dist/components/CandleView/Indicators/MainChart/MainChartIndicatorManager.d.ts +28 -0
- package/dist/components/CandleView/Indicators/MainChart/VWAPIndicator.d.ts +26 -0
- package/dist/components/CandleView/Indicators/SubChart/ADXIndicator.d.ts +6 -0
- package/dist/components/CandleView/Indicators/SubChart/ATRIndicator.d.ts +6 -0
- package/dist/components/CandleView/Indicators/SubChart/BBWidthIndicator.d.ts +6 -0
- package/dist/components/CandleView/Indicators/SubChart/CCIIndicator.d.ts +6 -0
- package/dist/components/CandleView/Indicators/SubChart/IIndicator.d.ts +15 -0
- package/dist/components/CandleView/Indicators/SubChart/KDJIndicator.d.ts +6 -0
- package/dist/components/CandleView/Indicators/SubChart/MACDIndicator.d.ts +6 -0
- package/dist/components/CandleView/Indicators/SubChart/OBVIndicator.d.ts +6 -0
- package/dist/components/CandleView/Indicators/SubChart/RSIIndicator.d.ts +6 -0
- package/dist/components/CandleView/Indicators/SubChart/SARIndicator.d.ts +6 -0
- package/dist/components/CandleView/Indicators/SubChart/StochasticIndicator.d.ts +25 -0
- package/dist/components/CandleView/Indicators/SubChart/VolumeIndicator.d.ts +11 -0
- package/dist/components/CandleView/LeftPanel/Config.d.ts +64 -0
- package/dist/components/CandleView/LeftPanel/EmojiConfig.d.ts +21 -0
- package/dist/components/CandleView/LeftPanel/ToolManager.d.ts +5 -0
- package/dist/components/CandleView/LeftPanel/index.d.ts +95 -0
- package/dist/components/CandleView/Mark/Arrow/ArrowLineMark.d.ts +67 -0
- package/dist/components/CandleView/Mark/Arrow/ThickArrowLineMark.d.ts +73 -0
- package/dist/components/CandleView/Mark/Channel/DisjointChannelMark.d.ts +74 -0
- package/dist/components/CandleView/Mark/Channel/EquidistantChannelMark.d.ts +67 -0
- package/dist/components/CandleView/Mark/Channel/LinearRegressionChannelMark.d.ts +70 -0
- package/dist/components/CandleView/Mark/Channel/ParallelChannelMark.d.ts +67 -0
- package/dist/components/CandleView/Mark/Content/ImageMark.d.ts +75 -0
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciArcMark.d.ts +88 -0
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciChannelMark.d.ts +80 -0
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciCircleMark.d.ts +81 -0
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciExtensionBasePriceMark.d.ts +89 -0
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciExtensionBaseTimeMark.d.ts +89 -0
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciFanMark.d.ts +91 -0
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciRetracementMark.d.ts +81 -0
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciSpiralMark.d.ts +95 -0
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciTimeZoonMark.d.ts +71 -0
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciWedgeMark.d.ts +97 -0
- package/dist/components/CandleView/Mark/Fork/AndrewPitchforkMark.d.ts +77 -0
- package/dist/components/CandleView/Mark/Fork/EnhancedAndrewPitchforkMark.d.ts +78 -0
- package/dist/components/CandleView/Mark/Fork/SchiffPitchforkMark.d.ts +86 -0
- package/dist/components/CandleView/Mark/Gann/GannBoxMark.d.ts +100 -0
- package/dist/components/CandleView/Mark/Gann/GannFanMark.d.ts +90 -0
- package/dist/components/CandleView/Mark/Gann/GannRectangleMark.d.ts +106 -0
- package/dist/components/CandleView/Mark/IDeletableMark.d.ts +5 -0
- package/dist/components/CandleView/Mark/IGraph.d.ts +7 -0
- package/dist/components/CandleView/Mark/IMarkManager.d.ts +11 -0
- package/dist/components/CandleView/Mark/IMarkStyle.d.ts +6 -0
- package/dist/components/CandleView/Mark/Line/HorizontalLineMark.d.ts +51 -0
- package/dist/components/CandleView/Mark/Line/LineSegmentMark.d.ts +62 -0
- package/dist/components/CandleView/Mark/Line/VerticalLineMark.d.ts +51 -0
- package/dist/components/CandleView/Mark/Map/HeatMapMark.d.ts +75 -0
- package/dist/components/CandleView/Mark/Mock/MockKLineMark.d.ts +70 -0
- package/dist/components/CandleView/Mark/Pattern/ABCDMark.d.ts +57 -0
- package/dist/components/CandleView/Mark/Pattern/ElliottCorrectiveMark.d.ts +59 -0
- package/dist/components/CandleView/Mark/Pattern/ElliottDoubleCombinationMark.d.ts +59 -0
- package/dist/components/CandleView/Mark/Pattern/ElliottImpulseMark.d.ts +59 -0
- package/dist/components/CandleView/Mark/Pattern/ElliottTriangleMark.d.ts +59 -0
- package/dist/components/CandleView/Mark/Pattern/ElliottTripleCombinationMark.d.ts +59 -0
- package/dist/components/CandleView/Mark/Pattern/HeadAndShouldersMark.d.ts +63 -0
- package/dist/components/CandleView/Mark/Pattern/TriangleABCDMark.d.ts +66 -0
- package/dist/components/CandleView/Mark/Pattern/XABCDMark.d.ts +58 -0
- package/dist/components/CandleView/Mark/Pen/BrushMark.d.ts +67 -0
- package/dist/components/CandleView/Mark/Pen/EraserMark.d.ts +51 -0
- package/dist/components/CandleView/Mark/Pen/MarkerPenMark.d.ts +62 -0
- package/dist/components/CandleView/Mark/Pen/PenMark.d.ts +62 -0
- package/dist/components/CandleView/Mark/Pen/PencilMark.d.ts +62 -0
- package/dist/components/CandleView/Mark/Range/LongPositionMark.d.ts +79 -0
- package/dist/components/CandleView/Mark/Range/PriceRangeMark.d.ts +71 -0
- package/dist/components/CandleView/Mark/Range/ShortPositionMark.d.ts +79 -0
- package/dist/components/CandleView/Mark/Range/TimePriceRangeMark.d.ts +74 -0
- package/dist/components/CandleView/Mark/Range/TimeRangeMark.d.ts +71 -0
- package/dist/components/CandleView/Mark/Shape/CircleMark.d.ts +78 -0
- package/dist/components/CandleView/Mark/Shape/CurveMark.d.ts +70 -0
- package/dist/components/CandleView/Mark/Shape/DoubleCurveMark.d.ts +75 -0
- package/dist/components/CandleView/Mark/Shape/EllipseMark.d.ts +85 -0
- package/dist/components/CandleView/Mark/Shape/RectangleMark.ts.d.ts +65 -0
- package/dist/components/CandleView/Mark/Shape/SectorMark.d.ts +83 -0
- package/dist/components/CandleView/Mark/Shape/TriangleMark.d.ts +91 -0
- package/dist/components/CandleView/Mark/Static/BottomArrowMark.d.ts +13 -0
- package/dist/components/CandleView/Mark/Static/BottomTextMark.d.ts +22 -0
- package/dist/components/CandleView/Mark/Static/MultiBottomArrowMark.d.ts +14 -0
- package/dist/components/CandleView/Mark/Static/MultiBottomTextMark.d.ts +36 -0
- package/dist/components/CandleView/Mark/Static/MultiTopArrowMark.d.ts +14 -0
- package/dist/components/CandleView/Mark/Static/MultiTopTextMark.d.ts +36 -0
- package/dist/components/CandleView/Mark/Static/TopArrowMark.d.ts +13 -0
- package/dist/components/CandleView/Mark/Static/TopTextMark.d.ts +22 -0
- package/dist/components/CandleView/Mark/Text/BubbleBoxMark.d.ts +126 -0
- package/dist/components/CandleView/Mark/Text/EmojiMark.d.ts +72 -0
- package/dist/components/CandleView/Mark/Text/FlagMark.d.ts +63 -0
- package/dist/components/CandleView/Mark/Text/PinMark.d.ts +110 -0
- package/dist/components/CandleView/Mark/Text/PriceLabelMark.d.ts +70 -0
- package/dist/components/CandleView/Mark/Text/PriceNoteMark.d.ts +87 -0
- package/dist/components/CandleView/Mark/Text/SignPostMark.d.ts +110 -0
- package/dist/components/CandleView/Mark/Text/TextEditMark.d.ts +105 -0
- package/dist/components/CandleView/MarkManager/Channel/DisjointChannelMarkManager.d.ts +67 -0
- package/dist/components/CandleView/MarkManager/Channel/EquidistantChannelMarkManager.d.ts +66 -0
- package/dist/components/CandleView/MarkManager/Channel/LinearRegressionChannelMarkManager.d.ts +63 -0
- package/dist/components/CandleView/MarkManager/Channel/ParallelChannelMarkManager.d.ts +66 -0
- package/dist/components/CandleView/MarkManager/Content/ImageMarkManager.d.ts +57 -0
- package/dist/components/CandleView/MarkManager/Elliott/ElliottCorrectiveMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Elliott/ElliottDoubleCombinationMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Elliott/ElliottImpulseMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Elliott/ElliottTriangleMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Elliott/ElliottTripleCombinationMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciArcMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciChannelMarkManager.d.ts +64 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciCircleMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciExtensionBasePriceMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciExtensionBaseTimeMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciFanMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciRetracementMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciSpiralMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciTimeZoonMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciWedgeMarkManager.d.ts +56 -0
- package/dist/components/CandleView/MarkManager/Fork/AndrewPitchforkMarkManager.d.ts +71 -0
- package/dist/components/CandleView/MarkManager/Fork/EnhancedAndrewPitchforkMarkManager.d.ts +71 -0
- package/dist/components/CandleView/MarkManager/Fork/SchiffPitchforkMarkManager.d.ts +76 -0
- package/dist/components/CandleView/MarkManager/Gann/GannBoxMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Gann/GannFanMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Gann/GannRectangleManager.d.ts +56 -0
- package/dist/components/CandleView/MarkManager/Line/ArrowLineMarkManager.d.ts +52 -0
- package/dist/components/CandleView/MarkManager/Line/AxisLineMarkManager.d.ts +56 -0
- package/dist/components/CandleView/MarkManager/Line/LineSegmentMarkManager.d.ts +52 -0
- package/dist/components/CandleView/MarkManager/Line/ThickArrowLineMarkManager.d.ts +52 -0
- package/dist/components/CandleView/MarkManager/Map/HeatMapMarkManager.d.ts +64 -0
- package/dist/components/CandleView/MarkManager/Mock/MockKLineMarkManager.d.ts +52 -0
- package/dist/components/CandleView/MarkManager/Pattern/ABCDMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Pattern/HeadAndShouldersMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Pattern/TriangleABCDMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Pattern/XABCDMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Pen/BrushMarkManager.d.ts +55 -0
- package/dist/components/CandleView/MarkManager/Pen/EraserMarkManager.d.ts +51 -0
- package/dist/components/CandleView/MarkManager/Pen/MarkerPenMarkManager.d.ts +55 -0
- package/dist/components/CandleView/MarkManager/Pen/PenMarkManager.d.ts +55 -0
- package/dist/components/CandleView/MarkManager/Pen/PencilMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Range/LongPositionMarkManager.d.ts +63 -0
- package/dist/components/CandleView/MarkManager/Range/PriceRangeMarkManager.d.ts +63 -0
- package/dist/components/CandleView/MarkManager/Range/ShortPositionMarkManager.d.ts +63 -0
- package/dist/components/CandleView/MarkManager/Range/TimePriceRangeMarkManager.d.ts +63 -0
- package/dist/components/CandleView/MarkManager/Range/TimeRangeMarkManager.d.ts +63 -0
- package/dist/components/CandleView/MarkManager/Shape/CircleMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Shape/CurveMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Shape/DoubleCurveMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Shape/EllipseMarkManager.d.ts +55 -0
- package/dist/components/CandleView/MarkManager/Shape/RectangleMarkManager.d.ts +51 -0
- package/dist/components/CandleView/MarkManager/Shape/SectorMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Shape/TriangleMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/StaticMarkManager.d.ts +46 -0
- package/dist/components/CandleView/MarkManager/Text/BubbleBoxMarkManager.d.ts +61 -0
- package/dist/components/CandleView/MarkManager/Text/EmojiMarkManager.d.ts +52 -0
- package/dist/components/CandleView/MarkManager/Text/FlagMarkManager.d.ts +51 -0
- package/dist/components/CandleView/MarkManager/Text/PinMarkManager.d.ts +56 -0
- package/dist/components/CandleView/MarkManager/Text/PriceLabelMarkManager.d.ts +51 -0
- package/dist/components/CandleView/MarkManager/Text/PriceNoteMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Text/SignPostMarkManager.d.ts +55 -0
- package/dist/components/CandleView/MarkManager/Text/TextEditMarkManager.d.ts +61 -0
- package/dist/components/CandleView/Theme.d.ts +59 -0
- package/dist/components/CandleView/TopPanel/Config.d.ts +23 -0
- package/dist/components/CandleView/TopPanel/IndicatorProcessing.d.ts +4 -0
- package/dist/components/CandleView/TopPanel/index.d.ts +104 -0
- package/dist/components/CandleView/ViewportManager.d.ts +53 -0
- package/dist/components/CandleView/index.d.ts +2 -0
- package/dist/components/CandleView/tools.d.ts +7 -0
- package/dist/components/CandleView/types.d.ts +200 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.test.d.ts +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ThemeConfig } from '../../Theme';
|
|
3
|
+
import { I18n } from '../../I18n';
|
|
4
|
+
interface TextMarkEditorModalProps {
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
position: {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
};
|
|
10
|
+
theme: ThemeConfig;
|
|
11
|
+
initialText: string;
|
|
12
|
+
initialColor: string;
|
|
13
|
+
initialFontSize: number;
|
|
14
|
+
initialIsBold: boolean;
|
|
15
|
+
initialIsItalic: boolean;
|
|
16
|
+
onSave: (text: string, color: string, fontSize: number, isBold: boolean, isItalic: boolean) => void;
|
|
17
|
+
onCancel: () => void;
|
|
18
|
+
i18n: I18n;
|
|
19
|
+
}
|
|
20
|
+
export declare const TextMarkEditorModal: React.FC<TextMarkEditorModalProps>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { MouseEventParams, Point } from 'lightweight-charts';
|
|
2
|
+
import { ThemeConfig } from '../../Theme';
|
|
3
|
+
import { SubChartIndicatorType } from '../../types';
|
|
4
|
+
import { IChartPane } from './IChartPanes';
|
|
5
|
+
import { IIndicatorInfo } from '../../Indicators/SubChart/IIndicator';
|
|
6
|
+
export declare abstract class BaseChartPane implements IChartPane {
|
|
7
|
+
readonly id: string;
|
|
8
|
+
readonly size: number;
|
|
9
|
+
readonly vertPosition: 'left' | 'right';
|
|
10
|
+
readonly indicatorType: SubChartIndicatorType;
|
|
11
|
+
readonly chartInstance: any;
|
|
12
|
+
readonly paneInstance: any;
|
|
13
|
+
theme: ThemeConfig;
|
|
14
|
+
onSettingsClick: (subChartIndicatorType: SubChartIndicatorType) => void;
|
|
15
|
+
onCloseClick: (subChartIndicatorType: SubChartIndicatorType) => void;
|
|
16
|
+
protected _infoElement: HTMLElement | null;
|
|
17
|
+
constructor(id: string, size: number, vertPosition: 'left' | 'right', indicatorType: SubChartIndicatorType, chartInstance: any, paneInstance: any, theme: ThemeConfig, onSettingsClick: (subChartIndicatorType: SubChartIndicatorType) => void, onCloseClick: (subChartIndicatorType: SubChartIndicatorType) => void);
|
|
18
|
+
init(chartData: any[], settings?: {
|
|
19
|
+
paramName: string;
|
|
20
|
+
paramValue: number;
|
|
21
|
+
lineColor: string;
|
|
22
|
+
lineWidth: number;
|
|
23
|
+
}[]): void;
|
|
24
|
+
protected createInfoElement(): void;
|
|
25
|
+
destroy(): void;
|
|
26
|
+
getSeries(): {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
};
|
|
29
|
+
getChart(): any;
|
|
30
|
+
getParams(): IIndicatorInfo[];
|
|
31
|
+
updateData(chartData: any[]): void;
|
|
32
|
+
setStyles(styles: any): void;
|
|
33
|
+
setVisible(visible: boolean): void;
|
|
34
|
+
updateThme(theme: ThemeConfig): void;
|
|
35
|
+
updateSettings(chartData: any[], settings: IIndicatorInfo[]): void;
|
|
36
|
+
protected getDefaultPriceScaleId(): string;
|
|
37
|
+
handleMouseDown(poin: Point): void;
|
|
38
|
+
handleMouseMove(poin: Point): void;
|
|
39
|
+
handleMouseUp(poin: Point): void;
|
|
40
|
+
handleCrosshairMoveEvent(event: MouseEventParams): void;
|
|
41
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ThemeConfig } from '../../Theme';
|
|
2
|
+
import { SubChartIndicatorType } from '../../types';
|
|
3
|
+
import { IChartPane } from './IChartPanes';
|
|
4
|
+
export declare class ChartPaneFactory {
|
|
5
|
+
static createPane(chartInstance: any, paneInstance: any, id: string, size: number, vertPosition: 'left' | 'right', indicatorType: SubChartIndicatorType, theme: ThemeConfig, onSettingsClick: (subChartIndicatorType: SubChartIndicatorType) => void, onCloseClick: (subChartIndicatorType: SubChartIndicatorType) => void): IChartPane;
|
|
6
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Point, SubChartIndicatorType } from '../../types';
|
|
2
|
+
import { ChartLayer } from '..';
|
|
3
|
+
import { IChartPane } from './IChartPanes';
|
|
4
|
+
import { ThemeConfig } from '../../Theme';
|
|
5
|
+
import { IIndicatorInfo } from '../../Indicators/SubChart/IIndicator';
|
|
6
|
+
import { MouseEventParams } from 'lightweight-charts';
|
|
7
|
+
export declare class ChartPanesManager {
|
|
8
|
+
private panesCache;
|
|
9
|
+
private chartInstance;
|
|
10
|
+
constructor();
|
|
11
|
+
setChartInstance(chart: any): void;
|
|
12
|
+
addSubChart(chartLayer: ChartLayer, subChartIndicatorType: SubChartIndicatorType, onSettingsClick: (subChartIndicatorType: SubChartIndicatorType) => void, onCloseClick: (subChartIndicatorType: SubChartIndicatorType) => void): void;
|
|
13
|
+
updatePaneDataBySubChartIndicatorType(chartData: any[], subChartIndicatorType: SubChartIndicatorType): void;
|
|
14
|
+
updateAllPaneData(chartData: any[]): void;
|
|
15
|
+
updatePaneThemeBySubChartIndicatorType(theme: ThemeConfig, subChartIndicatorType: SubChartIndicatorType): void;
|
|
16
|
+
updateAllPaneTheme(theme: ThemeConfig): void;
|
|
17
|
+
updateSettingsBySubChartIndicatorType(chartData: any[], settings: IIndicatorInfo[], subChartIndicatorType: SubChartIndicatorType): void;
|
|
18
|
+
removePaneBySubChartIndicatorType(subChartIndicatorType: SubChartIndicatorType): void;
|
|
19
|
+
removeAllPane(): void;
|
|
20
|
+
removeAllSeries(): void;
|
|
21
|
+
getParamsByIndicatorType(indicatorType: SubChartIndicatorType): IIndicatorInfo[];
|
|
22
|
+
getPaneByIndicatorType(indicatorType: SubChartIndicatorType): IChartPane | undefined;
|
|
23
|
+
getAllPanes(): IChartPane[];
|
|
24
|
+
hasPane(indicatorType: SubChartIndicatorType): boolean;
|
|
25
|
+
private calculatePaneSize;
|
|
26
|
+
private buildPanesCacheId;
|
|
27
|
+
handleMouseDown(poin: Point): void;
|
|
28
|
+
handleMouseMove(poin: Point): void;
|
|
29
|
+
handleMouseUp(poin: Point): void;
|
|
30
|
+
handleCrosshairMoveEvent(event: MouseEventParams): void;
|
|
31
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { MouseEventParams } from 'lightweight-charts';
|
|
2
|
+
import { ThemeConfig } from '../../Theme';
|
|
3
|
+
import { IIndicatorInfo } from '../../Indicators/SubChart/IIndicator';
|
|
4
|
+
import { Point, SubChartIndicatorType } from '../../types';
|
|
5
|
+
export interface PaneConfig {
|
|
6
|
+
id: string;
|
|
7
|
+
size: number;
|
|
8
|
+
vertPosition: 'left' | 'right';
|
|
9
|
+
indicatorType: SubChartIndicatorType;
|
|
10
|
+
series: any;
|
|
11
|
+
}
|
|
12
|
+
export interface IChartPane {
|
|
13
|
+
readonly id: string;
|
|
14
|
+
readonly size: number;
|
|
15
|
+
readonly vertPosition: 'left' | 'right';
|
|
16
|
+
readonly indicatorType: SubChartIndicatorType;
|
|
17
|
+
readonly chartInstance: any;
|
|
18
|
+
readonly paneInstance: any;
|
|
19
|
+
getChart(): any;
|
|
20
|
+
init(chartData: any[], settings?: {
|
|
21
|
+
paramName: string;
|
|
22
|
+
paramValue: number;
|
|
23
|
+
lineColor: string;
|
|
24
|
+
lineWidth: number;
|
|
25
|
+
}[]): void;
|
|
26
|
+
getSeries(): {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
};
|
|
29
|
+
getParams(): IIndicatorInfo[];
|
|
30
|
+
setStyles(styles: any): void;
|
|
31
|
+
setVisible(visible: boolean): void;
|
|
32
|
+
destroy(): void;
|
|
33
|
+
updateData(chartData: any[]): void;
|
|
34
|
+
updateSettings(chartData: any[], settings: IIndicatorInfo[]): void;
|
|
35
|
+
updateThme(theme: ThemeConfig): void;
|
|
36
|
+
onSettingsClick(subChartIndicatorType: SubChartIndicatorType): void;
|
|
37
|
+
onCloseClick(subChartIndicatorType: SubChartIndicatorType): void;
|
|
38
|
+
handleMouseDown(poin: Point): void;
|
|
39
|
+
handleMouseMove(poin: Point): void;
|
|
40
|
+
handleMouseUp(poin: Point): void;
|
|
41
|
+
handleCrosshairMoveEvent(event: MouseEventParams): void;
|
|
42
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MouseEventParams } from 'lightweight-charts';
|
|
2
|
+
import { IIndicatorInfo } from '../../Indicators/SubChart/IIndicator';
|
|
3
|
+
import { BaseChartPane } from '../Panes/BaseChartPane';
|
|
4
|
+
export declare class ADX extends BaseChartPane {
|
|
5
|
+
seriesMap: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
private adxIndicator;
|
|
9
|
+
private currentValues;
|
|
10
|
+
private adxIndicatorInfo;
|
|
11
|
+
init(chartData: any[], settings?: IIndicatorInfo[]): void;
|
|
12
|
+
updateSettings(chartData: any[], settings?: IIndicatorInfo[]): void;
|
|
13
|
+
private getCurrentValue;
|
|
14
|
+
private updateInfoParams;
|
|
15
|
+
protected getPriceScaleOptions(): any;
|
|
16
|
+
updateData(chartData: any[]): void;
|
|
17
|
+
getSeries(): {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
};
|
|
20
|
+
updateIndicatorSettings(settings: IIndicatorInfo): void;
|
|
21
|
+
getParams(): IIndicatorInfo[];
|
|
22
|
+
getIndicatorSettings(): IIndicatorInfo | null;
|
|
23
|
+
destroy(): void;
|
|
24
|
+
handleCrosshairMoveEvent(event: MouseEventParams): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MouseEventParams } from 'lightweight-charts';
|
|
2
|
+
import { IIndicatorInfo } from '../../Indicators/SubChart/IIndicator';
|
|
3
|
+
import { BaseChartPane } from '../Panes/BaseChartPane';
|
|
4
|
+
export declare class ATR extends BaseChartPane {
|
|
5
|
+
seriesMap: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
private atrIndicator;
|
|
9
|
+
private currentValues;
|
|
10
|
+
private atrIndicatorInfo;
|
|
11
|
+
init(chartData: any[], settings?: IIndicatorInfo[]): void;
|
|
12
|
+
updateSettings(chartData: any[], settings?: IIndicatorInfo[]): void;
|
|
13
|
+
getParams(): IIndicatorInfo[];
|
|
14
|
+
private getCurrentValue;
|
|
15
|
+
private updateInfoParams;
|
|
16
|
+
protected getPriceScaleOptions(): any;
|
|
17
|
+
updateData(chartData: any[]): void;
|
|
18
|
+
getSeries(): {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
};
|
|
21
|
+
updateIndicatorSettings(settings: IIndicatorInfo): void;
|
|
22
|
+
getIndicatorSettings(): IIndicatorInfo | null;
|
|
23
|
+
destroy(): void;
|
|
24
|
+
handleCrosshairMoveEvent(event: MouseEventParams): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { MouseEventParams } from 'lightweight-charts';
|
|
2
|
+
import { BaseChartPane } from '../Panes/BaseChartPane';
|
|
3
|
+
import { IIndicatorInfo } from '../../Indicators/SubChart/IIndicator';
|
|
4
|
+
export declare class BBWidth extends BaseChartPane {
|
|
5
|
+
seriesMap: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
private bbWidthIndicator;
|
|
9
|
+
private currentValues;
|
|
10
|
+
private bbWidthIndicatorInfo;
|
|
11
|
+
init(chartData: any[], settings?: IIndicatorInfo[]): void;
|
|
12
|
+
updateSettings(chartData: any[], settings?: IIndicatorInfo[]): void;
|
|
13
|
+
private getCurrentValue;
|
|
14
|
+
private updateInfoParams;
|
|
15
|
+
getParams(): IIndicatorInfo[];
|
|
16
|
+
protected getPriceScaleOptions(): any;
|
|
17
|
+
updateData(chartData: any[]): void;
|
|
18
|
+
getSeries(): {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
};
|
|
21
|
+
updateIndicatorSettings(settings: IIndicatorInfo): void;
|
|
22
|
+
getIndicatorSettings(): IIndicatorInfo | null;
|
|
23
|
+
destroy(): void;
|
|
24
|
+
handleCrosshairMoveEvent(event: MouseEventParams): void;
|
|
25
|
+
protected calculateIndicatorData(chartData: any[]): any[];
|
|
26
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MouseEventParams } from 'lightweight-charts';
|
|
2
|
+
import { IIndicatorInfo } from '../../Indicators/SubChart/IIndicator';
|
|
3
|
+
import { BaseChartPane } from '../Panes/BaseChartPane';
|
|
4
|
+
export declare class CCI extends BaseChartPane {
|
|
5
|
+
seriesMap: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
private cciIndicator;
|
|
9
|
+
private currentValues;
|
|
10
|
+
private cciIndicatorInfo;
|
|
11
|
+
init(chartData: any[], settings?: IIndicatorInfo[]): void;
|
|
12
|
+
updateSettings(chartData: any[], settings?: IIndicatorInfo[]): void;
|
|
13
|
+
getParams(): IIndicatorInfo[];
|
|
14
|
+
private getCurrentValue;
|
|
15
|
+
private updateInfoParams;
|
|
16
|
+
protected getPriceScaleOptions(): any;
|
|
17
|
+
updateData(chartData: any[]): void;
|
|
18
|
+
getSeries(): {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
};
|
|
21
|
+
updateIndicatorSettings(settings: IIndicatorInfo): void;
|
|
22
|
+
getIndicatorSettings(): IIndicatorInfo | null;
|
|
23
|
+
destroy(): void;
|
|
24
|
+
handleCrosshairMoveEvent(event: MouseEventParams): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { MouseEventParams } from 'lightweight-charts';
|
|
2
|
+
import { IIndicatorInfo } from '../../Indicators/SubChart/IIndicator';
|
|
3
|
+
import { BaseChartPane } from '../Panes/BaseChartPane';
|
|
4
|
+
export declare class KDJ extends BaseChartPane {
|
|
5
|
+
private seriesMap;
|
|
6
|
+
private kdjIndicator;
|
|
7
|
+
private currentValues;
|
|
8
|
+
private kdjIndicatorInfo;
|
|
9
|
+
init(chartData: any[], settings?: IIndicatorInfo[]): void;
|
|
10
|
+
updateSettings(chartData: any[], settings?: IIndicatorInfo[]): void;
|
|
11
|
+
private getCurrentValue;
|
|
12
|
+
private updateInfoParams;
|
|
13
|
+
protected getPriceScaleOptions(): any;
|
|
14
|
+
updateData(chartData: any[]): void;
|
|
15
|
+
getSeries(): {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
updateIndicatorSettings(settings: IIndicatorInfo): void;
|
|
19
|
+
getParams(): IIndicatorInfo[];
|
|
20
|
+
getIndicatorSettings(): IIndicatorInfo | null;
|
|
21
|
+
destroy(): void;
|
|
22
|
+
handleCrosshairMoveEvent(event: MouseEventParams): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { MouseEventParams } from 'lightweight-charts';
|
|
2
|
+
import { IIndicatorInfo } from '../../Indicators/SubChart/IIndicator';
|
|
3
|
+
import { BaseChartPane } from '../Panes/BaseChartPane';
|
|
4
|
+
export declare class MACD extends BaseChartPane {
|
|
5
|
+
private seriesMap;
|
|
6
|
+
private macdIndicator;
|
|
7
|
+
private currentValues;
|
|
8
|
+
private macdIndicatorInfo;
|
|
9
|
+
init(chartData: any[], settings?: IIndicatorInfo[]): void;
|
|
10
|
+
updateSettings(chartData: any[], settings?: IIndicatorInfo[]): void;
|
|
11
|
+
private getCurrentValue;
|
|
12
|
+
private updateInfoParams;
|
|
13
|
+
protected getPriceScaleOptions(): any;
|
|
14
|
+
updateData(chartData: any[]): void;
|
|
15
|
+
getSeries(): {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
updateIndicatorSettings(settings: IIndicatorInfo): void;
|
|
19
|
+
getParams(): IIndicatorInfo[];
|
|
20
|
+
getIndicatorSettings(): IIndicatorInfo | null;
|
|
21
|
+
destroy(): void;
|
|
22
|
+
handleCrosshairMoveEvent(event: MouseEventParams): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { MouseEventParams } from 'lightweight-charts';
|
|
2
|
+
import { IIndicatorInfo } from '../../Indicators/SubChart/IIndicator';
|
|
3
|
+
import { BaseChartPane } from '../Panes/BaseChartPane';
|
|
4
|
+
export declare class OBV extends BaseChartPane {
|
|
5
|
+
private seriesMap;
|
|
6
|
+
private obvIndicator;
|
|
7
|
+
private currentValues;
|
|
8
|
+
private obvIndicatorInfo;
|
|
9
|
+
init(chartData: any[], settings?: IIndicatorInfo[]): void;
|
|
10
|
+
updateSettings(chartData: any[], settings?: IIndicatorInfo[]): void;
|
|
11
|
+
private getCurrentValue;
|
|
12
|
+
private updateInfoParams;
|
|
13
|
+
protected getPriceScaleOptions(): any;
|
|
14
|
+
updateData(chartData: any[]): void;
|
|
15
|
+
getSeries(): {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
updateIndicatorSettings(settings: IIndicatorInfo): void;
|
|
19
|
+
getParams(): IIndicatorInfo[];
|
|
20
|
+
getIndicatorSettings(): IIndicatorInfo | null;
|
|
21
|
+
destroy(): void;
|
|
22
|
+
handleCrosshairMoveEvent(event: MouseEventParams): void;
|
|
23
|
+
protected calculateIndicatorData(chartData: any[]): any[];
|
|
24
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MouseEventParams } from 'lightweight-charts';
|
|
2
|
+
import { IIndicatorInfo } from '../../Indicators/SubChart/IIndicator';
|
|
3
|
+
import { BaseChartPane } from '../Panes/BaseChartPane';
|
|
4
|
+
export declare class RSI extends BaseChartPane {
|
|
5
|
+
seriesMap: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
private rsiIndicator;
|
|
9
|
+
private currentValues;
|
|
10
|
+
private rsiIndicatorInfo;
|
|
11
|
+
init(chartData: any[], settings?: IIndicatorInfo[]): void;
|
|
12
|
+
updateSettings(chartData: any[], settings?: IIndicatorInfo[]): void;
|
|
13
|
+
getParams(): IIndicatorInfo[];
|
|
14
|
+
private getCurrentValue;
|
|
15
|
+
private updateInfoParams;
|
|
16
|
+
protected getPriceScaleOptions(): any;
|
|
17
|
+
updateData(chartData: any[]): void;
|
|
18
|
+
getSeries(): {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
};
|
|
21
|
+
updateIndicatorSettings(settings: IIndicatorInfo): void;
|
|
22
|
+
getIndicatorSettings(): IIndicatorInfo | null;
|
|
23
|
+
destroy(): void;
|
|
24
|
+
handleCrosshairMoveEvent(event: MouseEventParams): void;
|
|
25
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { MouseEventParams } from 'lightweight-charts';
|
|
2
|
+
import { IIndicatorInfo } from '../../Indicators/SubChart/IIndicator';
|
|
3
|
+
import { BaseChartPane } from '../Panes/BaseChartPane';
|
|
4
|
+
export declare class SAR extends BaseChartPane {
|
|
5
|
+
private seriesMap;
|
|
6
|
+
private sarIndicator;
|
|
7
|
+
private currentValues;
|
|
8
|
+
private sarIndicatorInfo;
|
|
9
|
+
init(chartData: any[], settings?: IIndicatorInfo[]): void;
|
|
10
|
+
updateSettings(chartData: any[], settings?: IIndicatorInfo[]): void;
|
|
11
|
+
private getCurrentValue;
|
|
12
|
+
private updateInfoParams;
|
|
13
|
+
protected getPriceScaleOptions(): any;
|
|
14
|
+
updateData(chartData: any[]): void;
|
|
15
|
+
getSeries(): {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
updateIndicatorSettings(settings: IIndicatorInfo): void;
|
|
19
|
+
getParams(): IIndicatorInfo[];
|
|
20
|
+
getIndicatorSettings(): IIndicatorInfo | null;
|
|
21
|
+
destroy(): void;
|
|
22
|
+
handleCrosshairMoveEvent(event: MouseEventParams): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { MouseEventParams } from 'lightweight-charts';
|
|
2
|
+
import { IIndicatorInfo } from '../../Indicators/SubChart/IIndicator';
|
|
3
|
+
import { BaseChartPane } from '../Panes/BaseChartPane';
|
|
4
|
+
export declare class Stochastic extends BaseChartPane {
|
|
5
|
+
private seriesMap;
|
|
6
|
+
private stochasticIndicator;
|
|
7
|
+
private currentValues;
|
|
8
|
+
private stochasticIndicatorInfo;
|
|
9
|
+
init(chartData: any[], settings?: IIndicatorInfo[]): void;
|
|
10
|
+
updateSettings(chartData: any[], settings?: IIndicatorInfo[]): void;
|
|
11
|
+
getParams(): IIndicatorInfo[];
|
|
12
|
+
private getCurrentValue;
|
|
13
|
+
private updateInfoParams;
|
|
14
|
+
protected getPriceScaleOptions(): any;
|
|
15
|
+
updateData(chartData: any[]): void;
|
|
16
|
+
getSeries(): {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
};
|
|
19
|
+
updateIndicatorSettings(settings: IIndicatorInfo): void;
|
|
20
|
+
getIndicatorSettings(): IIndicatorInfo | null;
|
|
21
|
+
destroy(): void;
|
|
22
|
+
handleCrosshairMoveEvent(event: MouseEventParams): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { MouseEventParams } from 'lightweight-charts';
|
|
2
|
+
import { IIndicatorInfo } from '../../Indicators/SubChart/IIndicator';
|
|
3
|
+
import { BaseChartPane } from '../Panes/BaseChartPane';
|
|
4
|
+
export declare class Volume extends BaseChartPane {
|
|
5
|
+
private seriesMap;
|
|
6
|
+
private volumeIndicator;
|
|
7
|
+
private currentValues;
|
|
8
|
+
private _default;
|
|
9
|
+
private volumeIndicatorInfo;
|
|
10
|
+
init(chartData: any[], settings?: IIndicatorInfo[]): void;
|
|
11
|
+
updateSettings(chartData: any[], settings?: IIndicatorInfo[]): void;
|
|
12
|
+
getParams(): IIndicatorInfo[];
|
|
13
|
+
private getCurrentValue;
|
|
14
|
+
private updateInfoParams;
|
|
15
|
+
protected getPriceScaleOptions(): any;
|
|
16
|
+
updateData(chartData: any[]): void;
|
|
17
|
+
getSeries(): {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
};
|
|
20
|
+
updateIndicatorSettings(settings: IIndicatorInfo): void;
|
|
21
|
+
getIndicatorSettings(): IIndicatorInfo | null;
|
|
22
|
+
destroy(): void;
|
|
23
|
+
handleCrosshairMoveEvent(event: MouseEventParams): void;
|
|
24
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { MarkDrawing, Point } from '../../types';
|
|
3
|
+
import { ThemeConfig } from '../../Theme';
|
|
4
|
+
import { I18n } from '../../I18n';
|
|
5
|
+
interface GraphMarkToolBarProps {
|
|
6
|
+
position: Point;
|
|
7
|
+
selectedDrawing: MarkDrawing | null;
|
|
8
|
+
theme: ThemeConfig;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
onDelete: () => void;
|
|
11
|
+
onChangeColor: (color: string) => void;
|
|
12
|
+
onChangeStyle: (lineStyle: 'solid' | 'dashed' | 'dotted') => void;
|
|
13
|
+
onChangeWidth: (width: number) => void;
|
|
14
|
+
onEditText?: () => void;
|
|
15
|
+
onDragStart: (point: Point) => void;
|
|
16
|
+
isDragging: boolean;
|
|
17
|
+
getToolName: (toolId: string) => string;
|
|
18
|
+
onPanelChange?: (panel: 'color' | 'style' | null) => void;
|
|
19
|
+
i18n: I18n;
|
|
20
|
+
}
|
|
21
|
+
interface GraphMarkToolBarState {
|
|
22
|
+
activePanel: 'color' | 'style' | 'lineSize' | 'lineStyle' | null;
|
|
23
|
+
lineWidth: number;
|
|
24
|
+
lineStyle: 'solid' | 'dashed' | 'dotted';
|
|
25
|
+
isBold: boolean;
|
|
26
|
+
isItalic: boolean;
|
|
27
|
+
currentColor: string;
|
|
28
|
+
}
|
|
29
|
+
export declare class GraphMarkToolBar extends React.Component<GraphMarkToolBarProps, GraphMarkToolBarState> {
|
|
30
|
+
private toolbarRef;
|
|
31
|
+
constructor(props: GraphMarkToolBarProps);
|
|
32
|
+
componentDidMount(): void;
|
|
33
|
+
componentWillUnmount(): void;
|
|
34
|
+
componentDidUpdate(prevProps: GraphMarkToolBarProps): void;
|
|
35
|
+
private handleDocumentClick;
|
|
36
|
+
private stopPropagation;
|
|
37
|
+
private handleDragStart;
|
|
38
|
+
private handleButtonClick;
|
|
39
|
+
private handleClosePanel;
|
|
40
|
+
private handleColorChange;
|
|
41
|
+
private handleLineSizeChange;
|
|
42
|
+
private handleLineStyleChange;
|
|
43
|
+
private renderDragHandle;
|
|
44
|
+
private renderIconButton;
|
|
45
|
+
private renderColorPanel;
|
|
46
|
+
private renderLineSizeDropdown;
|
|
47
|
+
private renderLineStyleDropdown;
|
|
48
|
+
private renderMainToolbar;
|
|
49
|
+
render(): import("react/jsx-runtime").JSX.Element | null;
|
|
50
|
+
}
|
|
51
|
+
export {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { MarkDrawing, Point } from '../../types';
|
|
3
|
+
import { ThemeConfig } from '../../Theme';
|
|
4
|
+
import { I18n } from '../../I18n';
|
|
5
|
+
interface TextMarkToolBarProps {
|
|
6
|
+
position: Point;
|
|
7
|
+
selectedDrawing: MarkDrawing | null;
|
|
8
|
+
theme: ThemeConfig;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
onDelete: () => void;
|
|
11
|
+
onChangeTextColor: (color: string) => void;
|
|
12
|
+
onChangeTextStyle: (style: {
|
|
13
|
+
isBold?: boolean;
|
|
14
|
+
isItalic?: boolean;
|
|
15
|
+
}) => void;
|
|
16
|
+
onChangeTextSize: (size: number) => void;
|
|
17
|
+
onChangeGraphColor: (color: string) => void;
|
|
18
|
+
onChangeGraphStyle: (lineStyle: 'solid' | 'dashed' | 'dotted') => void;
|
|
19
|
+
onChangeGraphLineWidth: (width: number) => void;
|
|
20
|
+
onEditText?: () => void;
|
|
21
|
+
onDragStart: (point: Point) => void;
|
|
22
|
+
isDragging: boolean;
|
|
23
|
+
getToolName: (toolId: string) => string;
|
|
24
|
+
onPanelChange?: (panel: 'color' | 'style' | null) => void;
|
|
25
|
+
isShowGrapTool?: boolean;
|
|
26
|
+
i18n: I18n;
|
|
27
|
+
}
|
|
28
|
+
interface TextMarkToolBarState {
|
|
29
|
+
activePanel: 'color' | 'style' | 'fontSize' | 'graphColor' | 'graphLineSize' | 'graphLineStyle' | null;
|
|
30
|
+
fontSize: number;
|
|
31
|
+
isBold: boolean;
|
|
32
|
+
isItalic: boolean;
|
|
33
|
+
fontColor: string;
|
|
34
|
+
graphColor: string;
|
|
35
|
+
graphWidth: number;
|
|
36
|
+
graphStyle: 'solid' | 'dashed' | 'dotted';
|
|
37
|
+
}
|
|
38
|
+
export declare class TextMarkToolBar extends React.Component<TextMarkToolBarProps, TextMarkToolBarState> {
|
|
39
|
+
private toolbarRef;
|
|
40
|
+
constructor(props: TextMarkToolBarProps);
|
|
41
|
+
componentDidMount(): void;
|
|
42
|
+
componentWillUnmount(): void;
|
|
43
|
+
private handleDocumentClick;
|
|
44
|
+
private stopPropagation;
|
|
45
|
+
private handleDragStart;
|
|
46
|
+
private handleButtonClick;
|
|
47
|
+
private handleClosePanel;
|
|
48
|
+
private handleColorChange;
|
|
49
|
+
private handleFontSizeChange;
|
|
50
|
+
private handleGraphColorChange;
|
|
51
|
+
private handleGraphStyleChange;
|
|
52
|
+
private handleGraphLineWidthChange;
|
|
53
|
+
private toggleBold;
|
|
54
|
+
private toggleItalic;
|
|
55
|
+
private renderGraphColorPanel;
|
|
56
|
+
private renderGraphLineSizeDropdown;
|
|
57
|
+
private renderGraphLineStyleDropdown;
|
|
58
|
+
private renderDragHandle;
|
|
59
|
+
private renderIconButton;
|
|
60
|
+
private renderColorPanel;
|
|
61
|
+
private renderFontSizePanel;
|
|
62
|
+
renderMainToolbar(): import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
render(): import("react/jsx-runtime").JSX.Element | null;
|
|
64
|
+
}
|
|
65
|
+
export {};
|