Skip to content

Commit

Permalink
physics setting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rrmerugu committed May 30, 2021
1 parent def3207 commit 9d5ef03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/settings/networkOptions.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {STUDIO_SETTINGS} from "./index";


const getPhysicsSettings = {
export const physicsSettings = {

forceAtlas2Based: {
gravitationalConstant: -56,
Expand All @@ -17,7 +17,7 @@ const getPhysicsSettings = {
enabled: true,
iterations: 1000,
updateInterval: 50,
fit: true
// fit: true
}

}
Expand All @@ -39,7 +39,7 @@ const defaultOptions = {

},

physics: getPhysicsSettings,
physics: physicsSettings,

// physics: {
// forceAtlas2Based: {
Expand Down
2 changes: 2 additions & 0 deletions src/web/interface/canvas/canvas-ctrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
*/


// import {physicsSettings} from "../../../settings/networkOptions";

export default class CanvasController {

constructor(
Expand Down

0 comments on commit 9d5ef03

Please sign in to comment.