openatc-components 0.1.58 → 0.1.59

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.58",
3
+ "version": "0.1.59",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -1175,6 +1175,7 @@ const en = {
1175
1175
  'countdown': 'Countdown',
1176
1176
  'detector': 'Detector',
1177
1177
  'laneturn': 'Lane turn',
1178
+ 'mixingturn': 'Mixing turn',
1178
1179
  'straightahead': 'Straightahead',
1179
1180
  'turnleft': 'Turnleft',
1180
1181
  'turnright': 'Turnright',
@@ -1174,6 +1174,7 @@ const zh = {
1174
1174
  'countdown': '倒计时',
1175
1175
  'detector': '检测器',
1176
1176
  'laneturn': '车道转向',
1177
+ 'mixingturn': '混合转向',
1177
1178
  'straightahead': '直行',
1178
1179
  'turnleft': '左转',
1179
1180
  'turnright': '右转',
@@ -70,20 +70,17 @@ export default class RingDataModel {
70
70
  let peddirections = []
71
71
  let sidewalkPhaseData = this.getPedPhasePos()
72
72
  for (let walk of sidewalkPhaseData) {
73
- if (phaseList.peddirection) {
74
- for (let ped of phaseList.peddirection) {
73
+ if (!phaseList.peddirection) return
74
+ for (let ped of phaseList.peddirection) {
75
75
  // if (stg === walk.phaseid) {
76
- let obj = {}
77
- obj.name = walk.name
78
- obj.id = walk.id
79
- if (ped === walk.id) {
80
- peddirections.push(obj)
81
- peddirections = Array.from(new Set(peddirections))
82
- }
83
- // }
76
+ let obj = {}
77
+ obj.name = walk.name
78
+ obj.id = walk.id
79
+ if (ped === walk.id) {
80
+ peddirections.push(obj)
81
+ peddirections = Array.from(new Set(peddirections))
84
82
  }
85
- } else {
86
- peddirections = []
83
+ // }
87
84
  }
88
85
  }
89
86
  for (let id of phaseList.direction) {
@@ -1 +0,0 @@
1
- {}