SVGs that are added to Monopoly's `game` (GameState) blink once every few seconds (variable). The fix is to wait for img.decode() to finish before drawing the image. Or to add a property to calculate the result right on the constructor.
SVGs that are added to Monopoly's
game(GameState) blink once every few seconds (variable).The fix is to wait for img.decode() to finish before drawing the image.
Or to add a property to calculate the result right on the constructor.