mirror of
https://github.com/google/blockly.git
synced 2026-01-10 18:37:09 +01:00
Remove setOpacity and getOpacity
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user