forked from apprentice3d/ForgeViewerExtensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
translateExt.html
34 lines (28 loc) · 1.25 KB
/
translateExt.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Forge-Extensions-Example</title>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=no"/>
<meta charset="UTF-8">
<!-- Autodesk Forge Viewer files -->
<link rel="stylesheet" href="https://developer.api.autodesk.com/modelderivative/v2/viewers/7.*/style.min.css" type="text/css">
<script src="https://developer.api.autodesk.com/modelderivative/v2/viewers/7.*/viewer3D.min.js"></script>
<!-- Developer CSS -->
<link rel="stylesheet" href="./assets/css/main.css"/>
<!-- Developer JS -->
<script src="./assets/js/extensions/gridExt.js"></script>
<script src="./assets/js/extensions/TransformTool.js"></script>
<script src="./assets/js/app.js"></script>
</head>
<body>
<div id="MyViewerDiv"></div>
</body>
<script>
let divId = "MyViewerDiv";
let documentId = "urn:dXJuOmFkc2sub2JqZWN0czpvcy5vYmplY3Q6amNpX2RlbW8vYXNzZW1ibHkuemlw";
let tokenFetchingUrl = "https://23x7d70l12.execute-api.ca-central-1.amazonaws.com/dev";
let extensionArray = ['Autodesk.ADN.Viewing.Extension.TransformTool', 'GridExtension'];
setupViewer(divId, documentId, tokenFetchingUrl, extensionArray);
</script>
</html>