Skip to content

Brush Toolbox Item Appearance Behavior Inconsistent #217

Description

@joshua-dean

The "Brush Tool" Toolbox item automatically appears when the "polygon" mode is selected, however when switching to a subtask where "polygon" is the default, the toolbox item does not automatically appear.

This is problematic for subtasks with only the "polygon" annotation mode, as there is not a way to coerce the toolbox item into appearing without manually passing a toolbox configuration.

Steps to reproduce:

  1. Change the single-class.html demo subtasks to the following:
let subtasks = {
    "car_detection": {
        "display_name": "Car Detection",
        "classes": [
            {
                "name": "Car",
                "color": "orange",
                "id": 10
            }
        ],
        "allowed_modes": ["bbox", "polygon", "contour"],
        "resume_from": null,
        "task_meta": null,
        "annotation_meta": null
    },
    "car_detection2": {
        "display_name": "Car Detection 2",
        "classes": [
            {
                "name": "Car",
                "color": "orange",
                "id": 10
            }
        ],
        "allowed_modes": ["polygon"],
        "resume_from": null,
        "task_meta": null,
        "annotation_meta": null
    },
};
  1. Launch the demo
  2. In the "Car Detection" subtask, select anything but the "polygon" mode
  3. With to the "Car Detection 2" subtask
  4. Observe the lack of the brush toolbox item

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions