# LineWidth with vtkEllipseWidget

**URL:** <https://discourse.vtk.org/t/linewidth-with-vtkellipsewidget/14325>\
**Category:** Development\
**Created:** [July 30, 2024, 1:30pm UTC](https://discourse.vtk.org/t/linewidth-with-vtkellipsewidget/14325 "2024-07-30T13:30:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Juan\_Augusto\_Tardivo](https://discourse.vtk.org/user_avatar/discourse.vtk.org/juan_augusto_tardivo/32/9025_2.png) [@Juan\_Augusto\_Tardivo](https://discourse.vtk.org/u/Juan_Augusto_Tardivo)\
**Post date:** [July 30, 2024, 1:30pm UTC](https://discourse.vtk.org/t/linewidth-with-vtkellipsewidget/14325/1 "2024-07-30T13:30:21Z")

</div>

Hello, i have this code:  
widget = vtkEllipseWidget.newInstance({  
modifierBehavior: {  
None: {  
[BehaviorCategory.PLACEMENT]: ShapeBehavior[BehaviorCategory.PLACEMENT].CLICK\_AND\_DRAG,  
[BehaviorCategory.POINTS]: ShapeBehavior[BehaviorCategory.POINTS].DIAMETER,  
[BehaviorCategory.RATIO]: ShapeBehavior[BehaviorCategory.RATIO].RADIUS  
}  
}  
})

```
const handle = vtk2DRefCurrent?.widgetManagerForms.addWidget(widget, ViewTypes.YZ_PLANE)
vtk2DRefCurrent?.widgetManagerForms.grabFocus(widget)

handle.setActiveColor(0, 0)

handle.getRepresentations()[0].getMapper().setScalarVisibility(false)
handle.getRepresentations()[0].getActor().getProperty().setColor(8 / 255, 29 / 255, 73 / 255)
handle.getRepresentations()[1].getMapper().setScalarVisibility(false)
handle.getRepresentations()[1].getActor().getProperty().setColor(8 / 255, 29 / 255, 73 / 255)
handle.getRepresentations()[1].getActor().getProperty().setLineWidth(2)

handle.getRepresentations()[1].setDrawBorder(true)
handle.getRepresentations()[1].setDrawFace(false)
handle.getRepresentations()[1].setOpacity(1)

```

i dont know why this property is not being applied: handle.getRepresentations()[1].getActor().getProperty().setLineWidth(2)
