visjs / vis-network

:dizzy: Display dynamic, automatically organised, customizable network views.
https://visjs.github.io/vis-network/
Apache License 2.0
2.99k stars 365 forks source link

Unable to update ctxRenderer for custom shapes #2171

Open dmarov opened 1 month ago

dmarov commented 1 month ago

I was unable to update ctxRenderer for custom shape in vis-network using function updateOnly

Code example: https://codepen.io/Dmitry-Marov/pen/WNqbEXN

Expected result: red square changes to green circle and back every second. Actual result: red square does not change to green circle, even though ctxRenderer function gets updated.

dmarov commented 1 month ago

I've fixed this issue in https://www.npmjs.com/package/@diyguy/vis-network since MR got stuck