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,73 @@
|
|
|
1
|
+
import { MarkType } from '../../types';
|
|
2
|
+
import { IGraph } from '../IGraph';
|
|
3
|
+
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
+
export declare class ThickArrowLineMark implements IGraph, IMarkStyle {
|
|
5
|
+
private _chart;
|
|
6
|
+
private _series;
|
|
7
|
+
private _startTime;
|
|
8
|
+
private _startPrice;
|
|
9
|
+
private _endTime;
|
|
10
|
+
private _endPrice;
|
|
11
|
+
private _renderer;
|
|
12
|
+
private _color;
|
|
13
|
+
private _lineWidth;
|
|
14
|
+
private _lineStyle;
|
|
15
|
+
private _isPreview;
|
|
16
|
+
private _isDragging;
|
|
17
|
+
private _dragPoint;
|
|
18
|
+
private _showHandles;
|
|
19
|
+
private _arrowHeadSize;
|
|
20
|
+
private _arrowHeadWidth;
|
|
21
|
+
private _arrowShaftWidth;
|
|
22
|
+
private markType;
|
|
23
|
+
constructor(startTime: number, startPrice: number, endTime: number, endPrice: number, color?: string, lineWidth?: number, isPreview?: boolean);
|
|
24
|
+
updateFontSize(fontSize: unknown): void;
|
|
25
|
+
getMarkType(): MarkType;
|
|
26
|
+
attached(param: any): void;
|
|
27
|
+
updateAllViews(): void;
|
|
28
|
+
updateEndPoint(endTime: number, endPrice: number): void;
|
|
29
|
+
updateStartPoint(startTime: number, startPrice: number): void;
|
|
30
|
+
setPreviewMode(isPreview: boolean): void;
|
|
31
|
+
setDragging(isDragging: boolean, dragPoint?: 'start' | 'end' | 'line' | null): void;
|
|
32
|
+
setShowHandles(show: boolean): void;
|
|
33
|
+
dragLineByPixels(deltaX: number, deltaY: number): void;
|
|
34
|
+
dragLine(deltaTime: number, deltaPrice: number): void;
|
|
35
|
+
isPointNearHandle(x: number, y: number, threshold?: number): 'start' | 'end' | null;
|
|
36
|
+
private requestUpdate;
|
|
37
|
+
time(): number;
|
|
38
|
+
priceValue(): number;
|
|
39
|
+
private drawThickArrow;
|
|
40
|
+
paneViews(): {
|
|
41
|
+
renderer: () => any;
|
|
42
|
+
}[];
|
|
43
|
+
getStartTime(): number;
|
|
44
|
+
getStartPrice(): number;
|
|
45
|
+
getEndTime(): number;
|
|
46
|
+
getEndPrice(): number;
|
|
47
|
+
updateColor(color: string): void;
|
|
48
|
+
updateLineWidth(lineWidth: number): void;
|
|
49
|
+
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
50
|
+
updateArrowHeadSize(size: number): void;
|
|
51
|
+
updateArrowHeadWidth(width: number): void;
|
|
52
|
+
updateArrowShaftWidth(width: number): void;
|
|
53
|
+
updateStyles(styles: {
|
|
54
|
+
color?: string;
|
|
55
|
+
lineWidth?: number;
|
|
56
|
+
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
57
|
+
arrowHeadSize?: number;
|
|
58
|
+
arrowHeadWidth?: number;
|
|
59
|
+
arrowShaftWidth?: number;
|
|
60
|
+
[key: string]: any;
|
|
61
|
+
}): void;
|
|
62
|
+
getCurrentStyles(): Record<string, any>;
|
|
63
|
+
getBounds(): {
|
|
64
|
+
startX: any;
|
|
65
|
+
startY: any;
|
|
66
|
+
endX: any;
|
|
67
|
+
endY: any;
|
|
68
|
+
minX: number;
|
|
69
|
+
maxX: number;
|
|
70
|
+
minY: number;
|
|
71
|
+
maxY: number;
|
|
72
|
+
} | null;
|
|
73
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { MarkType } from '../../types';
|
|
2
|
+
import { IGraph } from '../IGraph';
|
|
3
|
+
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
+
export declare class DisjointChannelMark implements IGraph, IMarkStyle {
|
|
5
|
+
private _chart;
|
|
6
|
+
private _series;
|
|
7
|
+
private _startTime;
|
|
8
|
+
private _startPrice;
|
|
9
|
+
private _endTime;
|
|
10
|
+
private _endPrice;
|
|
11
|
+
private _renderer;
|
|
12
|
+
private _color;
|
|
13
|
+
private _lineWidth;
|
|
14
|
+
private _lineStyle;
|
|
15
|
+
private _isPreview;
|
|
16
|
+
private _isDragging;
|
|
17
|
+
private _dragPoint;
|
|
18
|
+
private _hoverPoint;
|
|
19
|
+
private _showHandles;
|
|
20
|
+
private _channelHeight;
|
|
21
|
+
private markType;
|
|
22
|
+
private _angle;
|
|
23
|
+
private _originalAngle;
|
|
24
|
+
constructor(startTime: number, startPrice: number, endTime: number, endPrice: number, color?: string, lineWidth?: number, isPreview?: boolean, angle?: number);
|
|
25
|
+
updateFontSize(fontSize: unknown): void;
|
|
26
|
+
getMarkType(): MarkType;
|
|
27
|
+
attached(param: any): void;
|
|
28
|
+
updateAllViews(): void;
|
|
29
|
+
updateEndPoint(endTime: number, endPrice: number): void;
|
|
30
|
+
updateStartPoint(startTime: number, startPrice: number): void;
|
|
31
|
+
updateChannelHeight(height: number): void;
|
|
32
|
+
updateAngle(angle: number): void;
|
|
33
|
+
setPreviewMode(isPreview: boolean): void;
|
|
34
|
+
setDragging(isDragging: boolean, dragPoint?: 'start' | 'end' | 'channel' | 'angle' | 'line' | null): void;
|
|
35
|
+
setShowHandles(show: boolean): void;
|
|
36
|
+
setHoverPoint(hoverPoint: 'start' | 'end' | 'channel' | 'angle' | 'line' | null): void;
|
|
37
|
+
dragLineByPixels(deltaX: number, deltaY: number): void;
|
|
38
|
+
isPointNearHandle(x: number, y: number, threshold?: number): 'start' | 'end' | 'channel' | 'angle' | null;
|
|
39
|
+
updateAngleByPixels(deltaY: number): void;
|
|
40
|
+
private requestUpdate;
|
|
41
|
+
time(): number;
|
|
42
|
+
priceValue(): number;
|
|
43
|
+
paneViews(): {
|
|
44
|
+
renderer: () => any;
|
|
45
|
+
}[];
|
|
46
|
+
getStartTime(): number;
|
|
47
|
+
getStartPrice(): number;
|
|
48
|
+
getEndTime(): number;
|
|
49
|
+
getEndPrice(): number;
|
|
50
|
+
getChannelHeight(): number;
|
|
51
|
+
getAngle(): number;
|
|
52
|
+
updateColor(color: string): void;
|
|
53
|
+
updateLineWidth(lineWidth: number): void;
|
|
54
|
+
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
55
|
+
updateStyles(styles: {
|
|
56
|
+
color?: string;
|
|
57
|
+
lineWidth?: number;
|
|
58
|
+
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
59
|
+
channelHeight?: number;
|
|
60
|
+
angle?: number;
|
|
61
|
+
[key: string]: any;
|
|
62
|
+
}): void;
|
|
63
|
+
getCurrentStyles(): Record<string, any>;
|
|
64
|
+
getBounds(): {
|
|
65
|
+
startX: any;
|
|
66
|
+
startY: any;
|
|
67
|
+
endX: any;
|
|
68
|
+
endY: any;
|
|
69
|
+
minX: number;
|
|
70
|
+
maxX: number;
|
|
71
|
+
minY: number;
|
|
72
|
+
maxY: number;
|
|
73
|
+
} | null;
|
|
74
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { MarkType } from '../../types';
|
|
2
|
+
import { IGraph } from '../IGraph';
|
|
3
|
+
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
+
export declare class EquidistantChannelMark implements IGraph, IMarkStyle {
|
|
5
|
+
private _chart;
|
|
6
|
+
private _series;
|
|
7
|
+
private _startTime;
|
|
8
|
+
private _startPrice;
|
|
9
|
+
private _endTime;
|
|
10
|
+
private _endPrice;
|
|
11
|
+
private _renderer;
|
|
12
|
+
private _color;
|
|
13
|
+
private _lineWidth;
|
|
14
|
+
private _lineStyle;
|
|
15
|
+
private _isPreview;
|
|
16
|
+
private _isDragging;
|
|
17
|
+
private _dragPoint;
|
|
18
|
+
private _showHandles;
|
|
19
|
+
private _channelHeight;
|
|
20
|
+
private markType;
|
|
21
|
+
private _hoverPoint;
|
|
22
|
+
constructor(startTime: number, startPrice: number, endTime: number, endPrice: number, color?: string, lineWidth?: number, isPreview?: boolean);
|
|
23
|
+
getMarkType(): MarkType;
|
|
24
|
+
attached(param: any): void;
|
|
25
|
+
updateAllViews(): void;
|
|
26
|
+
updateEndPoint(endTime: number, endPrice: number): void;
|
|
27
|
+
updateStartPoint(startTime: number, startPrice: number): void;
|
|
28
|
+
updateChannelHeight(height: number): void;
|
|
29
|
+
setPreviewMode(isPreview: boolean): void;
|
|
30
|
+
setDragging(isDragging: boolean, dragPoint?: 'start' | 'end' | 'channel' | 'line' | null): void;
|
|
31
|
+
setShowHandles(show: boolean): void;
|
|
32
|
+
setHoverPoint(hoverPoint: 'start' | 'end' | 'channel' | 'line' | null): void;
|
|
33
|
+
dragLineByPixels(deltaX: number, deltaY: number): void;
|
|
34
|
+
isPointNearHandle(x: number, y: number, threshold?: number): 'start' | 'end' | 'channel' | null;
|
|
35
|
+
private requestUpdate;
|
|
36
|
+
time(): number;
|
|
37
|
+
priceValue(): number;
|
|
38
|
+
paneViews(): {
|
|
39
|
+
renderer: () => any;
|
|
40
|
+
}[];
|
|
41
|
+
getStartTime(): number;
|
|
42
|
+
getStartPrice(): number;
|
|
43
|
+
getEndTime(): number;
|
|
44
|
+
getEndPrice(): number;
|
|
45
|
+
getChannelHeight(): number;
|
|
46
|
+
updateColor(color: string): void;
|
|
47
|
+
updateLineWidth(lineWidth: number): void;
|
|
48
|
+
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
49
|
+
updateStyles(styles: {
|
|
50
|
+
color?: string;
|
|
51
|
+
lineWidth?: number;
|
|
52
|
+
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
53
|
+
channelHeight?: number;
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
}): void;
|
|
56
|
+
getCurrentStyles(): Record<string, any>;
|
|
57
|
+
getBounds(): {
|
|
58
|
+
startX: any;
|
|
59
|
+
startY: any;
|
|
60
|
+
endX: any;
|
|
61
|
+
endY: any;
|
|
62
|
+
minX: number;
|
|
63
|
+
maxX: number;
|
|
64
|
+
minY: number;
|
|
65
|
+
maxY: number;
|
|
66
|
+
} | null;
|
|
67
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { MarkType } from '../../types';
|
|
2
|
+
import { IGraph } from '../IGraph';
|
|
3
|
+
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
+
export declare class LinearRegressionChannelMark implements IGraph, IMarkStyle {
|
|
5
|
+
private _chart;
|
|
6
|
+
private _series;
|
|
7
|
+
private _startTime;
|
|
8
|
+
private _startPrice;
|
|
9
|
+
private _endTime;
|
|
10
|
+
private _endPrice;
|
|
11
|
+
private _renderer;
|
|
12
|
+
private _color;
|
|
13
|
+
private _lineWidth;
|
|
14
|
+
private _lineStyle;
|
|
15
|
+
private _isPreview;
|
|
16
|
+
private _isDragging;
|
|
17
|
+
private _dragPoint;
|
|
18
|
+
private _showHandles;
|
|
19
|
+
private _deviation;
|
|
20
|
+
private markType;
|
|
21
|
+
private _hoverPoint;
|
|
22
|
+
private _chartData;
|
|
23
|
+
constructor(startTime: number, startPrice: number, endTime: number, endPrice: number, color?: string, lineWidth?: number, isPreview?: boolean);
|
|
24
|
+
getMarkType(): MarkType;
|
|
25
|
+
attached(param: any): void;
|
|
26
|
+
updateAllViews(): void;
|
|
27
|
+
updateEndPoint(endTime: number, endPrice: number): void;
|
|
28
|
+
updateStartPoint(startTime: number, startPrice: number): void;
|
|
29
|
+
updateDeviation(deviation: number): void;
|
|
30
|
+
setPreviewMode(isPreview: boolean): void;
|
|
31
|
+
setDragging(isDragging: boolean, dragPoint?: 'start' | 'end' | 'channel' | 'line' | null): void;
|
|
32
|
+
setShowHandles(show: boolean): void;
|
|
33
|
+
setHoverPoint(hoverPoint: 'start' | 'end' | 'channel' | 'line' | null): void;
|
|
34
|
+
dragLineByPixels(deltaX: number, deltaY: number): void;
|
|
35
|
+
isPointNearHandle(x: number, y: number, threshold?: number): 'start' | 'end' | 'channel' | 'line' | null;
|
|
36
|
+
private requestUpdate;
|
|
37
|
+
time(): number;
|
|
38
|
+
priceValue(): number;
|
|
39
|
+
paneViews(): {
|
|
40
|
+
renderer: () => any;
|
|
41
|
+
}[];
|
|
42
|
+
getStartTime(): number;
|
|
43
|
+
getStartPrice(): number;
|
|
44
|
+
getEndTime(): number;
|
|
45
|
+
getEndPrice(): number;
|
|
46
|
+
getDeviation(): number;
|
|
47
|
+
updateColor(color: string): void;
|
|
48
|
+
updateLineWidth(lineWidth: number): void;
|
|
49
|
+
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
50
|
+
updateStyles(styles: {
|
|
51
|
+
color?: string;
|
|
52
|
+
lineWidth?: number;
|
|
53
|
+
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
54
|
+
deviation?: number;
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
}): void;
|
|
57
|
+
getCurrentStyles(): Record<string, any>;
|
|
58
|
+
getBounds(): {
|
|
59
|
+
startX: any;
|
|
60
|
+
startY: any;
|
|
61
|
+
endX: any;
|
|
62
|
+
endY: any;
|
|
63
|
+
minX: number;
|
|
64
|
+
maxX: number;
|
|
65
|
+
minY: number;
|
|
66
|
+
maxY: number;
|
|
67
|
+
} | null;
|
|
68
|
+
private calculateLinearRegression;
|
|
69
|
+
private getDataPointsInRange;
|
|
70
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { MarkType } from '../../types';
|
|
2
|
+
import { IGraph } from '../IGraph';
|
|
3
|
+
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
+
export declare class ParallelChannelMark implements IGraph, IMarkStyle {
|
|
5
|
+
private _chart;
|
|
6
|
+
private _series;
|
|
7
|
+
private _startTime;
|
|
8
|
+
private _startPrice;
|
|
9
|
+
private _endTime;
|
|
10
|
+
private _endPrice;
|
|
11
|
+
private _renderer;
|
|
12
|
+
private _color;
|
|
13
|
+
private _lineWidth;
|
|
14
|
+
private _lineStyle;
|
|
15
|
+
private _isPreview;
|
|
16
|
+
private _isDragging;
|
|
17
|
+
private _dragPoint;
|
|
18
|
+
private _showHandles;
|
|
19
|
+
private _channelHeight;
|
|
20
|
+
private markType;
|
|
21
|
+
private _hoverPoint;
|
|
22
|
+
constructor(startTime: number, startPrice: number, endTime: number, endPrice: number, color?: string, lineWidth?: number, isPreview?: boolean);
|
|
23
|
+
getMarkType(): MarkType;
|
|
24
|
+
attached(param: any): void;
|
|
25
|
+
updateAllViews(): void;
|
|
26
|
+
updateEndPoint(endTime: number, endPrice: number): void;
|
|
27
|
+
updateStartPoint(startTime: number, startPrice: number): void;
|
|
28
|
+
updateChannelHeight(height: number): void;
|
|
29
|
+
setPreviewMode(isPreview: boolean): void;
|
|
30
|
+
setDragging(isDragging: boolean, dragPoint?: 'start' | 'end' | 'channel' | 'line' | null): void;
|
|
31
|
+
setShowHandles(show: boolean): void;
|
|
32
|
+
setHoverPoint(hoverPoint: 'start' | 'end' | 'channel' | 'line' | null): void;
|
|
33
|
+
dragLineByPixels(deltaX: number, deltaY: number): void;
|
|
34
|
+
isPointNearHandle(x: number, y: number, threshold?: number): 'start' | 'end' | 'channel' | null;
|
|
35
|
+
private requestUpdate;
|
|
36
|
+
time(): number;
|
|
37
|
+
priceValue(): number;
|
|
38
|
+
paneViews(): {
|
|
39
|
+
renderer: () => any;
|
|
40
|
+
}[];
|
|
41
|
+
getStartTime(): number;
|
|
42
|
+
getStartPrice(): number;
|
|
43
|
+
getEndTime(): number;
|
|
44
|
+
getEndPrice(): number;
|
|
45
|
+
getChannelHeight(): number;
|
|
46
|
+
updateColor(color: string): void;
|
|
47
|
+
updateLineWidth(lineWidth: number): void;
|
|
48
|
+
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
49
|
+
updateStyles(styles: {
|
|
50
|
+
color?: string;
|
|
51
|
+
lineWidth?: number;
|
|
52
|
+
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
53
|
+
channelHeight?: number;
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
}): void;
|
|
56
|
+
getCurrentStyles(): Record<string, any>;
|
|
57
|
+
getBounds(): {
|
|
58
|
+
startX: any;
|
|
59
|
+
startY: any;
|
|
60
|
+
endX: any;
|
|
61
|
+
endY: any;
|
|
62
|
+
minX: number;
|
|
63
|
+
maxX: number;
|
|
64
|
+
minY: number;
|
|
65
|
+
maxY: number;
|
|
66
|
+
} | null;
|
|
67
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { MarkType } from '../../types';
|
|
2
|
+
import { IGraph } from '../IGraph';
|
|
3
|
+
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
+
export declare class ImageMark implements IGraph, IMarkStyle {
|
|
5
|
+
private _chart;
|
|
6
|
+
private _series;
|
|
7
|
+
private _startTime;
|
|
8
|
+
private _startPrice;
|
|
9
|
+
private _endTime;
|
|
10
|
+
private _endPrice;
|
|
11
|
+
private _renderer;
|
|
12
|
+
private _color;
|
|
13
|
+
private _lineWidth;
|
|
14
|
+
private _lineStyle;
|
|
15
|
+
private _fillColor;
|
|
16
|
+
private _isPreview;
|
|
17
|
+
private _isDragging;
|
|
18
|
+
private _dragPoint;
|
|
19
|
+
private _showHandles;
|
|
20
|
+
private markType;
|
|
21
|
+
private _image;
|
|
22
|
+
private _imageUrl;
|
|
23
|
+
private _opacity;
|
|
24
|
+
constructor(startTime: number, startPrice: number, endTime: number, endPrice: number, imageUrl?: string, color?: string, lineWidth?: number, fillColor?: string, opacity?: number, isPreview?: boolean);
|
|
25
|
+
private loadImage;
|
|
26
|
+
getMarkType(): MarkType;
|
|
27
|
+
attached(param: any): void;
|
|
28
|
+
updateAllViews(): void;
|
|
29
|
+
updateEndPoint(endTime: number, endPrice: number): void;
|
|
30
|
+
updateStartPoint(startTime: number, startPrice: number): void;
|
|
31
|
+
setPreviewMode(isPreview: boolean): void;
|
|
32
|
+
setDragging(isDragging: boolean, dragPoint?: 'start' | 'end' | 'line' | null): void;
|
|
33
|
+
setShowHandles(show: boolean): void;
|
|
34
|
+
setImage(url: string): void;
|
|
35
|
+
setOpacity(opacity: number): void;
|
|
36
|
+
dragLineByPixels(deltaX: number, deltaY: number): void;
|
|
37
|
+
isPointNearHandle(x: number, y: number, threshold?: number): 'start' | 'end' | null;
|
|
38
|
+
private requestUpdate;
|
|
39
|
+
time(): number;
|
|
40
|
+
priceValue(): number;
|
|
41
|
+
paneViews(): {
|
|
42
|
+
renderer: () => any;
|
|
43
|
+
}[];
|
|
44
|
+
getStartTime(): number;
|
|
45
|
+
getStartPrice(): number;
|
|
46
|
+
getEndTime(): number;
|
|
47
|
+
getEndPrice(): number;
|
|
48
|
+
getImageUrl(): string;
|
|
49
|
+
getOpacity(): number;
|
|
50
|
+
updateColor(color: string): void;
|
|
51
|
+
updateLineWidth(lineWidth: number): void;
|
|
52
|
+
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
53
|
+
updateFillColor(fillColor: string): void;
|
|
54
|
+
updateOpacity(opacity: number): void;
|
|
55
|
+
updateStyles(styles: {
|
|
56
|
+
color?: string;
|
|
57
|
+
lineWidth?: number;
|
|
58
|
+
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
59
|
+
fillColor?: string;
|
|
60
|
+
opacity?: number;
|
|
61
|
+
[key: string]: any;
|
|
62
|
+
}): void;
|
|
63
|
+
getCurrentStyles(): Record<string, any>;
|
|
64
|
+
getBounds(): {
|
|
65
|
+
startX: any;
|
|
66
|
+
startY: any;
|
|
67
|
+
endX: any;
|
|
68
|
+
endY: any;
|
|
69
|
+
minX: number;
|
|
70
|
+
maxX: number;
|
|
71
|
+
minY: number;
|
|
72
|
+
maxY: number;
|
|
73
|
+
} | null;
|
|
74
|
+
isPointInRectangle(x: number, y: number, threshold?: number): boolean;
|
|
75
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { MarkType } from '../../types';
|
|
2
|
+
import { IGraph } from '../IGraph';
|
|
3
|
+
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
+
export declare class FibonacciArcMark implements IGraph, IMarkStyle {
|
|
5
|
+
private _chart;
|
|
6
|
+
private _series;
|
|
7
|
+
private _startPrice;
|
|
8
|
+
private _endPrice;
|
|
9
|
+
private _startTime;
|
|
10
|
+
private _endTime;
|
|
11
|
+
private _renderer;
|
|
12
|
+
private _color;
|
|
13
|
+
private _lineWidth;
|
|
14
|
+
private _lineStyle;
|
|
15
|
+
private _isPreview;
|
|
16
|
+
private _isDragging;
|
|
17
|
+
private _dragPoint;
|
|
18
|
+
private _showHandles;
|
|
19
|
+
private _fibonacciLevels;
|
|
20
|
+
private _fibonacciColors;
|
|
21
|
+
private _fillOpacity;
|
|
22
|
+
private markType;
|
|
23
|
+
private _arcSegments;
|
|
24
|
+
private _arcDirection;
|
|
25
|
+
constructor(startPrice: number, endPrice: number, startTime: number, endTime: number, color?: string, lineWidth?: number, isPreview?: boolean);
|
|
26
|
+
private _updateArcDirection;
|
|
27
|
+
getMarkType(): MarkType;
|
|
28
|
+
attached(param: any): void;
|
|
29
|
+
updateAllViews(): void;
|
|
30
|
+
updateEndPoint(endPrice: number, endTime: number): void;
|
|
31
|
+
updateStartPoint(startPrice: number, startTime: number): void;
|
|
32
|
+
setPreviewMode(isPreview: boolean): void;
|
|
33
|
+
setDragging(isDragging: boolean, dragPoint?: 'start' | 'end' | 'line' | null): void;
|
|
34
|
+
setShowHandles(show: boolean): void;
|
|
35
|
+
dragLineByPixels(deltaY: number, deltaX?: number): void;
|
|
36
|
+
dragHandleByPixels(deltaY: number, deltaX: number | undefined, handleType: 'start' | 'end'): void;
|
|
37
|
+
isPointNearHandle(x: number, y: number, threshold?: number): 'start' | 'end' | null;
|
|
38
|
+
isPointNearArc(x: number, y: number, threshold?: number): number | null;
|
|
39
|
+
private requestUpdate;
|
|
40
|
+
time(): number;
|
|
41
|
+
priceValue(): number;
|
|
42
|
+
paneViews(): {
|
|
43
|
+
renderer: () => any;
|
|
44
|
+
}[];
|
|
45
|
+
getStartPrice(): number;
|
|
46
|
+
getEndPrice(): number;
|
|
47
|
+
getStartTime(): number;
|
|
48
|
+
getEndTime(): number;
|
|
49
|
+
updateColor(color: string): void;
|
|
50
|
+
updateLineWidth(lineWidth: number): void;
|
|
51
|
+
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
52
|
+
updateFillOpacity(opacity: number): void;
|
|
53
|
+
updateStyles(styles: {
|
|
54
|
+
color?: string;
|
|
55
|
+
lineWidth?: number;
|
|
56
|
+
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
57
|
+
fillOpacity?: number;
|
|
58
|
+
[key: string]: any;
|
|
59
|
+
}): void;
|
|
60
|
+
getCurrentStyles(): Record<string, any>;
|
|
61
|
+
getBounds(): {
|
|
62
|
+
startX: any;
|
|
63
|
+
endX: any;
|
|
64
|
+
startY: any;
|
|
65
|
+
endY: any;
|
|
66
|
+
minX: number;
|
|
67
|
+
maxX: number;
|
|
68
|
+
minY: number;
|
|
69
|
+
maxY: number;
|
|
70
|
+
arcSegments: {
|
|
71
|
+
level: number;
|
|
72
|
+
path: Path2D;
|
|
73
|
+
centerX: number;
|
|
74
|
+
centerY: number;
|
|
75
|
+
radius: number;
|
|
76
|
+
}[];
|
|
77
|
+
} | null;
|
|
78
|
+
getFibonacciLevels(): number[];
|
|
79
|
+
getArcSegments(): {
|
|
80
|
+
level: number;
|
|
81
|
+
path: Path2D;
|
|
82
|
+
centerX: number;
|
|
83
|
+
centerY: number;
|
|
84
|
+
radius: number;
|
|
85
|
+
}[];
|
|
86
|
+
getFibonacciColors(): string[];
|
|
87
|
+
getArcDirection(): 'up' | 'down';
|
|
88
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { MarkType } from '../../types';
|
|
2
|
+
import { IGraph } from '../IGraph';
|
|
3
|
+
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
+
export declare class FibonacciChannelMark implements IGraph, IMarkStyle {
|
|
5
|
+
private _chart;
|
|
6
|
+
private _series;
|
|
7
|
+
private _startTime;
|
|
8
|
+
private _startPrice;
|
|
9
|
+
private _endTime;
|
|
10
|
+
private _endPrice;
|
|
11
|
+
private _renderer;
|
|
12
|
+
private _color;
|
|
13
|
+
private _lineWidth;
|
|
14
|
+
private _lineStyle;
|
|
15
|
+
private _isPreview;
|
|
16
|
+
private _isDragging;
|
|
17
|
+
private _dragPoint;
|
|
18
|
+
private _showHandles;
|
|
19
|
+
private _channelHeight;
|
|
20
|
+
private markType;
|
|
21
|
+
private _hoverPoint;
|
|
22
|
+
private _fibonacciLevels;
|
|
23
|
+
private _showLevelLabels;
|
|
24
|
+
private _levelColors;
|
|
25
|
+
constructor(startTime: number, startPrice: number, endTime: number, endPrice: number, color?: string, lineWidth?: number, isPreview?: boolean);
|
|
26
|
+
getMarkType(): MarkType;
|
|
27
|
+
attached(param: any): void;
|
|
28
|
+
updateAllViews(): void;
|
|
29
|
+
updateEndPoint(endTime: number, endPrice: number): void;
|
|
30
|
+
updateStartPoint(startTime: number, startPrice: number): void;
|
|
31
|
+
updateChannelHeight(height: number): void;
|
|
32
|
+
setPreviewMode(isPreview: boolean): void;
|
|
33
|
+
setDragging(isDragging: boolean, dragPoint?: 'start' | 'end' | 'channel' | 'line' | null): void;
|
|
34
|
+
setShowHandles(show: boolean): void;
|
|
35
|
+
setHoverPoint(hoverPoint: 'start' | 'end' | 'channel' | 'line' | null): void;
|
|
36
|
+
dragLineByPixels(deltaX: number, deltaY: number): void;
|
|
37
|
+
isPointNearHandle(x: number, y: number, threshold?: number): 'start' | 'end' | 'channel' | null;
|
|
38
|
+
private requestUpdate;
|
|
39
|
+
time(): number;
|
|
40
|
+
priceValue(): number;
|
|
41
|
+
setFibonacciType(type: 'standard' | 'extended' | 'custom'): void;
|
|
42
|
+
setCustomFibonacciLevels(levels: number[]): void;
|
|
43
|
+
paneViews(): {
|
|
44
|
+
renderer: () => any;
|
|
45
|
+
}[];
|
|
46
|
+
private drawLevelLabel;
|
|
47
|
+
private getChartDimensions;
|
|
48
|
+
private drawControlPoints;
|
|
49
|
+
getStartTime(): number;
|
|
50
|
+
getStartPrice(): number;
|
|
51
|
+
getEndTime(): number;
|
|
52
|
+
getEndPrice(): number;
|
|
53
|
+
getChannelHeight(): number;
|
|
54
|
+
getFibonacciLevels(): number[];
|
|
55
|
+
setFibonacciLevels(levels: number[]): void;
|
|
56
|
+
setShowLevelLabels(show: boolean): void;
|
|
57
|
+
updateColor(color: string): void;
|
|
58
|
+
updateLineWidth(lineWidth: number): void;
|
|
59
|
+
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
60
|
+
updateStyles(styles: {
|
|
61
|
+
color?: string;
|
|
62
|
+
lineWidth?: number;
|
|
63
|
+
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
64
|
+
channelHeight?: number;
|
|
65
|
+
fibonacciLevels?: number[];
|
|
66
|
+
showLevelLabels?: boolean;
|
|
67
|
+
[key: string]: any;
|
|
68
|
+
}): void;
|
|
69
|
+
getCurrentStyles(): Record<string, any>;
|
|
70
|
+
getBounds(): {
|
|
71
|
+
startX: any;
|
|
72
|
+
startY: any;
|
|
73
|
+
endX: any;
|
|
74
|
+
endY: any;
|
|
75
|
+
minX: number;
|
|
76
|
+
maxX: number;
|
|
77
|
+
minY: number;
|
|
78
|
+
maxY: number;
|
|
79
|
+
} | null;
|
|
80
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { MarkType } from '../../types';
|
|
2
|
+
import { IGraph } from '../IGraph';
|
|
3
|
+
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
+
export declare class FibonacciCircleMark implements IGraph, IMarkStyle {
|
|
5
|
+
private _chart;
|
|
6
|
+
private _series;
|
|
7
|
+
private _centerPrice;
|
|
8
|
+
private _radiusPrice;
|
|
9
|
+
private _centerTime;
|
|
10
|
+
private _radiusTime;
|
|
11
|
+
private _renderer;
|
|
12
|
+
private _color;
|
|
13
|
+
private _lineWidth;
|
|
14
|
+
private _lineStyle;
|
|
15
|
+
private _isPreview;
|
|
16
|
+
private _isDragging;
|
|
17
|
+
private _dragPoint;
|
|
18
|
+
private _showHandles;
|
|
19
|
+
private _fibonacciLevels;
|
|
20
|
+
private _fibonacciColors;
|
|
21
|
+
private _fillOpacity;
|
|
22
|
+
private markType;
|
|
23
|
+
private _fibonacciCirclePositions;
|
|
24
|
+
constructor(centerPrice: number, radiusPrice: number, centerTime: number, radiusTime: number, color?: string, lineWidth?: number, isPreview?: boolean);
|
|
25
|
+
getMarkType(): MarkType;
|
|
26
|
+
attached(param: any): void;
|
|
27
|
+
updateAllViews(): void;
|
|
28
|
+
updateRadiusPoint(radiusPrice: number, radiusTime: number): void;
|
|
29
|
+
updateCenterPoint(centerPrice: number, centerTime: number): void;
|
|
30
|
+
setPreviewMode(isPreview: boolean): void;
|
|
31
|
+
setDragging(isDragging: boolean, dragPoint?: 'center' | 'radius' | 'circle' | null): void;
|
|
32
|
+
setShowHandles(show: boolean): void;
|
|
33
|
+
dragCircleByPixels(deltaY: number, deltaX?: number): void;
|
|
34
|
+
dragHandleByPixels(deltaY: number, deltaX: number | undefined, handleType: 'center' | 'radius'): void;
|
|
35
|
+
isPointNearHandle(x: number, y: number, threshold?: number): 'center' | 'radius' | null;
|
|
36
|
+
isPointNearFibonacciCircle(x: number, y: number, threshold?: number): number | null;
|
|
37
|
+
private requestUpdate;
|
|
38
|
+
time(): number;
|
|
39
|
+
priceValue(): number;
|
|
40
|
+
paneViews(): {
|
|
41
|
+
renderer: () => any;
|
|
42
|
+
}[];
|
|
43
|
+
getCenterPrice(): number;
|
|
44
|
+
getRadiusPrice(): number;
|
|
45
|
+
getCenterTime(): number;
|
|
46
|
+
getRadiusTime(): number;
|
|
47
|
+
updateColor(color: string): void;
|
|
48
|
+
updateLineWidth(lineWidth: number): void;
|
|
49
|
+
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
50
|
+
updateFillOpacity(opacity: number): void;
|
|
51
|
+
updateStyles(styles: {
|
|
52
|
+
color?: string;
|
|
53
|
+
lineWidth?: number;
|
|
54
|
+
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
55
|
+
fillOpacity?: number;
|
|
56
|
+
[key: string]: any;
|
|
57
|
+
}): void;
|
|
58
|
+
getCurrentStyles(): Record<string, any>;
|
|
59
|
+
getBounds(): {
|
|
60
|
+
centerX: any;
|
|
61
|
+
centerY: any;
|
|
62
|
+
radiusX: any;
|
|
63
|
+
radiusY: any;
|
|
64
|
+
minX: number;
|
|
65
|
+
maxX: any;
|
|
66
|
+
minY: number;
|
|
67
|
+
maxY: any;
|
|
68
|
+
fibonacciCirclePositions: {
|
|
69
|
+
radius: number;
|
|
70
|
+
level: number;
|
|
71
|
+
}[];
|
|
72
|
+
} | null;
|
|
73
|
+
getFibonacciLevels(): number[];
|
|
74
|
+
getFibonacciCirclePositions(): {
|
|
75
|
+
radius: number;
|
|
76
|
+
level: number;
|
|
77
|
+
}[];
|
|
78
|
+
getFibonacciColors(): string[];
|
|
79
|
+
getPriceRadius(): number;
|
|
80
|
+
getTimeRadius(): number;
|
|
81
|
+
}
|