Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-6181

Stunner-based editors are losing focus when asked for the SVG

    XMLWordPrintable

Details

    • False
    • False
    • Hide
      1. Open VSCode and create a BPMN or DMN diagram.
      2. Create at least one node and select it/them.
      3. Go to menu option View->Command Palette.
      4. Type SVG and select Generate SVG without Notification.

        SVG file should be generated in the same folder where the diagram resides.
      5. The selection before the export to SVG should be kept the same.

      Actual result

      The selection on diagram lost focus.

      Expected result

      The selection on diagram is not changed.

      Show
      Open VSCode and create a BPMN or DMN diagram. Create at least one node and select it/them. Go to menu option View->Command Palette. Type SVG and select Generate SVG without Notification . SVG file should be generated in the same folder where the diagram resides. The selection before the export to SVG should be kept the same. Actual result The selection on diagram lost focus. Expected result The selection on diagram is not changed.
    • 2021 Week 43-45 (from Oct 25), 2021 Week 46-48 (from Nov 15), 2021 Week 49-51 (from Dec 6th), 2022 Week 02-04 (from Jan 10), 2022 Week 05-07 (from Jan 31)

    Description

      The Stunner-based editors are loosing the selected elements when we programatically ask for the diagram SVG using the `getPreview()` method of the Envelope.

       

      This is not ideal, as with auto-save, the user keeps loosing focus on their selected elements.

       

      What's being lost after exporting?

      • Selected nodes and/or connectors
      • Box (dotted) selection (if multiple selection)
      • Control points for connectors (when a connector gets selected, it should show control points)
      • Forms - try not refreshing the forms, the focus on the field is lost

      Attachments

        Issue Links

          Activity

            People

              jenrique@redhat.com Jaime Enriquez (Inactive)
              tfernand-1 Tiago Bento
              Lubomir Terifaj Lubomir Terifaj
              Lubomir Terifaj Lubomir Terifaj
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: