Skip to content

Conversation

@Kurtil
Copy link
Member

@Kurtil Kurtil commented Oct 15, 2025

No description provided.

@Kurtil Kurtil requested a review from Amoki October 15, 2025 13:20
@Kurtil Kurtil self-assigned this Oct 15, 2025
@Kurtil Kurtil added the documentation Improvements or additions to documentation label Oct 15, 2025
@Kurtil Kurtil merged commit 68616d0 into develop Oct 15, 2025
2 checks passed
@Kurtil Kurtil requested a review from Copilot October 15, 2025 13:58
@Kurtil Kurtil deleted the feature/selectStoreyOptions branch October 15, 2025 13:58
Copy link

Copilot AI left a 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 showPlans and fitViewRequested boolean 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. |
Copy link

Copilot AI Oct 15, 2025

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'.

Suggested change
| `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. |

Copilot uses AI. Check for mistakes.
Comment on lines 43 to +46
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;
Copy link

Copilot AI Oct 15, 2025

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.

Copilot uses AI. Check for mistakes.
| `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. |
Copy link

Copilot AI Oct 15, 2025

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.

Suggested change
| `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. |

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants