@barchart/chart-lib 2.383.1 → 2.384.1

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.
@@ -878,6 +878,10 @@ declare module "@barchart/chart-lib" {
878
878
  * @default false
879
879
  */
880
880
  allAnnotationsLocked: boolean;
881
+ /** Globally hides annotations, studies, or both without changing individual visibility settings.
882
+ * @default "None"
883
+ */
884
+ hiddenItems?: HiddenItems;
881
885
  };
882
886
 
883
887
  export type AnnotationModel = {
@@ -1611,6 +1615,7 @@ declare module "@barchart/chart-lib" {
1611
1615
  showMinMaxArc?: boolean;
1612
1616
  showGoToLatest?: boolean;
1613
1617
  allAnnotationsLocked?: boolean;
1618
+ hiddenItems?: HiddenItems;
1614
1619
  exprSkipLeadingEmpty?: boolean;
1615
1620
  extendedHours?: boolean;
1616
1621
  realTimeCboeBzx?: boolean;
@@ -1622,6 +1627,10 @@ declare module "@barchart/chart-lib" {
1622
1627
 
1623
1628
  export type ShowLastValue = "None" | "All" | "Main";
1624
1629
 
1630
+ const HIDDEN_ITEMS: readonly ["None", "Annotations", "Studies", "All"];
1631
+
1632
+ export type HiddenItems = (typeof HIDDEN_ITEMS)[number];
1633
+
1625
1634
  export interface PlotAccessor {
1626
1635
  id: string;
1627
1636
  context: {
@@ -2260,7 +2269,7 @@ declare module "@barchart/chart-lib" {
2260
2269
  */
2261
2270
  loadMoreData(headChunk?: boolean): Promise<void>;
2262
2271
  /** An initialization of sorts. Typically this is when the first (head) chunk of the data is being loaded (in other words, we load the data eagerly).
2263
-
2272
+
2264
2273
  * @returns A promise which resolves with a boolean specifying success or failure.
2265
2274
  */
2266
2275
  ready(): Promise<boolean>;
@@ -2434,6 +2443,8 @@ declare module "@barchart/chart-lib" {
2434
2443
  shutdown(): void;
2435
2444
  /** Returns true if this is an auxiliary feed, only for multi-window scenarios. */
2436
2445
  isAuxiliary: boolean;
2446
+ /** Clear all of the cached history and unsubscribe from all streaming subscriptions */
2447
+ clearCaches(): void;
2437
2448
  }
2438
2449
 
2439
2450
  export type Factory<T> = new () => T;