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

How can I get or remove ReferenceLine? #8

Open
aizela opened this issue Jun 21, 2021 · 0 comments
Open

How can I get or remove ReferenceLine? #8

aizela opened this issue Jun 21, 2021 · 0 comments

Comments

@aizela
Copy link

aizela commented Jun 21, 2021

I move this project to react,each file is the same as this. except the way to show UI:

<button onClick={_changeMode}>click to show MPR or hide</button>
 <div id="cornerstone-target" class="item"></div>
      {mode === 0 ? null : <div className="mpr-comtainer">
        <div id="axial-target" class="item"></div>
        <div id="coronal-target" class="item"></div>
        <div id="sagittal-target" class="item"></div>
      </div>}

when i click the button first,everything goes well, but when MPR showed again,col lines on the MPR will show one extra.
I think it can be resolved by remove lines before the image shown, or determine whether a line already exists before rendering,
but i failed to do

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

No branches or pull requests

1 participant