-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(brush size): enable specifying brush size for specific tool #780
Conversation
✅ Deploy Preview for cornerstone-3d-docs canceled.
|
@@ -276,6 +276,9 @@ function _setLabelmapColorAndOpacity( | |||
isActiveLabelmap | |||
); | |||
|
|||
// Todo: the below loop probably can be optimized so that we don't hit it | |||
// unless a config has chaged. Right now we get into the following loop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*changed
@@ -10,7 +10,7 @@ export type ThresholdInformation = { | |||
upper: number; | |||
}; | |||
|
|||
export default function getBrushToolInstances(toolGroupId) { | |||
export default function getBrushToolInstances(toolGroupId, toolName) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there are other calls that need to include this new parameter. I believe the unit tests are also failing because of this.
@@ -6,15 +6,16 @@ import getBrushToolInstances from './utilities'; | |||
|
|||
export function setBrushSizeForToolGroup( | |||
toolGroupId: string, | |||
brushSize: number | |||
brushSize: number, | |||
toolName?: string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the tools api docs need updating?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some small updates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved.
Context
Changes & Results
Testing
Checklist
PR
semantic-release format and guidelines.
Code
[] My code has been well-documented (function documentation, inline comments,
etc.)
[] I have run the
yarn build:update-api
to update the API documentation, and havecommitted the changes to this PR. (Read more here https://www.cornerstonejs.org/docs/contribute/update-api)
Public Documentation Updates
additions or removals.
Tested Environment