Skip to content

Conversation

@ViniciusResende
Copy link
Collaborator

Context

Previously no check was done for verifying if the value being set was inside boundaries of a reasonable value, causing problems. Even making the value go all the way to negative values.

Changes & Results

  • 140d849 - Introduces a new feature that allow users of BrushTools to set a minRadius and maxRadius that is used to set boundaries on the values that are allowed for the Brush Radius.

This commit also has a type fix and remove some unused code.

Testing

Checklist

PR

  • My Pull Request title is descriptive, accurate and follows the
    semantic-release format and guidelines.

Code

  • My code has been well-documented (function documentation, inline comments,
    etc.)

Public Documentation Updates

  • The documentation page has been updated as necessary for any public API
    additions or removals.

Tested Environment

  • OS: Windows 11 25H2 + WSL Ubuntu 22.04.4 LTS
  • Node version: 20.9.0
  • Browser: Microsoft Edge 141.0.3537.71

Previously no check was done for verifying if the value being set was
inside boundries of a reasonable value, causing problems. Even making
the value go all the way to negative values.
@ViniciusResende ViniciusResende self-assigned this Nov 5, 2025
@jbocce jbocce self-requested a review November 5, 2025 14:28
Copy link
Collaborator

@jbocce jbocce left a comment

Choose a reason for hiding this comment

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

Looks good.

@jbocce jbocce merged commit 464d07d into cornerstonejs:main Nov 5, 2025
10 checks passed
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.

2 participants