openatc-components 0.1.61 → 0.1.62

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": "openatc-components",
3
- "version": "0.1.61",
3
+ "version": "0.1.62",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -558,13 +558,13 @@ export default {
558
558
  }
559
559
  obj.split = split
560
560
  if (ring.sum) {
561
- obj.redWidth = ((currPhase.redclear + ring.sum) / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
561
+ obj.redWidth = ((currPhase.redclear + ring.sum) / cycle * 100).toFixed(3) + '%'
562
562
  } else {
563
- obj.redWidth = (currPhase.redclear / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
563
+ obj.redWidth = (currPhase.redclear / cycle * 100).toFixed(3) + '%'
564
564
  }
565
- obj.flashgreen = (currPhase.flashgreen / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
566
- obj.yellowWidth = (currPhase.yellow / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
567
- obj.greenWidth = ((split - currPhase.redclear - currPhase.yellow - currPhase.flashgreen) / (this.max ? this.max : cycle) * 100).toFixed(3) + '%'
565
+ obj.flashgreen = (currPhase.flashgreen / cycle * 100).toFixed(3) + '%'
566
+ obj.yellowWidth = (currPhase.yellow / cycle * 100).toFixed(3) + '%'
567
+ obj.greenWidth = ((split - currPhase.redclear - currPhase.yellow - currPhase.flashgreen) / cycle * 100).toFixed(3) + '%'
568
568
  // 忽略相位不显示
569
569
  // let mode = ring.mode
570
570
  // if (mode !== 7) { // 忽略相位不显示