web-ifc-three
web-ifc-three copied to clipboard
Keep instantiated classes intact when using web workers
I've noticed that when using methods such as IfcManager.getPropertySets(modelID, expressID, true), the returned value is serialized and thus the instances of IfcPropertySet, IfcPropertySingleValue and so on ... are lost.
It would be a game changer to keep the data correctly instantiated (when using web workers) and to keep the typing intact. Currently the return type of IfcManager.getPropertySets() is Promise<any[]> but it could maybe then be Promise<IfcPropertySet[]>.
::take
🟢🟢🟢
::take
Hi, @agviegas! Thanks for taking this bounty! The due date is December 18, 2022 UTC.
If you need to submit some pull requests (PR) to complete the tasks, make sure that the last and only the last PR has a title that either starts with the bounty ID or is exactly the same as the bounty name. After the PR is merged, this bounty’s status will automatically changed to done.
If you do not need to make a PR, tell the manager @agviegas to run ::done command after your tasks is confirmed to be done.
Good luck!
::take
::drop
🟢🟢🟢
::drop
Hi, @agviegas! Thanks for giving it a try! It’s now once again available for anyone to take.