mirror of
https://github.com/google/blockly.git
synced 2026-01-11 02:47:09 +01:00
Fixed gauge breaking at high angle values.
This commit is contained in:
@@ -307,6 +307,7 @@ Blockly.FieldAngle.prototype.updateGraph_ = function() {
|
||||
}
|
||||
// Always display the input (i.e. getText) even if it is invalid.
|
||||
var angleDegrees = Number(this.getText()) + Blockly.FieldAngle.OFFSET;
|
||||
angleDegrees = angleDegrees % 360;
|
||||
var angleRadians = Blockly.utils.toRadians(angleDegrees);
|
||||
var path = ['M ', Blockly.FieldAngle.HALF, ',', Blockly.FieldAngle.HALF];
|
||||
var x2 = Blockly.FieldAngle.HALF;
|
||||
|
||||
Reference in New Issue
Block a user