cornerstoneTools
cornerstoneTools copied to clipboard
Default tool configuration is overwritten by custom configuration passed to constructor
I think we should merge default and custom configuration objects. See: https://github.com/cornerstonejs/cornerstoneTools/blob/vNext/src/tools/ReferenceLinesTool.js#L31
A possible solution could be: Make the BaseTool handle the merge of configurations (similar with ReactJS Components)
- create a static object with a protected name, maybe:
defaultConfiguration. - constructor should pass whatever it receives to super (BaseTool)
- BaseTool should get
defaultConfigurationandconfigurationand merge it correctly.
:tada: This issue has been resolved in version 3.9.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket: