feat(viewer): add support for pure HTML cluster feature - part 5#5508
Conversation
…in api helper and prevent intersect geometry while clicking a cluster icon
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## danpriori/BND3D-6392-pure-3d-clustering-360s-HTML-version-part4 #5508 +/- ##
===================================================================================================
+ Coverage 73.51% 73.76% +0.24%
===================================================================================================
Files 467 467
Lines 47675 47816 +141
Branches 3768 3802 +34
===================================================================================================
+ Hits 35050 35273 +223
+ Misses 12491 12409 -82
Partials 134 134
🚀 New features to boost your workflow:
|
…on-part4' into danpriori/BND3D-6392-pure-3d-clustering-360s-HTML-version-part5
…on-part4' into danpriori/BND3D-6392-pure-3d-clustering-360s-HTML-version-part5
…on-part4' into danpriori/BND3D-6392-pure-3d-clustering-360s-HTML-version-part5
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces the capability to zoom into 360 image clusters. The implementation correctly prioritizes cluster intersections over individual icon intersections and adds the necessary logic for camera transitions. The changes are well-tested. However, there is a significant issue in the zoomToCluster implementation where setTimeout is used to wait for an animation. This can lead to an unresponsive UI if the animation is interrupted by the user. I've provided a detailed comment on how to address this by using a promise-based approach for the animation.
…osest one" This reverts commit 0ca3cc3.
…on-part4' into danpriori/BND3D-6392-pure-3d-clustering-360s-HTML-version-part5
…on-part4' into danpriori/BND3D-6392-pure-3d-clustering-360s-HTML-version-part5
…on-part4' into danpriori/BND3D-6392-pure-3d-clustering-360s-HTML-version-part5
nilsfremming
left a comment
There was a problem hiding this comment.
Good. I see the camera manager stuff is charged to my suggestion.
He already approved using his other account
…on-part4' into danpriori/BND3D-6392-pure-3d-clustering-360s-HTML-version-part5
|
There were failures in the visual tests workflow. |
…on-part4' into danpriori/BND3D-6392-pure-3d-clustering-360s-HTML-version-part5
…on-part4' into danpriori/BND3D-6392-pure-3d-clustering-360s-HTML-version-part5
Type of change
Jira ticket 📘
https://cognitedata.atlassian.net/browse/BND3D-6392
This PR is part of a stacked PR to support the pure HTML cluster feature with an internal counter.
This PR adds capabilities of zoom to cluster capabilities in api helper, including wiring up and prevent intersect geometry while clicking a cluster icon
How has this been tested? 🔍
It was tested by building it locally and testing it on cog-3d in scenes that have a lot of 360s, such as the Hybrid Mapping scene and the Ivar Aasen Demo (CAD, PC, 360).
Test instructions ℹ️
screen-capture.44.webm
Checklist ☑️