mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 17:51:46 +00:00
updated selection interface to include selection description
This commit is contained in:
Vendored
+12
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user