GithubHelp home page GithubHelp logo

Comments (3)

leefsmp avatar leefsmp commented on June 17, 2024

I'm not sure why this happens... try to clear the storage entry and check that the default values are being used, those are defined there.

from forge-rcdb.nodejs.

orbjeff avatar orbjeff commented on June 17, 2024

Yeah I can't pin this one down either. It seems like it would start here:

\store\app.js line 204
const storage = storageSvc.load( 'AppState.storage', defaultAppState)

And when the item is pulled back out here:
StorageSvc.js line 57

` load (key, defaultValue = {}) {

const storageKey = this.getStoragekey(key)

const item = Lockr.get(storageKey) || defaultValue

if (item.storageVersion) {

  if (this.currentStorageVersion > item.storageVersion) {
    return defaultValue
  }
    
  return item.__array || item
}

return defaultValue

}`

It no longer has the lightPreset property. The defaultValue that's passed in has the lightPreset property so yes if there is no "AppState.storage" item in the collection it should be ok. I think that's what you mean when you say to clear the storage entry.
storage_value

Just testing for undefined as I mentioned above is working for me so this was more of a heads up to anyone else who may be trying to get the viewer to load but only see the dots animating.

I ended up using this code in the Viewer.Configurator.js file:
` if (viewerTheme.lightPreset) {

    viewer.setLightPreset(viewerTheme.lightPreset)
  } else {

    viewer.setLightPreset(Autodesk.Viewing.Private.LightPresets.length - 1)
  }`

from forge-rcdb.nodejs.

leefsmp avatar leefsmp commented on June 17, 2024

I tested on Win 10 with Chrome 64 and cannot reproduce it, so I will close it for the time being. Feel free to add further comments if needed.

from forge-rcdb.nodejs.

Related Issues (20)

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.