web-ifc-three icon indicating copy to clipboard operation
web-ifc-three copied to clipboard

Keep instantiated classes intact when using web workers

Open ben-girardet opened this issue 3 years ago • 5 comments

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[]>.

ben-girardet avatar Nov 05 '21 12:11 ben-girardet

::take

aka-blackboots avatar Nov 24 '22 11:11 aka-blackboots

🟢🟢🟢

::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!

agviegas avatar Nov 27 '22 17:11 agviegas

::take

agviegas avatar Nov 27 '22 17:11 agviegas

::drop

agviegas avatar Nov 27 '22 17:11 agviegas

🟢🟢🟢

::drop

Hi, @agviegas! Thanks for giving it a try! It’s now once again available for anyone to take.

agviegas avatar Nov 27 '22 17:11 agviegas