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

SWF Viewer - setBackgroundColor function sets black color for non-existent color values

XMLWordPrintable

    • False
    • None
    • False
    • Hide
      1. Open any workflow in VSCode.
      2. Toggle Developer Tools
      3. Open console and set the color of any node to non-existent color value.
        • E.g.: Call the commands from the description.

      Actual result

      The shape's color is set to black.

      Expected result

      The shape's color is set to white.

      Show
      Open any workflow in VSCode. E.g.: applicant-request-decision.sw.json Toggle Developer Tools Open console and set the color of any node to non-existent color value. E.g.: Call the commands from the description. Actual result The shape's color is set to black. Expected result The shape's color is set to white.
    • ---
    • ---

      setBackroundColor function sets black color (#000000) for non-existent values.

      The default value should be white (#FFFFFF).

      Function is used from Editor Canvas API. For example, call the following commands in VSCode Developer Tools console:

      var canvas = window.frames.canvas;
      let firstStateId = canvas.getNodeIds()[1];
      canvas.setBackgroundColor(firstStateId, "non-existent color")
      canvas.draw()
      

            handreyrc Handrey Cunha
            lterifaj@redhat.com Lubomir Terifaj
            Daniel Rosa Daniel Rosa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: