Commit Graph

14 Commits

Author SHA1 Message Date
Adam Hathcock 194b5c9945 refactor and add test for getObject not found 2025-09-23 10:29:54 +01:00
Adam Hathcock 872879518a add back masking option 2025-09-18 15:10:30 +01:00
Adam Hathcock 89fc312839 maybe fix boolean logic for cache 2025-09-18 15:05:10 +01:00
Adam Hathcock f41719f7e6 make boolean logic correct 2025-09-18 14:48:06 +01:00
Adam Hathcock 3b2cd031ed Merge remote-tracking branch 'origin/gergo/cxpla-278-v2-server-api-endpoint-with-masking-support' into adam/add-ol2-options
# Conflicts:
#	packages/objectloader2/src/core/objectLoader2Factory.ts
2025-09-18 14:41:53 +01:00
Adam Hathcock ed29ead354 add more options to factory 2025-09-18 14:39:23 +01:00
Gergo Jedlicska b0ed356282 feat(objectloader2): make attribute masking optional 2025-09-17 18:00:59 +02:00
Gergo Jedlicska 2a43ce23d4 feat(objectloader-2): include object masking in objectloader 2025-09-17 17:56:40 +02:00
Adam Hathcock 812dac9920 OL2(fix) Use BatchingQueue instead of BatchedPool as parsing download happens on main thread asap anyway (#5165)
* Use BatchingQueue instead of BatchedPool as parsing download happens on main thread anyway

* add tests for keyedqueue

* clean up

* more prettier fix
2025-08-26 12:07:02 +01:00
Adam Hathcock cab2a401db OL2 (fix) Simplify idb (#5174)
* Simplify idb usage and collapse the class

* fix tests

* fmt
2025-08-26 12:06:47 +01:00
Adam Hathcock 9220a3ee4b ol2(feat) remove dexie dependency (#5148)
* 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
2025-07-28 15:57:07 +01:00
Adam Hathcock 877266bca7 OL2 (feat): useCache option and flag clean up (#5133)
* add addAll

* change to useCache query option which defaults to true

* add documentation

* called query params feature flags and fixed usage

* fixed debug logging

* eslint and prettier fixes

* eslint and prettier fixes

* revert

* Update packages/viewer-sandbox/src/Sandbox.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-23 15:13:24 +01:00
Adam Hathcock 477db6ef02 All BatchedQueues should drain when disposed (also adds query string for output: "debug=true") (#5098)
* ensure disposal is correct

* add tests for disposal of batching queue

* fixes for draining disposal

* Update packages/objectloader2/src/queues/batchingQueue.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix comment

* fix tests and build

* add query string inspection of debug parameter

* Update packages/objectloader2/src/queues/batchingQueue.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update packages/objectloader2/src/core/objectLoader2Factory.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix test

* fix AI

* export getQueryParameter to avoid dup code.  Sandbox uses it too

* add tests for functions

* prettier fix

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-21 12:01:27 +01:00
Adam Hathcock c5967a9616 (OL2) move files around to make more sense (#4950)
* Rename to saveBatch

* forgot a file

* first pass of cacheReader

* OL2 tests have infinite timeout

* OL2 refactor works

* fix for tests

* moved/removed types to make a more logical structure

* fixed imports

* rework loop to be in async generator for the expected count

* get rid of pumps and fix test

* lint fix

* redo mermaid diagrams

* add readme section on deferment

* always return root first

* fix linting

* revert the counting

* merge fixes

* remove unused var
2025-06-26 13:28:50 +01:00