candleview 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +758 -4
- package/package.json +14 -6
- package/dist/components/CandleView/Camera.d.ts +0 -16
- package/dist/components/CandleView/CandleView.d.ts +0 -149
- package/dist/components/CandleView/ChartLayer/ChartEventManager.d.ts +0 -47
- package/dist/components/CandleView/ChartLayer/ChartInfo.d.ts +0 -62
- package/dist/components/CandleView/ChartLayer/ChartLayerMarkState.d.ts +0 -281
- package/dist/components/CandleView/ChartLayer/ChartManager.d.ts +0 -11
- package/dist/components/CandleView/ChartLayer/ChartMarkManager.d.ts +0 -203
- package/dist/components/CandleView/ChartLayer/ChartMarkTextEditManager.d.ts +0 -16
- package/dist/components/CandleView/ChartLayer/ChartTypeManager.d.ts +0 -17
- package/dist/components/CandleView/ChartLayer/MainChart/Area.d.ts +0 -13
- package/dist/components/CandleView/ChartLayer/MainChart/Bar.d.ts +0 -13
- package/dist/components/CandleView/ChartLayer/MainChart/BaseLine.d.ts +0 -12
- package/dist/components/CandleView/ChartLayer/MainChart/BaselineArea.d.ts +0 -12
- package/dist/components/CandleView/ChartLayer/MainChart/Candlestick.d.ts +0 -12
- package/dist/components/CandleView/ChartLayer/MainChart/HLCArea.d.ts +0 -35
- package/dist/components/CandleView/ChartLayer/MainChart/HeikinAshi.d.ts +0 -12
- package/dist/components/CandleView/ChartLayer/MainChart/HighLow.d.ts +0 -12
- package/dist/components/CandleView/ChartLayer/MainChart/Histogram.d.ts +0 -13
- package/dist/components/CandleView/ChartLayer/MainChart/HollowCandle.d.ts +0 -13
- package/dist/components/CandleView/ChartLayer/MainChart/IMainChart.d.ts +0 -7
- package/dist/components/CandleView/ChartLayer/MainChart/Line.d.ts +0 -13
- package/dist/components/CandleView/ChartLayer/MainChart/LineBreak.d.ts +0 -15
- package/dist/components/CandleView/ChartLayer/MainChart/MainChartManager.d.ts +0 -17
- package/dist/components/CandleView/ChartLayer/MainChart/MarketProfile.d.ts +0 -52
- package/dist/components/CandleView/ChartLayer/MainChart/Mountain.d.ts +0 -12
- package/dist/components/CandleView/ChartLayer/MainChart/StepLine.d.ts +0 -12
- package/dist/components/CandleView/ChartLayer/MainChart/Volume.d.ts +0 -6
- package/dist/components/CandleView/ChartLayer/MainChart/VolumeHeatMap.d.ts +0 -41
- package/dist/components/CandleView/ChartLayer/Modal/ImageUploadModal.d.ts +0 -10
- package/dist/components/CandleView/ChartLayer/Modal/MainChartIndicatorsSettingModal.d.ts +0 -17
- package/dist/components/CandleView/ChartLayer/Modal/SubChartIndicatorsSettingModal.d.ts +0 -17
- package/dist/components/CandleView/ChartLayer/Modal/TextMarkEditorModal.d.ts +0 -21
- package/dist/components/CandleView/ChartLayer/Panes/BaseChartPane.d.ts +0 -41
- package/dist/components/CandleView/ChartLayer/Panes/ChartPaneFactory.d.ts +0 -6
- package/dist/components/CandleView/ChartLayer/Panes/ChartPanesManager.d.ts +0 -31
- package/dist/components/CandleView/ChartLayer/Panes/IChartPanes.d.ts +0 -42
- package/dist/components/CandleView/ChartLayer/SubChart/ADX.d.ts +0 -25
- package/dist/components/CandleView/ChartLayer/SubChart/ATR.d.ts +0 -25
- package/dist/components/CandleView/ChartLayer/SubChart/BBWidth.d.ts +0 -26
- package/dist/components/CandleView/ChartLayer/SubChart/CCI.d.ts +0 -25
- package/dist/components/CandleView/ChartLayer/SubChart/KDJ.d.ts +0 -23
- package/dist/components/CandleView/ChartLayer/SubChart/MACD.d.ts +0 -23
- package/dist/components/CandleView/ChartLayer/SubChart/OBV.d.ts +0 -24
- package/dist/components/CandleView/ChartLayer/SubChart/RSI.d.ts +0 -25
- package/dist/components/CandleView/ChartLayer/SubChart/SAR.d.ts +0 -23
- package/dist/components/CandleView/ChartLayer/SubChart/Stochastic.d.ts +0 -23
- package/dist/components/CandleView/ChartLayer/SubChart/Volume.d.ts +0 -24
- package/dist/components/CandleView/ChartLayer/ToolBar/GraphMarkToolBar.d.ts +0 -51
- package/dist/components/CandleView/ChartLayer/ToolBar/TextMarkToolBar.d.ts +0 -65
- package/dist/components/CandleView/ChartLayer/index.d.ts +0 -290
- package/dist/components/CandleView/DataAdapter.d.ts +0 -28
- package/dist/components/CandleView/DataLoader.d.ts +0 -15
- package/dist/components/CandleView/DataManager.d.ts +0 -23
- package/dist/components/CandleView/DataPointManager.d.ts +0 -45
- package/dist/components/CandleView/I18n.d.ts +0 -418
- package/dist/components/CandleView/Icons.d.ts +0 -161
- package/dist/components/CandleView/Indicators/MainChart/BaseIndicator.d.ts +0 -26
- package/dist/components/CandleView/Indicators/MainChart/BollingerBandsIndicator.d.ts +0 -51
- package/dist/components/CandleView/Indicators/MainChart/DonchianChannelIndicator.d.ts +0 -24
- package/dist/components/CandleView/Indicators/MainChart/EMAIndicator.d.ts +0 -24
- package/dist/components/CandleView/Indicators/MainChart/EnvelopeIndicator.d.ts +0 -52
- package/dist/components/CandleView/Indicators/MainChart/IchimokuIndicator.d.ts +0 -58
- package/dist/components/CandleView/Indicators/MainChart/MAIndicator.d.ts +0 -24
- package/dist/components/CandleView/Indicators/MainChart/MainChartIndicatorInfo.d.ts +0 -24
- package/dist/components/CandleView/Indicators/MainChart/MainChartIndicatorManager.d.ts +0 -28
- package/dist/components/CandleView/Indicators/MainChart/VWAPIndicator.d.ts +0 -26
- package/dist/components/CandleView/Indicators/SubChart/ADXIndicator.d.ts +0 -6
- package/dist/components/CandleView/Indicators/SubChart/ATRIndicator.d.ts +0 -6
- package/dist/components/CandleView/Indicators/SubChart/BBWidthIndicator.d.ts +0 -6
- package/dist/components/CandleView/Indicators/SubChart/CCIIndicator.d.ts +0 -6
- package/dist/components/CandleView/Indicators/SubChart/IIndicator.d.ts +0 -15
- package/dist/components/CandleView/Indicators/SubChart/KDJIndicator.d.ts +0 -6
- package/dist/components/CandleView/Indicators/SubChart/MACDIndicator.d.ts +0 -6
- package/dist/components/CandleView/Indicators/SubChart/OBVIndicator.d.ts +0 -6
- package/dist/components/CandleView/Indicators/SubChart/RSIIndicator.d.ts +0 -6
- package/dist/components/CandleView/Indicators/SubChart/SARIndicator.d.ts +0 -6
- package/dist/components/CandleView/Indicators/SubChart/StochasticIndicator.d.ts +0 -25
- package/dist/components/CandleView/Indicators/SubChart/VolumeIndicator.d.ts +0 -11
- package/dist/components/CandleView/LeftPanel/Config.d.ts +0 -64
- package/dist/components/CandleView/LeftPanel/EmojiConfig.d.ts +0 -21
- package/dist/components/CandleView/LeftPanel/ToolManager.d.ts +0 -5
- package/dist/components/CandleView/LeftPanel/index.d.ts +0 -95
- package/dist/components/CandleView/Mark/Arrow/ArrowLineMark.d.ts +0 -67
- package/dist/components/CandleView/Mark/Arrow/ThickArrowLineMark.d.ts +0 -73
- package/dist/components/CandleView/Mark/Channel/DisjointChannelMark.d.ts +0 -74
- package/dist/components/CandleView/Mark/Channel/EquidistantChannelMark.d.ts +0 -67
- package/dist/components/CandleView/Mark/Channel/LinearRegressionChannelMark.d.ts +0 -70
- package/dist/components/CandleView/Mark/Channel/ParallelChannelMark.d.ts +0 -67
- package/dist/components/CandleView/Mark/Content/ImageMark.d.ts +0 -75
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciArcMark.d.ts +0 -88
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciChannelMark.d.ts +0 -80
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciCircleMark.d.ts +0 -81
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciExtensionBasePriceMark.d.ts +0 -89
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciExtensionBaseTimeMark.d.ts +0 -89
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciFanMark.d.ts +0 -91
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciRetracementMark.d.ts +0 -81
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciSpiralMark.d.ts +0 -95
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciTimeZoonMark.d.ts +0 -71
- package/dist/components/CandleView/Mark/Fibonacci/FibonacciWedgeMark.d.ts +0 -97
- package/dist/components/CandleView/Mark/Fork/AndrewPitchforkMark.d.ts +0 -77
- package/dist/components/CandleView/Mark/Fork/EnhancedAndrewPitchforkMark.d.ts +0 -78
- package/dist/components/CandleView/Mark/Fork/SchiffPitchforkMark.d.ts +0 -86
- package/dist/components/CandleView/Mark/Gann/GannBoxMark.d.ts +0 -100
- package/dist/components/CandleView/Mark/Gann/GannFanMark.d.ts +0 -90
- package/dist/components/CandleView/Mark/Gann/GannRectangleMark.d.ts +0 -106
- package/dist/components/CandleView/Mark/IDeletableMark.d.ts +0 -5
- package/dist/components/CandleView/Mark/IGraph.d.ts +0 -7
- package/dist/components/CandleView/Mark/IMarkManager.d.ts +0 -11
- package/dist/components/CandleView/Mark/IMarkStyle.d.ts +0 -6
- package/dist/components/CandleView/Mark/Line/HorizontalLineMark.d.ts +0 -51
- package/dist/components/CandleView/Mark/Line/LineSegmentMark.d.ts +0 -62
- package/dist/components/CandleView/Mark/Line/VerticalLineMark.d.ts +0 -51
- package/dist/components/CandleView/Mark/Map/HeatMapMark.d.ts +0 -75
- package/dist/components/CandleView/Mark/Mock/MockKLineMark.d.ts +0 -70
- package/dist/components/CandleView/Mark/Pattern/ABCDMark.d.ts +0 -57
- package/dist/components/CandleView/Mark/Pattern/ElliottCorrectiveMark.d.ts +0 -59
- package/dist/components/CandleView/Mark/Pattern/ElliottDoubleCombinationMark.d.ts +0 -59
- package/dist/components/CandleView/Mark/Pattern/ElliottImpulseMark.d.ts +0 -59
- package/dist/components/CandleView/Mark/Pattern/ElliottTriangleMark.d.ts +0 -59
- package/dist/components/CandleView/Mark/Pattern/ElliottTripleCombinationMark.d.ts +0 -59
- package/dist/components/CandleView/Mark/Pattern/HeadAndShouldersMark.d.ts +0 -63
- package/dist/components/CandleView/Mark/Pattern/TriangleABCDMark.d.ts +0 -66
- package/dist/components/CandleView/Mark/Pattern/XABCDMark.d.ts +0 -58
- package/dist/components/CandleView/Mark/Pen/BrushMark.d.ts +0 -67
- package/dist/components/CandleView/Mark/Pen/EraserMark.d.ts +0 -51
- package/dist/components/CandleView/Mark/Pen/MarkerPenMark.d.ts +0 -62
- package/dist/components/CandleView/Mark/Pen/PenMark.d.ts +0 -62
- package/dist/components/CandleView/Mark/Pen/PencilMark.d.ts +0 -62
- package/dist/components/CandleView/Mark/Range/LongPositionMark.d.ts +0 -79
- package/dist/components/CandleView/Mark/Range/PriceRangeMark.d.ts +0 -71
- package/dist/components/CandleView/Mark/Range/ShortPositionMark.d.ts +0 -79
- package/dist/components/CandleView/Mark/Range/TimePriceRangeMark.d.ts +0 -74
- package/dist/components/CandleView/Mark/Range/TimeRangeMark.d.ts +0 -71
- package/dist/components/CandleView/Mark/Shape/CircleMark.d.ts +0 -78
- package/dist/components/CandleView/Mark/Shape/CurveMark.d.ts +0 -70
- package/dist/components/CandleView/Mark/Shape/DoubleCurveMark.d.ts +0 -75
- package/dist/components/CandleView/Mark/Shape/EllipseMark.d.ts +0 -85
- package/dist/components/CandleView/Mark/Shape/RectangleMark.ts.d.ts +0 -65
- package/dist/components/CandleView/Mark/Shape/SectorMark.d.ts +0 -83
- package/dist/components/CandleView/Mark/Shape/TriangleMark.d.ts +0 -91
- package/dist/components/CandleView/Mark/Static/BottomArrowMark.d.ts +0 -13
- package/dist/components/CandleView/Mark/Static/BottomTextMark.d.ts +0 -22
- package/dist/components/CandleView/Mark/Static/MultiBottomArrowMark.d.ts +0 -14
- package/dist/components/CandleView/Mark/Static/MultiBottomTextMark.d.ts +0 -36
- package/dist/components/CandleView/Mark/Static/MultiTopArrowMark.d.ts +0 -14
- package/dist/components/CandleView/Mark/Static/MultiTopTextMark.d.ts +0 -36
- package/dist/components/CandleView/Mark/Static/TopArrowMark.d.ts +0 -13
- package/dist/components/CandleView/Mark/Static/TopTextMark.d.ts +0 -22
- package/dist/components/CandleView/Mark/Text/BubbleBoxMark.d.ts +0 -126
- package/dist/components/CandleView/Mark/Text/EmojiMark.d.ts +0 -72
- package/dist/components/CandleView/Mark/Text/FlagMark.d.ts +0 -63
- package/dist/components/CandleView/Mark/Text/PinMark.d.ts +0 -110
- package/dist/components/CandleView/Mark/Text/PriceLabelMark.d.ts +0 -70
- package/dist/components/CandleView/Mark/Text/PriceNoteMark.d.ts +0 -87
- package/dist/components/CandleView/Mark/Text/SignPostMark.d.ts +0 -110
- package/dist/components/CandleView/Mark/Text/TextEditMark.d.ts +0 -105
- package/dist/components/CandleView/MarkManager/Channel/DisjointChannelMarkManager.d.ts +0 -67
- package/dist/components/CandleView/MarkManager/Channel/EquidistantChannelMarkManager.d.ts +0 -66
- package/dist/components/CandleView/MarkManager/Channel/LinearRegressionChannelMarkManager.d.ts +0 -63
- package/dist/components/CandleView/MarkManager/Channel/ParallelChannelMarkManager.d.ts +0 -66
- package/dist/components/CandleView/MarkManager/Content/ImageMarkManager.d.ts +0 -57
- package/dist/components/CandleView/MarkManager/Elliott/ElliottCorrectiveMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Elliott/ElliottDoubleCombinationMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Elliott/ElliottImpulseMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Elliott/ElliottTriangleMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Elliott/ElliottTripleCombinationMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciArcMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciChannelMarkManager.d.ts +0 -64
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciCircleMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciExtensionBasePriceMarkManager.d.ts +0 -54
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciExtensionBaseTimeMarkManager.d.ts +0 -54
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciFanMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciRetracementMarkManager.d.ts +0 -54
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciSpiralMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciTimeZoonMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciWedgeMarkManager.d.ts +0 -56
- package/dist/components/CandleView/MarkManager/Fork/AndrewPitchforkMarkManager.d.ts +0 -71
- package/dist/components/CandleView/MarkManager/Fork/EnhancedAndrewPitchforkMarkManager.d.ts +0 -71
- package/dist/components/CandleView/MarkManager/Fork/SchiffPitchforkMarkManager.d.ts +0 -76
- package/dist/components/CandleView/MarkManager/Gann/GannBoxMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Gann/GannFanMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Gann/GannRectangleManager.d.ts +0 -56
- package/dist/components/CandleView/MarkManager/Line/ArrowLineMarkManager.d.ts +0 -52
- package/dist/components/CandleView/MarkManager/Line/AxisLineMarkManager.d.ts +0 -56
- package/dist/components/CandleView/MarkManager/Line/LineSegmentMarkManager.d.ts +0 -52
- package/dist/components/CandleView/MarkManager/Line/ThickArrowLineMarkManager.d.ts +0 -52
- package/dist/components/CandleView/MarkManager/Map/HeatMapMarkManager.d.ts +0 -64
- package/dist/components/CandleView/MarkManager/Mock/MockKLineMarkManager.d.ts +0 -52
- package/dist/components/CandleView/MarkManager/Pattern/ABCDMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Pattern/HeadAndShouldersMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Pattern/TriangleABCDMarkManager.d.ts +0 -54
- package/dist/components/CandleView/MarkManager/Pattern/XABCDMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Pen/BrushMarkManager.d.ts +0 -55
- package/dist/components/CandleView/MarkManager/Pen/EraserMarkManager.d.ts +0 -51
- package/dist/components/CandleView/MarkManager/Pen/MarkerPenMarkManager.d.ts +0 -55
- package/dist/components/CandleView/MarkManager/Pen/PenMarkManager.d.ts +0 -55
- package/dist/components/CandleView/MarkManager/Pen/PencilMarkManager.d.ts +0 -54
- package/dist/components/CandleView/MarkManager/Range/LongPositionMarkManager.d.ts +0 -63
- package/dist/components/CandleView/MarkManager/Range/PriceRangeMarkManager.d.ts +0 -63
- package/dist/components/CandleView/MarkManager/Range/ShortPositionMarkManager.d.ts +0 -63
- package/dist/components/CandleView/MarkManager/Range/TimePriceRangeMarkManager.d.ts +0 -63
- package/dist/components/CandleView/MarkManager/Range/TimeRangeMarkManager.d.ts +0 -63
- package/dist/components/CandleView/MarkManager/Shape/CircleMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Shape/CurveMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Shape/DoubleCurveMarkManager.d.ts +0 -54
- package/dist/components/CandleView/MarkManager/Shape/EllipseMarkManager.d.ts +0 -55
- package/dist/components/CandleView/MarkManager/Shape/RectangleMarkManager.d.ts +0 -51
- package/dist/components/CandleView/MarkManager/Shape/SectorMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Shape/TriangleMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/StaticMarkManager.d.ts +0 -46
- package/dist/components/CandleView/MarkManager/Text/BubbleBoxMarkManager.d.ts +0 -61
- package/dist/components/CandleView/MarkManager/Text/EmojiMarkManager.d.ts +0 -52
- package/dist/components/CandleView/MarkManager/Text/FlagMarkManager.d.ts +0 -51
- package/dist/components/CandleView/MarkManager/Text/PinMarkManager.d.ts +0 -56
- package/dist/components/CandleView/MarkManager/Text/PriceLabelMarkManager.d.ts +0 -51
- package/dist/components/CandleView/MarkManager/Text/PriceNoteMarkManager.d.ts +0 -53
- package/dist/components/CandleView/MarkManager/Text/SignPostMarkManager.d.ts +0 -55
- package/dist/components/CandleView/MarkManager/Text/TextEditMarkManager.d.ts +0 -61
- package/dist/components/CandleView/Theme.d.ts +0 -59
- package/dist/components/CandleView/TopPanel/Config.d.ts +0 -23
- package/dist/components/CandleView/TopPanel/IndicatorProcessing.d.ts +0 -4
- package/dist/components/CandleView/TopPanel/index.d.ts +0 -104
- package/dist/components/CandleView/ViewportManager.d.ts +0 -53
- package/dist/components/CandleView/index.d.ts +0 -2
- package/dist/components/CandleView/tools.d.ts +0 -7
- package/dist/components/CandleView/types.d.ts +0 -200
- package/dist/index.test.d.ts +0 -1
- /package/dist/{candleview.js → index.js} +0 -0
- /package/dist/{candleview.mjs → index.mjs} +0 -0
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { MarkType } from '../../types';
|
|
2
|
-
import { IGraph } from '../IGraph';
|
|
3
|
-
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
-
export declare class CircleMark implements IGraph, IMarkStyle {
|
|
5
|
-
private _chart;
|
|
6
|
-
private _series;
|
|
7
|
-
private _centerTime;
|
|
8
|
-
private _centerPrice;
|
|
9
|
-
private _radiusTime;
|
|
10
|
-
private _radiusPrice;
|
|
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 markType;
|
|
20
|
-
private _fillColor;
|
|
21
|
-
private _pixelRadius;
|
|
22
|
-
private _radiusHandleAngle;
|
|
23
|
-
constructor(centerTime: number, centerPrice: number, radiusTime?: number, radiusPrice?: number, color?: string, lineWidth?: number, isPreview?: boolean);
|
|
24
|
-
private hexToRGBA;
|
|
25
|
-
getMarkType(): MarkType;
|
|
26
|
-
attached(param: any): void;
|
|
27
|
-
updateAllViews(): void;
|
|
28
|
-
updateRadius(radiusTime: number, radiusPrice: number): void;
|
|
29
|
-
updateCenter(centerTime: number, centerPrice: number): void;
|
|
30
|
-
setPreviewMode(isPreview: boolean): void;
|
|
31
|
-
setDragging(isDragging: boolean, dragPoint?: 'center' | 'radius' | 'circle' | null): void;
|
|
32
|
-
setShowHandles(show: boolean): void;
|
|
33
|
-
dragCircleByPixels(deltaX: number, deltaY: number): void;
|
|
34
|
-
scaleCircle(scaleFactor: number): void;
|
|
35
|
-
updateRadiusHandleAngle(angle: number): void;
|
|
36
|
-
isPointNearHandle(x: number, y: number, threshold?: number): 'center' | 'radius' | null;
|
|
37
|
-
getRadiusHandlePosition(): {
|
|
38
|
-
x: number;
|
|
39
|
-
y: number;
|
|
40
|
-
};
|
|
41
|
-
calculateAngleFromCenter(mouseX: number, mouseY: number): number;
|
|
42
|
-
private calculatePixelRadius;
|
|
43
|
-
private getRadius;
|
|
44
|
-
updatePixelRadius(newPixelRadius: number): void;
|
|
45
|
-
private requestUpdate;
|
|
46
|
-
time(): number;
|
|
47
|
-
priceValue(): number;
|
|
48
|
-
paneViews(): {
|
|
49
|
-
renderer: () => any;
|
|
50
|
-
}[];
|
|
51
|
-
getCenterTime(): number;
|
|
52
|
-
getCenterPrice(): number;
|
|
53
|
-
getRadiusTime(): number;
|
|
54
|
-
getRadiusPrice(): number;
|
|
55
|
-
getPixelRadius(): number;
|
|
56
|
-
getRadiusHandleAngle(): number;
|
|
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
|
-
[key: string]: any;
|
|
65
|
-
}): void;
|
|
66
|
-
getCurrentStyles(): Record<string, any>;
|
|
67
|
-
getBounds(): {
|
|
68
|
-
centerX: any;
|
|
69
|
-
centerY: any;
|
|
70
|
-
radius: number;
|
|
71
|
-
minX: number;
|
|
72
|
-
maxX: any;
|
|
73
|
-
minY: number;
|
|
74
|
-
maxY: any;
|
|
75
|
-
} | null;
|
|
76
|
-
isPointInCircle(x: number, y: number, threshold?: number): boolean;
|
|
77
|
-
isPointNearCircle(x: number, y: number, threshold?: number): boolean;
|
|
78
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { MarkType } from '../../types';
|
|
2
|
-
import { IGraph } from '../IGraph';
|
|
3
|
-
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
-
export declare class CurveMark 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 markType;
|
|
20
|
-
constructor(startTime: number, startPrice: number, endTime: number, endPrice: number, color?: string, lineWidth?: number, isPreview?: boolean);
|
|
21
|
-
getMarkType(): MarkType;
|
|
22
|
-
attached(param: any): void;
|
|
23
|
-
updateAllViews(): void;
|
|
24
|
-
updateEndPoint(endTime: number, endPrice: number): void;
|
|
25
|
-
updateStartPoint(startTime: number, startPrice: number): void;
|
|
26
|
-
setPreviewMode(isPreview: boolean): void;
|
|
27
|
-
setDragging(isDragging: boolean, dragPoint?: 'start' | 'end' | 'line' | 'mid' | null): void;
|
|
28
|
-
setShowHandles(show: boolean): void;
|
|
29
|
-
dragLineByPixels(deltaX: number, deltaY: number): void;
|
|
30
|
-
dragLine(deltaTime: number, deltaPrice: number): void;
|
|
31
|
-
isPointNearHandle(x: number, y: number, threshold?: number): 'start' | 'end' | 'mid' | null;
|
|
32
|
-
isPointNearCurve(x: number, y: number, threshold?: number): boolean;
|
|
33
|
-
private quadraticBezierPoint;
|
|
34
|
-
getMidPixelOffsetX(): number;
|
|
35
|
-
getMidPixelOffsetY(): number;
|
|
36
|
-
private isPointNearLineSegment;
|
|
37
|
-
private requestUpdate;
|
|
38
|
-
time(): number;
|
|
39
|
-
priceValue(): number;
|
|
40
|
-
private _midPixelOffsetX;
|
|
41
|
-
private _midPixelOffsetY;
|
|
42
|
-
updateMidPoint(pixelOffsetX: number, pixelOffsetY: number): void;
|
|
43
|
-
paneViews(): {
|
|
44
|
-
renderer: () => any;
|
|
45
|
-
}[];
|
|
46
|
-
getStartTime(): number;
|
|
47
|
-
getStartPrice(): number;
|
|
48
|
-
getEndTime(): number;
|
|
49
|
-
getEndPrice(): number;
|
|
50
|
-
updateColor(color: string): void;
|
|
51
|
-
updateLineWidth(lineWidth: number): void;
|
|
52
|
-
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
53
|
-
updateStyles(styles: {
|
|
54
|
-
color?: string;
|
|
55
|
-
lineWidth?: number;
|
|
56
|
-
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
57
|
-
[key: string]: any;
|
|
58
|
-
}): void;
|
|
59
|
-
getCurrentStyles(): Record<string, any>;
|
|
60
|
-
getBounds(): {
|
|
61
|
-
startX: any;
|
|
62
|
-
startY: any;
|
|
63
|
-
endX: any;
|
|
64
|
-
endY: any;
|
|
65
|
-
minX: number;
|
|
66
|
-
maxX: number;
|
|
67
|
-
minY: number;
|
|
68
|
-
maxY: number;
|
|
69
|
-
} | null;
|
|
70
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { MarkType } from '../../types';
|
|
2
|
-
import { IGraph } from '../IGraph';
|
|
3
|
-
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
-
export declare class DoubleCurveMark 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 markType;
|
|
20
|
-
private _mid1PixelOffsetX;
|
|
21
|
-
private _mid1PixelOffsetY;
|
|
22
|
-
private _mid2PixelOffsetX;
|
|
23
|
-
private _mid2PixelOffsetY;
|
|
24
|
-
constructor(startTime: number, startPrice: number, endTime: number, endPrice: number, color?: string, lineWidth?: number, isPreview?: boolean);
|
|
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' | 'mid1' | 'mid2' | 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' | 'mid1' | 'mid2' | null;
|
|
36
|
-
isPointNearCurve(x: number, y: number, threshold?: number): boolean;
|
|
37
|
-
private cubicBezierPoint;
|
|
38
|
-
private isPointNearLineSegment;
|
|
39
|
-
private requestUpdate;
|
|
40
|
-
time(): number;
|
|
41
|
-
priceValue(): number;
|
|
42
|
-
getMid1PixelOffsetX(): number;
|
|
43
|
-
getMid1PixelOffsetY(): number;
|
|
44
|
-
getMid2PixelOffsetX(): number;
|
|
45
|
-
getMid2PixelOffsetY(): number;
|
|
46
|
-
updateMid1Point(pixelOffsetX: number, pixelOffsetY: number): void;
|
|
47
|
-
updateMid2Point(pixelOffsetX: number, pixelOffsetY: number): void;
|
|
48
|
-
paneViews(): {
|
|
49
|
-
renderer: () => any;
|
|
50
|
-
}[];
|
|
51
|
-
getStartTime(): number;
|
|
52
|
-
getStartPrice(): number;
|
|
53
|
-
getEndTime(): number;
|
|
54
|
-
getEndPrice(): number;
|
|
55
|
-
updateColor(color: string): void;
|
|
56
|
-
updateLineWidth(lineWidth: number): void;
|
|
57
|
-
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
58
|
-
updateStyles(styles: {
|
|
59
|
-
color?: string;
|
|
60
|
-
lineWidth?: number;
|
|
61
|
-
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
62
|
-
[key: string]: any;
|
|
63
|
-
}): void;
|
|
64
|
-
getCurrentStyles(): Record<string, any>;
|
|
65
|
-
getBounds(): {
|
|
66
|
-
startX: any;
|
|
67
|
-
startY: any;
|
|
68
|
-
endX: any;
|
|
69
|
-
endY: any;
|
|
70
|
-
minX: number;
|
|
71
|
-
maxX: number;
|
|
72
|
-
minY: number;
|
|
73
|
-
maxY: number;
|
|
74
|
-
} | null;
|
|
75
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { MarkType } from '../../types';
|
|
2
|
-
import { IGraph } from '../IGraph';
|
|
3
|
-
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
-
export declare class EllipseMark implements IGraph, IMarkStyle {
|
|
5
|
-
private _chart;
|
|
6
|
-
private _series;
|
|
7
|
-
private _centerTime;
|
|
8
|
-
private _centerPrice;
|
|
9
|
-
private _radiusX;
|
|
10
|
-
private _radiusY;
|
|
11
|
-
private _angle;
|
|
12
|
-
private _renderer;
|
|
13
|
-
private _color;
|
|
14
|
-
private _lineWidth;
|
|
15
|
-
private _lineStyle;
|
|
16
|
-
private _isPreview;
|
|
17
|
-
private _isDragging;
|
|
18
|
-
private _dragPoint;
|
|
19
|
-
private _showHandles;
|
|
20
|
-
private markType;
|
|
21
|
-
private _fillColor;
|
|
22
|
-
private _pixelRadiusX;
|
|
23
|
-
private _pixelRadiusY;
|
|
24
|
-
private _lastUpdateTime;
|
|
25
|
-
constructor(centerTime: number, centerPrice: number, radiusX?: number, radiusY?: number, angle?: number, color?: string, lineWidth?: number, isPreview?: boolean);
|
|
26
|
-
private hexToRGBA;
|
|
27
|
-
getMarkType(): MarkType;
|
|
28
|
-
attached(param: any): void;
|
|
29
|
-
updateAllViews(): void;
|
|
30
|
-
updateRadii(radiusX: number, radiusY: number): void;
|
|
31
|
-
updateCenter(centerTime: number, centerPrice: number): void;
|
|
32
|
-
updateAngle(angle: number): void;
|
|
33
|
-
setPreviewMode(isPreview: boolean): void;
|
|
34
|
-
setDragging(isDragging: boolean, dragPoint?: 'center' | 'top' | 'bottom' | 'left' | 'right' | 'rotate' | 'ellipse' | null): void;
|
|
35
|
-
setShowHandles(show: boolean): void;
|
|
36
|
-
dragEllipseByPixels(deltaX: number, deltaY: number): void;
|
|
37
|
-
getHandlePosition(handleType: 'top' | 'bottom' | 'left' | 'right' | 'rotate'): {
|
|
38
|
-
x: number;
|
|
39
|
-
y: number;
|
|
40
|
-
};
|
|
41
|
-
isPointNearHandle(x: number, y: number, threshold?: number): 'center' | 'top' | 'bottom' | 'left' | 'right' | 'rotate' | 'ellipse' | null;
|
|
42
|
-
calculateRotationAngle(mouseX: number, mouseY: number): number;
|
|
43
|
-
calculateAngleFromCenter(mouseX: number, mouseY: number): number;
|
|
44
|
-
private bindChartEvents;
|
|
45
|
-
private handleSizeChange;
|
|
46
|
-
private calculatePixelRadii;
|
|
47
|
-
private updateLogicalRadiiFromPixels;
|
|
48
|
-
updatePixelRadii(newRadiusX: number, newRadiusY: number): void;
|
|
49
|
-
forceUpdate(): void;
|
|
50
|
-
private requestUpdate;
|
|
51
|
-
time(): number;
|
|
52
|
-
priceValue(): number;
|
|
53
|
-
paneViews(): {
|
|
54
|
-
renderer: () => any;
|
|
55
|
-
}[];
|
|
56
|
-
getCenterTime(): number;
|
|
57
|
-
getCenterPrice(): number;
|
|
58
|
-
getRadiusX(): number;
|
|
59
|
-
getRadiusY(): number;
|
|
60
|
-
getAngle(): number;
|
|
61
|
-
getPixelRadiusX(): number;
|
|
62
|
-
getPixelRadiusY(): number;
|
|
63
|
-
updateColor(color: string): void;
|
|
64
|
-
updateLineWidth(lineWidth: number): void;
|
|
65
|
-
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
66
|
-
updateStyles(styles: {
|
|
67
|
-
color?: string;
|
|
68
|
-
lineWidth?: number;
|
|
69
|
-
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
70
|
-
[key: string]: any;
|
|
71
|
-
}): void;
|
|
72
|
-
getCurrentStyles(): Record<string, any>;
|
|
73
|
-
getBounds(): {
|
|
74
|
-
centerX: any;
|
|
75
|
-
centerY: any;
|
|
76
|
-
radiusX: number;
|
|
77
|
-
radiusY: number;
|
|
78
|
-
angle: number;
|
|
79
|
-
minX: number;
|
|
80
|
-
maxX: any;
|
|
81
|
-
minY: number;
|
|
82
|
-
maxY: any;
|
|
83
|
-
} | null;
|
|
84
|
-
isPointInEllipse(x: number, y: number, threshold?: number): boolean;
|
|
85
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { MarkType } from '../../types';
|
|
2
|
-
import { IGraph } from '../IGraph';
|
|
3
|
-
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
-
export declare class RectangleMark 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
|
-
constructor(startTime: number, startPrice: number, endTime: number, endPrice: number, color?: string, lineWidth?: number, fillColor?: string, isPreview?: boolean);
|
|
22
|
-
getMarkType(): MarkType;
|
|
23
|
-
attached(param: any): void;
|
|
24
|
-
updateAllViews(): void;
|
|
25
|
-
updateEndPoint(endTime: number, endPrice: number): void;
|
|
26
|
-
updateStartPoint(startTime: number, startPrice: number): void;
|
|
27
|
-
setPreviewMode(isPreview: boolean): void;
|
|
28
|
-
setDragging(isDragging: boolean, dragPoint?: 'start' | 'end' | 'line' | null): void;
|
|
29
|
-
setShowHandles(show: boolean): void;
|
|
30
|
-
dragLineByPixels(deltaX: number, deltaY: number): void;
|
|
31
|
-
isPointNearHandle(x: number, y: number, threshold?: number): 'start' | 'end' | null;
|
|
32
|
-
private requestUpdate;
|
|
33
|
-
time(): number;
|
|
34
|
-
priceValue(): number;
|
|
35
|
-
paneViews(): {
|
|
36
|
-
renderer: () => any;
|
|
37
|
-
}[];
|
|
38
|
-
getStartTime(): number;
|
|
39
|
-
getStartPrice(): number;
|
|
40
|
-
getEndTime(): number;
|
|
41
|
-
getEndPrice(): number;
|
|
42
|
-
updateColor(color: string): void;
|
|
43
|
-
updateLineWidth(lineWidth: number): void;
|
|
44
|
-
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
45
|
-
updateFillColor(fillColor: string): void;
|
|
46
|
-
updateStyles(styles: {
|
|
47
|
-
color?: string;
|
|
48
|
-
lineWidth?: number;
|
|
49
|
-
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
50
|
-
fillColor?: string;
|
|
51
|
-
[key: string]: any;
|
|
52
|
-
}): void;
|
|
53
|
-
getCurrentStyles(): Record<string, any>;
|
|
54
|
-
getBounds(): {
|
|
55
|
-
startX: any;
|
|
56
|
-
startY: any;
|
|
57
|
-
endX: any;
|
|
58
|
-
endY: any;
|
|
59
|
-
minX: number;
|
|
60
|
-
maxX: number;
|
|
61
|
-
minY: number;
|
|
62
|
-
maxY: number;
|
|
63
|
-
} | null;
|
|
64
|
-
isPointInRectangle(x: number, y: number, threshold?: number): boolean;
|
|
65
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { MarkType } from '../../types';
|
|
2
|
-
import { IGraph } from '../IGraph';
|
|
3
|
-
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
-
export declare class SectorMark implements IGraph, IMarkStyle {
|
|
5
|
-
private _chart;
|
|
6
|
-
private _series;
|
|
7
|
-
private _centerPrice;
|
|
8
|
-
private _radiusPrice;
|
|
9
|
-
private _anglePrice;
|
|
10
|
-
private _centerTime;
|
|
11
|
-
private _radiusTime;
|
|
12
|
-
private _angleTime;
|
|
13
|
-
private _renderer;
|
|
14
|
-
private _color;
|
|
15
|
-
private _lineWidth;
|
|
16
|
-
private _lineStyle;
|
|
17
|
-
private _isPreview;
|
|
18
|
-
private _isDragging;
|
|
19
|
-
private _dragPoint;
|
|
20
|
-
private _showHandles;
|
|
21
|
-
private _fillOpacity;
|
|
22
|
-
private _sectorAngle;
|
|
23
|
-
private markType;
|
|
24
|
-
private _radiusLength;
|
|
25
|
-
private _centerAngle;
|
|
26
|
-
constructor(centerPrice: number, radiusPrice: number, anglePrice: number, centerTime: number, radiusTime: number, angleTime: number, color?: string, lineWidth?: number, isPreview?: boolean);
|
|
27
|
-
private _updateSectorAngle;
|
|
28
|
-
getMarkType(): MarkType;
|
|
29
|
-
attached(param: any): void;
|
|
30
|
-
updateAllViews(): void;
|
|
31
|
-
updateRadiusPoint(radiusPrice: number, radiusTime: number): void;
|
|
32
|
-
updateAnglePoint(anglePrice: number, angleTime: number): void;
|
|
33
|
-
updateCenterPoint(centerPrice: number, centerTime: number): void;
|
|
34
|
-
setPreviewMode(isPreview: boolean): void;
|
|
35
|
-
setDragging(isDragging: boolean, dragPoint?: 'center' | 'radius' | 'angle' | 'sector' | null): void;
|
|
36
|
-
setShowHandles(show: boolean): void;
|
|
37
|
-
dragSectorByPixels(deltaY: number, deltaX?: number): void;
|
|
38
|
-
dragHandleByPixels(deltaY: number, deltaX: number | undefined, handleType: 'center' | 'radius' | 'angle'): void;
|
|
39
|
-
isPointNearHandle(x: number, y: number, threshold?: number): 'center' | 'radius' | 'angle' | null;
|
|
40
|
-
isPointNearSector(x: number, y: number, threshold?: number): boolean;
|
|
41
|
-
isPointInsideSector(x: number, y: number): boolean;
|
|
42
|
-
private requestUpdate;
|
|
43
|
-
time(): number;
|
|
44
|
-
priceValue(): number;
|
|
45
|
-
getCenterAngle(): number;
|
|
46
|
-
paneViews(): {
|
|
47
|
-
renderer: () => any;
|
|
48
|
-
}[];
|
|
49
|
-
getCenterPrice(): number;
|
|
50
|
-
getRadiusPrice(): number;
|
|
51
|
-
getAnglePrice(): number;
|
|
52
|
-
getCenterTime(): number;
|
|
53
|
-
getRadiusTime(): number;
|
|
54
|
-
getAngleTime(): number;
|
|
55
|
-
getSectorAngle(): number;
|
|
56
|
-
getRadiusLength(): number;
|
|
57
|
-
updateColor(color: string): void;
|
|
58
|
-
updateLineWidth(lineWidth: number): void;
|
|
59
|
-
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
60
|
-
updateFillOpacity(opacity: number): void;
|
|
61
|
-
updateStyles(styles: {
|
|
62
|
-
color?: string;
|
|
63
|
-
lineWidth?: number;
|
|
64
|
-
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
65
|
-
fillOpacity?: number;
|
|
66
|
-
[key: string]: any;
|
|
67
|
-
}): void;
|
|
68
|
-
getCurrentStyles(): Record<string, any>;
|
|
69
|
-
getBounds(): {
|
|
70
|
-
centerX: any;
|
|
71
|
-
centerY: any;
|
|
72
|
-
radiusX: any;
|
|
73
|
-
radiusY: any;
|
|
74
|
-
angleX: any;
|
|
75
|
-
angleY: any;
|
|
76
|
-
minX: number;
|
|
77
|
-
maxX: any;
|
|
78
|
-
minY: number;
|
|
79
|
-
maxY: any;
|
|
80
|
-
radiusLength: number;
|
|
81
|
-
sectorAngle: number;
|
|
82
|
-
} | null;
|
|
83
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { MarkType } from '../../types';
|
|
2
|
-
import { IGraph } from '../IGraph';
|
|
3
|
-
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
-
export declare class TriangleMark implements IGraph, IMarkStyle {
|
|
5
|
-
private _chart;
|
|
6
|
-
private _series;
|
|
7
|
-
private _centerTime;
|
|
8
|
-
private _centerPrice;
|
|
9
|
-
private _sizeTime;
|
|
10
|
-
private _sizePrice;
|
|
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 markType;
|
|
20
|
-
private _fillColor;
|
|
21
|
-
private _pixelSize;
|
|
22
|
-
private _rotation;
|
|
23
|
-
private _vertices;
|
|
24
|
-
private _rotationHandleDistance;
|
|
25
|
-
constructor(centerTime: number, centerPrice: number, sizeTime?: number, sizePrice?: number, color?: string, lineWidth?: number, isPreview?: boolean);
|
|
26
|
-
private hexToRGBA;
|
|
27
|
-
getMarkType(): MarkType;
|
|
28
|
-
attached(param: any): void;
|
|
29
|
-
updateAllViews(): void;
|
|
30
|
-
updateSize(sizeTime: number, sizePrice: number): void;
|
|
31
|
-
updateCenter(centerTime: number, centerPrice: number): void;
|
|
32
|
-
setPreviewMode(isPreview: boolean): void;
|
|
33
|
-
setDragging(isDragging: boolean, dragPoint?: 'center' | 'vertex1' | 'vertex2' | 'vertex3' | 'triangle' | 'rotation' | null): void;
|
|
34
|
-
setShowHandles(show: boolean): void;
|
|
35
|
-
private calculateVertices;
|
|
36
|
-
private getRotationHandlePosition;
|
|
37
|
-
dragTriangleByPixels(deltaX: number, deltaY: number): void;
|
|
38
|
-
dragVertex(vertexIndex: number, newX: number, newY: number): void;
|
|
39
|
-
rotateTriangle(mouseX: number, mouseY: number): void;
|
|
40
|
-
isPointNearHandle(x: number, y: number, threshold?: number): 'center' | 'vertex1' | 'vertex2' | 'vertex3' | 'rotation' | null;
|
|
41
|
-
getVertexPosition(vertexIndex: number): {
|
|
42
|
-
x: number;
|
|
43
|
-
y: number;
|
|
44
|
-
};
|
|
45
|
-
private calculatePixelSize;
|
|
46
|
-
private getSize;
|
|
47
|
-
updatePixelSize(newPixelSize: number): void;
|
|
48
|
-
updateRotation(newRotation: number): void;
|
|
49
|
-
private requestUpdate;
|
|
50
|
-
time(): number;
|
|
51
|
-
priceValue(): number;
|
|
52
|
-
paneViews(): {
|
|
53
|
-
renderer: () => any;
|
|
54
|
-
}[];
|
|
55
|
-
getCenterTime(): number;
|
|
56
|
-
getCenterPrice(): number;
|
|
57
|
-
getSizeTime(): number;
|
|
58
|
-
getSizePrice(): number;
|
|
59
|
-
getPixelSize(): number;
|
|
60
|
-
getRotation(): number;
|
|
61
|
-
getVertices(): {
|
|
62
|
-
x: number;
|
|
63
|
-
y: number;
|
|
64
|
-
}[];
|
|
65
|
-
updateColor(color: string): void;
|
|
66
|
-
updateLineWidth(lineWidth: number): void;
|
|
67
|
-
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
68
|
-
updateStyles(styles: {
|
|
69
|
-
color?: string;
|
|
70
|
-
lineWidth?: number;
|
|
71
|
-
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
72
|
-
[key: string]: any;
|
|
73
|
-
}): void;
|
|
74
|
-
getCurrentStyles(): Record<string, any>;
|
|
75
|
-
getBounds(): {
|
|
76
|
-
centerX: any;
|
|
77
|
-
centerY: any;
|
|
78
|
-
minX: number;
|
|
79
|
-
maxX: number;
|
|
80
|
-
minY: number;
|
|
81
|
-
maxY: number;
|
|
82
|
-
vertices: {
|
|
83
|
-
x: number;
|
|
84
|
-
y: number;
|
|
85
|
-
}[];
|
|
86
|
-
rotation: number;
|
|
87
|
-
} | null;
|
|
88
|
-
isPointInTriangle(x: number, y: number): boolean;
|
|
89
|
-
isPointNearEdge(x: number, y: number, threshold?: number): boolean;
|
|
90
|
-
private pointToLineDistance;
|
|
91
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ISeriesPrimitive, SeriesAttachedParameter, Time } from 'lightweight-charts';
|
|
2
|
-
export declare class BottomArrowMark implements ISeriesPrimitive<Time> {
|
|
3
|
-
private _chart;
|
|
4
|
-
private _series;
|
|
5
|
-
private _time;
|
|
6
|
-
private _renderer;
|
|
7
|
-
constructor(time: number);
|
|
8
|
-
attached(param: SeriesAttachedParameter<Time, 'Candlestick'>): void;
|
|
9
|
-
updateAllViews(): void;
|
|
10
|
-
paneViews(): {
|
|
11
|
-
renderer: () => any;
|
|
12
|
-
}[];
|
|
13
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ISeriesPrimitive, SeriesAttachedParameter, Time } from 'lightweight-charts';
|
|
2
|
-
export declare class BottomTextMark implements ISeriesPrimitive<Time> {
|
|
3
|
-
private _chart;
|
|
4
|
-
private _series;
|
|
5
|
-
private _time;
|
|
6
|
-
private _text;
|
|
7
|
-
private _textColor;
|
|
8
|
-
private _backgroundColor;
|
|
9
|
-
private _isCircular;
|
|
10
|
-
private _renderer;
|
|
11
|
-
private _fontSize;
|
|
12
|
-
private _padding;
|
|
13
|
-
constructor(time: number, text: string, textColor?: string, backgroundColor?: string, isCircular?: boolean, fontSize?: number, padding?: number);
|
|
14
|
-
attached(param: SeriesAttachedParameter<Time, 'Candlestick'>): void;
|
|
15
|
-
updateAllViews(): void;
|
|
16
|
-
paneViews(): {
|
|
17
|
-
renderer: () => any;
|
|
18
|
-
}[];
|
|
19
|
-
updateText(text: string): void;
|
|
20
|
-
updateColors(textColor: string, backgroundColor: string): void;
|
|
21
|
-
updateCircular(isCircular: boolean): void;
|
|
22
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ISeriesPrimitive, SeriesAttachedParameter, Time } from 'lightweight-charts';
|
|
2
|
-
export declare class MultiBottomArrowMark implements ISeriesPrimitive<Time> {
|
|
3
|
-
private _chart;
|
|
4
|
-
private _series;
|
|
5
|
-
private _time;
|
|
6
|
-
private _renderer;
|
|
7
|
-
private _count;
|
|
8
|
-
constructor(time: number, count?: number);
|
|
9
|
-
attached(param: SeriesAttachedParameter<Time, 'Candlestick'>): void;
|
|
10
|
-
updateAllViews(): void;
|
|
11
|
-
paneViews(): {
|
|
12
|
-
renderer: () => any;
|
|
13
|
-
}[];
|
|
14
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ISeriesPrimitive, SeriesAttachedParameter, Time } from 'lightweight-charts';
|
|
2
|
-
interface TextItem {
|
|
3
|
-
text: string;
|
|
4
|
-
textColor?: string;
|
|
5
|
-
backgroundColor?: string;
|
|
6
|
-
isCircular?: boolean;
|
|
7
|
-
fontSize?: number;
|
|
8
|
-
padding?: number;
|
|
9
|
-
}
|
|
10
|
-
export declare class MultiBottomTextMark implements ISeriesPrimitive<Time> {
|
|
11
|
-
private _chart;
|
|
12
|
-
private _series;
|
|
13
|
-
private _time;
|
|
14
|
-
private _renderer;
|
|
15
|
-
private _textItems;
|
|
16
|
-
private _defaultIsCircular;
|
|
17
|
-
private _defaultFontSize;
|
|
18
|
-
private _defaultPadding;
|
|
19
|
-
private _defaultTextColor;
|
|
20
|
-
private _defaultBackgroundColor;
|
|
21
|
-
constructor(time: number, textItems?: TextItem[]);
|
|
22
|
-
attached(param: SeriesAttachedParameter<Time, 'Candlestick'>): void;
|
|
23
|
-
updateAllViews(): void;
|
|
24
|
-
paneViews(): {
|
|
25
|
-
renderer: () => any;
|
|
26
|
-
}[];
|
|
27
|
-
addTextItem(text: string, textColor?: string, backgroundColor?: string, isCircular?: boolean, fontSize?: number, padding?: number): void;
|
|
28
|
-
setTextItems(textItems: TextItem[]): void;
|
|
29
|
-
updateText(index: number, text: string): void;
|
|
30
|
-
updateColors(index: number, textColor: string, backgroundColor: string): void;
|
|
31
|
-
updateCircular(index: number, isCircular: boolean): void;
|
|
32
|
-
removeTextItem(index: number): void;
|
|
33
|
-
clearTextItems(): void;
|
|
34
|
-
getTextItemCount(): number;
|
|
35
|
-
}
|
|
36
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ISeriesPrimitive, SeriesAttachedParameter, Time } from 'lightweight-charts';
|
|
2
|
-
export declare class MultiTopArrowMark implements ISeriesPrimitive<Time> {
|
|
3
|
-
private _chart;
|
|
4
|
-
private _series;
|
|
5
|
-
private _time;
|
|
6
|
-
private _renderer;
|
|
7
|
-
private _count;
|
|
8
|
-
constructor(time: number, count?: number);
|
|
9
|
-
attached(param: SeriesAttachedParameter<Time, 'Candlestick'>): void;
|
|
10
|
-
updateAllViews(): void;
|
|
11
|
-
paneViews(): {
|
|
12
|
-
renderer: () => any;
|
|
13
|
-
}[];
|
|
14
|
-
}
|