# ShapeWidget Example failure

**URL:** https://discourse.vtk.org/t/shapewidget-example-failure/6658
**Category:** Web
**Created:** [September 18, 2021, 10:56pm UTC](https://discourse.vtk.org/t/shapewidget-example-failure/6658 "2021-09-18T22:56:48Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![seattlewayne](https://discourse.vtk.org/user_avatar/discourse.vtk.org/seattlewayne/32/3958_2.png) [@seattlewayne](https://discourse.vtk.org/u/seattlewayne)
#### Post date: [September 18, 2021, 10:56pm UTC](https://discourse.vtk.org/t/shapewidget-example-failure/6658/1 "2021-09-18T22:56:48Z")

</div>

The [ShapeWidget Example](https://kitware.github.io/vtk-js/examples/ShapeWidget.html) doesn’t seem to work. It generates the console error:

```auto
Uncaught TypeError: Cannot read properties of undefined (reading 'setVisible')

```

Does anyone know how long this has been broken? Are there any other samples of how to use the RectangleWidget?

Thanks.

---

<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: [September 20, 2021, 7:53pm UTC](https://discourse.vtk.org/t/shapewidget-example-failure/6658/2 "2021-09-20T19:53:06Z")

</div>

@finetjul do you know if [fix(shapewidget): Fix and improve ShapeWidget by tomsuchel · Pull Request #2054 · Kitware/vtk-js · GitHub](https://github.com/Kitware/vtk-js/pull/2054) should fix ShapeWidget usage?

---

<div class="post-metadata">

### Author: ![finetjul](https://discourse.vtk.org/user_avatar/discourse.vtk.org/finetjul/32/154_2.png) [@finetjul](https://discourse.vtk.org/u/finetjul)
#### Post date: [September 20, 2021, 9:35pm UTC](https://discourse.vtk.org/t/shapewidget-example-failure/6658/3 "2021-09-20T21:35:48Z")

</div>

@Forrest yes, it should fix all ShapeWidget errors. I’ll try to get it merged this week.

---

<div class="post-metadata">

### Author: ![seattlewayne](https://discourse.vtk.org/user_avatar/discourse.vtk.org/seattlewayne/32/3958_2.png) [@seattlewayne](https://discourse.vtk.org/u/seattlewayne)
#### Post date: [October 4, 2021, 7:07pm UTC](https://discourse.vtk.org/t/shapewidget-example-failure/6658/4 "2021-10-04T19:07:17Z")

</div>

Hi @finetjul. Do we have any idea when this will be merged and released? Thanks.

---

<div class="post-metadata">

### Author: ![finetjul](https://discourse.vtk.org/user_avatar/discourse.vtk.org/finetjul/32/154_2.png) [@finetjul](https://discourse.vtk.org/u/finetjul)
#### Post date: [October 4, 2021, 7:23pm UTC](https://discourse.vtk.org/t/shapewidget-example-failure/6658/5 "2021-10-04T19:23:42Z")

</div>

Should be good this week.

---

<div class="post-metadata">

### Author: ![finetjul](https://discourse.vtk.org/user_avatar/discourse.vtk.org/finetjul/32/154_2.png) [@finetjul](https://discourse.vtk.org/u/finetjul)
#### Post date: [October 8, 2021, 5:09pm UTC](https://discourse.vtk.org/t/shapewidget-example-failure/6658/6 "2021-10-08T17:09:01Z")

</div>

Hi @seattlewayne, it has been merged. Please let me know if you have any issue with it.

Thanks,  
Julien.
