Open intrida-dev opened 5 months ago
Can anyone please help us on this?
@intrida-dev Thanks for reporting.
There is an isElectron
function in the companion @probe.gl/env
module that could perhaps be used here to disambiguate: https://github.com/visgl/probe.gl/blob/master/modules/env/src/lib/is-electron.ts
As the maintainers are not electron users we don't actively support that environment, nor can we test that things work, but we do accept small PRs with fixes
We have an application which is built only to run in ElectronJS. We use Xeokit sdk for 3D visualization. Recently we implemented Las/Laz loading capability and found that it doesn't work in ElectronJS App. We get following error:
But we can load the same model with same code when it is viewed in browser. I have attached a video explaining this issue.
https://github.com/visgl/loaders.gl/assets/73640257/aa7d255b-9d36-47ee-9268-37b838cdef0c
We debugged a little and found an issue in canParseWithWorker function. If statement at line number 108996 evaluates to true, when it is from Electron.
Also I have attached a sample code in zip. sample.zip
To Reproduce Steps to reproduce the behavior:
We reported this to Xeokit earlier. They suggested us to report here loaders.gl library to load Las/laz models.