Fabricjs Textbox ‘selectable’ and ‘hasControls’ set to false after loadFromJSON
So I am implementing undo for my project with the stringify and loadFromJSON approach, but it seems that after the JSON is loaded, only textboxes got their ‘selectable’ and ‘hasControls’ automatically set to false.
Below is my implementation:
Canvas and its objects not resizing with screen size – fabricjs-react
I’m using fabricjs-react to work with canvas, allowing users to upload an image, drag it around, and save it as JSON. I’ve implemented most functions, but maintaining the aspect ratio of the canvas and its objects isn’t working as expected. Resizing the canvas cuts off the sides, and when loading from JSON, the position isn’t right. I haven’t found any examples that address these issues and could use some assistance.