Giter Club home page Giter Club logo

Comments (2)

willeastcott avatar willeastcott commented on June 2, 2024

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:

  1. Load root tileset JSON.
  2. Expand the root node.
  3. This essentially adds the root to this.expandedNodes.
  4. On the next call to update all children (there's 1) are iterated. If it's in range (which it is), it's expanded.
  5. Go to 4 (and continue down the hierarchy).

Frankly, it's written for simplicity, not efficiency. 😉

from earthatile.

Pryme8 avatar Pryme8 commented on June 2, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.