@pipsend/charts 2.1.0 → 2.2.0
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/README.md +9 -4
- package/dist/pipsend-charts.development.mjs +98 -15
- package/dist/pipsend-charts.production.mjs +2 -2
- package/dist/pipsend-charts.standalone.development.js +98 -14
- package/dist/pipsend-charts.standalone.development.mjs +98 -15
- package/dist/pipsend-charts.standalone.production.js +2 -2
- package/dist/pipsend-charts.standalone.production.mjs +2 -2
- package/dist/typings.d.ts +23 -5
- package/package.json +1 -1
package/dist/typings.d.ts
CHANGED
|
@@ -1906,9 +1906,9 @@ export declare function applyEMA(series: ISeriesApi<SeriesType>, chart: IChartAp
|
|
|
1906
1906
|
* Draw a source series as Heikin Ashi candles.
|
|
1907
1907
|
*
|
|
1908
1908
|
* The source series is left in place holding its real prices — it is only
|
|
1909
|
-
*
|
|
1910
|
-
*
|
|
1911
|
-
* chart-type toggle:
|
|
1909
|
+
* painted transparent — so indicators bound to it keep computing on the true
|
|
1910
|
+
* OHLC, its price lines and primitives stay on screen, and `remove()` puts the
|
|
1911
|
+
* chart back exactly as it was. That makes this usable as a chart-type toggle:
|
|
1912
1912
|
*
|
|
1913
1913
|
* ```js
|
|
1914
1914
|
* const ha = applyHeikinAshi(candleSeries, chart);
|
|
@@ -2474,6 +2474,21 @@ export declare function defaultHorzScaleBehavior(): new () => IHorzScaleBehavior
|
|
|
2474
2474
|
* Now ignores symbol and uses price-based detection
|
|
2475
2475
|
*/
|
|
2476
2476
|
export declare function getPipConfig(symbolOrPrice: string | number, price?: number): PipConfig;
|
|
2477
|
+
/**
|
|
2478
|
+
* Take a series off the screen without hiding it.
|
|
2479
|
+
*
|
|
2480
|
+
* `visible: false` takes down everything hung off the series as well: its
|
|
2481
|
+
* price lines, primitives and price-axis label stop rendering. A transform
|
|
2482
|
+
* that only wants the bars themselves out of the way — Heikin Ashi drawing
|
|
2483
|
+
* over its source — needs the series to stay visible to the engine, so its
|
|
2484
|
+
* paint is made transparent instead and the last-value label and price line
|
|
2485
|
+
* are switched off. Custom series have no known colours; those fall back to
|
|
2486
|
+
* `visible: false`.
|
|
2487
|
+
*
|
|
2488
|
+
* @param series - Series to blank out.
|
|
2489
|
+
* @returns Puts back the options the series had when it was blanked.
|
|
2490
|
+
*/
|
|
2491
|
+
export declare function hideSeriesPaint(series: ISeriesApi<SeriesType>): () => void;
|
|
2477
2492
|
/**
|
|
2478
2493
|
* Check if a time value is a business day object.
|
|
2479
2494
|
*
|
|
@@ -3680,8 +3695,11 @@ export interface HeikinAshiOptions {
|
|
|
3680
3695
|
/** Wick color of falling candles. */
|
|
3681
3696
|
wickDownColor?: string;
|
|
3682
3697
|
/**
|
|
3683
|
-
*
|
|
3684
|
-
* do not overlap. The
|
|
3698
|
+
* Blank out the source series while the Heikin Ashi candles are shown, so
|
|
3699
|
+
* the two do not overlap. The source is painted transparent rather than
|
|
3700
|
+
* hidden: it stays visible to the engine, so its price lines, primitives
|
|
3701
|
+
* and everything else hung off it keep rendering. `remove()` puts its paint
|
|
3702
|
+
* back.
|
|
3685
3703
|
*
|
|
3686
3704
|
* @defaultValue `true`
|
|
3687
3705
|
*/
|
package/package.json
CHANGED