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(SVGCursorDescriptor): improve CursorSVG typing #705

Merged
merged 2 commits into from
Jul 27, 2023

Conversation

CarstenWalther
Copy link
Contributor

Context

CursorSVG had a implicit type that did not reflect, that cursors for new tool names can be added.
registerCursor can add any string as toolname to CursorSVG.

svgCursorNames has a similar problem. It only returns the initial cursor names.
Maybe it should be a function instead of a variable to return the current keys of CursorSVG.
I did not changed it because I did not want to risk changing the public API on my first PR here. :)

Changes & Results

CursorSVG has a broader type.

Small refactoring in getDefinedSVGCursorDescriptor. Should not affect functionality.

Testing

Only typing change. No change in runtime behavior.

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: Ubuntu 22.04
  • "Node version: 16.17.0
  • [] "Browser:

@netlify
Copy link

netlify bot commented Jul 26, 2023

Deploy Preview for cornerstone-3d-docs ready!

Name Link
🔨 Latest commit 25a2ced
🔍 Latest deploy log https://app.netlify.com/sites/cornerstone-3d-docs/deploys/64c136bd2f4a59000880d79e
😎 Deploy Preview https://deploy-preview-705--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.

@sedghi
Copy link
Member

sedghi commented Jul 27, 2023

Looks great. This is a great contribution, thanks a lot!

@sedghi sedghi merged commit 26b854a into cornerstonejs:main Jul 27, 2023
5 checks passed
wayfarer3130 pushed a commit that referenced this pull request Jul 31, 2023
* fix: improve CursorSVG typing

* chore: update api

---------

Co-authored-by: Carsten Walther <carsten.walther@mevis.fraunhofer.de>
sedghi pushed a commit that referenced this pull request Jul 31, 2023
…#702)

* fix(loader): Load colour images correctly when specified Float32Array

* feat(streamingVolumeLoader): added IMAGE_VOLUME_LOADING_COMPLETED event (#699)

* added IMAGE_VOLUME_LOADING_COMPLETED event

* api doc

* chore(release): publish [skip ci]

* chore(script): add a dev script which should be used for linking (#706)

* chore(release): publish [skip ci]

* fix(SVGCursorDescriptor): improve CursorSVG typing (#705)

* fix: improve CursorSVG typing

* chore: update api

---------

Co-authored-by: Carsten Walther <carsten.walther@mevis.fraunhofer.de>

* chore(release): publish [skip ci]

* feat(segmentation export): add new cornerstone3D segmentation export adapter (#692)

* chore(adapters): ability to cache and build ESM modules

* wip

* refactoring

* remove bound ijk which is unnecessary since we moved to world

* add data set module to the metadata providers

* add a new method to segmentation state

* add the new parser

* work without rle encode

* fix demo for export color

* add centroid calculations

* add trigger event for segmentation load progress

* update dcmjs

* update api

* fix example

* remove the promise await

* apply review comments

* add adapters section to examples

* add adapters dep to docs

* add eslint rule

* example deploy

* chore(release): publish [skip ci]

* fix(voi): fix the voi setting when the stack is composed of different orientations (#703)

* fix(voi): fix the voi setting when the stack is composed of different orientations

* fix the volume conversion to stack voi bug

* fix(volumes): a volume should be able to grab data from another cached volume when needed

* revert example change

* chore(release): publish [skip ci]

* feat(voiSync): add optoins to turn of invert sync for voisync (#708)

* chore(release): publish [skip ci]

* PR requested changes
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