Interact with external graphic JS library

I’m building a way finding application using 3D Wayfinder, so far i’m able to import the map and display it on the ionic page by including the JS libraries on the index.html
of the project.

  <script src="//"></script>
  <script src="//"></script>
  <script src=""></script>
  <script src=""></script>
  var wayfinder;
    $(function(){ //Make sure that the page is loaded.
      wayfinder = new Wayfinder3D();
      wayfinder.options.assetsLocation = '//';"demo");

and adding a canvas on the page html.

<canvas id="map" height="410"></canvas>

But a can’t interact with the library by itself, in order to catch the map click eventes

I took a read at this threads

but nothing seems to work.