Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Fix physics behavior #26

Merged
merged 23 commits into from
Oct 10, 2022
Merged

Fix: Fix physics behavior #26

merged 23 commits into from
Oct 10, 2022

Conversation

cizl
Copy link
Contributor

@cizl cizl commented Oct 5, 2022

  • Also introduces physics checkboxes to simulator-scenarios.html
  • The physics still aren't perfect, we'll have to discuss additional scenarios. (What happens when physics gets enabled but the nodes have fixed coordinates? Now they get released.)

Updating the simulation settings now runs stabilization. @tonilastre not sure if this is expected. It was useful in my case when using the library in our projects.

@cizl cizl self-assigned this Oct 7, 2022
@cizl cizl marked this pull request as ready for review October 7, 2022 11:08
@cizl cizl requested a review from tonilastre as a code owner October 7, 2022 11:08
@@ -207,12 +207,14 @@ export class D3SimulatorEngine extends Emitter<D3SimulatorEvents> {

this.initSimulation(settings);
this.emit(D3SimulatorEngineEventType.SETTINGS_UPDATED, { settings: this.settings });

this.runStabilization();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To respond to your comment. I think this is fine, if we see in the future that this is not what the user expects, then we can figure out how to overcome that.

Base automatically changed from apply-emitter-in-simulator-and-fix-cleanup to release/0.1.2 October 10, 2022 11:02
@cizl cizl merged commit 0b64a19 into release/0.1.2 Oct 10, 2022
@cizl cizl deleted the fix-physics branch October 10, 2022 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants