2018-02-02 07:03:01 +01:00
|
|
|
/// <reference path="./moduleView.ts" />
|
|
|
|
|
|
|
|
namespace pxsim.visuals {
|
2018-04-16 20:50:12 +02:00
|
|
|
export class InfraredView extends SensorView implements LayoutElement {
|
2018-02-02 07:03:01 +01:00
|
|
|
|
|
|
|
constructor(port: number) {
|
|
|
|
super(INFRARED_SVG, "infrared", NodeType.InfraredSensor, port);
|
|
|
|
}
|
2018-03-28 22:36:52 +02:00
|
|
|
|
|
|
|
protected optimizeForLightMode() {
|
|
|
|
(this.content.getElementById(this.normalizeId('path9245')) as SVGElement).style.fill = '#f2f2f2';
|
|
|
|
}
|
2018-02-02 07:03:01 +01:00
|
|
|
}
|
|
|
|
}
|