繁体   English   中英

autodesk forge viewer.js从6.5.1更新为6.6或7.1,二维超链接承诺异常

[英]autodesk forge viewer.js update from 6.5.1 to 6.6 or 7.1, 2d hyperlink promise exception

将视图从3d更改为2d。
在6.5.1中
viewer.load(document.getViewablePath(Views2D));
没有例外
在6.6中
viewer.load(document.getViewablePath(Views2D));
// Chrome控制台中的Promise异常
在7.1中
viewer.loadModel(document.getViewablePath(Views2D),{});
// Chrome控制台中的Promise异常



    Uncaught (in promise) 
    {instanceTree: null, maxTreeDepth: 0, err: undefined}
    Promise.then (async)        
    loadHyperlinks  @   HyperlinkTool.js:323
    activate    @   HyperlinkTool.js:123
    activateTool    @   ToolController.js:265
    f.load  @   Hyperlink.js:42
    loadExtensionLocal  @   ExtensionManager.js:270
    loadExtension   @   ExtensionManager.js:213
    (anonymous) @   ExtensionManager.js:312
    o.onload    @   globals.js:183
    load (async)        
    u   @   globals.js:185
    (anonymous) @   ExtensionManager.js:310
    loadExtensionAsync  @   ExtensionManager.js:309
    loadExtension   @   ExtensionManager.js:205
    (anonymous) @   GuiViewer3D.js:412
    setTimeout (async)      
    D.createUI  @   GuiViewer3D.js:406
    (anonymous) @   GuiViewer3D.js:300
    (anonymous) @   GuiViewer3D.js:288
    setTimeout (async)      
    (anonymous) @   GuiViewer3D.js:316
    (anonymous) @   Viewer3D.js:1228
    (anonymous) @   F2DLoader.js:420

工程仍然需要时间来解决此问题。

在等待其修复的同时,我们可以通过在加载选项中禁用hyperlink扩展名来解决此问题:

new Autodesk.Viewing.Private.GuiViewer3D(...),{disabledExtensions:{hyperlink:true}}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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