openalgo-charts 1.0.18 → 1.0.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/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /** Library version string. Matches package.json (published npm release). */
2
- declare const VERSION = "1.0.18";
2
+ declare const VERSION = "1.0.20";
3
3
  /** Returns the current library version. */
4
4
  declare function version(): string;
5
5
 
@@ -1976,6 +1976,16 @@ declare class Chart {
1976
1976
  addIndicator(indicatorId: string, settings?: Readonly<IndicatorSettings>, options?: {
1977
1977
  paneIndex?: number;
1978
1978
  }): IndicatorApi;
1979
+ /**
1980
+ * Give a repeated indicator its own colours. Three EMAs all in the
1981
+ * descriptor's default blue are indistinguishable on the chart *and* in the
1982
+ * legend, so the second and later instances rotate through a palette.
1983
+ *
1984
+ * Only fills colour keys the caller left unset, so an explicit colour always
1985
+ * wins, and the first instance is never touched — it keeps the colours the
1986
+ * descriptor chose.
1987
+ */
1988
+ private _distinctColors;
1979
1989
  /** Every live indicator instance, in the order they were added. */
1980
1990
  indicators(): readonly IndicatorApi[];
1981
1991
  /** Remove one indicator instance by its handle id. Returns true if it existed. */