Skip to content

Expose GUID mapping through web worker#199

Open
wuluogjm-lgtm wants to merge 1 commit into
ThatOpen:mainfrom
wuluogjm-lgtm:add-worker-guid-mapping
Open

Expose GUID mapping through web worker#199
wuluogjm-lgtm wants to merge 1 commit into
ThatOpen:mainfrom
wuluogjm-lgtm:add-worker-guid-mapping

Conversation

@wuluogjm-lgtm
Copy link
Copy Markdown

Summary

Adds worker support for CreateIfcGuidToExpressIdMapping(modelID) so consumers using the WebWorker-backed API can build GUID-to-expressID mappings the same way they can when calling web-ifc directly.

Changes

  • Adds CreateIfcGuidToExpressIdMapping to the shared WebIfcAPI interface.
  • Adds a matching WorkerActions entry and WebIfcWorkerAPI handler contract.
  • Forwards the call through WebIfcHandler to the worker.
  • Executes the call inside WebIfcWorker and posts the resulting map back.
  • Adds a small unit test covering the worker handler forwarding behavior.

Verification

  • npm.cmd test -- --runInBand test/IFC/WebWorkers/WebIfcHandler.test.ts could not run because this source archive does not include installed dependencies and jest is not available locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant