@eturnity/eturnity_maths 7.24.1 → 7.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_maths",
3
- "version": "7.24.1",
3
+ "version": "7.30.0",
4
4
  "author": "Eturnity Team",
5
5
  "main": "src/index.js",
6
6
  "private": false,
@@ -127,6 +127,7 @@ export class Polygon {
127
127
  if (this.layer == 'moduleField' && this.data && this.data.modules) {
128
128
  if (this.data.panel_direction_degrees != null) {
129
129
  this.data.panel_direction_degrees += (deltaAngle * 180) / Math.PI
130
+ this.data.panel_direction_degrees = ((this.data.panel_direction_degrees % 360) + 360) % 360
130
131
  }
131
132
 
132
133
  this.data.modules.forEach((module) => {