道岔区段 切除闪烁绘图代码调整

This commit is contained in:
joylink_cuiweidong 2021-01-26 14:04:17 +08:00
parent 44cd7b3c01
commit bd9917c0ca
3 changed files with 8 additions and 28 deletions

View File

@ -259,13 +259,6 @@ export default class Section extends Group {
sectionCutOff() {
const lineWidth = this.style.Section.line.width + (this.model.status != '01' ? this.style.Section.line.beyondWidth : 0);
if (this.line) {
if (this.model.relSwitchCode) {
const switchModel = Vue.prototype.$jlmap.mapDevice[this.model.relSwitchCode];
if (switchModel && switchModel.reversePosition && !switchModel.blockade && switchModel.sectionCCode == this.model.code) {
// debugger;
this.line.setZleve(this.z + 8);
}
}
this.line.animateStyle(true, [
{ time: 0, styles: { lineWidth: lineWidth } },
{ time: 1000, styles: { stroke: this.style.backgroundColor } },

View File

@ -572,26 +572,14 @@ export default class Switch extends Group {
section.show();
}
if (sectionModel.cutOff) {
// section.hide();
// section.animateStyle(true, [
// { time: 0, styles: { stroke: sectionModel.instance.line.section.style.stroke } },
// { time: 1000, styles: { stroke: this.style.backgroundColor } },
// { time: 2000, styles: { stroke: sectionModel.instance.line.section.style.stroke } }
// ]);
// const color = sectionModel.instance.line.section.style.stroke;
// section && section.animateStyle(item => {
// // item.animateStyle(true, [
// // { time: 0, styles: { stroke: color } },
// // { time: 500, styles: { stroke: this.style.backgroundColor } },
// // { time: 1000, styles: { stroke: color } }
// // ]);
// item.animateStyle(true)
// // this.style.backgroundColor
// .when(0, { stroke: color })
// .when(1000, { stroke:'#FF0000'})
// .when(2000, { stroke:color })
// .start();
// });
const lineWidth = sectionModel.instance.line.section.style.lineWidth;
section && section.animateStyle(item => {
let an = item.animateStyle(true);
an = an.when(0, {lineWidth: lineWidth});
an = an.when(1000, {stroke: this.style.backgroundColor});
an = an.when(2000, {lineWidth: lineWidth});
an.start();
});
}
}
setAshShow() {

View File

@ -119,7 +119,6 @@ export default {
{ deviceType: '04', orderNum: 3, operateCode: '3010', tip: '鼠标左键点击【{5}】', codeType:'END_SIGNAL' }
]
},
{
maxDuration: 15,
minDuration: 8,