How to add array of objects in fabricjs?

Viewed 16

I have array which contains text and image URLs.

Array:-[{text: "some text"},{imageurl:"some image URL"},{text: "some text"},{imageurl:"some image URL"}]

Array length could be more than 20

So according to text/imageurl properties, we need to add objects on canvas.

Note:- I want to add objects as a group{rectangle object with text object/rectangle object with image object}. Hence , there will a group which consists two objects(rectangle ,text/image).

So, motive is we have to add all group objects on canvas.

And all objects should load to canvas at same time(one particular time).

enter image description here

0 Answers
Related