@pipsend/charts 2.3.18 → 2.3.20
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 +185 -116
- package/dist/pipsend-charts.production.mjs +2 -2
- package/dist/pipsend-charts.standalone.development.js +185 -115
- package/dist/pipsend-charts.standalone.development.mjs +185 -116
- package/dist/pipsend-charts.standalone.production.js +2 -2
- package/dist/pipsend-charts.standalone.production.mjs +2 -2
- package/dist/typings.d.ts +34 -6
- package/package.json +1 -1
package/dist/typings.d.ts
CHANGED
|
@@ -185,6 +185,11 @@ export declare class BrushTool extends DrawingToolBase {
|
|
|
185
185
|
startDrawingMode(): void;
|
|
186
186
|
stopDrawingMode(): void;
|
|
187
187
|
isDrawingModeActive(): boolean;
|
|
188
|
+
/**
|
|
189
|
+
* A brush armed for its next stroke is not a drawing yet: it stays out of the
|
|
190
|
+
* undo history, where restoring it would re-arm a brush the app does not hold.
|
|
191
|
+
*/
|
|
192
|
+
isComplete(): boolean;
|
|
188
193
|
private _onPointerDown;
|
|
189
194
|
private _onPointerMove;
|
|
190
195
|
private _onPointerUp;
|
|
@@ -1560,12 +1565,11 @@ export declare class TradingSessionsIndicator {
|
|
|
1560
1565
|
private _highlightSessions;
|
|
1561
1566
|
private _highlightSession;
|
|
1562
1567
|
private _highlightOverlaps;
|
|
1563
|
-
private
|
|
1564
|
-
private
|
|
1568
|
+
private _eachRun;
|
|
1569
|
+
private _inSession;
|
|
1570
|
+
private _hourIn;
|
|
1565
1571
|
private _createSessionBox;
|
|
1566
1572
|
private _createOverlapBox;
|
|
1567
|
-
private _isTimeInSession;
|
|
1568
|
-
private _getUTCHour;
|
|
1569
1573
|
private _clearSessionBoxes;
|
|
1570
1574
|
/**
|
|
1571
1575
|
* Merge options into the running indicator and repaint.
|
|
@@ -2610,6 +2614,14 @@ export declare function setVolumeProfileData(indicator: VolumeProfileIndicator,
|
|
|
2610
2614
|
* Time at a horizontal coordinate, extrapolated past the last bar.
|
|
2611
2615
|
*/
|
|
2612
2616
|
export declare function timeFromCoordinate(chart: IChartApi, series: ISeriesApi<SeriesType>, x: number): Time | null;
|
|
2617
|
+
/**
|
|
2618
|
+
* Offset of `timeZone` from UTC at `time`, in seconds. Undefined, `'UTC'` and
|
|
2619
|
+
* unknown zones are 0.
|
|
2620
|
+
*
|
|
2621
|
+
* Resolved once per UTC day, and to the quarter hour only on days with a
|
|
2622
|
+
* transition: asking `Intl` for every bar is too slow for a whole series.
|
|
2623
|
+
*/
|
|
2624
|
+
export declare function timeZoneOffset(timeZone: string | undefined, time: number): number;
|
|
2613
2625
|
/**
|
|
2614
2626
|
* Returns the current version as a string. For example `'1.0.0'`.
|
|
2615
2627
|
*/
|
|
@@ -4428,9 +4440,10 @@ export interface IHorzScaleBehavior<HorzScaleItem> {
|
|
|
4428
4440
|
*
|
|
4429
4441
|
* @param item - tickmark item
|
|
4430
4442
|
* @param barsPerMark - how many bars apart marks must be at the current zoom
|
|
4443
|
+
* @param previous - the point before it on the scale, if any
|
|
4431
4444
|
* @returns false to leave the tickmark out
|
|
4432
4445
|
*/
|
|
4433
|
-
allowsTickMark?(item: TickMark, barsPerMark: number): boolean;
|
|
4446
|
+
allowsTickMark?(item: TickMark, barsPerMark: number, previous: TimeScalePoint | undefined): boolean;
|
|
4434
4447
|
/**
|
|
4435
4448
|
* Returns the maximum tickmark weight value for the specified tickmarks on the time scale.
|
|
4436
4449
|
*
|
|
@@ -5867,6 +5880,15 @@ export interface LocalizationOptions<HorzScaleItem> extends LocalizationOptionsB
|
|
|
5867
5880
|
* @defaultValue `'dd MMM \'yy'`
|
|
5868
5881
|
*/
|
|
5869
5882
|
dateFormat: string;
|
|
5883
|
+
/**
|
|
5884
|
+
* IANA time zone of the time scale's tick marks and default labels, e.g. `'America/New_York'`.
|
|
5885
|
+
*
|
|
5886
|
+
* Data, and the times custom formatters and filters receive, stay in UTC; see {@link timeZoneOffset}.
|
|
5887
|
+
* Business-day data is never shifted. Unknown zones fall back to UTC.
|
|
5888
|
+
*
|
|
5889
|
+
* @defaultValue `undefined` (UTC)
|
|
5890
|
+
*/
|
|
5891
|
+
timeZone?: string;
|
|
5870
5892
|
}
|
|
5871
5893
|
/**
|
|
5872
5894
|
* Represents basic localization options
|
|
@@ -7448,9 +7470,12 @@ export interface TimeScaleOptions extends HorzScaleOptions {
|
|
|
7448
7470
|
* their labels not to overlap, so a filter can pick a regular grid that fits,
|
|
7449
7471
|
* e.g. every 10 minutes when every 2 would crowd the axis.
|
|
7450
7472
|
*
|
|
7473
|
+
* `previousTime` is the point before it (null for the first), to tell whether a
|
|
7474
|
+
* boundary falls between the two when no bar opens exactly on it.
|
|
7475
|
+
*
|
|
7451
7476
|
* @defaultValue `undefined`
|
|
7452
7477
|
*/
|
|
7453
|
-
tickMarkFilter?: (time: Time, tickMarkType: TickMarkType, barsPerMark: number) => boolean;
|
|
7478
|
+
tickMarkFilter?: (time: Time, tickMarkType: TickMarkType, barsPerMark: number, previousTime: Time | null) => boolean;
|
|
7454
7479
|
}
|
|
7455
7480
|
/**
|
|
7456
7481
|
* Represents a point on the time scale
|
|
@@ -7581,8 +7606,11 @@ export interface TradingPosition<TimeType> {
|
|
|
7581
7606
|
}
|
|
7582
7607
|
export interface TradingSession {
|
|
7583
7608
|
name: string;
|
|
7609
|
+
/** Hour (0-23) in `timeZone`. */
|
|
7584
7610
|
startHour: number;
|
|
7585
7611
|
endHour: number;
|
|
7612
|
+
/** IANA zone the hours are in, so the session follows its city's daylight saving. UTC when absent. */
|
|
7613
|
+
timeZone?: string;
|
|
7586
7614
|
color: string;
|
|
7587
7615
|
opacity: number;
|
|
7588
7616
|
}
|