pxt-ev3/sim/visuals/nodes/gyroSensorView.ts

14 lines
334 B
TypeScript
Raw Normal View History

/// <reference path="./moduleView.ts" />
2017-12-18 22:04:17 +01:00
namespace pxsim.visuals {
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() {
2017-12-27 08:19:04 +01:00
return 0.3;
2017-12-18 22:04:17 +01:00
}
}
}