[Fixed] split canvas (dynamically) screens based on the drop down selection for fabricjs


i am trying to create split screens in fabric js for example 1, 2, 4, 8,16

based on the drop selection screen has to split.

Here is my Current code where I can able to upload images.

and if i click the images it will show as preview

I was not aware how to change screen based on the dropdown.

enter image description here


Please look into this, I have updated your Stackblits and it’s working.


On selection of screens dropdown – Canvases are getting generated

Need to select by clicking on canvas to add images after uploading or add text on selected canvas

removed canvas generation from image click to avoid multiple canvas generation

Leave a Reply

(*) Required, Your email will not be published