**.CustomToolĪ basic viewer tool that just dumps events in the console, useful for testing and debugging or using as a tool boilerplate.Illustrates how to customize the viewer context menu for zero-selection menu or item specific menu. When a pie is selected in the chart, isolates the specific components. **.BoundingBoxĭisplays a bounding box around the selected component.ĭisplays a PieChart and a dropdown menu listing all available model properties.Needs transpiling with a tool like Babel or Traceur before being used with the viewer. **.BasicES2015Ī Hello World extension but written using ES6/ES2015 syntax.Here is a quick description of what each extension is doing:Ī basic Hello World extension that displays an alert dialog upon loading and unloading. In these cases, the loadExtension method is prefered. Please refer to this blog post for detail.ĭepending on the extension, some additional parameters may be required to properly load it. To clone it via command line, use the following ( Terminal on MacOSX/Linux, Git Shell on Windows): It's recommended to install GitHub desktop. The extensions on this sample were written with ES6 sytanx, so it needs transpiling before it can be used.Ĭlone this project or download it. The path of dependencies needs to be modified accordingly to your setup. Dependencies need to be loaded before loading theĮxtension, using a simple script tag in your html or dynamically using require or equivalent. Some extensions are dependent on specific files which are placed in the same directory. DescriptionĪ collection of various JavaScript extensions for the viewer, showing what is doable with the client-side JavaScript API. This repo is no longer maintained, most of the extensions are still valid however use them at your own risk.įor a more up-to-date set of Forge Viewer extensions take a look there: Library-javascript-viewer-extensions Deprecation Warning
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |