openatc-components 0.2.61 → 0.2.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.
@@ -610,6 +610,7 @@ export default {
610
610
  // if (stg === walk.phaseid) {
611
611
  let objs = {}
612
612
  objs.name = walk.name
613
+ objs.color = 'rgba(48,49,51,0.6)'
613
614
  objs.id = walk.id
614
615
  if (ped === walk.id) {
615
616
  peddirections.push(objs)
@@ -625,7 +626,7 @@ export default {
625
626
  obj.direction = ring.desc.map(item => { // 虚相位desc为空
626
627
  return {
627
628
  id: item.id,
628
- color: '#454545'
629
+ color: '#303133'
629
630
  }
630
631
  })
631
632
  } else {
@@ -634,14 +635,14 @@ export default {
634
635
  return {
635
636
  id: item,
636
637
  peddirection: peddirections,
637
- color: '#454545'
638
+ color: '#303133'
638
639
  }
639
640
  })
640
641
  } else {
641
642
  obj.direction = [
642
643
  {
643
644
  id: '',
644
- color: '#454545',
645
+ color: '#303133',
645
646
  peddirection: peddirections
646
647
  }
647
648
  ]
@@ -862,6 +863,7 @@ export default {
862
863
  let objs = {}
863
864
  objs.name = walk.name
864
865
  objs.id = walk.id
866
+ objs.color = 'rgba(48,49,51,0.6)'
865
867
  if (ped === walk.id) {
866
868
  peddirections.push(objs)
867
869
  peddirections = Array.from(new Set(peddirections))
@@ -876,7 +878,7 @@ export default {
876
878
  obj.direction = ring.desc.map(item => { // 虚相位desc为空
877
879
  return {
878
880
  id: item.id,
879
- color: '#454545'
881
+ color: '#303133'
880
882
  }
881
883
  })
882
884
  } else {
@@ -885,14 +887,14 @@ export default {
885
887
  return {
886
888
  id: item,
887
889
  peddirection: peddirections,
888
- color: '#454545'
890
+ color: '#303133'
889
891
  }
890
892
  })
891
893
  } else {
892
894
  obj.direction = [
893
895
  {
894
896
  id: '',
895
- color: '#454545',
897
+ color: '#303133',
896
898
  peddirection: peddirections
897
899
  }
898
900
  ]
@@ -1089,6 +1091,7 @@ export default {
1089
1091
  let objs = {}
1090
1092
  objs.name = walk.name
1091
1093
  objs.id = walk.id
1094
+ objs.color = 'rgba(48,49,51,0.6)'
1092
1095
  if (ped === walk.id) {
1093
1096
  peddirections.push(objs)
1094
1097
  peddirections = Array.from(new Set(peddirections))
@@ -1103,7 +1106,7 @@ export default {
1103
1106
  obj.direction = ring.desc.map(item => { // 虚相位desc为空
1104
1107
  return {
1105
1108
  id: item.id,
1106
- color: '#454545',
1109
+ color: '#303133',
1107
1110
  peddirection: peddirections
1108
1111
  }
1109
1112
  })
@@ -1112,7 +1115,7 @@ export default {
1112
1115
  obj.direction = currPhase.direction.map(item => {
1113
1116
  return {
1114
1117
  id: item,
1115
- color: '#454545',
1118
+ color: '#303133',
1116
1119
  peddirection: peddirections
1117
1120
  }
1118
1121
  })
@@ -1120,7 +1123,7 @@ export default {
1120
1123
  obj.direction = [
1121
1124
  {
1122
1125
  id: '',
1123
- color: '#454545',
1126
+ color: '#303133',
1124
1127
  peddirection: peddirections
1125
1128
  }
1126
1129
  ]
@@ -298,6 +298,7 @@ export default {
298
298
  dirListSetTheme (list) {
299
299
  let dirArr = []
300
300
  let color = getTheme() === 'light' ? '#606266' : '#F1F3F4'
301
+ let pedColor = getTheme() === 'light' ? '#606266' : 'rgba(48,49,51,0.6)'
301
302
  for (let rec of list) {
302
303
  let recd = {
303
304
  ...rec,
@@ -305,7 +306,7 @@ export default {
305
306
  }
306
307
  dirArr.push(recd)
307
308
  for(let i=0;i<rec.peddirection.length;i++) {
308
- rec.peddirection[i].color = color
309
+ rec.peddirection[i].color = pedColor
309
310
  }
310
311
  }
311
312
  return dirArr