Skip to content

Add JSDoc comment for WIDGET_PRIORITY constant#3528

Draft
Lang-Qiu wants to merge 1 commit into
Kitware:masterfrom
Lang-Qiu:auto-pr/docstrings-1780787896
Draft

Add JSDoc comment for WIDGET_PRIORITY constant#3528
Lang-Qiu wants to merge 1 commit into
Kitware:masterfrom
Lang-Qiu:auto-pr/docstrings-1780787896

Conversation

@Lang-Qiu

@Lang-Qiu Lang-Qiu commented Jun 6, 2026

Copy link
Copy Markdown

Problem

The public constant WIDGET_PRIORITY in Sources/Widgets/Core/AbstractWidget/Constants.js lacks documentation, which may lead to confusion for users regarding its purpose and type information. Improving documentation enhances code readability and usability in the VTK.js ecosystem.

Changes

Added a JSDoc comment to WIDGET_PRIORITY to specify its type (number) and describe its role as the priority used for widget interaction in VTK.js.

Verification

  • Review the added comment for accuracy and consistency with existing documentation style.
  • Run the repository's test suite to ensure no functional regressions, as this change only adds documentation.

@@ -1,3 +1,4 @@
/** @type {number} The priority used for widget interaction in VTK.js. */

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you might want to mention as well if high numbers are high or low priority

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants