icn3d 3.28.5 → 3.28.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -52,7 +52,7 @@ Usage
52
52
  import * as icn3d from 'icn3d/module'
53
53
  import "../node_modules/icn3d/css/icn3d.css"
54
54
 
55
- function Icn3dViewer() {
55
+ async function Icn3dViewer() {
56
56
  useEffect(() => {
57
57
  const cfg = {
58
58
  divid: 'viewer',
@@ -60,7 +60,7 @@ Usage
60
60
  };
61
61
  cfg['mmdbid'] = '1tup';
62
62
  const icn3dui = new icn3d.iCn3DUI(cfg);
63
- icn3dui.show3DStructure();
63
+ await icn3dui.show3DStructure();
64
64
  }, []);
65
65
  return <div id="viewer"></div>;
66
66
  }
@@ -73,5 +73,5 @@ Usage
73
73
 
74
74
  var cfg = {'mmdbid': '1tup'};
75
75
  var icn3dui = new icn3d.iCn3DUI(cfg);
76
- icn3dui.show3DStructure();
76
+ await icn3dui.show3DStructure();
77
77