2018-02-02 07:03:01 +01:00
|
|
|
/// <reference path="./moduleView.ts" />
|
|
|
|
|
|
|
|
namespace pxsim.visuals {
|
|
|
|
export class InfraredView extends ModuleView implements LayoutElement {
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|