lightweight-charts
Advanced tools
Comparing version 1.1.0 to 1.2.1
@@ -113,2 +113,3 @@ /** | ||
lineWidth: LineWidth; | ||
lineType: LineType; | ||
crosshairMarkerVisible: boolean; | ||
@@ -241,2 +242,3 @@ crosshairMarkerRadius: number; | ||
axisPressedMouseMove: boolean; | ||
axisDoubleClickReset: boolean; | ||
} | ||
@@ -370,2 +372,6 @@ export interface HandleScrollOptions { | ||
} | ||
export interface IPriceLine { | ||
applyOptions(options: Partial<PriceLineOptions>): void; | ||
options(): Readonly<PriceLineOptions>; | ||
} | ||
/** Interface to control chart's price scale */ | ||
@@ -390,3 +396,4 @@ export interface IPriceScaleApi { | ||
priceFormatter(): IPriceFormatter; | ||
/** Converts specified series price to pixel coordinate according to the chart price scale | ||
/** | ||
* Converts specified series price to pixel coordinate according to the series price scale | ||
* @param price - input price to be converted | ||
@@ -397,2 +404,8 @@ * @returns - pixel coordinate of the price level on the chart | ||
/** | ||
* Converts specified coordinate to price value according to the series price scale | ||
* @param coordinate - input coordinate to be converted | ||
* @returns - price value pf the coordinate on the chart | ||
*/ | ||
coordinateToPrice(coordinate: Coordinate): BarPrice | null; | ||
/** | ||
* Applies new options to the existing series | ||
@@ -423,2 +436,12 @@ * @param options - any subset of options | ||
setMarkers(data: SeriesMarker<Time>[]): void; | ||
/** | ||
* Creates a new price line | ||
* @param options - any subset of options | ||
*/ | ||
createPriceLine(options: PriceLineOptions): IPriceLine; | ||
/** | ||
* Removes an existing price line | ||
* @param line to remove | ||
*/ | ||
removePriceLine(line: IPriceLine): void; | ||
} | ||
@@ -497,2 +520,3 @@ /** Interface to chart time scale */ | ||
lineWidth: LineWidth; | ||
lineType: LineType; | ||
crosshairMarkerVisible: boolean; | ||
@@ -576,2 +600,8 @@ crosshairMarkerRadius: number; | ||
} | ||
export interface PriceLineOptions { | ||
price: BarPrice; | ||
color: string; | ||
lineWidth: LineWidth; | ||
lineStyle: LineStyle; | ||
} | ||
/** Defines margins of the price scale */ | ||
@@ -578,0 +608,0 @@ export interface PriceScaleMargins { |
{ | ||
"version": "1.1.0", | ||
"version": "1.2.1", | ||
"name": "lightweight-charts", | ||
@@ -29,3 +29,6 @@ "author": "TradingView, Inc.", | ||
"charts" | ||
] | ||
], | ||
"dependencies": { | ||
"fancy-canvas": "0.2.1" | ||
} | ||
} |
@@ -19,3 +19,3 @@ <!-- markdownlint-disable no-inline-html first-line-h1 --> | ||
[Demos][demo-url] | [Documentation](./docs/README.md) | ||
[Demos][demo-url] | [Documentation](./docs/README.md) | [Discord community](https://discord.gg/E6UthXZ) | ||
@@ -91,3 +91,3 @@ TradingView Lightweight Charts are one of the smallest and fastest financial HTML5 charts. | ||
This software incorporates several parts of tslib (<https://github.com/Microsoft/tslib>, (c) Microsoft Corporation) that are covered by the the Apache License, Version 2.0. | ||
This software incorporates several parts of tslib (<https://github.com/Microsoft/tslib>, (c) Microsoft Corporation) that are covered by the Apache License, Version 2.0. | ||
@@ -94,0 +94,0 @@ This license requires specifying TradingView as the product creator. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
1
1336125
1
23350
+ Addedfancy-canvas@0.2.1
+ Addedfancy-canvas@0.2.1(transitive)