candleview 1.0.0
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/LICENSE +661 -0
- package/README.md +397 -0
- 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 +291 -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 +65 -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 +68 -0
- package/dist/components/CandleView/MarkManager/Channel/EquidistantChannelMarkManager.d.ts +67 -0
- package/dist/components/CandleView/MarkManager/Channel/LinearRegressionChannelMarkManager.d.ts +64 -0
- package/dist/components/CandleView/MarkManager/Channel/ParallelChannelMarkManager.d.ts +67 -0
- package/dist/components/CandleView/MarkManager/Content/ImageMarkManager.d.ts +58 -0
- package/dist/components/CandleView/MarkManager/Elliott/ElliottCorrectiveMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Elliott/ElliottDoubleCombinationMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Elliott/ElliottImpulseMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Elliott/ElliottTriangleMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Elliott/ElliottTripleCombinationMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciArcMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciChannelMarkManager.d.ts +65 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciCircleMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciExtensionBasePriceMarkManager.d.ts +55 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciExtensionBaseTimeMarkManager.d.ts +55 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciFanMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciRetracementMarkManager.d.ts +55 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciSpiralMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciTimeZoonMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Fibonacci/FibonacciWedgeMarkManager.d.ts +57 -0
- package/dist/components/CandleView/MarkManager/Fork/AndrewPitchforkMarkManager.d.ts +72 -0
- package/dist/components/CandleView/MarkManager/Fork/EnhancedAndrewPitchforkMarkManager.d.ts +72 -0
- package/dist/components/CandleView/MarkManager/Fork/SchiffPitchforkMarkManager.d.ts +77 -0
- package/dist/components/CandleView/MarkManager/Gann/GannBoxMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Gann/GannFanMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Gann/GannRectangleManager.d.ts +57 -0
- package/dist/components/CandleView/MarkManager/Line/ArrowLineMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Line/AxisLineMarkManager.d.ts +57 -0
- package/dist/components/CandleView/MarkManager/Line/LineSegmentMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Line/ThickArrowLineMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Map/HeatMapMarkManager.d.ts +65 -0
- package/dist/components/CandleView/MarkManager/Mock/MockKLineMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Pattern/ABCDMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Pattern/HeadAndShouldersMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Pattern/TriangleABCDMarkManager.d.ts +55 -0
- package/dist/components/CandleView/MarkManager/Pattern/XABCDMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Pen/BrushMarkManager.d.ts +56 -0
- package/dist/components/CandleView/MarkManager/Pen/EraserMarkManager.d.ts +52 -0
- package/dist/components/CandleView/MarkManager/Pen/MarkerPenMarkManager.d.ts +56 -0
- package/dist/components/CandleView/MarkManager/Pen/PenMarkManager.d.ts +56 -0
- package/dist/components/CandleView/MarkManager/Pen/PencilMarkManager.d.ts +55 -0
- package/dist/components/CandleView/MarkManager/Range/LongPositionMarkManager.d.ts +64 -0
- package/dist/components/CandleView/MarkManager/Range/PriceRangeMarkManager.d.ts +64 -0
- package/dist/components/CandleView/MarkManager/Range/ShortPositionMarkManager.d.ts +64 -0
- package/dist/components/CandleView/MarkManager/Range/TimePriceRangeMarkManager.d.ts +64 -0
- package/dist/components/CandleView/MarkManager/Range/TimeRangeMarkManager.d.ts +64 -0
- package/dist/components/CandleView/MarkManager/Shape/CircleMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Shape/CurveMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Shape/DoubleCurveMarkManager.d.ts +55 -0
- package/dist/components/CandleView/MarkManager/Shape/EllipseMarkManager.d.ts +56 -0
- package/dist/components/CandleView/MarkManager/Shape/RectangleMarkManager.d.ts +52 -0
- package/dist/components/CandleView/MarkManager/Shape/SectorMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Shape/TriangleMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/StaticMarkManager.d.ts +46 -0
- package/dist/components/CandleView/MarkManager/Text/BubbleBoxMarkManager.d.ts +62 -0
- package/dist/components/CandleView/MarkManager/Text/EmojiMarkManager.d.ts +53 -0
- package/dist/components/CandleView/MarkManager/Text/FlagMarkManager.d.ts +52 -0
- package/dist/components/CandleView/MarkManager/Text/PinMarkManager.d.ts +57 -0
- package/dist/components/CandleView/MarkManager/Text/PriceLabelMarkManager.d.ts +52 -0
- package/dist/components/CandleView/MarkManager/Text/PriceNoteMarkManager.d.ts +54 -0
- package/dist/components/CandleView/MarkManager/Text/SignPostMarkManager.d.ts +56 -0
- package/dist/components/CandleView/MarkManager/Text/TextEditMarkManager.d.ts +62 -0
- package/dist/components/CandleView/Theme.d.ts +59 -0
- package/dist/components/CandleView/TopPanel/Config.d.ts +22 -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 +2 -0
- package/dist/index.js +87315 -0
- package/dist/index.js.map +1 -0
- package/dist/index.modern.js +87312 -0
- package/dist/index.modern.js.map +1 -0
- package/dist/index.test.d.ts +1 -0
- package/package.json +93 -0
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
}
|