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.2.2 to 2.0.0

32

dist/typings.d.ts

@@ -21,2 +21,12 @@ /**

}
export declare const enum PriceLineSource {
/**
* The last bar data
*/
LastBar = 0,
/**
* The last visible bar in viewport
*/
LastVisible = 1
}
/**

@@ -62,3 +72,3 @@ * Enum of possible price scale modes

export declare type Coordinate = Nominal<number, 'Coordinate'>;
export declare type DateFormat = 'dd MMM \'yy' | 'yyyy-MM-dd' | 'yy-MM-dd' | 'yy/MM/dd' | 'yyyy/MM/dd' | 'dd-MM-yyyy' | 'dd-MM-yy' | 'dd/MM/yy' | 'dd/MM/yyyy' | 'MM/dd/yy' | 'MM/dd/yyyy';
export declare type DateFormat = '\'yy MMM dd' | '\'yy MMMM dd' | 'yyyy MMM dd' | 'yyyy MMMM dd' | 'dd MMM \'yy' | 'dd MMMM \'yy' | 'dd MMM yyyy' | 'dd MMMM yyyy' | 'MMM dd, \'yy' | 'MMMM dd, \'yy' | 'MMM dd, yyyy' | 'MMMM dd, yyyy' | 'yyyy-MM-dd' | 'yy-MM-dd' | 'yy/MM/dd' | 'yyyy/MM/dd' | 'yy.MM.dd' | 'yyyy.MM.dd' | 'dd-MM-yyyy' | 'dd-MM-yy' | 'dd/MM/yy' | 'dd/MM/yyyy' | 'dd.MM.yy' | 'dd.MM.yyyy' | 'MM-dd-yy' | 'MM-dd-yyyy' | 'MM/dd/yy' | 'MM/dd/yyyy' | 'MM.dd.yy' | 'MM.dd.yyyy';
export declare type DeepPartial<T> = {

@@ -194,6 +204,6 @@ [P in keyof T]?: T[P] extends Array<infer U> ? Array<DeepPartial<U>> : T[P] extends ReadonlyArray<infer X> ? ReadonlyArray<DeepPartial<X>> : DeepPartial<T[P]>;

localization: LocalizationOptions;
/** Structure that describes scrolling behavior */
handleScroll: HandleScrollOptions;
/** Structure that describes scaling behavior */
handleScale: HandleScaleOptions;
/** Structure that describes scrolling behavior or boolean flag that disables/enables all kinds of scrolls */
handleScroll: HandleScrollOptions | boolean;
/** Structure that describes scaling behavior or boolean flag that disables/enables all kinds of scales */
handleScale: HandleScaleOptions | boolean;
}

@@ -264,3 +274,2 @@ /** Structure describing a crosshair line (vertical or horizontal) */

base: number;
lineWidth: number;
}

@@ -274,7 +283,7 @@ export interface IChartApi {

* Sets fixed size of the chart. By default chart takes up 100% of its container
* @param width - target width of the chart
* @param height - target height of the chart
* @param width - target width of the chart
* @param forceRepaint - true to initiate resize immediately. One could need this to get screenshot immediately after resize
*/
resize(height: number, width: number, forceRepaint?: boolean): void;
resize(width: number, height: number, forceRepaint?: boolean): void;
/**

@@ -407,3 +416,3 @@ * Creates an area series with specified parameters

* @param coordinate - input coordinate to be converted
* @returns - price value pf the coordinate on the chart
* @returns - price value of the coordinate on the chart
*/

@@ -604,2 +613,3 @@ coordinateToPrice(coordinate: Coordinate): BarPrice | null;

lineStyle: LineStyle;
axisLabelVisible: boolean;
}

@@ -658,2 +668,6 @@ /** Defines margins of the price scale */

priceLineVisible: boolean;
/**
* Enum of possible modes of priceLine source
*/
priceLineSource: PriceLineSource;
/** Width of the price line. Ignored if priceLineVisible is false */

@@ -660,0 +674,0 @@ priceLineWidth: LineWidth;

{
"version": "1.2.2",
"version": "2.0.0",
"name": "lightweight-charts",

@@ -4,0 +4,0 @@ "author": "TradingView, Inc.",

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