@pipsend/charts 2.3.16 → 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 +170 -10
- package/dist/pipsend-charts.production.mjs +2 -2
- package/dist/pipsend-charts.standalone.development.js +170 -9
- package/dist/pipsend-charts.standalone.development.mjs +170 -10
- package/dist/pipsend-charts.standalone.production.js +2 -2
- package/dist/pipsend-charts.standalone.production.mjs +2 -2
- package/dist/typings.d.ts +21 -0
- package/package.json +1 -1
package/dist/typings.d.ts
CHANGED
|
@@ -1155,6 +1155,7 @@ export declare class PositionLine implements ISeriesPrimitive, ControllableLine
|
|
|
1155
1155
|
private readonly _axisViews;
|
|
1156
1156
|
private readonly _colorParser;
|
|
1157
1157
|
private readonly _labelLayout;
|
|
1158
|
+
private readonly _axisLabels;
|
|
1158
1159
|
private _options;
|
|
1159
1160
|
private _theme;
|
|
1160
1161
|
private _requestUpdate?;
|
|
@@ -2473,6 +2474,7 @@ export declare function createTextTool(context: DrawingContext, options: TextToo
|
|
|
2473
2474
|
* ```
|
|
2474
2475
|
*/
|
|
2475
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>;
|
|
2476
2478
|
/**
|
|
2477
2479
|
* Create a flexible trading line with presets for common trading scenarios
|
|
2478
2480
|
* @param series - Series to attach the line to
|
|
@@ -5295,6 +5297,12 @@ export interface ISeriesUpDownMarkerPluginApi<HorzScaleItem, TData extends Serie
|
|
|
5295
5297
|
*/
|
|
5296
5298
|
clearMarkers: () => void;
|
|
5297
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
|
+
}
|
|
5298
5306
|
/** Interface to chart time scale */
|
|
5299
5307
|
export interface ITimeScaleApi<HorzScaleItem> {
|
|
5300
5308
|
/**
|
|
@@ -7396,6 +7404,19 @@ export interface TimeChartOptions extends ChartOptionsImpl<Time> {
|
|
|
7396
7404
|
*/
|
|
7397
7405
|
timeScale: TimeScaleOptions;
|
|
7398
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
|
+
}
|
|
7399
7420
|
/**
|
|
7400
7421
|
* Represents a tick mark on the horizontal (time) scale.
|
|
7401
7422
|
*/
|