-
Notifications
You must be signed in to change notification settings - Fork 115
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(lossless-round-trip): Implement lossless read writes #400
feat(lossless-round-trip): Implement lossless read writes #400
Conversation
…rom readTag, manually apply formatting on returned Value property
… deep equals implementation and tests
✅ Deploy Preview for dcmjs2 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
Thanks for working on this 👍
Other than the one possible missing test it looks good to me and we can merge.
🎉 This PR is included in version 0.34.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Solves #398 by implementing lossless round trip read/writes to preserve original file data when tags are unmodified
ValueRepresentation.applyFormatting
_rawValue
property on a data elementValue
during writes to determine whether to maintain original unformatted value or updateBinaryValueRepresentation
from lossless processing by default to avoid duplicating large arrayBuffers like pixel data, but provide override mechanism viareadOptions