├── .gitignore ├── LICENSE ├── README.md ├── css └── main.css ├── img ├── GitHub-Mark-32px.png ├── GitHub-Mark-Light-32px.png └── favicon.ico ├── index.html └── js ├── ForgeTree.js └── ForgeViewer.js /.gitignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Autodesk Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # learn.forge.viewmodels 2 | 3 | # Description 4 | 5 | This sample is part of the [Learn Forge](http://learnforge.autodesk.io) tutorials. 6 | 7 | # Live Demo 8 | 9 | https://autodesk-forge.github.io/learn.forge.viewmodels/ ([Demo Screencast](https://tiny.cc/dbgmmz)) 10 | 11 | ### Languages 12 | 13 | The `master` branch contains the client-side UI: `html`, `js` and `css` files. To download the project for each language, please use: 14 | 15 | - [Nodejs](//github.com/Autodesk-Forge/learn.forge.viewmodels/tree/nodejs) 16 | - [.NET Framework](//github.com/Autodesk-Forge/learn.forge.viewmodels/tree/net) 17 | - [.NET Core](//github.com/Autodesk-Forge/learn.forge.viewmodels/tree/netcore) 18 | - [Go](//github.com/Autodesk-Forge/learn.forge.viewmodels/tree/go) 19 | - [PHP](//github.com/Autodesk-Forge/learn.forge.viewmodels/tree/php) 20 | - [Java](//github.com/Autodesk-Forge/learn.forge.viewmodels/tree/java) 21 | - [Serverless Live Demo](//github.com/Autodesk-Forge/learn.forge.viewmodels/tree/gh-pages) 22 | -------------------------------------------------------------------------------- /css/main.css: -------------------------------------------------------------------------------- 1 | html, body{ 2 | min-height: 100%; 3 | height: 100%; 4 | } 5 | 6 | .fill{ 7 | height: calc(100vh - 100px); 8 | } 9 | 10 | body { 11 | padding-top: 60px; /* space for the top nav bar */ 12 | margin-right: 30px; 13 | } 14 | 15 | #appBuckets { 16 | overflow: auto; 17 | width: 100%; 18 | height: calc(100vh - 150px); 19 | } 20 | 21 | #forgeViewer { 22 | width: 100%; 23 | } 24 | -------------------------------------------------------------------------------- /img/GitHub-Mark-32px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Autodesk-Forge/learn.forge.viewmodels/98d22f5ab1d90088344993d4ff88d6ba2be5784c/img/GitHub-Mark-32px.png -------------------------------------------------------------------------------- /img/GitHub-Mark-Light-32px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Autodesk-Forge/learn.forge.viewmodels/98d22f5ab1d90088344993d4ff88d6ba2be5784c/img/GitHub-Mark-Light-32px.png -------------------------------------------------------------------------------- /img/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Autodesk-Forge/learn.forge.viewmodels/98d22f5ab1d90088344993d4ff88d6ba2be5784c/img/favicon.ico -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
5 |