angularjsplumb

jsPlumbBrowserUI.getInstance is not a function


I'm trying to setup @jsplumb/browser-ui in my angular project as per the documentation https://docs.jsplumbtoolkit.com/community/ . But, i'm not able to access the getInstance method.

import * as jsPlumbBrowserUI from '@jsplumb/browser-ui';

const instance = jsPlumbBrowserUI.getInstance({
      container: this.wrapper
  })

How do i integrate this in angular?


Solution

  • There is no getInstance function, you might use newInstance:

    const instance = jsPlumbBrowserUI.newInstance({
          container: this.wrapper
      })