Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
d07a4029f0
@ -54,25 +54,25 @@ class ESigLamp extends Group {
|
||||
this.add(this.lampSector);
|
||||
this.lampSector.hide();
|
||||
}
|
||||
if (style.Signal.lamp.faultType && style.Signal.lamp.faultType == 'flash') {
|
||||
this.lampFault = new ESigFault({
|
||||
zlevel: model.zlevel,
|
||||
z: model.z + 1,
|
||||
style:{
|
||||
lineWidth: 1,
|
||||
stroke: '#F00'
|
||||
},
|
||||
shape: {
|
||||
points: {
|
||||
x: model.x,
|
||||
y: model.y
|
||||
},
|
||||
radius:style.Signal.lamp.radiusR
|
||||
}
|
||||
});
|
||||
this.add(this.lampFault);
|
||||
this.lampFault.hide();
|
||||
}
|
||||
// if (style.Signal.lamp.faultType && style.Signal.lamp.faultType == 'flash') {
|
||||
// this.lampFault = new ESigFault({
|
||||
// zlevel: model.zlevel,
|
||||
// z: model.z + 1,
|
||||
// style:{
|
||||
// lineWidth: 1,
|
||||
// stroke: '#F00'
|
||||
// },
|
||||
// shape: {
|
||||
// points: {
|
||||
// x: model.x,
|
||||
// y: model.y
|
||||
// },
|
||||
// radius:style.Signal.lamp.radiusR
|
||||
// }
|
||||
// });
|
||||
// this.add(this.lampFault);
|
||||
// this.lampFault.hide();
|
||||
// }
|
||||
|
||||
if ( !style.Signal.lamp.logicDisplayNone ) {
|
||||
this.lstop = new Line({
|
||||
@ -158,13 +158,13 @@ class ESigLamp extends Group {
|
||||
}
|
||||
}
|
||||
|
||||
faultShow() {
|
||||
this.lampFault && this.lampFault.show();
|
||||
}
|
||||
|
||||
faultHide() {
|
||||
this.lampFault && this.lampFault.hide();
|
||||
}
|
||||
// faultShow() {
|
||||
// this.lampFault && this.lampFault.show();
|
||||
// }
|
||||
//
|
||||
// faultHide() {
|
||||
// this.lampFault && this.lampFault.hide();
|
||||
// }
|
||||
setGuideSectorShowHide(flag) {
|
||||
if (flag) {
|
||||
this.lampSector && this.lampSector.show();
|
||||
|
@ -751,7 +751,7 @@ class Signal extends Group {
|
||||
}
|
||||
fault() {
|
||||
if (this.style.Signal.lamp.faultType == 'flash') {
|
||||
this.lamps[0].faultShow();
|
||||
// this.lamps[0].faultShow();
|
||||
} else if (this.style.Signal.lamp.faultType == 'cross') {
|
||||
this.lamps[0].setFault2Corss(true);
|
||||
} else if (this.style.Signal.lamp.faultType == 'watch') {
|
||||
@ -913,7 +913,7 @@ class Signal extends Group {
|
||||
}
|
||||
|
||||
if (this.style.Signal.lamp.faultType == 'flash') {
|
||||
this.lamps && this.lamps[0] && this.lamps[0].faultHide();
|
||||
// this.lamps && this.lamps[0] && this.lamps[0].faultHide();
|
||||
} else if (this.style.Signal.lamp.faultType == 'cross') {
|
||||
this.lamps && this.lamps[0] && this.lamps[0].setFault2Corss(false);
|
||||
} else if (this.style.Signal.lamp.faultType == 'watch') {
|
||||
|
Loading…
Reference in New Issue
Block a user