Skip to content
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

Merged
merged 4 commits into from
Sep 12, 2023

Conversation

sedghi
Copy link
Member

@sedghi sedghi commented Sep 12, 2023

Context

Changes & Results

Testing

Checklist

PR

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

Code

Public Documentation Updates

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

Tested Environment

  • [] "OS:
  • [] "Node version:
  • [] "Browser:

@netlify
Copy link

netlify bot commented Sep 12, 2023

Deploy Preview for cornerstone-3d-docs canceled.

Name Link
🔨 Latest commit 3d1fbc2
🔍 Latest deploy log https://app.netlify.com/sites/cornerstone-3d-docs/deploys/6500a408795b69000879a74a

@@ -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
Copy link
Collaborator

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) {
Copy link
Collaborator

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
Copy link
Collaborator

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?

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.

Just some small updates.

@sedghi sedghi requested a review from jbocce September 12, 2023 17:34
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.

Approved.

@sedghi sedghi merged commit e933b2f into main Sep 12, 2023
@sedghi sedghi deleted the fix/rest-of-segs branch January 22, 2025 16:04
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