Skip to content

fix: images with color pallet lut not displaying properly - #251

Closed
ladeirarodolfo wants to merge 1 commit into
dcmjs-org:masterfrom
ladeirarodolfo:hotfix/color-pallet-lut-black
Closed

ladeirarodolfo wants to merge 1 commit into
dcmjs-org:masterfrom
ladeirarodolfo:hotfix/color-pallet-lut-black

Conversation

@ladeirarodolfo

Copy link
Copy Markdown
Contributor

Includes:

  • When naturilazing dataset prevent adding accessors to TypedArray/ArrayBuffer types

sqZero &&
typeof sqZero === "object" &&
!sqZero.length
!sqZero.length &&

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just use Array.isArray to check if the value is an array.

@wayfarer3130

Copy link
Copy Markdown
Contributor

Please just use Array.isArray, drop the two extra files, and add a unit test.

@wayfarer3130

Copy link
Copy Markdown
Contributor

@ladeirarodolfo, Thank you for this contribution. The code that adds accessors to a naturalized dataset changed after this PR (addAccessors.js in 1.0). This change no longer applies, so I close it. Please open an issue with a sample file if the palette color problem still occurs.

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