2018-04-16 20:50:12 +02:00
|
|
|
/// <reference path="./moduleView.ts" />
|
|
|
|
|
|
|
|
namespace pxsim.visuals {
|
|
|
|
|
|
|
|
export abstract class SensorView extends ModuleView implements LayoutElement {
|
|
|
|
|
|
|
|
constructor(xml: string, prefix: string, id: NodeType, port: NodeType) {
|
|
|
|
super(xml, prefix, id, port);
|
2018-05-02 22:58:59 +02:00
|
|
|
// Shown by default
|
|
|
|
this.selected = true;
|
2018-04-16 20:50:12 +02:00
|
|
|
}
|
|
|
|
|
2018-05-02 22:58:59 +02:00
|
|
|
protected fadeWhenSelected() {
|
|
|
|
return false;
|
2018-04-16 20:50:12 +02:00
|
|
|
}
|
|
|
|
|
2018-05-02 22:58:59 +02:00
|
|
|
public hasBackground() {
|
|
|
|
return true;
|
2018-04-16 20:50:12 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|