viewer-react-express-headless | Headless viewer : Creates a custom Viewer GUI using react | Frontend Framework library
kandi X-RAY | viewer-react-express-headless Summary
kandi X-RAY | viewer-react-express-headless Summary
Using Forge Viewer, you have the option of a Headless one, the option to add your own logo and get rid of extension that interact with the viewer is possible. I created a demonstration of this scenario using React on the Front End, Redux to handle states for Properties metadata access and NodeJS (Express) together with React-Scripts to handle the authentication and access to the use of the Forge services. The available Extensions once in Full Screen mode are.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Returns model data
- Reload model state
- Loads a document .
- Launch viewer .
- Expansion animation .
- Rotates the move move .
- toggle the expansion
- Retrieve access token .
- Toggle a rotation .
- Triggered when scene node is loaded .
viewer-react-express-headless Key Features
viewer-react-express-headless Examples and Code Snippets
Community Discussions
Trending Discussions on viewer-react-express-headless
QUESTION
I used https://github.com/Autodesk-Forge/viewer-react-express-headless as a starting point for my Forge React application and I modified viewer = new Autodesk.Viewing.Viewer3D(viewerElement, {});
to viewer = new Autodesk.Viewing.Private.GuiViewer3D(viewerElement, {});
to change it back from a headless to a classic viewer.
I can load my model but it appears without edges and when I go to Settings -> Performance -> Display edges
it is off by default, and when I try to set it back the edges stay invisible.
When I try the same operation with the same model loaded on Autodesk Viewer it works as expected and I can toggle the visibility of the edges.
From the Autodesk Viewer
I found another seemingly related question on stackoverflow, but I tried viewer.js?v=v4.2
, viewer.js?v=v5.0
and viewer.js?v=v6.3.1
and I still have the invisible edges issue.
I also posted a Github Issue
Thank you for your help.
Alexis
...ANSWER
Answered 2019-Feb-28 at 21:49ok, if you are creating the viewer instance via Autodesk.Viewing.Private.GuiViewer3D directly, rather than the Autodesk.Viewing.ViewingApplication, then there is a magic configuration parameter that you will need to apply when initializing the Forge viewer, so that the lines will appear...
To fix it, an extra option
isAEC: true
must be passed into the
modelOptions in your code, see below:
QUESTION
I forked my own viewer-react-express-headless (https://github.com/Autodesk-Forge/viewer-react-express-headless) and edited the credentials.js and Deployed to Heroku.
Here is my result: https://limitless-wave-headless.herokuapp.com/
It doesnt seem like it's quite working. Neither of the models loads. I did try to change the URN for one of the six existing models here: https://github.com/Autodesk-Forge/viewer-react-express-headless/blob/master/src/components/Gallery/Gallery.js - but none of them still loads. What could be the problems?
Kind regards.
...ANSWER
Answered 2017-Jul-31 at 10:20It seems like Heroku can not generate CLIENT_ID
with default config "generator": "public"
.
I switched key value
from "value": "secret"
to "value": "client"
- now my model loads.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install viewer-react-express-headless
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page