-
Notifications
You must be signed in to change notification settings - Fork 2
Add local state selectStorey options documentation #101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds documentation for the optional parameters of the selectStorey method in the LocalContext interface, enhancing the API documentation with details about the showPlans and fitViewRequested options.
- Updated the method signature to include optional parameters object with
showPlansandfitViewRequestedboolean options - Added detailed documentation explaining the behavior and default values of these options
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| | `loadModels(ids: number[])` | Load the given models in this context | | ||
| | `unloadModels(ids: number[])` | Unload the given models from this context | | ||
| | `selectStorey(storey: Storey)` | Set storey as the current storey | | ||
| | `selectStorey(storey: Storey, { showPlans?: boolean, fitViewRequested?: boolean })` | Set storey as the current storey. If `showPlans` is `false` (default to `true`), the corresponding storey plans are not shown. `fitViewRequested` (default to `true`) is an hint indicating to the `"storey-selected"` listeners that a fit view should be done. Usefull if a custom fit view is performed juste after selecting the storey. | |
Copilot
AI
Oct 15, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected spelling of 'Usefull' to 'Useful' and 'juste' to 'just'.
| | `selectStorey(storey: Storey, { showPlans?: boolean, fitViewRequested?: boolean })` | Set storey as the current storey. If `showPlans` is `false` (default to `true`), the corresponding storey plans are not shown. `fitViewRequested` (default to `true`) is an hint indicating to the `"storey-selected"` listeners that a fit view should be done. Usefull if a custom fit view is performed juste after selecting the storey. | | |
| | `selectStorey(storey: Storey, { showPlans?: boolean, fitViewRequested?: boolean })` | Set storey as the current storey. If `showPlans` is `false` (default to `true`), the corresponding storey plans are not shown. `fitViewRequested` (default to `true`) is an hint indicating to the `"storey-selected"` listeners that a fit view should be done. Useful if a custom fit view is performed just after selecting the storey. | |
| readonly selectedStorey: StateStorey | null; | ||
| loadModels(ids: number[]): Promise<boolean>; | ||
| unloadModels(ids: number[]): boolean; | ||
| selectStorey(storey: StateStorey): void; | ||
| selectStorey(storey: StateStorey, { showPlans?: boolean, fitViewRequested?: boolean }): void; |
Copilot
AI
Oct 15, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Type inconsistency: The interface definition uses StateStorey but the documentation table uses Storey. Both should use the same type for consistency.
| | `loadModels(ids: number[])` | Load the given models in this context | | ||
| | `unloadModels(ids: number[])` | Unload the given models from this context | | ||
| | `selectStorey(storey: Storey)` | Set storey as the current storey | | ||
| | `selectStorey(storey: Storey, { showPlans?: boolean, fitViewRequested?: boolean })` | Set storey as the current storey. If `showPlans` is `false` (default to `true`), the corresponding storey plans are not shown. `fitViewRequested` (default to `true`) is an hint indicating to the `"storey-selected"` listeners that a fit view should be done. Usefull if a custom fit view is performed juste after selecting the storey. | |
Copilot
AI
Oct 15, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Type inconsistency: The interface definition uses StateStorey but the documentation table uses Storey. Both should use the same type for consistency.
| | `selectStorey(storey: Storey, { showPlans?: boolean, fitViewRequested?: boolean })` | Set storey as the current storey. If `showPlans` is `false` (default to `true`), the corresponding storey plans are not shown. `fitViewRequested` (default to `true`) is an hint indicating to the `"storey-selected"` listeners that a fit view should be done. Usefull if a custom fit view is performed juste after selecting the storey. | | |
| | `selectStorey(storey: StateStorey, { showPlans?: boolean, fitViewRequested?: boolean })` | Set storey as the current storey. If `showPlans` is `false` (default to `true`), the corresponding storey plans are not shown. `fitViewRequested` (default to `true`) is an hint indicating to the `"storey-selected"` listeners that a fit view should be done. Usefull if a custom fit view is performed juste after selecting the storey. | |
No description provided.