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

SWF Viewer - Fit diagram into canvas (default size)

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • None
    • None
    • Authoring Tooling
    • 2022 Week 17-19 (from Apr 25), 2022 Week 20-22 (from May 16)

    Description

      The scale level, once opening a workflow diagram, is set to 1 by default. This prevents the user to see the whole workflow once starting to work on it.

      The goal for this task is to fit the diagram into the canvas once opening a workflow

      Considerations:

      • The canvas size is being dynamically set by the parent container (div). So once opening the workflow, it has to be scaled properly to fit into the actual canvas size
      • This scale transform ONLY applies once opening (loading) a diagram for first time. After this point, the user is able to change the scale level, and even if the user resizes the browser or canvas area, the scale level should be preserved as the one set by the user
      • Do not exceed scale min/max constraints (eg: as mouse mediators, as zoom level widget)

      Impl. notes:

      • Drop use of panel "ratio" (panels & preview)
      • Set proper scale level once opening the canvas, in order to fit workflow size

      Attachments

        Activity

          People

            handreyrc Handrey Cunha
            romartin@redhat.com Roger Martinez
            Dominik Hanak Dominik Hanak
            Dominik Hanak Dominik Hanak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: