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,67 +0,0 @@
|
|
|
1
|
-
import { MarkType } from '../../types';
|
|
2
|
-
import { IDeletableMark } from '../IDeletableMark';
|
|
3
|
-
import { IGraph } from '../IGraph';
|
|
4
|
-
import { IMarkStyle } from '../IMarkStyle';
|
|
5
|
-
export declare class BrushMark implements IGraph, IMarkStyle, IDeletableMark {
|
|
6
|
-
private _chart;
|
|
7
|
-
private _series;
|
|
8
|
-
private _renderer;
|
|
9
|
-
private _color;
|
|
10
|
-
private _lineWidth;
|
|
11
|
-
private _lineStyle;
|
|
12
|
-
private _isPreview;
|
|
13
|
-
private _isDragging;
|
|
14
|
-
private _points;
|
|
15
|
-
private markType;
|
|
16
|
-
private _showHandles;
|
|
17
|
-
private _brushPressure;
|
|
18
|
-
constructor(points?: Array<{
|
|
19
|
-
time: number;
|
|
20
|
-
price: number;
|
|
21
|
-
}>, color?: string, lineWidth?: number, isPreview?: boolean);
|
|
22
|
-
getMarkType(): MarkType;
|
|
23
|
-
attached(param: any): void;
|
|
24
|
-
updateAllViews(): void;
|
|
25
|
-
addPoint(time: number, price: number): void;
|
|
26
|
-
updatePoints(points: Array<{
|
|
27
|
-
time: number;
|
|
28
|
-
price: number;
|
|
29
|
-
}>): void;
|
|
30
|
-
setPreviewMode(isPreview: boolean): void;
|
|
31
|
-
setDragging(isDragging: boolean): void;
|
|
32
|
-
setShowHandles(show: boolean): void;
|
|
33
|
-
dragByPixels(deltaX: number, deltaY: number): void;
|
|
34
|
-
isPointNearPath(x: number, y: number, threshold?: number): boolean;
|
|
35
|
-
private requestUpdate;
|
|
36
|
-
time(): number;
|
|
37
|
-
priceValue(): number;
|
|
38
|
-
paneViews(): {
|
|
39
|
-
renderer: () => any;
|
|
40
|
-
}[];
|
|
41
|
-
private drawBrushStroke;
|
|
42
|
-
private drawControlPoints;
|
|
43
|
-
private adjustColorBrightness;
|
|
44
|
-
updateStyles(styles: {
|
|
45
|
-
color?: string;
|
|
46
|
-
lineWidth?: number;
|
|
47
|
-
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
48
|
-
brushPressure?: number;
|
|
49
|
-
[key: string]: any;
|
|
50
|
-
}): void;
|
|
51
|
-
getCurrentStyles(): Record<string, any>;
|
|
52
|
-
getPoints(): Array<{
|
|
53
|
-
time: number;
|
|
54
|
-
price: number;
|
|
55
|
-
}>;
|
|
56
|
-
updateColor(color: string): void;
|
|
57
|
-
updateLineWidth(lineWidth: number): void;
|
|
58
|
-
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
59
|
-
getBounds(): {
|
|
60
|
-
minX: number;
|
|
61
|
-
maxX: number;
|
|
62
|
-
minY: number;
|
|
63
|
-
maxY: number;
|
|
64
|
-
} | null;
|
|
65
|
-
clear(): void;
|
|
66
|
-
getPointCount(): number;
|
|
67
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { MarkType } from '../../types';
|
|
2
|
-
import { IGraph } from '../IGraph';
|
|
3
|
-
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
-
export declare class EraserMark implements IGraph, IMarkStyle {
|
|
5
|
-
private _chart;
|
|
6
|
-
private _series;
|
|
7
|
-
private _renderer;
|
|
8
|
-
private _color;
|
|
9
|
-
private _lineWidth;
|
|
10
|
-
private _lineStyle;
|
|
11
|
-
private _points;
|
|
12
|
-
private markType;
|
|
13
|
-
constructor(points?: Array<{
|
|
14
|
-
time: number;
|
|
15
|
-
price: number;
|
|
16
|
-
}>, color?: string, lineWidth?: number, isPreview?: boolean);
|
|
17
|
-
getMarkType(): MarkType;
|
|
18
|
-
attached(param: any): void;
|
|
19
|
-
updateAllViews(): void;
|
|
20
|
-
addPoint(time: number, price: number): void;
|
|
21
|
-
clearPoints(): void;
|
|
22
|
-
setPreviewMode(isPreview: boolean): void;
|
|
23
|
-
private requestUpdate;
|
|
24
|
-
time(): number;
|
|
25
|
-
priceValue(): number;
|
|
26
|
-
paneViews(): {
|
|
27
|
-
renderer: () => any;
|
|
28
|
-
}[];
|
|
29
|
-
getPoints(): Array<{
|
|
30
|
-
time: number;
|
|
31
|
-
price: number;
|
|
32
|
-
}>;
|
|
33
|
-
updateColor(color: string): void;
|
|
34
|
-
updateLineWidth(lineWidth: number): void;
|
|
35
|
-
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
36
|
-
updateStyles(styles: {
|
|
37
|
-
color?: string;
|
|
38
|
-
lineWidth?: number;
|
|
39
|
-
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
40
|
-
[key: string]: any;
|
|
41
|
-
}): void;
|
|
42
|
-
getCurrentStyles(): Record<string, any>;
|
|
43
|
-
getBounds(): {
|
|
44
|
-
minX: number;
|
|
45
|
-
maxX: number;
|
|
46
|
-
minY: number;
|
|
47
|
-
maxY: number;
|
|
48
|
-
} | null;
|
|
49
|
-
clear(): void;
|
|
50
|
-
getPointCount(): number;
|
|
51
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { MarkType } from '../../types';
|
|
2
|
-
import { IDeletableMark } from '../IDeletableMark';
|
|
3
|
-
import { IGraph } from '../IGraph';
|
|
4
|
-
import { IMarkStyle } from '../IMarkStyle';
|
|
5
|
-
export declare class MarkerPenMark implements IGraph, IMarkStyle, IDeletableMark {
|
|
6
|
-
private _chart;
|
|
7
|
-
private _series;
|
|
8
|
-
private _renderer;
|
|
9
|
-
private _color;
|
|
10
|
-
private _lineWidth;
|
|
11
|
-
private _lineStyle;
|
|
12
|
-
private _isPreview;
|
|
13
|
-
private _isDragging;
|
|
14
|
-
private _points;
|
|
15
|
-
private markType;
|
|
16
|
-
private _showHandles;
|
|
17
|
-
constructor(points?: Array<{
|
|
18
|
-
time: number;
|
|
19
|
-
price: number;
|
|
20
|
-
}>, color?: string, lineWidth?: number, isPreview?: boolean);
|
|
21
|
-
getMarkType(): MarkType;
|
|
22
|
-
attached(param: any): void;
|
|
23
|
-
updateAllViews(): void;
|
|
24
|
-
addPoint(time: number, price: number): void;
|
|
25
|
-
updatePoints(points: Array<{
|
|
26
|
-
time: number;
|
|
27
|
-
price: number;
|
|
28
|
-
}>): void;
|
|
29
|
-
setPreviewMode(isPreview: boolean): void;
|
|
30
|
-
setDragging(isDragging: boolean): void;
|
|
31
|
-
setShowHandles(show: boolean): void;
|
|
32
|
-
dragByPixels(deltaX: number, deltaY: number): void;
|
|
33
|
-
isPointNearPath(x: number, y: number, threshold?: number): boolean;
|
|
34
|
-
private requestUpdate;
|
|
35
|
-
time(): number;
|
|
36
|
-
priceValue(): number;
|
|
37
|
-
paneViews(): {
|
|
38
|
-
renderer: () => any;
|
|
39
|
-
}[];
|
|
40
|
-
getPoints(): Array<{
|
|
41
|
-
time: number;
|
|
42
|
-
price: number;
|
|
43
|
-
}>;
|
|
44
|
-
updateColor(color: string): void;
|
|
45
|
-
updateLineWidth(lineWidth: number): void;
|
|
46
|
-
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
47
|
-
updateStyles(styles: {
|
|
48
|
-
color?: string;
|
|
49
|
-
lineWidth?: number;
|
|
50
|
-
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
51
|
-
[key: string]: any;
|
|
52
|
-
}): void;
|
|
53
|
-
getCurrentStyles(): Record<string, any>;
|
|
54
|
-
getBounds(): {
|
|
55
|
-
minX: number;
|
|
56
|
-
maxX: number;
|
|
57
|
-
minY: number;
|
|
58
|
-
maxY: number;
|
|
59
|
-
} | null;
|
|
60
|
-
clear(): void;
|
|
61
|
-
getPointCount(): number;
|
|
62
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { MarkType } from '../../types';
|
|
2
|
-
import { IDeletableMark } from '../IDeletableMark';
|
|
3
|
-
import { IGraph } from '../IGraph';
|
|
4
|
-
import { IMarkStyle } from '../IMarkStyle';
|
|
5
|
-
export declare class PenMark implements IGraph, IMarkStyle, IDeletableMark {
|
|
6
|
-
private _chart;
|
|
7
|
-
private _series;
|
|
8
|
-
private _renderer;
|
|
9
|
-
private _color;
|
|
10
|
-
private _lineWidth;
|
|
11
|
-
private _lineStyle;
|
|
12
|
-
private _isPreview;
|
|
13
|
-
private _isDragging;
|
|
14
|
-
private _points;
|
|
15
|
-
private markType;
|
|
16
|
-
private _showHandles;
|
|
17
|
-
constructor(points?: Array<{
|
|
18
|
-
time: number;
|
|
19
|
-
price: number;
|
|
20
|
-
}>, color?: string, lineWidth?: number, isPreview?: boolean);
|
|
21
|
-
getMarkType(): MarkType;
|
|
22
|
-
attached(param: any): void;
|
|
23
|
-
updateAllViews(): void;
|
|
24
|
-
addPoint(time: number, price: number): void;
|
|
25
|
-
updatePoints(points: Array<{
|
|
26
|
-
time: number;
|
|
27
|
-
price: number;
|
|
28
|
-
}>): void;
|
|
29
|
-
setPreviewMode(isPreview: boolean): void;
|
|
30
|
-
setDragging(isDragging: boolean): void;
|
|
31
|
-
setShowHandles(show: boolean): void;
|
|
32
|
-
dragByPixels(deltaX: number, deltaY: number): void;
|
|
33
|
-
isPointNearPath(x: number, y: number, threshold?: number): boolean;
|
|
34
|
-
private requestUpdate;
|
|
35
|
-
time(): number;
|
|
36
|
-
priceValue(): number;
|
|
37
|
-
paneViews(): {
|
|
38
|
-
renderer: () => any;
|
|
39
|
-
}[];
|
|
40
|
-
getPoints(): Array<{
|
|
41
|
-
time: number;
|
|
42
|
-
price: number;
|
|
43
|
-
}>;
|
|
44
|
-
updateColor(color: string): void;
|
|
45
|
-
updateLineWidth(lineWidth: number): void;
|
|
46
|
-
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
47
|
-
updateStyles(styles: {
|
|
48
|
-
color?: string;
|
|
49
|
-
lineWidth?: number;
|
|
50
|
-
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
51
|
-
[key: string]: any;
|
|
52
|
-
}): void;
|
|
53
|
-
getCurrentStyles(): Record<string, any>;
|
|
54
|
-
getBounds(): {
|
|
55
|
-
minX: number;
|
|
56
|
-
maxX: number;
|
|
57
|
-
minY: number;
|
|
58
|
-
maxY: number;
|
|
59
|
-
} | null;
|
|
60
|
-
clear(): void;
|
|
61
|
-
getPointCount(): number;
|
|
62
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { MarkType } from '../../types';
|
|
2
|
-
import { IDeletableMark } from '../IDeletableMark';
|
|
3
|
-
import { IGraph } from '../IGraph';
|
|
4
|
-
import { IMarkStyle } from '../IMarkStyle';
|
|
5
|
-
export declare class PencilMark implements IGraph, IMarkStyle, IDeletableMark {
|
|
6
|
-
private _chart;
|
|
7
|
-
private _series;
|
|
8
|
-
private _renderer;
|
|
9
|
-
private _color;
|
|
10
|
-
private _lineWidth;
|
|
11
|
-
private _lineStyle;
|
|
12
|
-
private _isPreview;
|
|
13
|
-
private _isDragging;
|
|
14
|
-
private _points;
|
|
15
|
-
private markType;
|
|
16
|
-
private _showHandles;
|
|
17
|
-
constructor(points?: Array<{
|
|
18
|
-
time: number;
|
|
19
|
-
price: number;
|
|
20
|
-
}>, color?: string, lineWidth?: number, isPreview?: boolean);
|
|
21
|
-
getMarkType(): MarkType;
|
|
22
|
-
attached(param: any): void;
|
|
23
|
-
updateAllViews(): void;
|
|
24
|
-
addPoint(time: number, price: number): void;
|
|
25
|
-
updatePoints(points: Array<{
|
|
26
|
-
time: number;
|
|
27
|
-
price: number;
|
|
28
|
-
}>): void;
|
|
29
|
-
setPreviewMode(isPreview: boolean): void;
|
|
30
|
-
setDragging(isDragging: boolean): void;
|
|
31
|
-
setShowHandles(show: boolean): void;
|
|
32
|
-
dragByPixels(deltaX: number, deltaY: number): void;
|
|
33
|
-
isPointNearPath(x: number, y: number, threshold?: number): boolean;
|
|
34
|
-
private requestUpdate;
|
|
35
|
-
time(): number;
|
|
36
|
-
priceValue(): number;
|
|
37
|
-
paneViews(): {
|
|
38
|
-
renderer: () => any;
|
|
39
|
-
}[];
|
|
40
|
-
getPoints(): Array<{
|
|
41
|
-
time: number;
|
|
42
|
-
price: number;
|
|
43
|
-
}>;
|
|
44
|
-
updateColor(color: string): void;
|
|
45
|
-
updateLineWidth(lineWidth: number): void;
|
|
46
|
-
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
47
|
-
updateStyles(styles: {
|
|
48
|
-
color?: string;
|
|
49
|
-
lineWidth?: number;
|
|
50
|
-
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
51
|
-
[key: string]: any;
|
|
52
|
-
}): void;
|
|
53
|
-
getCurrentStyles(): Record<string, any>;
|
|
54
|
-
getBounds(): {
|
|
55
|
-
minX: number;
|
|
56
|
-
maxX: number;
|
|
57
|
-
minY: number;
|
|
58
|
-
maxY: number;
|
|
59
|
-
} | null;
|
|
60
|
-
clear(): void;
|
|
61
|
-
getPointCount(): number;
|
|
62
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { MarkType } from '../../types';
|
|
2
|
-
import { IGraph } from '../IGraph';
|
|
3
|
-
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
-
export declare class LongPositionMark implements IGraph, IMarkStyle {
|
|
5
|
-
private _chart;
|
|
6
|
-
private _series;
|
|
7
|
-
private _startTime;
|
|
8
|
-
private _endTime;
|
|
9
|
-
private _upperPrice;
|
|
10
|
-
private _lowerPrice;
|
|
11
|
-
private _middlePrice;
|
|
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 _hoverPoint;
|
|
22
|
-
private _upperFillColor;
|
|
23
|
-
private _lowerFillColor;
|
|
24
|
-
private _fillOpacity;
|
|
25
|
-
constructor(startTime: number, endTime: number, upperPrice: number, lowerPrice: number, color?: string, lineWidth?: number, isPreview?: boolean, upperFillColor?: string, lowerFillColor?: string);
|
|
26
|
-
getMarkType(): MarkType;
|
|
27
|
-
attached(param: any): void;
|
|
28
|
-
updateAllViews(): void;
|
|
29
|
-
updatePrices(upperPrice: number, lowerPrice: number): void;
|
|
30
|
-
updateTimeRange(startTime: number, endTime: number): void;
|
|
31
|
-
setPreviewMode(isPreview: boolean): void;
|
|
32
|
-
setDragging(isDragging: boolean, dragPoint?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'middle' | null): void;
|
|
33
|
-
setShowHandles(show: boolean): void;
|
|
34
|
-
setHoverPoint(hoverPoint: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'middle' | null): void;
|
|
35
|
-
dragByPixels(deltaX: number, deltaY: number): void;
|
|
36
|
-
adjustByHandle(handleType: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'middle', newTime: number, newPrice: number): void;
|
|
37
|
-
isPointNearHandle(x: number, y: number, threshold?: number): 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'middle' | null;
|
|
38
|
-
private requestUpdate;
|
|
39
|
-
time(): number;
|
|
40
|
-
priceValue(): number;
|
|
41
|
-
paneViews(): {
|
|
42
|
-
renderer: () => any;
|
|
43
|
-
}[];
|
|
44
|
-
private drawHandles;
|
|
45
|
-
private drawCornerHandle;
|
|
46
|
-
private drawMiddleHandle;
|
|
47
|
-
getStartTime(): number;
|
|
48
|
-
getEndTime(): number;
|
|
49
|
-
getUpperPrice(): number;
|
|
50
|
-
getLowerPrice(): number;
|
|
51
|
-
getMiddlePrice(): number;
|
|
52
|
-
updateColor(color: string): void;
|
|
53
|
-
updateLineWidth(lineWidth: number): void;
|
|
54
|
-
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
55
|
-
updateUpperFillColor(upperFillColor: string): void;
|
|
56
|
-
updateLowerFillColor(lowerFillColor: string): void;
|
|
57
|
-
updateFillOpacity(fillOpacity: number): void;
|
|
58
|
-
updateStyles(styles: {
|
|
59
|
-
color?: string;
|
|
60
|
-
lineWidth?: number;
|
|
61
|
-
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
62
|
-
upperFillColor?: string;
|
|
63
|
-
lowerFillColor?: string;
|
|
64
|
-
fillOpacity?: number;
|
|
65
|
-
[key: string]: any;
|
|
66
|
-
}): void;
|
|
67
|
-
getCurrentStyles(): Record<string, any>;
|
|
68
|
-
getBounds(): {
|
|
69
|
-
startX: any;
|
|
70
|
-
endX: any;
|
|
71
|
-
upperY: any;
|
|
72
|
-
lowerY: any;
|
|
73
|
-
minX: number;
|
|
74
|
-
maxX: number;
|
|
75
|
-
minY: number;
|
|
76
|
-
maxY: number;
|
|
77
|
-
} | null;
|
|
78
|
-
isPointInRect(x: number, y: number): boolean;
|
|
79
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { MarkType } from '../../types';
|
|
2
|
-
import { IGraph } from '../IGraph';
|
|
3
|
-
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
-
export declare class PriceRangeMark 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 markType;
|
|
20
|
-
private _hoverPoint;
|
|
21
|
-
private _fillColor;
|
|
22
|
-
private _fillOpacity;
|
|
23
|
-
constructor(startPrice: number, endPrice: number, startTime: number, endTime: number, color?: string, lineWidth?: number, isPreview?: boolean, fillColor?: string);
|
|
24
|
-
getMarkType(): MarkType;
|
|
25
|
-
attached(param: any): void;
|
|
26
|
-
updateAllViews(): void;
|
|
27
|
-
updateEndPoint(endPrice: number, endTime: number): void;
|
|
28
|
-
updateStartPoint(startPrice: number, startTime: number): void;
|
|
29
|
-
setPreviewMode(isPreview: boolean): void;
|
|
30
|
-
setDragging(isDragging: boolean, dragPoint?: 'start' | 'end' | 'line' | null): void;
|
|
31
|
-
setShowHandles(show: boolean): void;
|
|
32
|
-
setHoverPoint(hoverPoint: 'start' | 'end' | 'line' | null): void;
|
|
33
|
-
dragLineByPixels(deltaX: number, deltaY: number): void;
|
|
34
|
-
isPointNearHandle(x: number, y: number, threshold?: number): 'start' | 'end' | null;
|
|
35
|
-
private requestUpdate;
|
|
36
|
-
time(): number;
|
|
37
|
-
priceValue(): number;
|
|
38
|
-
paneViews(): {
|
|
39
|
-
renderer: () => any;
|
|
40
|
-
}[];
|
|
41
|
-
private drawArrowLine;
|
|
42
|
-
getStartPrice(): number;
|
|
43
|
-
getEndPrice(): number;
|
|
44
|
-
getStartTime(): number;
|
|
45
|
-
getEndTime(): number;
|
|
46
|
-
updateColor(color: string): void;
|
|
47
|
-
updateLineWidth(lineWidth: number): void;
|
|
48
|
-
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
49
|
-
updateFillColor(fillColor: string): void;
|
|
50
|
-
updateFillOpacity(fillOpacity: number): void;
|
|
51
|
-
updateStyles(styles: {
|
|
52
|
-
color?: string;
|
|
53
|
-
lineWidth?: number;
|
|
54
|
-
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
55
|
-
fillColor?: string;
|
|
56
|
-
fillOpacity?: number;
|
|
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
|
-
isPointInRect(x: number, y: number): boolean;
|
|
71
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { MarkType } from '../../types';
|
|
2
|
-
import { IGraph } from '../IGraph';
|
|
3
|
-
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
-
export declare class ShortPositionMark implements IGraph, IMarkStyle {
|
|
5
|
-
private _chart;
|
|
6
|
-
private _series;
|
|
7
|
-
private _startTime;
|
|
8
|
-
private _endTime;
|
|
9
|
-
private _upperPrice;
|
|
10
|
-
private _lowerPrice;
|
|
11
|
-
private _middlePrice;
|
|
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 _hoverPoint;
|
|
22
|
-
private _upperFillColor;
|
|
23
|
-
private _lowerFillColor;
|
|
24
|
-
private _fillOpacity;
|
|
25
|
-
constructor(startTime: number, endTime: number, upperPrice: number, lowerPrice: number, color?: string, lineWidth?: number, isPreview?: boolean, upperFillColor?: string, lowerFillColor?: string);
|
|
26
|
-
getMarkType(): MarkType;
|
|
27
|
-
attached(param: any): void;
|
|
28
|
-
updateAllViews(): void;
|
|
29
|
-
updatePrices(upperPrice: number, lowerPrice: number): void;
|
|
30
|
-
updateTimeRange(startTime: number, endTime: number): void;
|
|
31
|
-
setPreviewMode(isPreview: boolean): void;
|
|
32
|
-
setDragging(isDragging: boolean, dragPoint?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'middle' | null): void;
|
|
33
|
-
setShowHandles(show: boolean): void;
|
|
34
|
-
setHoverPoint(hoverPoint: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'middle' | null): void;
|
|
35
|
-
dragByPixels(deltaX: number, deltaY: number): void;
|
|
36
|
-
adjustByHandle(handleType: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'middle', newTime: number, newPrice: number): void;
|
|
37
|
-
isPointNearHandle(x: number, y: number, threshold?: number): 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'middle' | null;
|
|
38
|
-
private requestUpdate;
|
|
39
|
-
time(): number;
|
|
40
|
-
priceValue(): number;
|
|
41
|
-
paneViews(): {
|
|
42
|
-
renderer: () => any;
|
|
43
|
-
}[];
|
|
44
|
-
private drawHandles;
|
|
45
|
-
private drawCornerHandle;
|
|
46
|
-
private drawMiddleHandle;
|
|
47
|
-
getStartTime(): number;
|
|
48
|
-
getEndTime(): number;
|
|
49
|
-
getUpperPrice(): number;
|
|
50
|
-
getLowerPrice(): number;
|
|
51
|
-
getMiddlePrice(): number;
|
|
52
|
-
updateColor(color: string): void;
|
|
53
|
-
updateLineWidth(lineWidth: number): void;
|
|
54
|
-
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
55
|
-
updateUpperFillColor(upperFillColor: string): void;
|
|
56
|
-
updateLowerFillColor(lowerFillColor: string): void;
|
|
57
|
-
updateFillOpacity(fillOpacity: number): void;
|
|
58
|
-
updateStyles(styles: {
|
|
59
|
-
color?: string;
|
|
60
|
-
lineWidth?: number;
|
|
61
|
-
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
62
|
-
upperFillColor?: string;
|
|
63
|
-
lowerFillColor?: string;
|
|
64
|
-
fillOpacity?: number;
|
|
65
|
-
[key: string]: any;
|
|
66
|
-
}): void;
|
|
67
|
-
getCurrentStyles(): Record<string, any>;
|
|
68
|
-
getBounds(): {
|
|
69
|
-
startX: any;
|
|
70
|
-
endX: any;
|
|
71
|
-
upperY: any;
|
|
72
|
-
lowerY: any;
|
|
73
|
-
minX: number;
|
|
74
|
-
maxX: number;
|
|
75
|
-
minY: number;
|
|
76
|
-
maxY: number;
|
|
77
|
-
} | null;
|
|
78
|
-
isPointInRect(x: number, y: number): boolean;
|
|
79
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { MarkType } from '../../types';
|
|
2
|
-
import { IGraph } from '../IGraph';
|
|
3
|
-
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
-
export declare class TimePriceRangeMark 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 _hoverPoint;
|
|
21
|
-
private _fillColor;
|
|
22
|
-
private _fillOpacity;
|
|
23
|
-
constructor(startTime: number, startPrice: number, endTime: number, endPrice: number, color?: string, lineWidth?: number, isPreview?: boolean, fillColor?: string);
|
|
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
|
-
setPreviewMode(isPreview: boolean): void;
|
|
30
|
-
setDragging(isDragging: boolean, dragPoint?: 'start' | 'end' | 'line' | null): void;
|
|
31
|
-
setShowHandles(show: boolean): void;
|
|
32
|
-
setHoverPoint(hoverPoint: 'start' | 'end' | 'line' | null): void;
|
|
33
|
-
dragLineByPixels(deltaX: number, deltaY: number): void;
|
|
34
|
-
isPointNearHandle(x: number, y: number, threshold?: number): 'start' | 'end' | null;
|
|
35
|
-
private requestUpdate;
|
|
36
|
-
time(): number;
|
|
37
|
-
priceValue(): number;
|
|
38
|
-
paneViews(): {
|
|
39
|
-
renderer: () => any;
|
|
40
|
-
}[];
|
|
41
|
-
private drawTimeAxisLines;
|
|
42
|
-
private drawPriceAxisLines;
|
|
43
|
-
private drawHandles;
|
|
44
|
-
private isStartTimeEarlier;
|
|
45
|
-
getStartTime(): number;
|
|
46
|
-
getStartPrice(): number;
|
|
47
|
-
getEndTime(): number;
|
|
48
|
-
getEndPrice(): number;
|
|
49
|
-
updateColor(color: string): void;
|
|
50
|
-
updateLineWidth(lineWidth: number): void;
|
|
51
|
-
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
52
|
-
updateFillColor(fillColor: string): void;
|
|
53
|
-
updateFillOpacity(fillOpacity: number): void;
|
|
54
|
-
updateStyles(styles: {
|
|
55
|
-
color?: string;
|
|
56
|
-
lineWidth?: number;
|
|
57
|
-
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
58
|
-
fillColor?: string;
|
|
59
|
-
fillOpacity?: 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
|
-
isPointInRect(x: number, y: number): boolean;
|
|
74
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { MarkType } from '../../types';
|
|
2
|
-
import { IGraph } from '../IGraph';
|
|
3
|
-
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
-
export declare class TimeRangeMark implements IGraph, IMarkStyle {
|
|
5
|
-
private _chart;
|
|
6
|
-
private _series;
|
|
7
|
-
private _startTime;
|
|
8
|
-
private _endTime;
|
|
9
|
-
private _startPrice;
|
|
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 _hoverPoint;
|
|
21
|
-
private _fillColor;
|
|
22
|
-
private _fillOpacity;
|
|
23
|
-
constructor(startTime: number, endTime: number, startPrice: number, endPrice: number, color?: string, lineWidth?: number, isPreview?: boolean, fillColor?: string);
|
|
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
|
-
setPreviewMode(isPreview: boolean): void;
|
|
30
|
-
setDragging(isDragging: boolean, dragPoint?: 'start' | 'end' | 'line' | null): void;
|
|
31
|
-
setShowHandles(show: boolean): void;
|
|
32
|
-
setHoverPoint(hoverPoint: 'start' | 'end' | 'line' | null): void;
|
|
33
|
-
dragLineByPixels(deltaX: number, deltaY: number): void;
|
|
34
|
-
isPointNearHandle(x: number, y: number, threshold?: number): 'start' | 'end' | null;
|
|
35
|
-
private requestUpdate;
|
|
36
|
-
time(): number;
|
|
37
|
-
priceValue(): number;
|
|
38
|
-
paneViews(): {
|
|
39
|
-
renderer: () => any;
|
|
40
|
-
}[];
|
|
41
|
-
private drawArrowLine;
|
|
42
|
-
getStartTime(): number;
|
|
43
|
-
getEndTime(): number;
|
|
44
|
-
getStartPrice(): number;
|
|
45
|
-
getEndPrice(): number;
|
|
46
|
-
updateColor(color: string): void;
|
|
47
|
-
updateLineWidth(lineWidth: number): void;
|
|
48
|
-
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
49
|
-
updateFillColor(fillColor: string): void;
|
|
50
|
-
updateFillOpacity(fillOpacity: number): void;
|
|
51
|
-
updateStyles(styles: {
|
|
52
|
-
color?: string;
|
|
53
|
-
lineWidth?: number;
|
|
54
|
-
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
55
|
-
fillColor?: string;
|
|
56
|
-
fillOpacity?: number;
|
|
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
|
-
isPointInRect(x: number, y: number): boolean;
|
|
71
|
-
}
|