# Can't move/resize vtkEllipseWidget

**URL:** https://discourse.vtk.org/t/cant-move-resize-vtkellipsewidget/14078
**Category:** vtk.js
**Created:** [June 18, 2024, 7:31pm UTC](https://discourse.vtk.org/t/cant-move-resize-vtkellipsewidget/14078 "2024-06-18T19:31:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![npadula](https://discourse.vtk.org/user_avatar/discourse.vtk.org/npadula/32/8977_2.png) [@npadula](https://discourse.vtk.org/u/npadula)
#### Post date: [June 18, 2024, 7:31pm UTC](https://discourse.vtk.org/t/cant-move-resize-vtkellipsewidget/14078/1 "2024-06-18T19:31:07Z")

</div>

Hello everyone. I’m working on a widget serialization/deserialization feature. I’m able to create a widget out of serialized state by doing this:

```auto
    const widget = vtkEllipseWidget.newInstance()
    const widgetRep = widgetManager.addWidget(widget, ViewTypes.SLICE)
    const widgetJson = localStorage.getItem("WIDGET")
    const state = JSON.parse(widgetJson)

    widget.getWidgetState().getEllipseHandle().setOrigin(state.ellipse)
    widget.getWidgetState().getEllipseHandle().setScale3(state.scale)
    widget.getWidgetState().getPoint1Handle().setOrigin(state.p1)
    widget.getWidgetState().getPoint2Handle().setOrigin(state.p2)

    widget.getWidgetState().getPoint1Handle().setVisible(true)
    widget.getWidgetState().getPoint2Handle().setVisible(true)

```

The widget renders fine but I can’t resize it or move it around by using its handles.

I’ve tried `widget.setPickable(true)` and `widgetManager.enablePicking()` but they don’t seem to have any effect.

How can I create a widget with the typical move / resize capabilities that come out of the box by doing `widgetManager.grabFocus(widget)` ? Anything I’m missing?
