How to use the trackjs.TrackJS.watchAll function in trackjs

To help you get started, we’ve selected a few trackjs 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 CIDARLAB / 3DuF / src / app / appSetup.js View on Github external
if(checkBrowCompatibility()){
        viewManager = new ViewManager();


        console.log("Checking Host: ");
        console.log(window.location.host);

        if(window.location.host === "3duf.org"){
            console.log("Enabling TrackJS");
            TrackJS.install({
                token: "1f4d3a9c263e4e3fb2fe4c7f96f8808e"
            });

            viewManager = TrackJS.watchAll(viewManager);
        }


        Registry.viewManager = viewManager;

        viewManager.loadDeviceFromJSON(JSON.parse(Examples.example2));
        viewManager.updateGrid();
        Registry.currentDevice.updateView();

        window.dev = Registry.currentDevice;
        window.Registry = Registry;

        window.view = Registry.viewManager.view;

        // Registry.threeRenderer = new ThreeDeviceRenderer(document.getElementById("renderContainer"));

trackjs

TrackJS JavaScript error tracking agent.

SEE LICENSE IN LICENSE.md
Latest version published 1 year ago

Package Health Score

54 / 100
Full package analysis