告警(three.js)
2022-09-30 本文已影响0人
孜锐弟
告警
自身告警和告警传播:
// 告警
v.alarmManager.THRenderer.view = v;
let alarm1:Alarm = new Alarm({id: 'alarm001',
dataID: 'rack06',
alarmLevel : 'Warning',
});
v.alarmManager.add(alarm1);
let alarm2:Alarm = new Alarm({id: 'alarm002',
dataID: 'rack03',
alarmLevel : 'Indeterminate',
});
v.alarmManager.add(alarm2);
let alarm3:Alarm = new Alarm({id: 'alarm003',
dataID: 'R2_EQ02',
alarmLevel : 'Cleared',
});
v.alarmManager.add(alarm3);
呈现效果