Here are a few examples of extensions based on this skeleton approach:
- Change color: add 3 toolbar buttons to change colors of selected elements on the model.
The extension can comunicate with server to implement more complex features, just like any other JavaScript code. The following samples demonstrate it:
NodeJS
- Share Viewer state: uses websocket to share state between 2+ instances of the Viewer.
.NET
- Custom properties: stores custom properties on a database (AWS DynamoDB) and uses a .NET WebAPI code to serve via REST endpoints.
Next: Deployment