Socket
Socket
Sign inDemoInstall

lightweight-charts

Package Overview
Dependencies
Maintainers
3
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lightweight-charts - npm Package Compare versions

Comparing version 1.1.0 to 1.2.1

32

dist/typings.d.ts

@@ -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 {

7

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc