mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
Code correction from previous commit. Moved style to css.js and set ROUNDING=15;
This commit is contained in:
@@ -397,7 +397,7 @@ Blockly.Css.CONTENT = [
|
||||
'.blocklyFlyoutScrollbar {',
|
||||
'z-index: 30;',
|
||||
'}',
|
||||
|
||||
|
||||
'.blocklyScrollbarHorizontal, .blocklyScrollbarVertical {',
|
||||
'position: absolute;',
|
||||
'outline: none;',
|
||||
@@ -464,6 +464,7 @@ Blockly.Css.CONTENT = [
|
||||
'stroke: #f00;',
|
||||
'stroke-width: 2;',
|
||||
'stroke-linecap: round;',
|
||||
'pointer-events: none;',
|
||||
'}',
|
||||
|
||||
'.blocklyContextMenu {',
|
||||
|
||||
@@ -57,7 +57,7 @@ goog.inherits(Blockly.FieldAngle, Blockly.FieldTextInput);
|
||||
* Round angles to the nearest 15 degrees when using mouse.
|
||||
* Set to 0 to disable rounding.
|
||||
*/
|
||||
Blockly.FieldAngle.ROUND = 1;
|
||||
Blockly.FieldAngle.ROUND = 15;
|
||||
|
||||
/**
|
||||
* Half the width of protractor image.
|
||||
@@ -152,11 +152,11 @@ Blockly.FieldAngle.prototype.showEditor_ = function() {
|
||||
}, svg);
|
||||
this.gauge_ = Blockly.utils.createSvgElement('path',
|
||||
{'class': 'blocklyAngleGauge'}, svg);
|
||||
this.line_ = Blockly.utils.createSvgElement('line',
|
||||
{'x1': Blockly.FieldAngle.HALF,
|
||||
this.line_ = Blockly.utils.createSvgElement('line',{
|
||||
'x1': Blockly.FieldAngle.HALF,
|
||||
'y1': Blockly.FieldAngle.HALF,
|
||||
'class': 'blocklyAngleLine',
|
||||
'style': 'pointer-events: none;'}, svg);
|
||||
}, svg);
|
||||
// Draw markers around the edge.
|
||||
for (var angle = 0; angle < 360; angle += 15) {
|
||||
Blockly.utils.createSvgElement('line', {
|
||||
|
||||
Reference in New Issue
Block a user