lightweight-charts
Advanced tools
Comparing version 1.0.0-rc.5 to 1.0.0
@@ -120,2 +120,8 @@ /** | ||
} | ||
export interface BarPrices { | ||
open: BarPrice; | ||
high: BarPrice; | ||
low: BarPrice; | ||
close: BarPrice; | ||
} | ||
export interface BarStyleOptions { | ||
@@ -200,2 +206,4 @@ upColor: string; | ||
labelVisible: boolean; | ||
/** Background color of corresponding scale label */ | ||
labelBackgroundColor: string; | ||
} | ||
@@ -235,2 +243,4 @@ /** Structure describing crosshair options */ | ||
pressedMouseMove: boolean; | ||
horzTouchDrag: boolean; | ||
vertTouchDrag: boolean; | ||
} | ||
@@ -343,2 +353,7 @@ /** | ||
options(): Readonly<ChartOptions>; | ||
/** | ||
* Make a screenshot of the chart with all the elements excluding crosshair. | ||
* @returns a canvas with the chart drawn on | ||
*/ | ||
takeScreenshot(): HTMLCanvasElement; | ||
} | ||
@@ -497,3 +512,3 @@ /** Interface to be implemented by the object in order to be used as a price formatter */ | ||
point?: Point; | ||
seriesPrices: Map<ISeriesApi<SeriesType>, number>; | ||
seriesPrices: Map<ISeriesApi<SeriesType>, BarPrice | BarPrices>; | ||
} | ||
@@ -563,2 +578,4 @@ export interface NonOverlaySeriesSpecificOptions { | ||
borderColor: string; | ||
/** Indicates whether the price scale displays only full lines of text or partial lines. */ | ||
entireTextOnly: boolean; | ||
} | ||
@@ -586,13 +603,13 @@ export interface SeriesDataItemTypeMap { | ||
priceLineColor: string; | ||
/** Price line style. Suitible for percentage and indexedTo100 scales */ | ||
/** Price line style. Suitable for percentage and indexedTo100 scales */ | ||
priceLineStyle: LineStyle; | ||
/** Formatting settings associated with the series */ | ||
priceFormat: PriceFormat; | ||
/** Visibity of base line. Suitible for percentage and indexedTo100 scales */ | ||
/** Visibility of base line. Suitable for percentage and indexedTo100 scales */ | ||
baseLineVisible: boolean; | ||
/** Color of the base line in IndexedTo100 mode */ | ||
baseLineColor: string; | ||
/** Base line width. Suitible for percentage and indexedTo100 scales. Ignored if baseLineVisible is not set */ | ||
/** Base line width. Suitable for percentage and indexedTo100 scales. Ignored if baseLineVisible is not set */ | ||
baseLineWidth: LineWidth; | ||
/** Base line style. Suitible for percentage and indexedTo100 scales. Ignored if baseLineVisible is not set */ | ||
/** Base line style. Suitable for percentage and indexedTo100 scales. Ignored if baseLineVisible is not set */ | ||
baseLineStyle: LineStyle; | ||
@@ -599,0 +616,0 @@ } |
{ | ||
"version": "1.0.0-rc.5", | ||
"version": "1.0.0", | ||
"name": "lightweight-charts", | ||
@@ -4,0 +4,0 @@ "author": "TradingView, Inc.", |
@@ -1,13 +0,23 @@ | ||
# Lightweight Charts | ||
<!-- markdownlint-disable no-inline-html first-line-h1 --> | ||
[![CircleCI](https://img.shields.io/circleci/build/github/tradingview/lightweight-charts.svg)](https://circleci.com/gh/tradingview/lightweight-charts) | ||
[![npm version](https://badge.fury.io/js/lightweight-charts.svg)](https://www.npmjs.com/package/lightweight-charts) | ||
[![npm bundle size](https://badgen.net/bundlephobia/minzip/lightweight-charts)](https://bundlephobia.com/result?p=lightweight-charts) | ||
![Zero dependencies](https://badgen.net/badge/dependencies/0/green) | ||
[![Downloads](https://img.shields.io/npm/dm/lightweight-charts.svg)](https://www.npmjs.com/package/lightweight-charts) | ||
<div align="center"> | ||
<a href="https://www.tradingview.com/lightweight-charts/" target="_blank"> | ||
<img width="200" src="https://github.com/tradingview/lightweight-charts/raw/master/.github/logo.svg?sanitize=true"> | ||
</a> | ||
[Demos](https://www.tradingview.com/lightweight-charts/) | [Documentation](./docs/README.md) | ||
<h1>Lightweight Charts</h1> | ||
TradingView Lightweight Charts is one of the smallest and fastest financial HTML5 charts. | ||
[![CircleCI][ci-img]][ci-link] | ||
[![npm version][npm-version-img]][npm-link] | ||
[![npm bundle size][bundle-size-img]][bundle-size-link] | ||
![Zero dependencies][zero-deps-img] | ||
[![Downloads][npm-downloads-img]][npm-link] | ||
</div> | ||
<!-- markdownlint-enable no-inline-html --> | ||
[Demos][demo-url] | [Documentation](./docs/README.md) | ||
TradingView Lightweight Charts are one of the smallest and fastest financial HTML5 charts. | ||
The Lightweight Charting Library is the best choice for you if you want to display financial data as an interactive chart on your web page without affecting your web page loading speed and performance. | ||
@@ -85,1 +95,15 @@ | ||
As thanks for creating this product, we'd be grateful if you add it in a prominent place. | ||
[demo-url]: https://www.tradingview.com/lightweight-charts/ | ||
[ci-img]: https://img.shields.io/circleci/build/github/tradingview/lightweight-charts.svg | ||
[ci-link]: https://circleci.com/gh/tradingview/lightweight-charts | ||
[npm-version-img]: https://badge.fury.io/js/lightweight-charts.svg | ||
[npm-downloads-img]: https://img.shields.io/npm/dm/lightweight-charts.svg | ||
[npm-link]: https://www.npmjs.com/package/lightweight-charts | ||
[bundle-size-img]: https://badgen.net/bundlephobia/minzip/lightweight-charts | ||
[bundle-size-link]: https://bundlephobia.com/result?p=lightweight-charts | ||
[zero-deps-img]: https://badgen.net/badge/dependencies/0/green |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1313160
23212
1
109
0