openatc-components 0.3.113 → 0.3.114
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.
|
@@ -1037,7 +1037,7 @@ export default {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
1039
1039
|
obj.split = split
|
|
1040
|
-
obj.cycle =
|
|
1040
|
+
obj.cycle = cycle
|
|
1041
1041
|
if (ring.sum) {
|
|
1042
1042
|
obj.sum = ring.sum
|
|
1043
1043
|
obj.redWidth = ((currPhase.redclear + ring.sum) / (this.max ? this.max : cycle) * 100) + '%'
|
|
@@ -1266,7 +1266,7 @@ export default {
|
|
|
1266
1266
|
}
|
|
1267
1267
|
}
|
|
1268
1268
|
obj.split = split
|
|
1269
|
-
obj.cycle =
|
|
1269
|
+
obj.cycle = this.fixCycle ? this.fixCycle : this.max ? this.max : this.newCycle
|
|
1270
1270
|
const isZero = split - currPhase.redclear - currPhase.yellow - currPhase.flashgreen
|
|
1271
1271
|
const allAdd = split + currPhase.redclear + currPhase.yellow + currPhase.flashgreen
|
|
1272
1272
|
if (isZero <= 0) {
|