Update fabric.js Path points dynamically
问题 I'm trying to add points to a path object dynamically. When I do, the path renders correctly, but the bounding rectangle never gets updated, making it nearly impossible for a user to select and move the path on canvas. As you can see in the code below, the path is initially created with a single point, then I dynamically add a second point as well as a control point. After doing this, the bounding rectangle never updates: var canvas = new fabric.Canvas('c'); canvas.backgroundColor = '#f5f5f5'