@barchart/chart-lib 2.401.0 → 2.403.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.
@@ -1310,6 +1310,8 @@ declare module "@barchart/chart-lib" {
1310
1310
  defaultVolumeBarColoring?: DefaultBarColoring;
1311
1311
  defaultMainPlotBarColoring?: DefaultBarColoring;
1312
1312
  colorfulAnnotations?: boolean;
1313
+ /** Opt in to enhanced annotation selection and overlap interactions. Omitted or false preserves legacy behavior. */
1314
+ annotationManipulation?: boolean;
1313
1315
  fetch?(kind: UrlKind, relativeUrl: string): Promise<string>;
1314
1316
  getCustomEventPopup(view: any): CustomEventPopup | null;
1315
1317
  }
@@ -1553,7 +1555,8 @@ declare module "@barchart/chart-lib" {
1553
1555
  | ThemeAccessor
1554
1556
  | ClearAccessor
1555
1557
  | MovePlotAccessor
1556
- | PinPlotAccessor;
1558
+ | PinPlotAccessor
1559
+ | AnnotationManipulationAccessor;
1557
1560
 
1558
1561
  export interface ClearAccessor {
1559
1562
  id: "Clear";
@@ -1803,6 +1806,27 @@ declare module "@barchart/chart-lib" {
1803
1806
 
1804
1807
  export type PinPlotAxis = "PrimaryAxis" | "SecondaryAxis" | "NoAxis";
1805
1808
 
1809
+ /** Selection is transient; positions are zero-based, back to front within an axis. */
1810
+ export interface AnnotationManipulationAccessor {
1811
+ id: "AnnotationManipulation";
1812
+ context: {
1813
+ id?: "Get" | "Update";
1814
+ uid?: string;
1815
+ selected?: boolean;
1816
+ preview?: boolean;
1817
+ position?: number | "Front" | "Back";
1818
+ };
1819
+ }
1820
+
1821
+ export interface AnnotationManipulationState {
1822
+ uid: string;
1823
+ paneIndex: number;
1824
+ axisIndex: number;
1825
+ position: number;
1826
+ selected: boolean;
1827
+ preview: boolean;
1828
+ }
1829
+
1806
1830
  export interface PinPlotAccessor {
1807
1831
  id: "PinPlot";
1808
1832
  context: {
@@ -2081,6 +2105,15 @@ declare module "@barchart/chart-lib" {
2081
2105
  factors?: Array<{ shown: boolean; value: number }>;
2082
2106
  }
2083
2107
 
2108
+ export interface IAnnotationCandidate extends Omit<
2109
+ IAnnotationData,
2110
+ "offset" | "wasSelected" | "candidates" | "toolChange" | "orderOnly"
2111
+ > {
2112
+ paneIndex: number;
2113
+ axisIndex: number;
2114
+ position: number;
2115
+ }
2116
+
2084
2117
  export interface IAnnotationData {
2085
2118
  uid: string;
2086
2119
  id: string;
@@ -2092,6 +2125,14 @@ declare module "@barchart/chart-lib" {
2092
2125
  visible: boolean;
2093
2126
  chart: ChartAccessor;
2094
2127
  canFlip?: boolean;
2128
+ /** Context-menu target was selected before the triggering gesture. */
2129
+ wasSelected?: boolean;
2130
+ /** Context-menu candidates in front-to-back order. */
2131
+ candidates?: IAnnotationCandidate[];
2132
+ /** Present on CH_ANNMODIFIEDBYTOOL. */
2133
+ toolChange?: string;
2134
+ /** Ordering is local; do not synchronize this notification as a drawing edit. */
2135
+ orderOnly?: boolean;
2095
2136
  }
2096
2137
 
2097
2138
  export function getAnnotationTraits(annId: string): AnnotationTraits;
@@ -2757,6 +2798,8 @@ declare module "@barchart/chart-lib" {
2757
2798
  }
2758
2799
 
2759
2800
  export interface StudyInput {
2801
+ /** Discrete numeric input; normalized with Math.ceil at the model boundary. */
2802
+ integer?: boolean;
2760
2803
  /** Name of the input parameter. */
2761
2804
  name: string;
2762
2805
  /** Value of the input parameter. */
@@ -2858,6 +2901,8 @@ declare module "@barchart/chart-lib" {
2858
2901
  balanceSheets: BalanceSheet[];
2859
2902
  studyFields: StudyField[];
2860
2903
  curveStyles: CurveStyle[];
2904
+ /** Input defaults, including integer declarations, for configurable curve styles. */
2905
+ curveStyleInputs: Partial<Record<CurveStyle, StudyInput[]>>;
2861
2906
  annotations: AnnotationConfig[];
2862
2907
  }
2863
2908