candleview 1.0.3 → 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/{index.cjs.js → candleview.js} +0 -1
- package/dist/{index.esm.js → candleview.mjs} +0 -1
- 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 +5 -3
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.esm.js.map +0 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
+
import { FibonacciWedgeMark } from '../../Mark/Fibonacci/FibonacciWedgeMark';
|
|
3
|
+
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
4
|
+
import { Point } from '../../types';
|
|
5
|
+
export interface FibonacciWedgeMarkManagerProps {
|
|
6
|
+
chartSeries: ChartSeries | null;
|
|
7
|
+
chart: any;
|
|
8
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
+
onCloseDrawing?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface FibonacciWedgeMarkState {
|
|
12
|
+
isFibonacciWedgeMode: boolean;
|
|
13
|
+
fibonacciWedgePoints: Point[];
|
|
14
|
+
currentFibonacciWedge: FibonacciWedgeMark | null;
|
|
15
|
+
isDragging: boolean;
|
|
16
|
+
dragTarget: FibonacciWedgeMark | null;
|
|
17
|
+
dragPoint: 'center' | 'radius' | 'angle' | 'wedge' | null;
|
|
18
|
+
}
|
|
19
|
+
export declare class FibonacciWedgeMarkManager implements IMarkManager<FibonacciWedgeMark> {
|
|
20
|
+
private props;
|
|
21
|
+
private state;
|
|
22
|
+
private previewFibonacciWedgeMark;
|
|
23
|
+
private fibonacciWedgeMarks;
|
|
24
|
+
private dragStartData;
|
|
25
|
+
private isOperating;
|
|
26
|
+
constructor(props: FibonacciWedgeMarkManagerProps);
|
|
27
|
+
clearState(): void;
|
|
28
|
+
getMarkAtPoint(point: Point): FibonacciWedgeMark | null;
|
|
29
|
+
getCurrentDragTarget(): FibonacciWedgeMark | null;
|
|
30
|
+
getCurrentDragPoint(): string | null;
|
|
31
|
+
getCurrentOperatingMark(): FibonacciWedgeMark | null;
|
|
32
|
+
getAllMarks(): FibonacciWedgeMark[];
|
|
33
|
+
cancelOperationMode(): FibonacciWedgeMarkState;
|
|
34
|
+
setFibonacciWedgeMode: () => FibonacciWedgeMarkState;
|
|
35
|
+
cancelFibonacciWedgeMode: () => FibonacciWedgeMarkState;
|
|
36
|
+
handleMouseDown: (point: Point) => FibonacciWedgeMarkState;
|
|
37
|
+
private coordinateToPriceFallback;
|
|
38
|
+
private priceToCoordinateFallback;
|
|
39
|
+
handleMouseMove: (point: Point) => void;
|
|
40
|
+
private isPointInsideWedge;
|
|
41
|
+
private isPointNearLine;
|
|
42
|
+
private distanceToLine;
|
|
43
|
+
handleMouseUp: (point: Point) => FibonacciWedgeMarkState;
|
|
44
|
+
handleKeyDown: (event: KeyboardEvent) => FibonacciWedgeMarkState;
|
|
45
|
+
getState(): FibonacciWedgeMarkState;
|
|
46
|
+
updateProps(newProps: Partial<FibonacciWedgeMarkManagerProps>): void;
|
|
47
|
+
destroy(): void;
|
|
48
|
+
getFibonacciWedgeMarks(): FibonacciWedgeMark[];
|
|
49
|
+
removeFibonacciWedgeMark(mark: FibonacciWedgeMark): void;
|
|
50
|
+
isOperatingOnChart(): boolean;
|
|
51
|
+
private hiddenMarks;
|
|
52
|
+
hideAllMarks(): void;
|
|
53
|
+
showAllMarks(): void;
|
|
54
|
+
hideMark(mark: FibonacciWedgeMark): void;
|
|
55
|
+
showMark(mark: FibonacciWedgeMark): void;
|
|
56
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
+
import { AndrewPitchforkMark } from '../../Mark/Fork/AndrewPitchforkMark';
|
|
3
|
+
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
4
|
+
import { Point } from '../../types';
|
|
5
|
+
export interface AndrewPitchforkMarkManagerProps {
|
|
6
|
+
chartSeries: ChartSeries | null;
|
|
7
|
+
chart: any;
|
|
8
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
+
onCloseDrawing?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface AndrewPitchforkMarkState {
|
|
12
|
+
isAndrewPitchforkMode: boolean;
|
|
13
|
+
andrewPitchforkHandlePoint: Point | null;
|
|
14
|
+
andrewPitchforkBaseStartPoint: Point | null;
|
|
15
|
+
currentAndrewPitchfork: AndrewPitchforkMark | null;
|
|
16
|
+
isDragging: boolean;
|
|
17
|
+
dragTarget: AndrewPitchforkMark | null;
|
|
18
|
+
dragPoint: 'handle' | 'baseStart' | 'baseEnd' | 'line' | null;
|
|
19
|
+
drawingPhase: 'handle' | 'baseStart' | 'baseEnd' | 'none';
|
|
20
|
+
adjustingMode: 'handle' | 'baseStart' | 'baseEnd' | null;
|
|
21
|
+
adjustStartData: {
|
|
22
|
+
handleTime: number;
|
|
23
|
+
handlePrice: number;
|
|
24
|
+
baseStartTime: number;
|
|
25
|
+
baseStartPrice: number;
|
|
26
|
+
baseEndTime: number;
|
|
27
|
+
baseEndPrice: number;
|
|
28
|
+
} | null;
|
|
29
|
+
}
|
|
30
|
+
export declare class AndrewPitchforkMarkManager implements IMarkManager<AndrewPitchforkMark> {
|
|
31
|
+
private props;
|
|
32
|
+
private state;
|
|
33
|
+
private previewAndrewPitchfork;
|
|
34
|
+
private andrewPitchforkMarks;
|
|
35
|
+
private dragStartData;
|
|
36
|
+
private isOperating;
|
|
37
|
+
private handleTime;
|
|
38
|
+
private handlePrice;
|
|
39
|
+
private baseStartTime;
|
|
40
|
+
private baseStartPrice;
|
|
41
|
+
private baseEndTime;
|
|
42
|
+
private baseEndPrice;
|
|
43
|
+
constructor(props: AndrewPitchforkMarkManagerProps);
|
|
44
|
+
clearState(): void;
|
|
45
|
+
getMarkAtPoint(point: Point): AndrewPitchforkMark | null;
|
|
46
|
+
getCurrentDragTarget(): AndrewPitchforkMark | null;
|
|
47
|
+
getCurrentDragPoint(): string | null;
|
|
48
|
+
getCurrentOperatingMark(): AndrewPitchforkMark | null;
|
|
49
|
+
getAllMarks(): AndrewPitchforkMark[];
|
|
50
|
+
cancelOperationMode(): AndrewPitchforkMarkState;
|
|
51
|
+
setAndrewPitchforkMode: () => AndrewPitchforkMarkState;
|
|
52
|
+
cancelAndrewPitchforkMode: () => AndrewPitchforkMarkState;
|
|
53
|
+
handleMouseDown: (point: Point) => AndrewPitchforkMarkState;
|
|
54
|
+
private handleDrawingPhaseMouseDown;
|
|
55
|
+
private isPointNearLine;
|
|
56
|
+
private pointToLineDistance;
|
|
57
|
+
handleMouseMove: (point: Point) => void;
|
|
58
|
+
handleMouseUp: (point: Point) => AndrewPitchforkMarkState;
|
|
59
|
+
handleKeyDown: (event: KeyboardEvent) => AndrewPitchforkMarkState;
|
|
60
|
+
getState(): AndrewPitchforkMarkState;
|
|
61
|
+
updateProps(newProps: Partial<AndrewPitchforkMarkManagerProps>): void;
|
|
62
|
+
destroy(): void;
|
|
63
|
+
getAndrewPitchforkMarks(): AndrewPitchforkMark[];
|
|
64
|
+
removeAndrewPitchforkMark(mark: AndrewPitchforkMark): void;
|
|
65
|
+
isOperatingOnChart(): boolean;
|
|
66
|
+
private hiddenMarks;
|
|
67
|
+
hideAllMarks(): void;
|
|
68
|
+
showAllMarks(): void;
|
|
69
|
+
hideMark(mark: AndrewPitchforkMark): void;
|
|
70
|
+
showMark(mark: AndrewPitchforkMark): void;
|
|
71
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
+
import { EnhancedAndrewPitchforkMark } from '../../Mark/Fork/EnhancedAndrewPitchforkMark';
|
|
3
|
+
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
4
|
+
import { Point } from '../../types';
|
|
5
|
+
export interface EnhancedAndrewPitchforkMarkManagerProps {
|
|
6
|
+
chartSeries: ChartSeries | null;
|
|
7
|
+
chart: any;
|
|
8
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
+
onCloseDrawing?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface EnhancedAndrewPitchforkMarkState {
|
|
12
|
+
isEnhancedAndrewPitchforkMode: boolean;
|
|
13
|
+
enhancedAndrewPitchforkHandlePoint: Point | null;
|
|
14
|
+
enhancedAndrewPitchforkBaseStartPoint: Point | null;
|
|
15
|
+
currentEnhancedAndrewPitchfork: EnhancedAndrewPitchforkMark | null;
|
|
16
|
+
isDragging: boolean;
|
|
17
|
+
dragTarget: EnhancedAndrewPitchforkMark | null;
|
|
18
|
+
dragPoint: 'handle' | 'baseStart' | 'baseEnd' | 'line' | null;
|
|
19
|
+
drawingPhase: 'handle' | 'baseStart' | 'baseEnd' | 'none';
|
|
20
|
+
adjustingMode: 'handle' | 'baseStart' | 'baseEnd' | null;
|
|
21
|
+
adjustStartData: {
|
|
22
|
+
handleTime: number;
|
|
23
|
+
handlePrice: number;
|
|
24
|
+
baseStartTime: number;
|
|
25
|
+
baseStartPrice: number;
|
|
26
|
+
baseEndTime: number;
|
|
27
|
+
baseEndPrice: number;
|
|
28
|
+
} | null;
|
|
29
|
+
}
|
|
30
|
+
export declare class EnhancedAndrewPitchforkMarkManager implements IMarkManager<EnhancedAndrewPitchforkMark> {
|
|
31
|
+
private props;
|
|
32
|
+
private state;
|
|
33
|
+
private previewEnhancedAndrewPitchfork;
|
|
34
|
+
private enhancedAndrewPitchforkMarks;
|
|
35
|
+
private dragStartData;
|
|
36
|
+
private isOperating;
|
|
37
|
+
private handleTime;
|
|
38
|
+
private handlePrice;
|
|
39
|
+
private baseStartTime;
|
|
40
|
+
private baseStartPrice;
|
|
41
|
+
private baseEndTime;
|
|
42
|
+
private baseEndPrice;
|
|
43
|
+
constructor(props: EnhancedAndrewPitchforkMarkManagerProps);
|
|
44
|
+
clearState(): void;
|
|
45
|
+
getMarkAtPoint(point: Point): EnhancedAndrewPitchforkMark | null;
|
|
46
|
+
getCurrentDragTarget(): EnhancedAndrewPitchforkMark | null;
|
|
47
|
+
getCurrentDragPoint(): string | null;
|
|
48
|
+
getCurrentOperatingMark(): EnhancedAndrewPitchforkMark | null;
|
|
49
|
+
getAllMarks(): EnhancedAndrewPitchforkMark[];
|
|
50
|
+
cancelOperationMode(): EnhancedAndrewPitchforkMarkState;
|
|
51
|
+
setEnhancedAndrewPitchforkMode: () => EnhancedAndrewPitchforkMarkState;
|
|
52
|
+
cancelEnhancedAndrewPitchforkMode: () => EnhancedAndrewPitchforkMarkState;
|
|
53
|
+
handleMouseDown: (point: Point) => EnhancedAndrewPitchforkMarkState;
|
|
54
|
+
private handleDrawingPhaseMouseDown;
|
|
55
|
+
private isPointNearLine;
|
|
56
|
+
private pointToLineDistance;
|
|
57
|
+
handleMouseMove: (point: Point) => void;
|
|
58
|
+
handleMouseUp: (point: Point) => EnhancedAndrewPitchforkMarkState;
|
|
59
|
+
handleKeyDown: (event: KeyboardEvent) => EnhancedAndrewPitchforkMarkState;
|
|
60
|
+
getState(): EnhancedAndrewPitchforkMarkState;
|
|
61
|
+
updateProps(newProps: Partial<EnhancedAndrewPitchforkMarkManagerProps>): void;
|
|
62
|
+
destroy(): void;
|
|
63
|
+
getEnhancedAndrewPitchforkMarks(): EnhancedAndrewPitchforkMark[];
|
|
64
|
+
removeEnhancedAndrewPitchforkMark(mark: EnhancedAndrewPitchforkMark): void;
|
|
65
|
+
isOperatingOnChart(): boolean;
|
|
66
|
+
private hiddenMarks;
|
|
67
|
+
hideAllMarks(): void;
|
|
68
|
+
showAllMarks(): void;
|
|
69
|
+
hideMark(mark: EnhancedAndrewPitchforkMark): void;
|
|
70
|
+
showMark(mark: EnhancedAndrewPitchforkMark): void;
|
|
71
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
+
import { SchiffPitchforkMark } from '../../Mark/Fork/SchiffPitchforkMark';
|
|
3
|
+
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
4
|
+
import { Point } from '../../types';
|
|
5
|
+
export interface SchiffPitchforkMarkManagerProps {
|
|
6
|
+
chartSeries: ChartSeries | null;
|
|
7
|
+
chart: any;
|
|
8
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
+
onCloseDrawing?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface SchiffPitchforkMarkState {
|
|
12
|
+
isSchiffPitchforkMode: boolean;
|
|
13
|
+
schiffPitchforkHandlePoint: Point | null;
|
|
14
|
+
schiffPitchforkBaseStartPoint: Point | null;
|
|
15
|
+
schiffPitchforkExtensionPoint: Point | null;
|
|
16
|
+
currentSchiffPitchfork: SchiffPitchforkMark | null;
|
|
17
|
+
isDragging: boolean;
|
|
18
|
+
dragTarget: SchiffPitchforkMark | null;
|
|
19
|
+
dragPoint: 'handle' | 'baseStart' | 'baseEnd' | 'extension' | 'line' | null;
|
|
20
|
+
drawingPhase: 'handle' | 'baseStart' | 'baseEnd' | 'extension' | 'none';
|
|
21
|
+
adjustingMode: 'handle' | 'baseStart' | 'baseEnd' | 'extension' | null;
|
|
22
|
+
adjustStartData: {
|
|
23
|
+
handleTime: number;
|
|
24
|
+
handlePrice: number;
|
|
25
|
+
baseStartTime: number;
|
|
26
|
+
baseStartPrice: number;
|
|
27
|
+
baseEndTime: number;
|
|
28
|
+
baseEndPrice: number;
|
|
29
|
+
extensionTime: number;
|
|
30
|
+
extensionPrice: number;
|
|
31
|
+
} | null;
|
|
32
|
+
}
|
|
33
|
+
export declare class SchiffPitchforkMarkManager implements IMarkManager<SchiffPitchforkMark> {
|
|
34
|
+
private props;
|
|
35
|
+
private state;
|
|
36
|
+
private previewSchiffPitchfork;
|
|
37
|
+
private schiffPitchforkMarks;
|
|
38
|
+
private dragStartData;
|
|
39
|
+
private isOperating;
|
|
40
|
+
private handleTime;
|
|
41
|
+
private handlePrice;
|
|
42
|
+
private baseStartTime;
|
|
43
|
+
private baseStartPrice;
|
|
44
|
+
private baseEndTime;
|
|
45
|
+
private baseEndPrice;
|
|
46
|
+
private extensionTime;
|
|
47
|
+
private extensionPrice;
|
|
48
|
+
constructor(props: SchiffPitchforkMarkManagerProps);
|
|
49
|
+
clearState(): void;
|
|
50
|
+
getMarkAtPoint(point: Point): SchiffPitchforkMark | null;
|
|
51
|
+
getCurrentDragTarget(): SchiffPitchforkMark | null;
|
|
52
|
+
getCurrentDragPoint(): string | null;
|
|
53
|
+
getCurrentOperatingMark(): SchiffPitchforkMark | null;
|
|
54
|
+
getAllMarks(): SchiffPitchforkMark[];
|
|
55
|
+
cancelOperationMode(): SchiffPitchforkMarkState;
|
|
56
|
+
setSchiffPitchforkMode: () => SchiffPitchforkMarkState;
|
|
57
|
+
cancelSchiffPitchforkMode: () => SchiffPitchforkMarkState;
|
|
58
|
+
handleMouseDown: (point: Point) => SchiffPitchforkMarkState;
|
|
59
|
+
private handleDrawingPhaseMouseDown;
|
|
60
|
+
private isPointNearLine;
|
|
61
|
+
private pointToLineDistance;
|
|
62
|
+
handleMouseMove: (point: Point) => void;
|
|
63
|
+
handleMouseUp: (point: Point) => SchiffPitchforkMarkState;
|
|
64
|
+
handleKeyDown: (event: KeyboardEvent) => SchiffPitchforkMarkState;
|
|
65
|
+
getState(): SchiffPitchforkMarkState;
|
|
66
|
+
updateProps(newProps: Partial<SchiffPitchforkMarkManagerProps>): void;
|
|
67
|
+
destroy(): void;
|
|
68
|
+
getSchiffPitchforkMarks(): SchiffPitchforkMark[];
|
|
69
|
+
removeSchiffPitchforkMark(mark: SchiffPitchforkMark): void;
|
|
70
|
+
isOperatingOnChart(): boolean;
|
|
71
|
+
private hiddenMarks;
|
|
72
|
+
hideAllMarks(): void;
|
|
73
|
+
showAllMarks(): void;
|
|
74
|
+
hideMark(mark: SchiffPitchforkMark): void;
|
|
75
|
+
showMark(mark: SchiffPitchforkMark): void;
|
|
76
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
+
import { GannBoxMark } from '../../Mark/Gann/GannBoxMark';
|
|
3
|
+
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
4
|
+
import { Point } from '../../types';
|
|
5
|
+
export interface GannBoxMarkManagerProps {
|
|
6
|
+
chartSeries: ChartSeries | null;
|
|
7
|
+
chart: any;
|
|
8
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
+
onCloseDrawing?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface GannBoxMarkState {
|
|
12
|
+
isGannBoxMode: boolean;
|
|
13
|
+
gannBoxStartPoint: Point | null;
|
|
14
|
+
currentGannBox: GannBoxMark | null;
|
|
15
|
+
isDragging: boolean;
|
|
16
|
+
dragTarget: GannBoxMark | null;
|
|
17
|
+
dragPoint: 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'box' | null;
|
|
18
|
+
isDrawing: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare class GannBoxMarkManager implements IMarkManager<GannBoxMark> {
|
|
21
|
+
private props;
|
|
22
|
+
private state;
|
|
23
|
+
private previewGannBox;
|
|
24
|
+
private gannBoxes;
|
|
25
|
+
private isOperating;
|
|
26
|
+
private dragStartData;
|
|
27
|
+
constructor(props: GannBoxMarkManagerProps);
|
|
28
|
+
clearState(): void;
|
|
29
|
+
getMarkAtPoint(point: Point): GannBoxMark | null;
|
|
30
|
+
getCurrentDragTarget(): GannBoxMark | null;
|
|
31
|
+
getCurrentDragPoint(): string | null;
|
|
32
|
+
getCurrentOperatingMark(): GannBoxMark | null;
|
|
33
|
+
getAllMarks(): GannBoxMark[];
|
|
34
|
+
cancelOperationMode(): GannBoxMarkState;
|
|
35
|
+
setGannBoxMode: () => GannBoxMarkState;
|
|
36
|
+
cancelGannBoxMode: () => GannBoxMarkState;
|
|
37
|
+
private getValidTimeFromCoordinate;
|
|
38
|
+
handleMouseDown: (point: Point) => GannBoxMarkState;
|
|
39
|
+
handleMouseMove: (point: Point) => void;
|
|
40
|
+
handleMouseUp: (point: Point) => GannBoxMarkState;
|
|
41
|
+
handleKeyDown: (event: KeyboardEvent) => GannBoxMarkState;
|
|
42
|
+
getState(): GannBoxMarkState;
|
|
43
|
+
updateProps(newProps: Partial<GannBoxMarkManagerProps>): void;
|
|
44
|
+
destroy(): void;
|
|
45
|
+
getGannBoxes(): GannBoxMark[];
|
|
46
|
+
removeGannBox(mark: GannBoxMark): void;
|
|
47
|
+
isOperatingOnChart(): boolean;
|
|
48
|
+
private hiddenMarks;
|
|
49
|
+
hideAllMarks(): void;
|
|
50
|
+
showAllMarks(): void;
|
|
51
|
+
hideMark(mark: GannBoxMark): void;
|
|
52
|
+
showMark(mark: GannBoxMark): void;
|
|
53
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
+
import { GannFanMark } from '../../Mark/Gann/GannFanMark';
|
|
3
|
+
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
4
|
+
import { Point } from '../../types';
|
|
5
|
+
export interface GannFanMarkManagerProps {
|
|
6
|
+
chartSeries: ChartSeries | null;
|
|
7
|
+
chart: any;
|
|
8
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
+
onCloseDrawing?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface GannFanMarkState {
|
|
12
|
+
isGannFanMode: boolean;
|
|
13
|
+
gannFanStartPoint: Point | null;
|
|
14
|
+
currentGannFan: GannFanMark | null;
|
|
15
|
+
isDragging: boolean;
|
|
16
|
+
dragTarget: GannFanMark | null;
|
|
17
|
+
dragPoint: 'start' | 'center' | 'fan' | null;
|
|
18
|
+
isDrawing: boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare class GannFanMarkManager implements IMarkManager<GannFanMark> {
|
|
21
|
+
private props;
|
|
22
|
+
private state;
|
|
23
|
+
private previewGannFan;
|
|
24
|
+
private gannFans;
|
|
25
|
+
private isOperating;
|
|
26
|
+
private dragStartData;
|
|
27
|
+
constructor(props: GannFanMarkManagerProps);
|
|
28
|
+
clearState(): void;
|
|
29
|
+
getMarkAtPoint(point: Point): GannFanMark | null;
|
|
30
|
+
getCurrentDragTarget(): GannFanMark | null;
|
|
31
|
+
getCurrentDragPoint(): string | null;
|
|
32
|
+
getCurrentOperatingMark(): GannFanMark | null;
|
|
33
|
+
getAllMarks(): GannFanMark[];
|
|
34
|
+
cancelOperationMode(): GannFanMarkState;
|
|
35
|
+
setGannFanMode: () => GannFanMarkState;
|
|
36
|
+
cancelGannFanMode: () => GannFanMarkState;
|
|
37
|
+
private getValidTimeFromCoordinate;
|
|
38
|
+
handleMouseDown: (point: Point) => GannFanMarkState;
|
|
39
|
+
handleMouseMove: (point: Point) => void;
|
|
40
|
+
handleMouseUp: (point: Point) => GannFanMarkState;
|
|
41
|
+
handleKeyDown: (event: KeyboardEvent) => GannFanMarkState;
|
|
42
|
+
getState(): GannFanMarkState;
|
|
43
|
+
updateProps(newProps: Partial<GannFanMarkManagerProps>): void;
|
|
44
|
+
destroy(): void;
|
|
45
|
+
getGannFans(): GannFanMark[];
|
|
46
|
+
removeGannFan(mark: GannFanMark): void;
|
|
47
|
+
isOperatingOnChart(): boolean;
|
|
48
|
+
private hiddenMarks;
|
|
49
|
+
hideAllMarks(): void;
|
|
50
|
+
showAllMarks(): void;
|
|
51
|
+
hideMark(mark: GannFanMark): void;
|
|
52
|
+
showMark(mark: GannFanMark): void;
|
|
53
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
+
import { GannRectangleMark } from '../../Mark/Gann/GannRectangleMark';
|
|
3
|
+
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
4
|
+
import { Point } from '../../types';
|
|
5
|
+
export interface GannRectangleMarkManagerProps {
|
|
6
|
+
chartSeries: ChartSeries | null;
|
|
7
|
+
chart: any;
|
|
8
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
+
onCloseDrawing?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface GannRectangleMarkState {
|
|
12
|
+
gannRectangleStartPoint: Point | null;
|
|
13
|
+
currentGannRectangle: GannRectangleMark | null;
|
|
14
|
+
isDragging: boolean;
|
|
15
|
+
dragTarget: GannRectangleMark | null;
|
|
16
|
+
dragPoint: 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'box' | null;
|
|
17
|
+
isDrawing: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare class GannRectangleMarkManager implements IMarkManager<GannRectangleMark> {
|
|
20
|
+
private props;
|
|
21
|
+
private state;
|
|
22
|
+
private previewGannRectang;
|
|
23
|
+
private gannBoxFans;
|
|
24
|
+
private isOperating;
|
|
25
|
+
private dragStartData;
|
|
26
|
+
constructor(props: GannRectangleMarkManagerProps);
|
|
27
|
+
clearState(): void;
|
|
28
|
+
getMarkAtPoint(point: Point): GannRectangleMark | null;
|
|
29
|
+
getCurrentDragTarget(): GannRectangleMark | null;
|
|
30
|
+
getCurrentDragPoint(): string | null;
|
|
31
|
+
getCurrentOperatingMark(): GannRectangleMark | null;
|
|
32
|
+
getAllMarks(): GannRectangleMark[];
|
|
33
|
+
cancelOperationMode(): GannRectangleMarkState;
|
|
34
|
+
setGannRectangMode: () => GannRectangleMarkState;
|
|
35
|
+
cancelGannRectangMode: () => GannRectangleMarkState;
|
|
36
|
+
private getValidTimeFromCoordinate;
|
|
37
|
+
handleMouseDown: (point: Point) => GannRectangleMarkState;
|
|
38
|
+
handleMouseMove: (point: Point) => void;
|
|
39
|
+
handleMouseUp: (point: Point) => GannRectangleMarkState;
|
|
40
|
+
handleKeyDown: (event: KeyboardEvent) => GannRectangleMarkState;
|
|
41
|
+
getState(): GannRectangleMarkState;
|
|
42
|
+
updateProps(newProps: Partial<GannRectangleMarkManagerProps>): void;
|
|
43
|
+
destroy(): void;
|
|
44
|
+
getGannRectangles(): GannRectangleMark[];
|
|
45
|
+
removeGannRectangle(mark: GannRectangleMark): void;
|
|
46
|
+
isOperatingOnChart(): boolean;
|
|
47
|
+
updateMarkStyles(mark: GannRectangleMark, styles: any): void;
|
|
48
|
+
getMarkStyles(mark: GannRectangleMark): Record<string, any>;
|
|
49
|
+
clearAllMarks(): void;
|
|
50
|
+
setAllMarksVisible(visible: boolean): void;
|
|
51
|
+
private hiddenMarks;
|
|
52
|
+
hideAllMarks(): void;
|
|
53
|
+
showAllMarks(): void;
|
|
54
|
+
hideMark(mark: GannRectangleMark): void;
|
|
55
|
+
showMark(mark: GannRectangleMark): void;
|
|
56
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
+
import { ArrowLineMark } from '../../Mark/Arrow/ArrowLineMark';
|
|
3
|
+
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
4
|
+
import { Point } from '../../types';
|
|
5
|
+
export interface ArrowLineMarkManagerProps {
|
|
6
|
+
chartSeries: ChartSeries | null;
|
|
7
|
+
chart: any;
|
|
8
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
+
onCloseDrawing?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface ArrowLineMarkState {
|
|
12
|
+
isArrowLineMarkMode: boolean;
|
|
13
|
+
arrowLineMarkStartPoint: Point | null;
|
|
14
|
+
currentArrowLineMark: ArrowLineMark | null;
|
|
15
|
+
isDragging: boolean;
|
|
16
|
+
dragTarget: ArrowLineMark | null;
|
|
17
|
+
dragPoint: 'start' | 'end' | 'line' | null;
|
|
18
|
+
}
|
|
19
|
+
export declare class ArrowLineMarkManager implements IMarkManager<ArrowLineMark> {
|
|
20
|
+
private props;
|
|
21
|
+
private state;
|
|
22
|
+
private previewArrowLineMark;
|
|
23
|
+
private arrowLineMarks;
|
|
24
|
+
private dragStartData;
|
|
25
|
+
private isOperating;
|
|
26
|
+
constructor(props: ArrowLineMarkManagerProps);
|
|
27
|
+
clearState(): void;
|
|
28
|
+
getMarkAtPoint(point: Point): ArrowLineMark | null;
|
|
29
|
+
getCurrentDragTarget(): ArrowLineMark | null;
|
|
30
|
+
getCurrentDragPoint(): string | null;
|
|
31
|
+
getCurrentOperatingMark(): ArrowLineMark | null;
|
|
32
|
+
getAllMarks(): ArrowLineMark[];
|
|
33
|
+
cancelOperationMode(): ArrowLineMarkState;
|
|
34
|
+
setArrowLineMarkMode: () => ArrowLineMarkState;
|
|
35
|
+
cancelArrowLineMarkMode: () => ArrowLineMarkState;
|
|
36
|
+
handleMouseDown: (point: Point) => ArrowLineMarkState;
|
|
37
|
+
private isPointNearLine;
|
|
38
|
+
handleMouseMove: (point: Point) => void;
|
|
39
|
+
handleMouseUp: (point: Point) => ArrowLineMarkState;
|
|
40
|
+
handleKeyDown: (event: KeyboardEvent) => ArrowLineMarkState;
|
|
41
|
+
getState(): ArrowLineMarkState;
|
|
42
|
+
updateProps(newProps: Partial<ArrowLineMarkManagerProps>): void;
|
|
43
|
+
destroy(): void;
|
|
44
|
+
getArrowLineMarks(): ArrowLineMark[];
|
|
45
|
+
removeArrowLineMark(mark: ArrowLineMark): void;
|
|
46
|
+
isOperatingOnChart(): boolean;
|
|
47
|
+
private hiddenMarks;
|
|
48
|
+
hideAllMarks(): void;
|
|
49
|
+
showAllMarks(): void;
|
|
50
|
+
hideMark(mark: ArrowLineMark): void;
|
|
51
|
+
showMark(mark: ArrowLineMark): void;
|
|
52
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
+
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
3
|
+
import { HorizontalLineMark } from '../../Mark/Line/HorizontalLineMark';
|
|
4
|
+
import { VerticalLineMark } from '../../Mark/Line/VerticalLineMark';
|
|
5
|
+
import { Point } from '../../types';
|
|
6
|
+
export interface AxisLineMarkManagerProps {
|
|
7
|
+
chartSeries: ChartSeries | null;
|
|
8
|
+
chart: any;
|
|
9
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
10
|
+
onCloseDrawing?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export interface AxisLineMarkState {
|
|
13
|
+
isHorizontalLineMode: boolean;
|
|
14
|
+
isVerticalLineMode: boolean;
|
|
15
|
+
currentHorizontalLine: HorizontalLineMark | null;
|
|
16
|
+
currentVerticalLine: VerticalLineMark | null;
|
|
17
|
+
isDragging: boolean;
|
|
18
|
+
dragTarget: HorizontalLineMark | VerticalLineMark | null;
|
|
19
|
+
}
|
|
20
|
+
export declare class AxisLineMarkManager implements IMarkManager<HorizontalLineMark | VerticalLineMark> {
|
|
21
|
+
private props;
|
|
22
|
+
private state;
|
|
23
|
+
private horizontalLines;
|
|
24
|
+
private verticalLines;
|
|
25
|
+
private dragStartData;
|
|
26
|
+
private isOperating;
|
|
27
|
+
constructor(props: AxisLineMarkManagerProps);
|
|
28
|
+
clearState(): void;
|
|
29
|
+
getMarkAtPoint(point: Point): HorizontalLineMark | VerticalLineMark | null;
|
|
30
|
+
getCurrentDragPoint(): string | null;
|
|
31
|
+
getCurrentDragTarget(): HorizontalLineMark | VerticalLineMark | null;
|
|
32
|
+
getCurrentOperatingMark(): HorizontalLineMark | VerticalLineMark | null;
|
|
33
|
+
getAllMarks(): (HorizontalLineMark | VerticalLineMark)[];
|
|
34
|
+
cancelOperationMode(): AxisLineMarkState;
|
|
35
|
+
setHorizontalLineMode: () => AxisLineMarkState;
|
|
36
|
+
setVerticalLineMode: () => AxisLineMarkState;
|
|
37
|
+
cancelAxisLineMode: () => AxisLineMarkState;
|
|
38
|
+
handleMouseDown: (point: Point) => AxisLineMarkState;
|
|
39
|
+
handleMouseMove: (point: Point) => void;
|
|
40
|
+
handleMouseUp: (point: Point) => AxisLineMarkState;
|
|
41
|
+
handleKeyDown: (event: KeyboardEvent) => AxisLineMarkState;
|
|
42
|
+
getState(): AxisLineMarkState;
|
|
43
|
+
updateProps(newProps: Partial<AxisLineMarkManagerProps>): void;
|
|
44
|
+
destroy(): void;
|
|
45
|
+
getHorizontalLines(): HorizontalLineMark[];
|
|
46
|
+
getVerticalLines(): VerticalLineMark[];
|
|
47
|
+
removeHorizontalLine(mark: HorizontalLineMark): void;
|
|
48
|
+
removeVerticalLine(mark: VerticalLineMark): void;
|
|
49
|
+
isOperatingOnChart(): boolean;
|
|
50
|
+
private hiddenHorizontalLines;
|
|
51
|
+
private hiddenVerticalLines;
|
|
52
|
+
hideAllMarks(): void;
|
|
53
|
+
showAllMarks(): void;
|
|
54
|
+
hideMark(mark: HorizontalLineMark | VerticalLineMark): void;
|
|
55
|
+
showMark(mark: HorizontalLineMark | VerticalLineMark): void;
|
|
56
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
+
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
3
|
+
import { LineSegmentMark } from '../../Mark/Line/LineSegmentMark';
|
|
4
|
+
import { Point } from '../../types';
|
|
5
|
+
export interface LineSegmentMarkManagerProps {
|
|
6
|
+
chartSeries: ChartSeries | null;
|
|
7
|
+
chart: any;
|
|
8
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
+
onCloseDrawing?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface LineSegmentMarkState {
|
|
12
|
+
isLineSegmentMarkMode: boolean;
|
|
13
|
+
lineSegmentMarkStartPoint: Point | null;
|
|
14
|
+
currentLineSegmentMark: LineSegmentMark | null;
|
|
15
|
+
isDragging: boolean;
|
|
16
|
+
dragTarget: LineSegmentMark | null;
|
|
17
|
+
dragPoint: 'start' | 'end' | 'line' | null;
|
|
18
|
+
}
|
|
19
|
+
export declare class LineSegmentMarkManager implements IMarkManager<LineSegmentMark> {
|
|
20
|
+
private props;
|
|
21
|
+
private state;
|
|
22
|
+
private previewLineSegmentMark;
|
|
23
|
+
private lineMarks;
|
|
24
|
+
private dragStartData;
|
|
25
|
+
private isOperating;
|
|
26
|
+
constructor(props: LineSegmentMarkManagerProps);
|
|
27
|
+
clearState(): void;
|
|
28
|
+
getMarkAtPoint(point: Point): LineSegmentMark | null;
|
|
29
|
+
getCurrentDragTarget(): LineSegmentMark | null;
|
|
30
|
+
getCurrentDragPoint(): string | null;
|
|
31
|
+
getCurrentOperatingMark(): LineSegmentMark | null;
|
|
32
|
+
getAllMarks(): LineSegmentMark[];
|
|
33
|
+
cancelOperationMode(): LineSegmentMarkState;
|
|
34
|
+
setLineSegmentMarkMode: () => LineSegmentMarkState;
|
|
35
|
+
cancelLineSegmentMarkMode: () => LineSegmentMarkState;
|
|
36
|
+
handleMouseDown: (point: Point) => LineSegmentMarkState;
|
|
37
|
+
private isPointNearLine;
|
|
38
|
+
handleMouseMove: (point: Point) => void;
|
|
39
|
+
handleMouseUp: (point: Point) => LineSegmentMarkState;
|
|
40
|
+
handleKeyDown: (event: KeyboardEvent) => LineSegmentMarkState;
|
|
41
|
+
getState(): LineSegmentMarkState;
|
|
42
|
+
updateProps(newProps: Partial<LineSegmentMarkManagerProps>): void;
|
|
43
|
+
destroy(): void;
|
|
44
|
+
getLineSegmentMarks(): LineSegmentMark[];
|
|
45
|
+
removeLineSegmentMark(mark: LineSegmentMark): void;
|
|
46
|
+
isOperatingOnChart(): boolean;
|
|
47
|
+
private hiddenMarks;
|
|
48
|
+
hideAllMarks(): void;
|
|
49
|
+
showAllMarks(): void;
|
|
50
|
+
hideMark(mark: LineSegmentMark): void;
|
|
51
|
+
showMark(mark: LineSegmentMark): void;
|
|
52
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ChartSeries } from '../../ChartLayer/ChartTypeManager';
|
|
2
|
+
import { ThickArrowLineMark } from '../../Mark/Arrow/ThickArrowLineMark';
|
|
3
|
+
import { IMarkManager } from '../../Mark/IMarkManager';
|
|
4
|
+
import { Point } from '../../types';
|
|
5
|
+
export interface ThickArrowLineMarkManagerProps {
|
|
6
|
+
chartSeries: ChartSeries | null;
|
|
7
|
+
chart: any;
|
|
8
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
9
|
+
onCloseDrawing?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface ThickArrowLineMarkState {
|
|
12
|
+
isThickArrowLineMarkMode: boolean;
|
|
13
|
+
thickArrowLineMarkStartPoint: Point | null;
|
|
14
|
+
currentThickArrowLineMark: ThickArrowLineMark | null;
|
|
15
|
+
isDragging: boolean;
|
|
16
|
+
dragTarget: ThickArrowLineMark | null;
|
|
17
|
+
dragPoint: 'start' | 'end' | 'line' | null;
|
|
18
|
+
}
|
|
19
|
+
export declare class ThickArrowLineMarkManager implements IMarkManager<ThickArrowLineMark> {
|
|
20
|
+
private props;
|
|
21
|
+
private state;
|
|
22
|
+
private previewThickArrowLineMark;
|
|
23
|
+
private thickArrowLineMarks;
|
|
24
|
+
private dragStartData;
|
|
25
|
+
private isOperating;
|
|
26
|
+
constructor(props: ThickArrowLineMarkManagerProps);
|
|
27
|
+
clearState(): void;
|
|
28
|
+
getMarkAtPoint(point: Point): ThickArrowLineMark | null;
|
|
29
|
+
getCurrentDragTarget(): ThickArrowLineMark | null;
|
|
30
|
+
getCurrentDragPoint(): string | null;
|
|
31
|
+
getCurrentOperatingMark(): ThickArrowLineMark | null;
|
|
32
|
+
getAllMarks(): ThickArrowLineMark[];
|
|
33
|
+
cancelOperationMode(): ThickArrowLineMarkState;
|
|
34
|
+
setThickArrowLineMarkMode: () => ThickArrowLineMarkState;
|
|
35
|
+
cancelThickArrowLineMarkMode: () => ThickArrowLineMarkState;
|
|
36
|
+
handleMouseDown: (point: Point) => ThickArrowLineMarkState;
|
|
37
|
+
private isPointNearLine;
|
|
38
|
+
handleMouseMove: (point: Point) => void;
|
|
39
|
+
handleMouseUp: (point: Point) => ThickArrowLineMarkState;
|
|
40
|
+
handleKeyDown: (event: KeyboardEvent) => ThickArrowLineMarkState;
|
|
41
|
+
getState(): ThickArrowLineMarkState;
|
|
42
|
+
updateProps(newProps: Partial<ThickArrowLineMarkManagerProps>): void;
|
|
43
|
+
destroy(): void;
|
|
44
|
+
getThickArrowLineMarks(): ThickArrowLineMark[];
|
|
45
|
+
removeThickArrowLineMark(mark: ThickArrowLineMark): void;
|
|
46
|
+
isOperatingOnChart(): boolean;
|
|
47
|
+
private hiddenMarks;
|
|
48
|
+
hideAllMarks(): void;
|
|
49
|
+
showAllMarks(): void;
|
|
50
|
+
hideMark(mark: ThickArrowLineMark): void;
|
|
51
|
+
showMark(mark: ThickArrowLineMark): void;
|
|
52
|
+
}
|