Initial SVG rendering modifications.

This commit is contained in:
Andrew Sliwinski 2016-01-26 14:57:43 -05:00
parent dc1f03a168
commit 6a708da899
6 changed files with 1952 additions and 78 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

View file

@ -24,7 +24,7 @@
*/
'use strict';
goog.provide('Blockly.BlockSvg');
// goog.provide('Blockly.BlockSvg');
goog.require('Blockly.Block');
goog.require('Blockly.ContextMenu');

View file

@ -178,10 +178,9 @@ Blockly.Css.CONTENT = [
'stroke-width: 4px;',
'}',
'.blocklyPathLight {',
'fill: none;',
'stroke-linecap: round;',
'stroke-width: 1;',
'.blocklyPath {',
// 'stroke: #f00;',
'stroke-width: 1px;',
'}',
'.blocklySelected>.blocklyPath {',
@ -189,30 +188,16 @@ Blockly.Css.CONTENT = [
'stroke-width: 3px;',
'}',
'.blocklySelected>.blocklyPathLight {',
'display: none;',
'}',
'.blocklyDragging>.blocklyPath,',
'.blocklyDragging>.blocklyPathLight {',
'.blocklyDragging>.blocklyPath {',
'fill-opacity: .8;',
'stroke-opacity: .8;',
'}',
'.blocklyDragging>.blocklyPathDark {',
'display: none;',
'}',
'.blocklyDisabled>.blocklyPath {',
'fill-opacity: .5;',
'stroke-opacity: .5;',
'}',
'.blocklyDisabled>.blocklyPathLight,',
'.blocklyDisabled>.blocklyPathDark {',
'display: none;',
'}',
'.blocklyText {',
'cursor: default;',
'fill: #fff;',

View file

@ -119,7 +119,6 @@ Blockly.FieldDropdown.prototype.showEditor_ = function() {
}
}
if (value !== null) {
thisField.sourceBlock_.setShadow(false);
thisField.setValue(value);
}
}

View file

@ -195,7 +195,6 @@ Blockly.FieldTextInput.prototype.onHtmlInputChange_ = function(e) {
// Update source block.
var text = htmlInput.value;
if (text !== htmlInput.oldValue_) {
this.sourceBlock_.setShadow(false);
htmlInput.oldValue_ = text;
this.setText(text);
this.validate_();