* feat(viewer-lib): Added MeasurementData and stuck with shared library defined measurement related types
* feat(viewer-lib): Some updates:
- Removed unnecessary calculations in point to point measurement. More lean now. Implemented serialization/deserialization
- Tempoarary serialization/deserializaton for the rest of the measurement types
- MeasurementsExtension now is able to load measurements from MeasurementData objects
- Updated viewer's export list to not export mesurements related types that are now exclusively exported by the shared library
* feat(viewer): Perpendicular measurements simplification (a little bit) and serialization/deserialization
* chore(frontend): Updated measurement types imports
* chore(viewer-lib): Removed the old normal indicator line from the perpendicular measurement
* feat(viewer-lib): Updates:
- Generic fromMeasurementData and toMeasurementData for all measurements since it's unniversal
- Each measurement type serializes/deserializes only specialized data
- Implemented ponint measurement serializing/deserializing and programmatic functionining
* feat(viewer-lib): Area mesurement serialization/deserialization
* feat(viewer-lib): Updates:
- Each measurement subtype now reports the MeasurementType it belongs to
- MeasurementsExtension now emits a MeasurementsChanged event with all the measurements as payload whenever the measurements change
- units and precision are no longer serialized/deserialized on a per-measurement basis
- Added sync API member addMeasurement
* chore(viewer-lib): Fix compiler error
* chore(viewer-lib): Added measurements getter in MeasurementExtension
* feat(fe2): save/reload measurements integration (#5351)
* measurements idempotent api
* extra adjustments, stuff seems to work
* lint fix
* more lint fix
* fix for visible going false
* better identification
* fix FlyControls change action
---------
Co-authored-by: Kristaps Fabians Geikins <fabians@speckle.systems>
* init db migration
* WIP store view
* create service call
* WIP insertion
* insert sort of works
* moving code arounmd
* creation tests
* avoid duplicate entries
* fixes from main
* basic group retrieval works
* group filtering works
* WIP view listing
* filter by acl
* fixes + WIP single group retrieval
* wip pivot
* more pivot query fixes
* tests fixed after pivot
* views list tests
* fixing test command
* business plan only checks
* more tests for coverage
* .dts import fix
* cli fix
* anutha one
* auth policy tests for business plan access
* WIP saved views panel base
* BE listing adjustments
* WIP group rendering
* group render done
* WIP post create cache updates
* listing fine?
* my vs theirs
* auto open
* minor fixes
* click load omg
* nicely loading views
* type fix
* less spammy loading
* another type fix:
* more lint fix
* test fix
* codecov disable
* moar coverage
* fix sidebar flashin
* more test coverage
* more test cvoverage
* minor adfjustments
* adj
* saved view wipe fixes
* CSR viewer
* more improvements
* extra feature flag checks
* lint fix
* feature flags fix
* more test fixes
* add new indexed db wrapper
* remove dexie and use new idb
* change storage durability
* allow undefined gets
* some clean up
* linting fixes
* add db close
* cleaner upgrade DB and more clean up
* fix database issues by deleting things instead of upgrading them
* feat(viewer-lib): Text updates:
- Update to latest troika-three-text version
- Started working on the new TextBatch whoich will actually batch texts
- Augmented BatchedText type from troika
- Renamed old SpeckleText to TextLabel
* feat)viewer-lib): Copied over the batched version for the speckle text into our text material since troika won't export it
* feat(viewer-lib): First draft on text batching
* feat(viewer-lib): WIP on TextBatch and SpeckleText
* feat(viewer-lib): SpeckleText batch now has working TAS and BAS. Overloaded getBatches to also take an array of geometry types and added GeometryType.TEXT in places where required alongisde MESH
* feat(viewer-lib): Text batch has correctly transformed texts
* feat(viewer-lib): Patched troika BatchedText to allow per text opacity. Draw ranges for text batches are now functional
* feat(viewer-lib): Fixed an issue with the BAS not correctly reporting bounds. Had to override two methods completely in our SpeckleText extension of the BatchedText just so that we don't do stupid things and still get good performance when dealing with a huge number of texts
* feat(viewer-lib): Added text batch object count limit. Default is 5k. Implemented proper material caching and cloning inside SpeckleText. Overriden the default updateBounds function so that we don't waste tens of millisecons per frame!!! pointlessly
* feat(viewer-lib): Implemented TextBatchObject along with individual text batch object transform manipulation at batch level.
* chore(viewer-lib): Updated the pipelines to not render text geometries twice
* feat(viewer-lib): Implemented RTE for batched text rendering. As with the rest of the geometry types, RTE is automaic and will only be used when needed
* feat(viewer-lib): Integrated remaining text v3 features: alignments and maxWidth
* feat(viwer-lib): Implemented billboarding and RTE billboarding for text.
* feat(viewer-lib): Text batches now report correct object materials and can be filtered properly
* fix(viewer-lib): Some Fixes:
- The need for text RTE is now correctly being computed on the right text dimensions
- Sequential update ranges now correctly apply materials to all of them
* fix(viewer-lib): RTE text box is now correctly transformed. The text batch object only uses the TAS for intersecting since it's BAS is redundant.
* feat(viewer-lib): Text batches now correctly use gradient/ramp textures along with sample indices for colored filtering.
* feat(viewer-lib): Implemented raycasting for billboarded text batches in the most simple and robust way I was capable of. Lacks TAS speedup but it's a compromise we have to make and one which we probably will never regret
* feat(viewer-lib): Good progress on reworking TextLabel, which replaces the old multi purpose SpeckleText, which we use internally for measurements. More precise rendering, no more rogue margins between text and background. Regular billboarding now also works, along with non-billboarded rendering
* feat(viewer-lib): Finally a unified billboarding solution in SpeckleBasicMaterial. Supporting both world and screen billboarding; SpeckleTextMaterial now extends SpeckleBasicMaterial; TextLabel now has proper control over size and margins. No more weird offsets. Added background margins to the text params which work in both world and screen space.
* feat(viewer-lib): Implemented raycasting for all billboarding types. Spent quite some time on the screen billboarding one because of a stupid mistake
* chore(viewer-lib): Added (vibed) type declaration file for troika's Text class and fixed compiler errors for TextLabel
* chore(viewer-lib): Renamed SpeckleText to SpeckleBatchedText and fixed all compiler errors. Updated type definition file
* feat(viewer-lib): Integrated TextLabel with measurements. Simplified a lot of code
* fix(viewer-lib): Some updates and fixes to text and measurements integration
- Screen space billboarding now also takes an NDC offset alongside the size.
- Added auto margin calculation for TextLabel background so it's always centered regardless of anchor-ing
- DPR is automatically factored in for TextLabel
- Some changes to sizes and margins for measurements
* fix(viewer-lib): Bunch of fixes and tweaks
* fix(viewer-lib): Area measurement's area plane no longer overdraws on top of the area value text label via simple stenciling
* fix(viewer-lib): Fixed CI build
* fix(viewer-lib): Fixed CI build
* feat(viewer-lib): Slightly reduces the size and h margin of text gizmos for measurements
* fix(viewer-lib): Fixed incorrect text transformation when neither RTE nor billboarded
* chore(viewer-lib): Added review suggestions