pxt-ev3/sim/visuals/nodes/infraredview.ts
2018-04-16 11:50:12 -07:00

14 lines
438 B
TypeScript

/// <reference path="./moduleView.ts" />
namespace pxsim.visuals {
export class InfraredView extends SensorView implements LayoutElement {
constructor(port: number) {
super(INFRARED_SVG, "infrared", NodeType.InfraredSensor, port);
}
protected optimizeForLightMode() {
(this.content.getElementById(this.normalizeId('path9245')) as SVGElement).style.fill = '#f2f2f2';
}
}
}