简体   繁体   中英

How to rewrite Headless Autodesk Forge Viewer in ES6

I'm trying to write the ES6 version of the Headless Forge Viewer implemented in this link: https://forge.autodesk.com/en/docs/viewer/v2/tutorials/headless/

I've installed the npm package for the Forge Viewer, and I succeed to do most of the code till I reached these two lines:

var modelNodes = viewerApp.bubble.search(av.BubbleNode.MODEL_NODE); // 3D designs
        var sheetNodes = viewerApp.bubble.search(av.BubbleNode.SHEET_NODE); // 2D designs

I don't know how to define the "av" in Typescript.

Can anyone help please?

我只是想出了答案,只是将AV替换为Autodesk.Viewing,一切都变得很吸引人:)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM