mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Merge pull request #4062 from gildorwang/d3-add-charge-distance
Add definition for D3 chargeDistance
This commit is contained in:
commit
ebc03ee2d5
15
d3/d3.d.ts
vendored
15
d3/d3.d.ts
vendored
@ -1373,7 +1373,20 @@ declare module D3 {
|
||||
(number:number): ForceLayout;
|
||||
(accessor: (d: any, index: number) => number): ForceLayout;
|
||||
};
|
||||
|
||||
/**
|
||||
* If distance is specified, sets the maximum distance over which
|
||||
* charge forces are applied. If distance is not specified, returns
|
||||
* the current maximum charge distance, which defaults to infinity.
|
||||
* Specifying a finite charge distance improves the performance of
|
||||
* the force layout and produces a more localized layout;
|
||||
* distance-limited charge forces are especially useful in
|
||||
* conjunction with custom gravity.
|
||||
*/
|
||||
chargeDistance: {
|
||||
(): number;
|
||||
(distance: number): ForceLayout;
|
||||
(accessor: (d: any, index: number) => number): ForceLayout;
|
||||
};
|
||||
theta: {
|
||||
(): number;
|
||||
(number:number): ForceLayout;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user