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

fix(Tools): Tool Styles Check Property #874

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

jlopes90
Copy link
Contributor

@jlopes90 jlopes90 commented Nov 8, 2023

Context

Fixes #864

Changes & Results

Testing

Example Annotation Tool Modes

const toolGroupId = "STACK_TOOL_GROUP_ID";

const styles = {
  Length: {
    colorHighlighted: 'rgb(0, 4, 255)',
    textBoxVisibility: false,
  },
  global: {
    lineWidth: '2',
    textBoxVisibility: false,
    textBoxFontSize: '20px',
    textBoxLinkLineWidth: '5',
    textBoxBackground: 'rgb(0, 4, 255)',
  },
};

cornerstoneTools.annotation.config.style.setToolGroupToolStyles(toolGroupId, styles);

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:

Copy link

netlify bot commented Nov 8, 2023

Deploy Preview for cornerstone-3d-docs ready!

Name Link
🔨 Latest commit f2ec886
🔍 Latest deploy log https://app.netlify.com/sites/cornerstone-3d-docs/deploys/654b9a53509d980008e8fc18
😎 Deploy Preview https://deploy-preview-874--cornerstone-3d-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@sedghi sedghi left a comment

Choose a reason for hiding this comment

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

Thanks looks great

@sedghi sedghi merged commit 3a765a1 into cornerstonejs:main Nov 9, 2023
@jlopes90 jlopes90 deleted the fix-tool-styles-check-property branch January 19, 2024 16:03
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.

setToolGroupToolStyles doesn't change the textBoxVisibility property
2 participants