File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,7 +48,9 @@ export class D3Force3DLayout extends D3ForceLayout<
4848 protected getDefaultOptions ( ) : Partial < D3Force3DLayoutOptions > {
4949 return {
5050 numDimensions : 3 ,
51- edgeId : 'edge.id' ,
51+ link : {
52+ id : ( edge ) => edge . id ! ,
53+ } ,
5254 manyBody : { } ,
5355 center : {
5456 x : 0 ,
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import {
1313import type { ID , Position } from '../../types' ;
1414import { assignDefined , normalizeViewport } from '../../util' ;
1515import { formatFn , formatNodeSizeFn } from '../../util/format' ;
16- import { getNestedValue } from '../../util/object' ;
1716import { BaseLayoutWithIterations } from '../base-layout' ;
1817import forceInABox from './force-in-a-box' ;
1918import type {
@@ -528,7 +527,11 @@ export class D3ForceLayout<
528527 if ( radial ) {
529528 let force = simulation . force ( 'radial' ) ;
530529 if ( ! force ) {
531- force = forceRadial ( radial . radius || 100 , radial . x , radial . y ) ;
530+ force = forceRadial (
531+ ( radial . radius as ( ) => number ) || 100 ,
532+ radial . x ,
533+ radial . y ,
534+ ) ;
532535 simulation . force ( 'radial' , force as any ) ;
533536 }
534537
You can’t perform that action at this time.
0 commit comments