Comments (2)
Oh hi @Pryme8 - I remember you from the forums. 👋
So, initially, in the start function, expandNode
is called, but looking at the code, I think it's sufficient to simply add the root to this.expandedNodes
. But it should be the same outcome.
The initial sequence is something like:
- Load root tileset JSON.
- Expand the root node.
- This essentially adds the root to
this.expandedNodes
. - On the next call to
update
all children (there's 1) are iterated. If it's in range (which it is), it's expanded. - Go to 4 (and continue down the hierarchy).
Frankly, it's written for simplicity, not efficiency. 😉
from earthatile.
Its been a while surprised you remember me ;)!
After looking at it, I realized its the update method kind of handles everything after the node.children is set to json.root.
So your answer is spot on, thank you!
Looks like it does that cycle twice before it gets access to the glbs, but if that works then ill run with it.
Going to test this now, but just after your input it seems that is what's happening for sure.
Appreciate the quick response <3.
from earthatile.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from earthatile.