@esrf/daiquiri-lib 5.1.0 → 5.1.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.
package/dist/index.d.ts CHANGED
@@ -2294,21 +2294,33 @@ declare function HardwareState(props: {
2294
2294
  }): react_jsx_runtime.JSX.Element;
2295
2295
 
2296
2296
  interface StateComparator {
2297
+ /** The state comparator */
2297
2298
  comparator: string;
2299
+ /** The state value to compare */
2298
2300
  comparison: string;
2301
+ /** Optionally, a color for this comparison */
2299
2302
  color?: string;
2300
2303
  }
2301
2304
  interface SynopticElementType {
2305
+ /** The svg element class name */
2302
2306
  name: string;
2307
+ /** Which property to use as the value, i.e. `s1b.position` */
2303
2308
  value?: string;
2309
+ /** How many digits to display */
2304
2310
  value_display_digits?: number;
2311
+ /** Optionally, Which property to use to display the state. If left blank, the aggregated state from each element in `ids` below will be used */
2305
2312
  state?: string;
2313
+ /** Optionally, a comparison, can be a single comparison for red/green or a list of comparisons with colors */
2306
2314
  state_comparison?: StateComparator | StateComparator[];
2315
+ /** A list of hardware object ids to display on click */
2307
2316
  ids?: string[];
2308
2317
  }
2309
2318
  interface SynopticType {
2319
+ /** A list of elements to be mapped to their classes in the svg */
2310
2320
  elements: SynopticElementType[];
2321
+ /** The synoptic file to load */
2311
2322
  synoptic: string;
2323
+ /** Whether to enable daiquiri `colorisation` of icons */
2312
2324
  color_icons: boolean;
2313
2325
  }
2314
2326
  interface Props$2 {