Fixed selection extension methods

This commit is contained in:
Dom Parfitt
2018-10-12 15:49:18 +01:00
parent 7acb2d656f
commit bde0d4ee2b
+5 -5
View File
@@ -7,13 +7,13 @@
import { ZoomBehavior } from 'd3-zoom'
import { Selection } from 'd3-selection'
//This should be extending d3-selection, need to check it is correct
export interface ISelection extends Selection<any, any, HTMLElement, any> {
graphviz(options?: IGraphvizOptions | boolean): IGraphviz;
selectWithoutDataPropagation(): ISelection;
declare module 'd3-selection' {
interface Selection<GElement extends BaseType, Datum, PElement extends BaseType, PDatum> {
graphviz(options?: IGraphvizOptions | boolean): IGraphviz;
selectWithoutDataPropagation(): Selection<GElement, Datum, PElement, PDatum>;
}
}
/**
*
* @param selector