Skip to content

Commit 76f5059

Browse files
committed
Adding Node version note, fixing attractor visibility issue
1 parent d0a6bcb commit 76f5059

File tree

6 files changed

+7091
-25
lines changed

6 files changed

+7091
-25
lines changed

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v16.20.2

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ A couple additional helper modules are also included there:
7272
* [Webpack](https://webpack.js.org/) for modern JS (ES6) syntax, code modularization, bundling, and serving locally.
7373

7474
## Install and run notes
75+
> [!IMPORTANT]
76+
> This project requires Node v16.20.8.
77+
7578
1. Run `npm install` to get all packages
7679
2. Run `npm run serve` to start up Webpack and launch the application in a browser window
7780

core/Attractor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default class Attractor {
2828
}
2929

3030
// Draw the attractor
31-
if(this.settings.ShoAttractors) {
31+
if(this.settings.ShowAttractors) {
3232
this.ctx.beginPath();
3333
this.ctx.ellipse(this.position.x, this.position.y, 1, 1, 0, 0, Math.PI * 2);
3434
this.ctx.fillStyle = this.settings.Colors.AttractorColor;

core/ColorPresets.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const Light = {
1313

1414
export const Dark = {
1515
BackgroundColor: 'rgba(0,0,0,.9)',
16-
AttractorColor: 'rgba(255,255,255,.5)',
16+
AttractorColor: 'rgba(0,0,0,.5)',
1717
BranchColor: 'rgba(255,255,255,1)',
1818
TipColor: 'rgba(0,255,255,1)',
1919
AttractionZoneColor: 'rgba(255,255,255,.002)',

core/Network.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -361,11 +361,11 @@ export default class Network {
361361
}
362362
}
363363

364-
toggleattractors() {
365-
this.settings.Showattractors = !this.settings.Showattractors;
364+
toggleAttractors() {
365+
this.settings.ShowAttractors = !this.settings.ShowAttractors;
366366

367367
for(let attractor of this.attractors) {
368-
attractor.settings.Showattractors = !attractor.settings.Showattractors;
368+
attractor.settings.ShowAttractors = !attractor.settings.ShowAttractors;
369369
}
370370
}
371371

0 commit comments

Comments
 (0)