openatc-components 0.5.13 → 0.5.14

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.5.13",
3
+ "version": "0.5.14",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -19,15 +19,25 @@
19
19
  :style="{position: 'absolute', left: '310px', top: '198px', zIndex: '10'}"
20
20
  >
21
21
  <defs>
22
- <filter id="shadow-effect" x="-50%" y="-50%" width="200%" height="200%">
23
- <!-- 对应 box-shadow: 0 0 6px 6px #10B800 -->
24
- <feDropShadow
25
- dx="0"
26
- dy="0"
27
- stdDeviation="4"
28
- flood-color="#10B800"
29
- flood-opacity="1"/>
30
- </filter>
22
+ <filter id="shadow-effect-side"
23
+ x="-10%"
24
+ y="-10%"
25
+ width="200%"
26
+ height="200%">
27
+ <feFlood flood-color="#10B800" flood-opacity="1" result="glowColor" />
28
+ <feComposite in="glowColor"
29
+ in2="SourceGraphic"
30
+ operator="in"
31
+ result="glowMask" />
32
+ <feGaussianBlur in="glowMask" stdDeviation="2" result="blurredGlow" />
33
+ <feComponentTransfer in="blurredGlow" result="brightGlow">
34
+ <feFuncA type="linear" slope="2" />
35
+ </feComponentTransfer>
36
+ <feMerge>
37
+ <feMergeNode in="brightGlow" />
38
+ <feMergeNode in="SourceGraphic" />
39
+ </feMerge>
40
+ </filter>
31
41
  </defs>
32
42
  <g
33
43
  id="西行人"
@@ -1224,7 +1234,7 @@ export default {
1224
1234
  }
1225
1235
  }
1226
1236
  clickedPath.setAttribute('fill', this.clickedColor)
1227
- clickedPath.setAttribute('filter', 'url(#shadow-effect)')
1237
+ clickedPath.setAttribute('filter', 'url(#shadow-effect-side)')
1228
1238
  }
1229
1239
  this.$emit('handleClickSidewalkIcon', this.sidewalkData, curChoosePed)
1230
1240
  }
@@ -1239,7 +1249,7 @@ export default {
1239
1249
  let data = this.sidewalkData.filter(ele => ele.id === side.id)[0]
1240
1250
  if (data && data.clicked === true) {
1241
1251
  dom.setAttribute('fill', this.clickedColor)
1242
- dom.setAttribute('filter', 'url(#shadow-effect)')
1252
+ dom.setAttribute('filter', 'url(#shadow-effect-side)')
1243
1253
  }
1244
1254
  if (this.clickMode && data && data.disabled === true) {
1245
1255
  dom.setAttribute('fill', this.disabledColor)
@@ -1411,8 +1411,8 @@ export default {
1411
1411
  } else {
1412
1412
  nextSelected = this.inneChoosedDirection.filter(d => d !== id)
1413
1413
  }
1414
- // 第三方信号机检查是否冲突,冲突提示是否确定;非第三方不进冲突检查
1415
- if (this.isThirdSignal && this.checkConflict(nextSelected)) {
1414
+ // 检查是否冲突,冲突提示是否确定
1415
+ if (this.checkConflict(nextSelected)) {
1416
1416
  try {
1417
1417
  await this.$confirm(this.$t('openatccomponents.overview.conflictdirectionstips'), this.$t('openatccomponents.common.tipsmodaltitle'), {
1418
1418
  confirmButtonText: this.$t('openatccomponents.button.OK'),
@@ -18,14 +18,24 @@
18
18
  </svg> -->
19
19
  <svg xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="0 0 36 26" :width="IconLengh" :height="IconWdith">
20
20
  <defs>
21
- <filter id="shadow-effect" x="-50%" y="-50%" width="200%" height="200%">
22
- <!-- 对应 box-shadow: 0 0 6px 6px #10B800 -->
23
- <feDropShadow
24
- dx="0"
25
- dy="0"
26
- stdDeviation="4"
27
- flood-color="#10B800"
28
- flood-opacity="1"/>
21
+ <filter id="shadow-effect"
22
+ x="-10%"
23
+ y="-10%"
24
+ width="200%"
25
+ height="200%">
26
+ <feFlood flood-color="#10B800" flood-opacity="1" result="glowColor" />
27
+ <feComposite in="glowColor"
28
+ in2="SourceGraphic"
29
+ operator="in"
30
+ result="glowMask" />
31
+ <feGaussianBlur in="glowMask" stdDeviation="2" result="blurredGlow" />
32
+ <feComponentTransfer in="blurredGlow" result="brightGlow">
33
+ <feFuncA type="linear" slope="2" />
34
+ </feComponentTransfer>
35
+ <feMerge>
36
+ <feMergeNode in="brightGlow" />
37
+ <feMergeNode in="SourceGraphic" />
38
+ </feMerge>
29
39
  </filter>
30
40
  </defs>
31
41
  <!-- 东相位 -->
@@ -148,8 +158,7 @@ export default {
148
158
  default: false
149
159
  },
150
160
  beforeSelect: {
151
- type: Function,
152
- required: true
161
+ type: Function
153
162
  }
154
163
  },
155
164
  methods: {