-
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -43,7 +43,7 @@ interface LocalContext extends Context { | |||||||||
| 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; | ||||||||||
| showPlan(plan: StatePlan): void; | ||||||||||
| hidePlan(plan: StatePlan): void; | ||||||||||
|
|
||||||||||
|
|
@@ -85,7 +85,7 @@ To manage models, storeys and plans for a given context you can use the `localCo | |||||||||
| | **methods** | | | ||||||||||
| | `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. | | ||||||||||
|
||||||||||
| | `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
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. | |
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
StateStoreybut the documentation table usesStorey. Both should use the same type for consistency.