updated selection interface to include selection description

This commit is contained in:
Megan Riel-Mehan
2018-08-24 11:15:09 -07:00
parent f4d713556d
commit 27d8ac206d
+12 -2
View File
@@ -49,10 +49,20 @@ export interface PlotCoordinate {
pointNumber: number;
}
export interface PlotSelectionEvent {
points: PlotCoordinate[];
export interface SelectionDescription {
x: number[],
y: number[],
}
export type PlotSelectedData = Partial<PlotScatterDataPoint>;
export interface PlotSelectionEvent {
points: PlotSelectedData[];
range?: SelectionDescription;
lassoPoints?: SelectionDescription;
}
export type PlotRestyleEvent = [
any, // update object -- attribute updated: new value
number[] // array of traces updated