Skip to content
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

Programitaccly tirrgering clone button #929

Open
HussnainBSCS opened this issue Nov 23, 2023 · 2 comments
Open

Programitaccly tirrgering clone button #929

HussnainBSCS opened this issue Nov 23, 2023 · 2 comments

Comments

@HussnainBSCS
Copy link

HussnainBSCS commented Nov 23, 2023

Describe the bug
when i programmatically trigger clone button it adds cloned object but if I move that object the blue dotted outline remain there until unless I reload the editor

Expected behavior
It should clone but without a blue outline

SVG-Edit environment (IMPORTANT)

  • File for SVG-Edit: editor.js
  • Version: v7
  • Protocol: [e.g., http, https, file]

Desktop (please complete the following information):

  • OS: Linux, Windows
  • Browser chrome
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Screenshots
Screen Shot 2023-11-18 at 1 09 02 AM

@jfhenon
Copy link
Collaborator

jfhenon commented Dec 9, 2023

Can you please show the code you have used to programmatically clone objects.
are you using "this.editor.svgCanvas.cloneSelectedElements()" ??

@HussnainBSCS
Copy link
Author

HussnainBSCS commented Dec 9, 2023

@jfhenon
in TopPanel.js file there is method:
/**
*

  • @returns {void}
    */
    clickClone () {
    this.editor.svgCanvas.cloneSelectedElements(20, 20)
    }

I am calling this method like:
this.clickClone();
it does its job and clones the selected element but the issue is with blue doted line with stays there even I move the cloned object from its place as I have mentioned in my previous comment. If there is any solution to remove those blue doted lines programmatically, please let me know and feel free to ask anything about this.

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

No branches or pull requests

2 participants