# Problem showing arrow handles in vtkLineWidget

**URL:** https://discourse.vtk.org/t/problem-showing-arrow-handles-in-vtklinewidget/7879
**Category:** Web
**Created:** [February 18, 2022, 5:22pm UTC](https://discourse.vtk.org/t/problem-showing-arrow-handles-in-vtklinewidget/7879 "2022-02-18T17:22:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Yasushi\_Saito](https://discourse.vtk.org/user_avatar/discourse.vtk.org/yasushi_saito/32/1634_2.png) [@Yasushi\_Saito](https://discourse.vtk.org/u/Yasushi_Saito)
#### Post date: [February 18, 2022, 5:22pm UTC](https://discourse.vtk.org/t/problem-showing-arrow-handles-in-vtklinewidget/7879/1 "2022-02-18T17:22:34Z")

</div>

I’m trying to use a vtkLineWidget in a React environment. I can get much of it working, but the handles on the two ends of the line doesn’t show, so I really can’t move its endpoints. The code is

> **[upbeat-frog-85kxpu - CodeSandbox](https://codesandbox.io/s/upbeat-frog-85kxpu?file=%2Ftsconfig.json)**
>
> upbeat-frog-85kxpu by yasushi.saito using react, react-dom, react-scripts

Basically, I started with [vtk.js](https://kitware.github.io/vtk-js/examples/LineWidget.html)  
and changed not to use a vtkFullScreenRenderWindow, but a react div.

Can someone tell me what I’m doing wrong?

---

<div class="post-metadata">

### Author: ![Forrest](https://discourse.vtk.org/user_avatar/discourse.vtk.org/forrest/32/300_2.png) [@Forrest](https://discourse.vtk.org/u/Forrest)
#### Post date: [February 18, 2022, 8:46pm UTC](https://discourse.vtk.org/t/problem-showing-arrow-handles-in-vtklinewidget/7879/2 "2022-02-18T20:46:40Z")

</div>

You will additionally need to bring in `import "@kitware/vtk.js/Rendering/Profiles/Glyph";`, since the handles are rendered using the Glyph3DMapper.

---

<div class="post-metadata">

### Author: ![Yasushi\_Saito](https://discourse.vtk.org/user_avatar/discourse.vtk.org/yasushi_saito/32/1634_2.png) [@Yasushi\_Saito](https://discourse.vtk.org/u/Yasushi_Saito)
#### Post date: [February 18, 2022, 10:42pm UTC](https://discourse.vtk.org/t/problem-showing-arrow-handles-in-vtklinewidget/7879/3 "2022-02-18T22:42:12Z")

</div>

Thanks. It worked!
