Package
@itwin/tree-widget-react
Describe the bug
When toggling visibility of nodes in the classification tree, the visibility handler targets the categories of the elements under a classification. This doesn't work with the complicated data structure of OpenSite+. We have input and output elements, and only the input elements are classified. These elements all have different categories. Additionally, some of the output elements share categories between classifications.
To Reproduce
In OpenSite+, create two parking lot classifications, and add a parking lot to each. Clicking hide next to Classification-1 will cause some elements from Parking Lot 1 to disappear, and some elements from Parking Lot 2 to disappear. Ideally, all elements from Parking Lot 1 would disappear, and none of the elements from Parking Lot 2 would disappear.
Expected behavior
OpenSite+ already has logic to calculate and hide necessary output elements when the user tries to hide an input element (listener on the neverDrawn set). So all we need from this is for each classified element under a given classification to be hidden rather than it's categories.
Desktop (please complete the applicable information):
- OS: [e.g. iOS]
OS: Windows
Electron 36.9.1
iTwin.js 5.6.0
Package
@itwin/tree-widget-react
Describe the bug
When toggling visibility of nodes in the classification tree, the visibility handler targets the categories of the elements under a classification. This doesn't work with the complicated data structure of OpenSite+. We have input and output elements, and only the input elements are classified. These elements all have different categories. Additionally, some of the output elements share categories between classifications.
To Reproduce
In OpenSite+, create two parking lot classifications, and add a parking lot to each. Clicking hide next to Classification-1 will cause some elements from Parking Lot 1 to disappear, and some elements from Parking Lot 2 to disappear. Ideally, all elements from Parking Lot 1 would disappear, and none of the elements from Parking Lot 2 would disappear.
Expected behavior
OpenSite+ already has logic to calculate and hide necessary output elements when the user tries to hide an input element (listener on the neverDrawn set). So all we need from this is for each classified element under a given classification to be hidden rather than it's categories.
Desktop (please complete the applicable information):
OS: Windows
Electron 36.9.1
iTwin.js 5.6.0