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,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 MultiTopTextMark 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,13 +0,0 @@
|
|
|
1
|
-
import { ISeriesPrimitive, SeriesAttachedParameter, Time } from 'lightweight-charts';
|
|
2
|
-
export declare class TopArrowMark 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 TopTextMark 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,126 +0,0 @@
|
|
|
1
|
-
import { MarkType } from '../../types';
|
|
2
|
-
import { IGraph } from '../IGraph';
|
|
3
|
-
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
-
export declare class BubbleBoxMark implements IGraph, IMarkStyle {
|
|
5
|
-
private _chart;
|
|
6
|
-
private _series;
|
|
7
|
-
private _controlPointTime;
|
|
8
|
-
private _controlPointPrice;
|
|
9
|
-
private _bubbleTime;
|
|
10
|
-
private _bubblePrice;
|
|
11
|
-
private _renderer;
|
|
12
|
-
private _color;
|
|
13
|
-
private _backgroundColor;
|
|
14
|
-
private _textColor;
|
|
15
|
-
private _fontSize;
|
|
16
|
-
private _lineWidth;
|
|
17
|
-
private _text;
|
|
18
|
-
private _isDraggingControlPoint;
|
|
19
|
-
private _isDraggingBubble;
|
|
20
|
-
private markType;
|
|
21
|
-
private _isEditing;
|
|
22
|
-
private _editInput;
|
|
23
|
-
private _isSelected;
|
|
24
|
-
private _isHovered;
|
|
25
|
-
private _lastHoverState;
|
|
26
|
-
private _originalText;
|
|
27
|
-
private _cursorVisible;
|
|
28
|
-
private _cursorTimer;
|
|
29
|
-
private _graphColor;
|
|
30
|
-
private _graphLineStyle;
|
|
31
|
-
private _graphLineWidth;
|
|
32
|
-
private _isBold;
|
|
33
|
-
private _isItalic;
|
|
34
|
-
constructor(controlPointTime: number, controlPointPrice: number, bubbleTime: number, bubblePrice: number, text?: string, color?: string, backgroundColor?: string, textColor?: string, fontSize?: number, lineWidth?: number);
|
|
35
|
-
getMarkType(): MarkType;
|
|
36
|
-
attached(param: any): void;
|
|
37
|
-
private _addEventListeners;
|
|
38
|
-
private _removeEventListeners;
|
|
39
|
-
updateAllViews(): void;
|
|
40
|
-
updateControlPointPosition(time: number, price: number): void;
|
|
41
|
-
updateBubblePosition(time: number, price: number): void;
|
|
42
|
-
setPreviewMode(isPreview: boolean): void;
|
|
43
|
-
setDraggingControlPoint(isDragging: boolean): void;
|
|
44
|
-
setDraggingBubble(isDragging: boolean): void;
|
|
45
|
-
setShowLabel(show: boolean): void;
|
|
46
|
-
dragControlPointByPixels(deltaX: number, deltaY: number): void;
|
|
47
|
-
dragBubbleByPixels(deltaX: number, deltaY: number): void;
|
|
48
|
-
isPointNearControlPoint(x: number, y: number, threshold?: number): boolean;
|
|
49
|
-
isPointNearBubble(x: number, y: number, threshold?: number): boolean;
|
|
50
|
-
isPointNearConnectionLine(x: number, y: number, threshold?: number): boolean;
|
|
51
|
-
private _isPointInBubble;
|
|
52
|
-
private pointToLineDistance;
|
|
53
|
-
private _onMouseDown;
|
|
54
|
-
private _startDraggingBubble;
|
|
55
|
-
private _startDraggingControlPoint;
|
|
56
|
-
private _dispatchBubbleBoxMarkDragStart;
|
|
57
|
-
private _onMouseMove;
|
|
58
|
-
private _onMouseUp;
|
|
59
|
-
private _isPointNearControlPoint;
|
|
60
|
-
private _updateHoverState;
|
|
61
|
-
private _onDoubleClick;
|
|
62
|
-
private _showEditorModal;
|
|
63
|
-
private _onContextMenu;
|
|
64
|
-
private _onDocumentClick;
|
|
65
|
-
private _onKeyDown;
|
|
66
|
-
private _onInput;
|
|
67
|
-
private _onBlur;
|
|
68
|
-
private _startEditing;
|
|
69
|
-
private _startCursorBlink;
|
|
70
|
-
private _stopCursorBlink;
|
|
71
|
-
private _finishEditing;
|
|
72
|
-
private _cancelEditing;
|
|
73
|
-
private _cleanupEditing;
|
|
74
|
-
private _updateHoverStateAfterEdit;
|
|
75
|
-
private _selectBubbleBoxMark;
|
|
76
|
-
private _deselectBubbleBoxMark;
|
|
77
|
-
private _dispatchBubbleBoxMarkSelected;
|
|
78
|
-
private _dispatchBubbleBoxMarkDeselected;
|
|
79
|
-
private _dispatchBubbleBoxMarkDeleted;
|
|
80
|
-
private _getScreenCoordinates;
|
|
81
|
-
private requestUpdate;
|
|
82
|
-
controlPointTime(): number;
|
|
83
|
-
controlPointPrice(): number;
|
|
84
|
-
bubbleTime(): number;
|
|
85
|
-
bubblePrice(): number;
|
|
86
|
-
getText(): string;
|
|
87
|
-
updateText(text: string): void;
|
|
88
|
-
updateStyles(styles: {
|
|
89
|
-
[key: string]: any;
|
|
90
|
-
}): void;
|
|
91
|
-
getCurrentStyles(): Record<string, any>;
|
|
92
|
-
private _buildFontString;
|
|
93
|
-
private _getLineDashPattern;
|
|
94
|
-
getBounds(): {
|
|
95
|
-
controlX: any;
|
|
96
|
-
controlY: any;
|
|
97
|
-
bubbleX: any;
|
|
98
|
-
bubbleY: any;
|
|
99
|
-
minX: number;
|
|
100
|
-
maxX: number;
|
|
101
|
-
minY: number;
|
|
102
|
-
maxY: number;
|
|
103
|
-
} | null;
|
|
104
|
-
paneViews(): {
|
|
105
|
-
renderer: () => any;
|
|
106
|
-
}[];
|
|
107
|
-
private drawControlPoint;
|
|
108
|
-
getControlPointTime(): number;
|
|
109
|
-
getControlPointPrice(): number;
|
|
110
|
-
getBubbleTime(): number;
|
|
111
|
-
getBubblePrice(): number;
|
|
112
|
-
updateTextContent(text: string, color?: string, backgroundColor?: string, textColor?: string, fontSize?: number): void;
|
|
113
|
-
delete(): void;
|
|
114
|
-
getPosition(): {
|
|
115
|
-
controlPointTime: number;
|
|
116
|
-
controlPointPrice: number;
|
|
117
|
-
bubbleTime: number;
|
|
118
|
-
bubblePrice: number;
|
|
119
|
-
text: string;
|
|
120
|
-
fontSize: number;
|
|
121
|
-
color: string;
|
|
122
|
-
backgroundColor: string;
|
|
123
|
-
textColor: string;
|
|
124
|
-
};
|
|
125
|
-
destroy(): void;
|
|
126
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { MarkType } from '../../types';
|
|
2
|
-
import { IGraph } from '../IGraph';
|
|
3
|
-
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
-
export declare class EmojiMark 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 _emoji;
|
|
17
|
-
private _fontSize;
|
|
18
|
-
private _isPreview;
|
|
19
|
-
private _isDragging;
|
|
20
|
-
private _dragPoint;
|
|
21
|
-
private _showHandles;
|
|
22
|
-
private markType;
|
|
23
|
-
constructor(startTime: number, startPrice: number, endTime: number, endPrice: number, emoji?: string, color?: string, lineWidth?: number, fillColor?: string, fontSize?: number, isPreview?: boolean);
|
|
24
|
-
getMarkType(): MarkType;
|
|
25
|
-
attached(param: any): void;
|
|
26
|
-
updateAllViews(): void;
|
|
27
|
-
updateEndPoint(endTime: number, endPrice: number): void;
|
|
28
|
-
updateStartPoint(startTime: number, startPrice: number): void;
|
|
29
|
-
setPreviewMode(isPreview: boolean): void;
|
|
30
|
-
setDragging(isDragging: boolean, dragPoint?: 'start' | 'end' | 'line' | null): void;
|
|
31
|
-
setShowHandles(show: boolean): void;
|
|
32
|
-
dragLineByPixels(deltaX: number, deltaY: number): void;
|
|
33
|
-
isPointNearHandle(x: number, y: number, threshold?: number): 'start' | 'end' | null;
|
|
34
|
-
private requestUpdate;
|
|
35
|
-
time(): number;
|
|
36
|
-
priceValue(): number;
|
|
37
|
-
paneViews(): {
|
|
38
|
-
renderer: () => any;
|
|
39
|
-
}[];
|
|
40
|
-
getStartTime(): number;
|
|
41
|
-
getStartPrice(): number;
|
|
42
|
-
getEndTime(): number;
|
|
43
|
-
getEndPrice(): number;
|
|
44
|
-
getEmoji(): string;
|
|
45
|
-
updateEmoji(emoji: string): void;
|
|
46
|
-
updateColor(color: string): void;
|
|
47
|
-
updateLineWidth(lineWidth: number): void;
|
|
48
|
-
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
49
|
-
updateFillColor(fillColor: string): void;
|
|
50
|
-
updateFontSize(fontSize: number): void;
|
|
51
|
-
updateStyles(styles: {
|
|
52
|
-
color?: string;
|
|
53
|
-
lineWidth?: number;
|
|
54
|
-
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
55
|
-
fillColor?: string;
|
|
56
|
-
emoji?: string;
|
|
57
|
-
fontSize?: number;
|
|
58
|
-
[key: string]: any;
|
|
59
|
-
}): void;
|
|
60
|
-
getCurrentStyles(): Record<string, any>;
|
|
61
|
-
getBounds(): {
|
|
62
|
-
startX: any;
|
|
63
|
-
startY: any;
|
|
64
|
-
endX: any;
|
|
65
|
-
endY: any;
|
|
66
|
-
minX: number;
|
|
67
|
-
maxX: number;
|
|
68
|
-
minY: number;
|
|
69
|
-
maxY: number;
|
|
70
|
-
} | null;
|
|
71
|
-
isPointInRectangle(x: number, y: number, threshold?: number): boolean;
|
|
72
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { MarkType } from '../../types';
|
|
2
|
-
import { IGraph } from '../IGraph';
|
|
3
|
-
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
-
export declare class FlagMark implements IGraph, IMarkStyle {
|
|
5
|
-
private _chart;
|
|
6
|
-
private _series;
|
|
7
|
-
private _time;
|
|
8
|
-
private _price;
|
|
9
|
-
private _renderer;
|
|
10
|
-
private _color;
|
|
11
|
-
private _backgroundColor;
|
|
12
|
-
private _textColor;
|
|
13
|
-
private _fontSize;
|
|
14
|
-
private _lineWidth;
|
|
15
|
-
private _lineStyle;
|
|
16
|
-
private _flagSize;
|
|
17
|
-
private markType;
|
|
18
|
-
constructor(time: number, price: number, color?: string, backgroundColor?: string, textColor?: string, fontSize?: number, lineWidth?: number, flagSize?: number);
|
|
19
|
-
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
20
|
-
getMarkType(): MarkType;
|
|
21
|
-
attached(param: any): void;
|
|
22
|
-
updateAllViews(): void;
|
|
23
|
-
updatePosition(time: number, price: number): void;
|
|
24
|
-
setPreviewMode(isPreview: boolean): void;
|
|
25
|
-
setDragging(isDragging: boolean): void;
|
|
26
|
-
setShowLabel(show: boolean): void;
|
|
27
|
-
dragByPixels(deltaX: number, deltaY: number): void;
|
|
28
|
-
isPointNearFlag(x: number, y: number, threshold?: number): boolean;
|
|
29
|
-
private pointToLineDistance;
|
|
30
|
-
private requestUpdate;
|
|
31
|
-
time(): number;
|
|
32
|
-
priceValue(): number;
|
|
33
|
-
paneViews(): {
|
|
34
|
-
renderer: () => any;
|
|
35
|
-
}[];
|
|
36
|
-
getTime(): number;
|
|
37
|
-
getPrice(): number;
|
|
38
|
-
updateColor(color: string): void;
|
|
39
|
-
updateBackgroundColor(backgroundColor: string): void;
|
|
40
|
-
updateTextColor(textColor: string): void;
|
|
41
|
-
updateFontSize(fontSize: number): void;
|
|
42
|
-
updateLineWidth(lineWidth: number): void;
|
|
43
|
-
updateFlagSize(flagSize: number): void;
|
|
44
|
-
updateStyles(styles: {
|
|
45
|
-
color?: string;
|
|
46
|
-
backgroundColor?: string;
|
|
47
|
-
textColor?: string;
|
|
48
|
-
fontSize?: number;
|
|
49
|
-
lineWidth?: number;
|
|
50
|
-
lineStyle?: "solid" | "dashed" | "dotted";
|
|
51
|
-
flagSize?: number;
|
|
52
|
-
[key: string]: any;
|
|
53
|
-
}): void;
|
|
54
|
-
getCurrentStyles(): Record<string, any>;
|
|
55
|
-
getBounds(): {
|
|
56
|
-
x: any;
|
|
57
|
-
y: any;
|
|
58
|
-
minX: number;
|
|
59
|
-
maxX: any;
|
|
60
|
-
minY: number;
|
|
61
|
-
maxY: any;
|
|
62
|
-
} | null;
|
|
63
|
-
}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { MarkType } from '../../types';
|
|
2
|
-
import { IGraph } from '../IGraph';
|
|
3
|
-
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
-
export declare class PinMark implements IGraph, IMarkStyle {
|
|
5
|
-
private _chart;
|
|
6
|
-
private _series;
|
|
7
|
-
private _time;
|
|
8
|
-
private _price;
|
|
9
|
-
private _renderer;
|
|
10
|
-
private _color;
|
|
11
|
-
private _backgroundColor;
|
|
12
|
-
private _textColor;
|
|
13
|
-
private _fontSize;
|
|
14
|
-
private _lineWidth;
|
|
15
|
-
private _showBubble;
|
|
16
|
-
private _text;
|
|
17
|
-
private markType;
|
|
18
|
-
private _isEditing;
|
|
19
|
-
private _editInput;
|
|
20
|
-
private _isSelected;
|
|
21
|
-
private _isHovered;
|
|
22
|
-
private _lastHoverState;
|
|
23
|
-
private _cursorVisible;
|
|
24
|
-
private _cursorTimer;
|
|
25
|
-
private _originalText;
|
|
26
|
-
private _isDragging;
|
|
27
|
-
private _graphColor;
|
|
28
|
-
private _graphLineStyle;
|
|
29
|
-
private _graphLineWidth;
|
|
30
|
-
private _isBold;
|
|
31
|
-
private _isItalic;
|
|
32
|
-
constructor(time: number, price: number, color?: string, backgroundColor?: string, textColor?: string, fontSize?: number, lineWidth?: number, bubbleText?: string);
|
|
33
|
-
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
34
|
-
getMarkType(): MarkType;
|
|
35
|
-
attached(param: any): void;
|
|
36
|
-
private _addEventListeners;
|
|
37
|
-
private _removeEventListeners;
|
|
38
|
-
updateAllViews(): void;
|
|
39
|
-
updatePosition(time: number, price: number): void;
|
|
40
|
-
setPreviewMode(isPreview: boolean): void;
|
|
41
|
-
setDragging(isDragging: boolean): void;
|
|
42
|
-
setShowBubble(show: boolean): void;
|
|
43
|
-
setBubbleText(text: string): void;
|
|
44
|
-
dragByPixels(deltaX: number, deltaY: number): void;
|
|
45
|
-
isPointNearPin(x: number, y: number, threshold?: number): boolean;
|
|
46
|
-
private _isPointInBubble;
|
|
47
|
-
private _isPointInPin;
|
|
48
|
-
private _onMouseDown;
|
|
49
|
-
private _onMouseMove;
|
|
50
|
-
private _onMouseUp;
|
|
51
|
-
private _updateHoverState;
|
|
52
|
-
private _onDoubleClick;
|
|
53
|
-
private _showEditorModal;
|
|
54
|
-
private _onContextMenu;
|
|
55
|
-
private _onDocumentClick;
|
|
56
|
-
private _onKeyDown;
|
|
57
|
-
private _onInput;
|
|
58
|
-
private _onBlur;
|
|
59
|
-
private _startEditing;
|
|
60
|
-
private _startCursorBlink;
|
|
61
|
-
private _stopCursorBlink;
|
|
62
|
-
private _finishEditing;
|
|
63
|
-
private _cancelEditing;
|
|
64
|
-
private _cleanupEditing;
|
|
65
|
-
private _updateHoverStateAfterEdit;
|
|
66
|
-
private _selectPinMark;
|
|
67
|
-
private _deselectPinMark;
|
|
68
|
-
private _dispatchPinMarkDragStart;
|
|
69
|
-
private _dispatchPinMarkSelected;
|
|
70
|
-
private _dispatchPinMarkDeselected;
|
|
71
|
-
private _dispatchPinMarkDeleted;
|
|
72
|
-
private _getScreenCoordinates;
|
|
73
|
-
private drawInvertedDropIcon;
|
|
74
|
-
private drawBubble;
|
|
75
|
-
private requestUpdate;
|
|
76
|
-
time(): number;
|
|
77
|
-
priceValue(): number;
|
|
78
|
-
paneViews(): {
|
|
79
|
-
renderer: () => any;
|
|
80
|
-
}[];
|
|
81
|
-
getTime(): number;
|
|
82
|
-
getPrice(): number;
|
|
83
|
-
updateBubbleText(text: string): void;
|
|
84
|
-
updateStyles(styles: {
|
|
85
|
-
[key: string]: any;
|
|
86
|
-
}): void;
|
|
87
|
-
getCurrentStyles(): Record<string, any>;
|
|
88
|
-
private _getLineDashPattern;
|
|
89
|
-
private _buildFontString;
|
|
90
|
-
getBounds(): {
|
|
91
|
-
x: any;
|
|
92
|
-
y: any;
|
|
93
|
-
minX: number;
|
|
94
|
-
maxX: any;
|
|
95
|
-
minY: number;
|
|
96
|
-
maxY: any;
|
|
97
|
-
} | null;
|
|
98
|
-
delete(): void;
|
|
99
|
-
getPosition(): {
|
|
100
|
-
time: number;
|
|
101
|
-
price: number;
|
|
102
|
-
bubbleText: string;
|
|
103
|
-
fontSize: number;
|
|
104
|
-
color: string;
|
|
105
|
-
backgroundColor: string;
|
|
106
|
-
textColor: string;
|
|
107
|
-
};
|
|
108
|
-
destroy(): void;
|
|
109
|
-
updateText(text: string): void;
|
|
110
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { MarkType } from '../../types';
|
|
2
|
-
import { IGraph } from '../IGraph';
|
|
3
|
-
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
-
export declare class PriceLabelMark implements IGraph, IMarkStyle {
|
|
5
|
-
private _chart;
|
|
6
|
-
private _series;
|
|
7
|
-
private _time;
|
|
8
|
-
private _price;
|
|
9
|
-
private _renderer;
|
|
10
|
-
private _color;
|
|
11
|
-
private _backgroundColor;
|
|
12
|
-
private _textColor;
|
|
13
|
-
private _fontSize;
|
|
14
|
-
private _lineWidth;
|
|
15
|
-
private markType;
|
|
16
|
-
private _graphColor;
|
|
17
|
-
private _graphLineStyle;
|
|
18
|
-
private _graphLineWidth;
|
|
19
|
-
private _isBold;
|
|
20
|
-
private _isItalic;
|
|
21
|
-
constructor(time: number, price: number, color?: string, backgroundColor?: string, textColor?: string, fontSize?: number, lineWidth?: number);
|
|
22
|
-
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
23
|
-
getMarkType(): MarkType;
|
|
24
|
-
attached(param: any): void;
|
|
25
|
-
updateAllViews(): void;
|
|
26
|
-
updatePosition(time: number, price: number): void;
|
|
27
|
-
setPreviewMode(isPreview: boolean): void;
|
|
28
|
-
setDragging(isDragging: boolean): void;
|
|
29
|
-
setShowLabel(show: boolean): void;
|
|
30
|
-
dragByPixels(deltaX: number, deltaY: number): void;
|
|
31
|
-
isPointNearLabel(x: number, y: number, threshold?: number): boolean;
|
|
32
|
-
private pointToLineDistance;
|
|
33
|
-
private requestUpdate;
|
|
34
|
-
time(): number;
|
|
35
|
-
priceValue(): number;
|
|
36
|
-
paneViews(): {
|
|
37
|
-
renderer: () => any;
|
|
38
|
-
}[];
|
|
39
|
-
getTime(): number;
|
|
40
|
-
getPrice(): number;
|
|
41
|
-
updateColor(color: string): void;
|
|
42
|
-
updateBackgroundColor(backgroundColor: string): void;
|
|
43
|
-
updateTextColor(textColor: string): void;
|
|
44
|
-
updateFontSize(fontSize: number): void;
|
|
45
|
-
updateLineWidth(lineWidth: number): void;
|
|
46
|
-
updateStyles(styles: {
|
|
47
|
-
color?: string;
|
|
48
|
-
backgroundColor?: string;
|
|
49
|
-
textColor?: string;
|
|
50
|
-
fontSize?: number;
|
|
51
|
-
lineWidth?: number;
|
|
52
|
-
graphColor?: string;
|
|
53
|
-
graphLineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
54
|
-
graphLineWidth?: number;
|
|
55
|
-
isBold?: boolean;
|
|
56
|
-
isItalic?: boolean;
|
|
57
|
-
[key: string]: any;
|
|
58
|
-
}): void;
|
|
59
|
-
getCurrentStyles(): Record<string, any>;
|
|
60
|
-
private _buildFontString;
|
|
61
|
-
private _getLineDashPattern;
|
|
62
|
-
getBounds(): {
|
|
63
|
-
x: any;
|
|
64
|
-
y: any;
|
|
65
|
-
minX: number;
|
|
66
|
-
maxX: any;
|
|
67
|
-
minY: number;
|
|
68
|
-
maxY: any;
|
|
69
|
-
} | null;
|
|
70
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { MarkType } from '../../types';
|
|
2
|
-
import { IGraph } from '../IGraph';
|
|
3
|
-
import { IMarkStyle } from '../IMarkStyle';
|
|
4
|
-
export declare class PriceNoteMark 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 _showPriceNote;
|
|
20
|
-
private _priceNoteBackground;
|
|
21
|
-
private _priceNoteTextColor;
|
|
22
|
-
private _priceNoteFont;
|
|
23
|
-
private markType;
|
|
24
|
-
private _isItalic;
|
|
25
|
-
private _isBold;
|
|
26
|
-
private _graphColor;
|
|
27
|
-
private _graphLineStyle;
|
|
28
|
-
private _graphLineWidth;
|
|
29
|
-
constructor(startTime: number, startPrice: number, endTime: number, endPrice: number, color?: string, lineWidth?: number, isPreview?: boolean);
|
|
30
|
-
getMarkType(): MarkType;
|
|
31
|
-
attached(param: any): void;
|
|
32
|
-
updateAllViews(): void;
|
|
33
|
-
updateEndPoint(endTime: number, endPrice: number): void;
|
|
34
|
-
updateStartPoint(startTime: number, startPrice: number): void;
|
|
35
|
-
setPreviewMode(isPreview: boolean): void;
|
|
36
|
-
setDragging(isDragging: boolean, dragPoint?: 'start' | 'end' | 'line' | null): void;
|
|
37
|
-
setShowHandles(show: boolean): void;
|
|
38
|
-
setShowPriceNote(show: boolean): void;
|
|
39
|
-
dragLineByPixels(deltaX: number, deltaY: number): void;
|
|
40
|
-
dragLine(deltaTime: number, deltaPrice: number): void;
|
|
41
|
-
isPointNearHandle(x: number, y: number, threshold?: number): 'start' | 'end' | null;
|
|
42
|
-
private requestUpdate;
|
|
43
|
-
time(): number;
|
|
44
|
-
priceValue(): number;
|
|
45
|
-
paneViews(): {
|
|
46
|
-
renderer: () => any;
|
|
47
|
-
}[];
|
|
48
|
-
private _drawHandles;
|
|
49
|
-
private _drawPriceNote;
|
|
50
|
-
getStartTime(): number;
|
|
51
|
-
getStartPrice(): number;
|
|
52
|
-
getEndTime(): number;
|
|
53
|
-
getEndPrice(): number;
|
|
54
|
-
updateColor(color: string): void;
|
|
55
|
-
updateLineWidth(lineWidth: number): void;
|
|
56
|
-
updateLineStyle(lineStyle: "solid" | "dashed" | "dotted"): void;
|
|
57
|
-
updatePriceNoteStyle(background: string, textColor: string, font: string): void;
|
|
58
|
-
updateStyles(styles: {
|
|
59
|
-
color?: string;
|
|
60
|
-
lineWidth?: number;
|
|
61
|
-
lineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
62
|
-
priceNoteBackground?: string;
|
|
63
|
-
priceNoteTextColor?: string;
|
|
64
|
-
priceNoteFont?: string;
|
|
65
|
-
fontSize?: number;
|
|
66
|
-
graphColor?: string;
|
|
67
|
-
graphLineStyle?: 'solid' | 'dashed' | 'dotted';
|
|
68
|
-
graphLineWidth?: number;
|
|
69
|
-
isBold?: boolean;
|
|
70
|
-
isItalic?: boolean;
|
|
71
|
-
[key: string]: any;
|
|
72
|
-
}): void;
|
|
73
|
-
getCurrentStyles(): Record<string, any>;
|
|
74
|
-
private _buildFontString;
|
|
75
|
-
private _getFontSizeFromFontString;
|
|
76
|
-
private _getLineDashPattern;
|
|
77
|
-
getBounds(): {
|
|
78
|
-
startX: any;
|
|
79
|
-
startY: any;
|
|
80
|
-
endX: any;
|
|
81
|
-
endY: any;
|
|
82
|
-
minX: number;
|
|
83
|
-
maxX: number;
|
|
84
|
-
minY: number;
|
|
85
|
-
maxY: number;
|
|
86
|
-
} | null;
|
|
87
|
-
}
|