2017-12-22 23:00:23 +01:00
|
|
|
/// <reference path="./moduleView.ts" />
|
2017-12-18 22:04:17 +01:00
|
|
|
|
|
|
|
namespace pxsim.visuals {
|
2017-12-22 23:00:23 +01:00
|
|
|
export class GyroSensorView extends ModuleView implements LayoutElement {
|
2017-12-18 22:04:17 +01:00
|
|
|
|
|
|
|
constructor(port: number) {
|
|
|
|
super(GYRO_SVG, "gyro", NodeType.GyroSensor, port);
|
|
|
|
}
|
|
|
|
|
|
|
|
public getPaddingRatio() {
|
|
|
|
return 1 / 4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|