Pål Thingbø
Pål Thingbø
In your example, `return mesh` returns `undefined`, because the callback function will run after you return. Most loaders can also be used synchronously, as in: ```javascript var mat = new...
I was wrong about the STLoader, it doesn't support synchronous loading. Your only option is to load your geometries, for example into an array, before the graph is painted and...
The nodeThreeObject() function doesn't accept promises, it expects a three.js object. I thought most loaders also worked synchronously: ```javascript function nodePainting(node) { var loader = new THREE.STLLoader(); var mesh ;...
Under closer inspection, the [STLoader](https://github.com/mrdoob/three.js/blob/4a8b92d5b14413ac9c1a30aaf9e7cf9ca79f136d/examples/js/loaders/STLLoader.js#L63) does not support synchronous loading. Loaders that support synchronous loading are listed [here](https://github.com/mrdoob/three.js/tree/c7d459abda3e77489d9f229cd19efe33c2355e41/src/loaders). Your only option is to load your geometries before you load the...
You don't need to do anything. The DOM only contains a canvas (which you remove), and the rest of graph stuff is in JS memory.
Just a note to this. When you set background-color with `myGraph.backgroundColor`, the screen might flicker on startup due to React state updates. The way around this is to set the...
If you're using Docker, add to top of dockerfile: ``` ENV PUPPETEER_SKIP_DOWNLOAD=true ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true ``` Then ``` RUN echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/google.asc] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list RUN apt-get update...
https://gist.github.com/boostpaal/e8a03abdbd3c40ea8b633ec7b2b83873
Network passthrough works but it's not a viable option for security reasons. I seems like Compose's native DNS server is the root of the problem. There might be a missing...
The issue can be resolved with a workaround. Changing the DNS server in Compose is not enough: ```yaml version: '2.3' services: apiconbug: restart: always image: apiconbug tty: true working_dir: /home/alpine/apiconbug...