lionix-team / vue-image-markup

vue-image-markup will provide you to edit uploaded image easily and save it.
https://image-markup.lionix-team.com
96 stars 45 forks source link

Id for each markup #6

Closed stefandevo closed 4 years ago

stefandevo commented 4 years ago

Hi Thx for this component. I would like to use it to define rectangles on an image where I later dynamically can add something on these locations. So basically I upload an image, then draw some rectangles on it to define where I later on the server will add some text. Therefore I need the coordinates of the rectangles, but more important I need to know which rectangle is for what information. So each rectangle I add on the canvas should be able to have a unique key (to be set in code). Would this be possible with the component?

lilitsimonyan98 commented 4 years ago

Hi, We have added the new feature. Now you can pass id to rectangles and get it with the help of getObjectsById(id) method. Please update the version to latest.