-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Reduce multiple reinitialization on page load
Vue reactivity and parameter updating were interacting poorly. This commit protects against this bad interaction in two ways: 1. Only changes to values that have different string forms than the previous value. This ensures, for example, that a reactive value is not modified just because it is not `===` to the apparently "new" value. 2. Changes the `parameterChanged()` method to be called once for each parameter change to `parametersChanged()` so that multiple simultaneous changes are bundled into one call. With these changes, the startup sequence is more predictable. We hope this change will make end-to-end testing significantly more reproducible. Also makes Turtle not restart drawing from the beginning of the path on a resize, since it is now able to redraw the full path so far without difficulty. Also fixes the default value for the `highlight` parameter of FactorFence; the multiple initializations were masking the prior erroneous value.
- Loading branch information
Showing
9 changed files
with
47 additions
and
30 deletions.
There are no files selected for viewing
Binary file modified
BIN
+192 Bytes
(100%)
e2e/tests/featured.spec.ts-snapshots/BeattyDNA-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+257 Bytes
(100%)
e2e/tests/featured.spec.ts-snapshots/ThueTrellis-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.68 KB
(99%)
e2e/tests/featured.spec.ts-snapshots/VFibSnowflake-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+266 Bytes
(100%)
e2e/tests/featured.spec.ts-snapshots/VFibSnowflake-firefox-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters