19 lines
625 B
TypeScript
19 lines
625 B
TypeScript
/// <reference path="./sensorView.ts" />
|
|
|
|
namespace pxsim.visuals {
|
|
export class GyroSensorView extends SensorView implements LayoutElement {
|
|
|
|
constructor(port: number) {
|
|
super(GYRO_SVG, "gyro", NodeType.GyroSensor, port);
|
|
}
|
|
|
|
protected optimizeForLightMode() {
|
|
(this.content.getElementById(this.normalizeId('gyro_white_1')) as SVGElement).style.fill = '#7B7B7B';
|
|
(this.content.getElementById(this.normalizeId('gyro_white_small_path')) as SVGElement).style.fill = '#7B7B7B';
|
|
}
|
|
|
|
public getPaddingRatio() {
|
|
return 0.3;
|
|
}
|
|
}
|
|
} |