# CropWidget Connections

**URL:** https://discourse.paraview.org/t/cropwidget-connections/9804
**Category:** Web Support
**Tags:** vtk
**Created:** [June 14, 2022, 4:43am UTC](https://discourse.paraview.org/t/cropwidget-connections/9804 "2022-06-14T04:43:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mayukhdeep\_Mathur](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/65b543/32.png) [@Mayukhdeep\_Mathur](https://discourse.paraview.org/u/Mayukhdeep_Mathur)
#### Post date: [June 14, 2022, 4:43am UTC](https://discourse.paraview.org/t/cropwidget-connections/9804/1 "2022-06-14T04:43:58Z")

</div>

I was checking the code flow but I am confused in this part how the **src/vtk/cropwidge** t folder is connecting the **src/components/tools/croptool** folder I have checked the flow but I am unable to find the connection between these two folders

1. how **src/vtk/CropWidget** is connect to **src/components/tools/CropTool**

2. The code implemented inside src/vtk/CropWidget files behavior.js & index.js is different compared to the vtk.js github files.

---

<div class="post-metadata">

### Author: ![Forrest\_Li](https://discourse.paraview.org/user_avatar/discourse.paraview.org/forrest_li/32/1935_2.png) [@Forrest\_Li](https://discourse.paraview.org/u/Forrest_Li)
#### Post date: [June 14, 2022, 1:36pm UTC](https://discourse.paraview.org/t/cropwidget-connections/9804/2 "2022-06-14T13:36:31Z")

</div>

(Context: Kitware Glance)

1. The cropProxy ([glance/script.js at master · Kitware/glance · GitHub](https://github.com/Kitware/glance/blob/master/src/components/tools/CropTool/script.js#L40)) is a proxy wrapper object that holds a reference to the crop widget. This proxy wrapper is defined declaratively here: [glance/proxy.js at master · Kitware/glance · GitHub](https://github.com/Kitware/glance/blob/master/src/config/proxy.js#L88-L91)

2. The CropWidget files inside src/vtk extend the one from vtk.js. Other than the minor tweaks, the two are the same.
