Comments (3)
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.
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.
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.
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)
- about login
- MongoDB Files have invalid JSON HOT 1
- Forge Viewer 7.73, selected objects are not highlighted and selection event does not deliver the selected object id
- Demo internal server error
- Issue to load model.
- Error when building the project HOT 1
- Forge Tutorial help needed, unexpected error 'The value -1 is outside the acceptable range of [0,2147483647], parameter name: value'
- PointCloudMarkup not working in Google chrome. HOT 1
- mplementing the forge-rcdb.nodejs —> Viewing.Extension.IoT in main script HOT 1
- Why are model files missing? How to solve this problem? HOT 1
- question about mongobd and Promise Promise when start HOT 3
- [Question] Should this work on mobile devices? HOT 2
- The source links from the "gallery" page are broken HOT 3
- Live demo does not work HOT 2
- Help in Setup?
- Markup2D demo not restoring markups properly
- Cannot import json files into mongodb (Autodesk-Forge/forge-rcdb.nodejs) HOT 2
- Errors when running npm run dev HOT 3
- Implement promise cancellation
- markup editor issues
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 forge-rcdb.nodejs.