Commit Graph

23 Commits

Author SHA1 Message Date
Iain Sproat 6522260fdd chore(objectloader): add details to error for fetch (#5031) 2025-07-03 13:42:45 +01:00
AlexandruPopovici 7ac4fb466b chore(object-loader): Based on Iain's PR, made the error checking a bit more centralized 2025-03-11 12:25:37 +02:00
Iain Sproat 6c85206ce9 improve error handling around fetching root object 2025-03-11 09:03:22 +00:00
Iain Sproat 07593ed2a9 chore(objectloader): add more context to error when loading 2025-03-10 17:17:44 +00:00
oguzhankoral e6263b1fb0 Create from objects instead parsing JSON 2025-02-12 16:50:38 +03:00
Alexandru Popovici 6fc7c06e9c Offline Object Loader (#3717)
* Quick hack to demo how an offline loader would work with as little complication as possible

* Further simplified yielding objects in offline mode

* Commented out the URL thing

* Implemented SpeckleOfflineLoader. JSON parsing is implemented at object-loader level, completely isolated from the rest of the implementation in order to avoid regression

* Isolated ObjectLoader creation in base SpeckleLoader class so any extended classes can overwrite the way the object loader is created and used

* Removed the big json sample file

* Updated version

* Removed unused functions from objectloader

* Restored viewer package version

* Fixed typo

* Renamed and moved the sample offline Speckle JSON

* Replaced the default JSON object sample with a much smaller one since we don't want to increase the sandbox's build size by 10 megs

* Fixed a linting error
2024-12-18 17:21:13 +02:00
Alexandru Popovici 76b5964d9d Implemented a separate for object-loader which can be used autonomously (#2647) 2024-08-14 14:01:04 +03:00
Kristaps Fabians Geikins 51ec2f7dcd fix(objectloader): prevent cache read/write (#2637) 2024-08-12 13:22:03 +03:00
Kristaps Fabians Geikins 3313787f16 fix(viewer): viewer node16 support + fixing up package.jsons (#2442)
* fix: viewer node16 support + fixing up package.jsons

* lockfile fix

* Removed unnecessary type augmentations. Deleted unused SpeckleCameraControls

---------

Co-authored-by: AlexandruPopovici <alexandrupopoviciioan@gmail.com>
2024-07-15 15:16:13 +03:00
Alexandru Popovici 829a1965b3 WEB-1096: DataDog Errors (#2409)
* We're now catching possibe QuateExceeded errors from IDB in the local storage

* findId with undefined or null id now returns null

* cacheStoreObjects now returns a promise regardless
2024-06-20 12:38:33 +03:00
Alexandru Popovici af8c3e1a14 New URL formats in URLHelper (#2229)
* URLHelper now supports both old and new speckle URLs. Moved URLHelper to the viewer library so users can use it to transform speckle urls in loadable object urls. Disabled object-loader from reading the local storage for auth tokens.

* Added URI decoding

* Error checking. URLHelper is not a class anymore

* Queries are not run in parallel
2024-04-26 11:02:14 +03:00
Kristaps Fabians Geikins 7e96d433f9 gracefully handling objectloader unauth req 2024-03-29 15:58:11 +02:00
Kristaps Fabians Geikins 94b0b5f5e0 fix(server): cross server sync not respecting token (#2181)
* fix(server): cross server sync not respecting token

* minor adjustment

* getting rid of token positional arg
2024-03-29 15:21:06 +02:00
Alexandru Popovici 0454b39cfc WBX-8 Viewer-lib bugfixes (#2041)
* Handled WBX-55

* Fix for WBX-53

* Fixed WBX-160

* Fixed an issue with section box comments where an unwated margin was applied. Fixed an issue where objects were not sliced when opening a URL that had a comment + section box. Fixed an issue where the object with a comment attached would not select when opening it directly from a comment URL in FE2

* Fixed WBX-132
2024-02-14 20:33:15 +02:00
Alexandru Popovici 92a38181c1 Fix for Safari's RangeError in the object-loader (#2012)
* Fix for Safari's RangeError in the object-loader

* Using chunk to split the large id arrays into smaller ones. It's nicer but much slower
2024-02-08 16:23:51 +02:00
Alexandru Popovici 6b7dbc5d70 Reduced Viewer Memory Footprint (#1406)
* The ObjectLoader and ViewerObjectsLoaders are disposed upon loading complete.

* Added viewer parameter for keeping or discarding original geometry data. Defaults to discarding it. WIP on mesh and point cloud implementation for actual discarding it

* Geometry data from raw nodes is now disposed after building their reder views

* Removed raw geometry data from points and lines

* Removed the float64 array which was persisted pointlessly by the section plane outlines feature. Also fixed a bug for this feature regarding resizing the point buffer and RTE

* Implemented BVHs in local space, relative to world origin. This cuts down on it's redundant memory footprint by half

* Implemented SpeckleMeshBVH which completely hides the RTE-related transformations that we're making to reduce memory footprint.

* Added some clarifications to the SpeckleMeshBVH class
2023-02-28 13:07:33 +02:00
AlexandruPopovici 248948363a Fixed an issue I created myslef a while ago. Reverted the object loader to the original state and made the ViewerObjectLoader to send the logger's logging function instead of the logger itself when creating ObjectLoader instances 2023-01-26 18:42:12 +02:00
Alexandru Popovici de2bce89a5 Alex/verbosity and mouse event (#1275)
* Added a verbose flag in the viewer params. Default is false and it's equivalent to the ERROR level

* Piggybacked the original pointer event into the SelectionEvent
2023-01-02 16:23:52 +02:00
Gergő Jedlicska 492afde5f6 gergo/fixBuild (#1277)
* style(server): fix formatting

* fix(preview-service): fix chromium deps in Dockerfile
2022-12-20 12:51:01 +01:00
Dimitrie Stefanescu 3cbd8b4a67 additional null check (#1276)
adds a null check in the traversal func (sketchup hotfix)
2022-12-20 12:02:33 +01:00
Kristaps Fabians Geikins 5f48ae8086 feat(server): optimized command for importing commits from other servers (#1113) 2022-10-17 10:32:01 +03:00
Dimitrie Stefanescu a6fe994bbb feat(blobs): objectloader filtering out blobs 2022-07-31 11:08:45 +03:00
Fabians c91f0a4bba feat: fixed viewer & objectloader build configs 2022-04-08 12:46:34 +03:00