Remove setOpacity and getOpacity

This commit is contained in:
Rachel Fenichel
2018-07-26 17:38:20 -07:00
parent 7d775908b9
commit df888eb32d

View File

@@ -487,25 +487,6 @@ Blockly.BlockSvg.prototype.getBoundingRectangle = function() {
return {topLeft: topLeft, bottomRight: bottomRight};
};
/**
* Set block opacity for SVG rendering.
* @param {number} opacity Intended opacity, betweeen 0 and 1
*/
Blockly.BlockSvg.prototype.setOpacity = function(opacity) {
this.opacity_ = opacity;
if (this.rendered) {
this.updateColour();
}
};
/**
* Get block opacity for SVG rendering.
* @return {number} Intended opacity, betweeen 0 and 1
*/
Blockly.BlockSvg.prototype.getOpacity = function() {
return this.opacity_;
};
/**
* Set whether the block is collapsed or not.
* @param {boolean} collapsed True if collapsed.