diff --git a/lib/network/modules/components/nodes/shapes/Ellipse.js b/lib/network/modules/components/nodes/shapes/Ellipse.js index f10f0a40..d993efe3 100644 --- a/lib/network/modules/components/nodes/shapes/Ellipse.js +++ b/lib/network/modules/components/nodes/shapes/Ellipse.js @@ -28,7 +28,7 @@ class Ellipse extends NodeBase { ctx.strokeStyle = values.borderColor; ctx.fillStyle = values.color; - ctx.ellipse(this.left, this.top, this.width, this.height); + ctx.ellipse_vis(this.left, this.top, this.width, this.height); // draw shadow if enabled this.enableShadow(ctx, values); diff --git a/lib/network/shapes.js b/lib/network/shapes.js index 9346f482..270b2913 100644 --- a/lib/network/shapes.js +++ b/lib/network/shapes.js @@ -149,8 +149,10 @@ if (typeof CanvasRenderingContext2D !== 'undefined') { /** * http://stackoverflow.com/questions/2172798/how-to-draw-an-oval-in-html5-canvas + * + * Postfix '_vis' added to discern it from standard method ellipse(). */ - CanvasRenderingContext2D.prototype.ellipse = function (x, y, w, h) { + CanvasRenderingContext2D.prototype.ellipse_vis = function (x, y, w, h) { var kappa = .5522848, ox = (w / 2) * kappa, // control point offset horizontal oy = (h / 2) * kappa, // control point offset vertical