我使用的是免费提供的代码 tensorspace.min.js
,可以在这里找到:https://github.com/tensorspace-team/tensorspace/blob/master/dist/tensorspace.min.js
我收到的错误消息是:
Uncaught (in promise) TypeError: e.Geometry is not a constructor
我该如何修复这种错误?
这是有关错误消息的简短代码片段:
createGroupGeometry:function(A,t){let i=new e.Geometry({transparent:!0,opacity:this.minOpacity});return i.colors=t,i.vertices=A,i.colorsNeedUpdate=!0,i.verticesNeedUpdate=!0,i}},yt.prototype=Object.assign(Object.create(hA.prototype),{addLineGroup:function(){this.lineGroupHandler=new St(this,this.context,this.neuralGroup,this.color,this.minOpacity)},init:function(A,t){},assemble:function(A,t){},updateValue:function(A){},clear:function(){},handleClick:function(A){},handleHoverIn:function(A){},handleHoverOut:function(){},loadModelConfig:function(A){},calcCloseButtonSize:function(){return 1},calcCloseButtonPos:function(){return{x:0,y:0,z:0}},getRelativeElements:function(A){return{straight:[],curve:[]}},