fix in roundRect

This commit is contained in:
tamat
2020-04-27 00:22:24 +02:00
parent c54e6ca3bb
commit 22190622b4
3 changed files with 8 additions and 8 deletions

View File

@@ -10194,8 +10194,8 @@ LGraphNode.prototype.executeAction = function(action)
//API *************************************************
//like rect but rounded corners
if (global.CanvasRenderingContext2D) {
global.CanvasRenderingContext2D.prototype.roundRect = function(
if (typeof(window) != "undefined" && window.CanvasRenderingContext2D) {
window.CanvasRenderingContext2D.prototype.roundRect = function(
x,
y,
width,