-
Notifications
You must be signed in to change notification settings - Fork 59
Automatically switch to identify panel when identifying #900
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
Integration tests report: appsharing.space |
This works once for me, but not a 2nd time. Also, the first time, when it does switch tabs, there's a longer delay than expected! I think the new model attribute isn't being updated when I change tabs by manually clicking on a tab. |
adaa076
to
d58999a
Compare
annotationModel?: IAnnotationModel; | ||
|
||
// TODO Add more modes: "annotating" | ||
currentMode: 'panning' | 'identifying'; |
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.
oh nice
if (this._currentMode === 'identifying') { | ||
this._currentMode = 'panning'; | ||
} else { | ||
this._currentMode = 'identifying'; | ||
} | ||
} |
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.
Do you think we can have something more extensible for future:
setIdentifyMode(enabled: boolean): void {
this.currentMode = enabled ? 'identifying' : 'panning';
}
toggleIdentify(): void {
this.setIdentifyMode(this._currentMode !== 'identifying');
}
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.
I'm not sure, we can always work on it in the future :)
Screen.Recording.2025-08-27.at.17.17.54.mp4Works really well, you rock @martinRenou |
* Automatically switch to identify panel when identifying * Introduce model.currentMode + activate tab everytime the identified features change --------- Co-authored-by: martinRenou <[email protected]>
Description
Checklist
Resolves #XXX
.Failing lint checks can be resolved with:
pre-commit run --all-files
jlpm run lint
📚 Documentation preview: https://jupytergis--900.org.readthedocs.build/en/900/
💡 JupyterLite preview: https://jupytergis--900.org.readthedocs.build/en/900/lite