@diamondlightsource/davidia 1.0.2 → 1.0.4
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 +14 -4
- package/dist/index.js +1692 -1657
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -417,6 +417,8 @@ export declare interface PlotCustomizationContextValue {
|
|
|
417
417
|
aspect: Aspect;
|
|
418
418
|
/** A function that sets the aspect value */
|
|
419
419
|
setAspect: (a: Aspect) => void;
|
|
420
|
+
/** Selection upper limit (on current type) */
|
|
421
|
+
selectionMax: number;
|
|
420
422
|
/** A selection type */
|
|
421
423
|
selectionType: SelectionType;
|
|
422
424
|
/** A function that sets the selection type */
|
|
@@ -439,6 +441,8 @@ export declare interface PlotCustomizationContextValue {
|
|
|
439
441
|
invertColourMap: boolean;
|
|
440
442
|
/** A function that toggles the color map inversion */
|
|
441
443
|
toggleInvertColourMap: () => void;
|
|
444
|
+
/** Selection options */
|
|
445
|
+
selectionOptions?: SelectionOptions;
|
|
442
446
|
/** Selections */
|
|
443
447
|
selections: SelectionBase[];
|
|
444
448
|
/** A function that sets the selections */
|
|
@@ -463,10 +467,10 @@ export declare interface PlotCustomizationContextValue {
|
|
|
463
467
|
showPoints: boolean;
|
|
464
468
|
/** A function that toggles the points */
|
|
465
469
|
toggleShowPoints: () => void;
|
|
466
|
-
/**
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
|
|
470
|
+
/** Get heatmap histogram */
|
|
471
|
+
histogramGetter?: () => HistogramParams;
|
|
472
|
+
/** Update heatmap histogram getter */
|
|
473
|
+
updateHistogramGetter: (getter: () => HistogramParams) => void;
|
|
470
474
|
/** Can select */
|
|
471
475
|
canSelect: boolean;
|
|
472
476
|
/** Type of plot */
|
|
@@ -485,6 +489,8 @@ export declare interface PlotSelectionProps {
|
|
|
485
489
|
batonProps?: BatonProps;
|
|
486
490
|
/** Selections event listener */
|
|
487
491
|
selectionsListener?: SelectionsEventListener;
|
|
492
|
+
/** Selection type options and limits (0 = limitless) */
|
|
493
|
+
selectionOptions?: SelectionOptions;
|
|
488
494
|
}
|
|
489
495
|
|
|
490
496
|
/**
|
|
@@ -611,6 +617,10 @@ dragging?: boolean,
|
|
|
611
617
|
/** if true, remove selection */
|
|
612
618
|
clear?: boolean) => string | null;
|
|
613
619
|
|
|
620
|
+
declare type SelectionOptions = {
|
|
621
|
+
[K in SelectionType]?: number;
|
|
622
|
+
};
|
|
623
|
+
|
|
614
624
|
/**
|
|
615
625
|
* Selections event listener
|
|
616
626
|
*/
|