(IGN-15394) Drawing Editor - Losing ability to select objects

Version 8.3.3

It's only happened twice so far but at some point I lose the ability to select individual objects with the selection tool.

Even when adding a new circle or square it does add it but there's no handles so I can't click or drag anything around the screen. I'm not sure if I'm missing some mode of some kind. I tried closing the views and reopening them but it did the same thing I tried adding a drawing object but it was doing the same thing only after closing Ignition Designer and reopening it did the issue go away.

I wouldn't mind having this handleless mode especially when working in a perspective view. Oftentimes the handles are too big and get in a way when trying to al smaller objects.

2 Likes

I'm not sure yet what sets it off but I'm just drawing objects and moving them around and then all of a sudden I can't really select anything. Even if I right click on an element most of its options are gone, ghosted out.

Hi, I’d be happy to help diagnose this issue. The next time you’re in this state can you do the following:

  • open the dev tools (Tools → External Debbuger)

    if there are any console errors, share them here

  • also run this command in the console JSON.stringify(__editorStore._selection), and share the results here

2 Likes

I was actually just Working with support on this and we haven't found anything yet but I wanted to go ahead and post what the DevTools console showed.

Stopping and restarting the gateway doesn't help. If I reboot the Ignition Designer it's good again for a while but then after I close the drawing and opened it a few times and then selecting one of the elements down in the lower right the handles disappeared and once they're gone it doesn't matter if I create a new drawing or open the same drawing I don't have the handles for any of the objects.

In the example below when I click on the circle and square I can see the highlighted element at the lower right change but I don't get the handles to move or resize the object. Sometimes I don't even have the option to delete other times I do even when I don't have handles.

I also wonder if it's the particular SVG file that importing or embedding into the view, maybe there's something about that SVG that it doesn't like.

That console error is very helpful. I have a hunch of what the issue could be: I think the Drawing Editor is having trouble generating a selection outline for the outline type, causing it to error out after it’s selected.

Would you mind providing the SVG or Drawing Component props (here or in direct message), so I can verify and identity which element type is the cause.

3 Likes

I often run into issues with the svg editor when opening a binding pop-up through the editor the pop-up is just blank. is this a known issue? if not let me know what info I can provide.

It looks like drawing editor doesn't support line types is that correct? So unlike perspective labels where you can add a border and then select it to be dot or dash, there's no option for that in the Perspective drawing editor? You would have create those line types in whatever editor you're using to create the SVG file and make multiple layers with visibility property maybe?

no, this is not a known issue

  • running JSON.stringify(__editorStore._model) while in this state would be helpful, send the screenshot/text to me. It’ll show me the state of the Drawing Editor’s model, including the Drawing Component’s props and propertyConfigColection(bindings)
  • exact reproduction steps (if possible) ie 1. Select Element “XYZ” 2. Open the bindings for the Fill property 3. observe the empty bindings

for visibility: this particular issue appears to be due to clip-paths generated in InkScape not being interpreted correctly by a third party library, throwing an error in the Drawing Editor’s generation of selection outlines. A bug ticket has been made and an equivalent SVG sans the clip-path has been provided.

1 Like