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

Measure-tools-react: drawingTypeCache refactor #992

Closed Maxime-Brassard closed 1 month ago

Maxime-Brassard commented 2 months ago

Modified the drawingTypeCache so that it is easier to use and keeps the drawing types so that it does not run again when it goes back to a previously checked sheet. Also made it a singleton so that it persists between tools.

Per the comment made on this PR: https://dev.azure.com/bentleycs/Civil-iTwin/_git/Civil-iTwin/pullrequest/441863