New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

svg.js : copy paste svg elements #53

Closed
amitguptagwl opened this Issue Jun 22, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@amitguptagwl
Member

amitguptagwl commented Jun 22, 2018

Starting point: https://naturalintelligence.github.io/imglab/v2.html

While annotating the images sometimes you may need to copy almost similar element on the same image or across the images. It'll be more handy when we can just copy paste svg elements (workarea.tag.html). So that the user's effort and time can be saved.

Check technical documentation.

@amitguptagwl

This comment has been minimized.

Member

amitguptagwl commented Jul 7, 2018

Steps
check commented code in workarea.tag.html

} else if (e.key === 'c' && e.ctrlKey) {
    copiedElements = [];
    //loop through selectedElements and copy all the shapes in copiedElements
    e.preventDefault();
    e.stopPropagation();
}else if (e.key === 'v' && e.ctrlKey) {
    //loop through copiedElements and push new shapes in currently selected image
    //use the new IDs : shapetype + shapeIndex, shapetype + shapeIndex + point + pointIndex
    e.preventDefault();
    e.stopPropagation();
}
@alextychan

This comment has been minimized.

Collaborator

alextychan commented Sep 14, 2018

Hi, I would like to take up this issue.

@amitguptagwl

This comment has been minimized.

Member

amitguptagwl commented Sep 15, 2018

Sure @alextychan . Let me know if you need guidance.

amitguptagwl added a commit that referenced this issue Sep 18, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment