lunit-io / insight-viewer

medical image viewer component for React
https://insight-viewer.lunit.io
MIT License
34 stars 6 forks source link

insight-viewer v8 Controlled Component #420

Closed LTakhyunKim closed 1 month ago

LTakhyunKim commented 2 months ago

πŸ“ Description

DicomViewer λ₯Ό React Controlled Component 둜 μ‚¬μš©ν•  수 μžˆλ„λ‘ κΈ°λŠ₯을 κ΅¬ν˜„ν•©λ‹ˆλ‹€.

κ΅¬ν˜„ 사항

  1. pan, zoom κ³Ό 같이 DICOM 에 변경이 μžˆμ„ 경우, onChange λ₯Ό ν˜ΈμΆœν•˜μ—¬ μƒνƒœλ₯Ό μ—…λ°μ΄νŠΈ ν•©λ‹ˆλ‹€.
  2. DicomViewer 의 viewerInfo prop 의 값이 변경될 경우, 이λ₯Ό 이미지에 λ°˜μ˜ν•˜μ—¬ λ¦¬λ Œλ”λ§ ν•©λ‹ˆλ‹€.

κ΅¬ν˜„ 방식

확인 μš”μ²­ 사항

βœ”οΈ PR Type

What kind of change does this PR introduce?

🎯 Current behavior

N/A

Issue Number: N/A

πŸš€ New behavior

DicomViewer κ°€ Controlled Component ν˜•νƒœλ‘œ λ™μž‘ν•©λ‹ˆλ‹€.

https://github.com/user-attachments/assets/a0a5a327-4782-4bd2-adc8-0cc7acf0a466

πŸ’£ Is this a breaking change?