How to use the type.AppFileLink.get function in type

To help you get started, we’ve selected a few type examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github basisjs / basisjs / src / devpanel / view / file-graph / view / graph / index.js View on Github external
(function popNode(){
    if (links.length)
    {
      var link;
      while (link = links.shift())
      {
        var fileLink = FileLink.get({
          from: link[0],
          to: link[1]
        });
        if (fileLink)
        {
          graph.addLink.apply(graph, link);
          break;
        }
      }
    }
    setTimeout(popNode, speedSlider.value);
  })();
})();