Skip to content

Commit

Permalink
Fix: New simulator (#92)
Browse files Browse the repository at this point in the history
* Chore: Refactor naming

* New: Add new events

* Chore: Refactor code styling

* Docs: Remove unused flags

* Chore: Remove unused simulation functions

* Chore: Refactor view render function calls

* Chore: Add missing tests
  • Loading branch information
AlexIchenskiy authored Mar 13, 2024
1 parent e3ad3dc commit 2361dd6
Show file tree
Hide file tree
Showing 9 changed files with 257 additions and 181 deletions.
8 changes: 0 additions & 8 deletions docs/view-default.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ interface IOrbViewSettings {
zoomFitTransitionMs: number;
isOutOfBoundsDragEnabled: boolean;
areCoordinatesRounded: boolean;
isSimulationAnimated: boolean;
areCollapsedContainerDimensionsAllowed: boolean;
}
```
Expand Down Expand Up @@ -161,7 +160,6 @@ const defaultSettings = {
zoomFitTransitionMs: 200,
isOutOfBoundsDragEnabled: false,
areCoordinatesRounded: true,
isSimulationAnimated: true,
areCollapsedContainerDimensionsAllowed: false;
}
```
Expand Down Expand Up @@ -356,12 +354,6 @@ Disabled by default (`false`).

Rounds node coordinates to integer values. Slightly improves performance. Enabled by default (`true`).

### Property `isSimulationAnimated`

Shows the process of simulation where the nodes are moved by the physics engine until they
converge to a stable position. If disabled, the graph will suddenly appear in its final position.
Enabled by default (`true`).

### Property `areCollapsedContainerDimensionsAllowed`

Enables setting the dimensions of the Orb container element to zero.
Expand Down
Loading

0 comments on commit 2361dd6

Please sign in to comment.