You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 29, 2019. It is now read-only.
It's because network adds its own ellipse() method to the 2D context(*). You can find it in lib/network/shapes.js, with prototype:
CanvasRenderingContext2D.prototype.ellipse = function (x, y, w, h) {
...
}
This method definition just plain overrides any method that was there previously. I admit this is dubious; prototypes of existing, library objects shouldn't be overwritten just like that.
I'm not sure how to handle this properly; I suppose that if ellipse() already exists, it shouldn't be overwritten. The parameters are accidentally in the right place to make this possible.
I'm going to consult this one with some other admin's. Thanks for reporting, I can fully imagine this is totally confusing.
A fix for this is pending. I'm sorry to say I don't have an easy workaround for this. If you build vis.js from the code, you could rename the method as described in the previous comment yourself.
.ellipse()
If you use "ctx.ellipse()" in "beforeDrawing"
The ellipse does not rotate.
how to ctx.ellipse()?
How to rotate the four ellipses differently?
The text was updated successfully, but these errors were encountered: