Home > other >  jsPlumbBrowserUI.getInstance is not a function
jsPlumbBrowserUI.getInstance is not a function

Time:09-25

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?

CodePudding user response:

There is no getInstance function, you might use newInstance:

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