iTwin / viewer-components-react

Components built on iTwin.js for usability in an iTwin.js based Viewer.
MIT License
24 stars 33 forks source link

Models tree: Allow ruleset customization #711

Open grigasp opened 9 months ago

grigasp commented 9 months ago

At the moment there's no way to customize the Models Tree hierarchy. The specific requirement is to add additional rules to load additional child nodes for specific types of geometric elements.

The custom ruleset may create nodes that we don't know how to handle. Need to ensure:

GintV commented 3 months ago

@1abjora @grigasp Any news on this one? Maybe this could be scheduled for upcoming future? Or we could make a contribution that enables custom processing of current rules (minimal changes required). We could mark it as experimental/internal so that anyone that uses additional props on ModelsTree know that this might break at any point?

grigasp commented 3 months ago

@1abjora @grigasp Any news on this one? Maybe this could be scheduled for upcoming future? Or we could make a contribution that enables custom processing of current rules (minimal changes required). We could mark it as experimental/internal so that anyone that uses additional props on ModelsTree know that this might break at any point?

We're in the process of rewriting the tree widget to not use presentation rules and I'd hate to spend time changing the components we're about to deprecate. If you have the necessary changes, please set up a PR.