libvarun / forge-extensions

Autodesk Forge Viewer Extensions with loose coupling, so that it's easy to plug and play in other projects.
https://forge-extensions.autodesk.io/
4 stars 4 forks source link

requires 3d? #5

Open augustogoncalves opened 4 years ago

augustogoncalves commented 4 years ago

for usability, can we add a config option to only load in 2D, or 3D, or both? for instance, the current Icon Markup works only in 3d...

requires: 2d|3d

not sure if that's a feature or property on the built-in extensions, explode is an example, can you check?

libvarun commented 4 years ago

when developer emits event to load an extension, they pass the viewer instance along with extension id. so they have control over which in which viewer to load the extension. https://github.com/libvarun/StandardExtensions/blob/master/public/js/ForgeViewer.js#L41

Need to add whether the extension works in 3d or 2d or both

augustogoncalves commented 4 years ago

yes, right, just want to disable extensions on the list if not applicable