@pipsend/charts 2.3.17 → 2.3.18
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/pipsend-charts.development.mjs +124 -3
- package/dist/pipsend-charts.production.mjs +2 -2
- package/dist/pipsend-charts.standalone.development.js +124 -2
- package/dist/pipsend-charts.standalone.development.mjs +124 -3
- package/dist/pipsend-charts.standalone.production.js +2 -2
- package/dist/pipsend-charts.standalone.production.mjs +2 -2
- package/dist/typings.d.ts +20 -0
- package/package.json +1 -1
package/dist/typings.d.ts
CHANGED
|
@@ -2474,6 +2474,7 @@ export declare function createTextTool(context: DrawingContext, options: TextToo
|
|
|
2474
2474
|
* ```
|
|
2475
2475
|
*/
|
|
2476
2476
|
export declare function createTextWatermark<T>(pane: IPaneApi<T>, options: DeepPartial<TextWatermarkOptions>): ITextWatermarkPluginApi<T>;
|
|
2477
|
+
export declare function createTimeLabels<HorzScaleItem>(series: ISeriesApi<SeriesType, HorzScaleItem>, labels?: readonly TimeLabel<HorzScaleItem>[], options?: DeepPartial<TimeLabelsOptions>): ITimeLabelsPluginApi<HorzScaleItem>;
|
|
2477
2478
|
/**
|
|
2478
2479
|
* Create a flexible trading line with presets for common trading scenarios
|
|
2479
2480
|
* @param series - Series to attach the line to
|
|
@@ -5296,6 +5297,12 @@ export interface ISeriesUpDownMarkerPluginApi<HorzScaleItem, TData extends Serie
|
|
|
5296
5297
|
*/
|
|
5297
5298
|
clearMarkers: () => void;
|
|
5298
5299
|
}
|
|
5300
|
+
export interface ITimeLabelsPluginApi<HorzScaleItem> extends ISeriesPrimitiveWrapper<HorzScaleItem, TimeLabelsOptions> {
|
|
5301
|
+
setLabels: (labels: readonly TimeLabel<HorzScaleItem>[]) => void;
|
|
5302
|
+
labels: () => readonly TimeLabel<HorzScaleItem>[];
|
|
5303
|
+
applyOptions: (options: DeepPartial<TimeLabelsOptions>) => void;
|
|
5304
|
+
detach: () => void;
|
|
5305
|
+
}
|
|
5299
5306
|
/** Interface to chart time scale */
|
|
5300
5307
|
export interface ITimeScaleApi<HorzScaleItem> {
|
|
5301
5308
|
/**
|
|
@@ -7397,6 +7404,19 @@ export interface TimeChartOptions extends ChartOptionsImpl<Time> {
|
|
|
7397
7404
|
*/
|
|
7398
7405
|
timeScale: TimeScaleOptions;
|
|
7399
7406
|
}
|
|
7407
|
+
export interface TimeLabel<HorzScaleItem> {
|
|
7408
|
+
time: HorzScaleItem;
|
|
7409
|
+
text: string;
|
|
7410
|
+
color?: string;
|
|
7411
|
+
size?: number;
|
|
7412
|
+
}
|
|
7413
|
+
export interface TimeLabelsOptions {
|
|
7414
|
+
position: "bottom" | "top";
|
|
7415
|
+
offset: number;
|
|
7416
|
+
fontSize: number;
|
|
7417
|
+
fontFamily: string;
|
|
7418
|
+
color: string;
|
|
7419
|
+
}
|
|
7400
7420
|
/**
|
|
7401
7421
|
* Represents a tick mark on the horizontal (time) scale.
|
|
7402
7422
|
*/
|