CIDARLAB / 3DuF

Assignment to imported bindings JS-0035
Bug risk
Major
21 occurrences in this check
The members of 'Registry' are read-only
 787        this.updateGrid();
 788        this.updateDevice(Registry.currentDevice);
 789        this.refresh(true);
 790        Registry.currentLayer = Registry.currentDevice.layers[0]; 791        this.layerToolBar.setActiveLayer("0");
 792        Registry.viewManager.updateActiveLayer();
 793    }
The members of 'Registry' are read-only
 775        //Common Code for rendering stuff
 776        // console.log("Feature Layers", Registry.currentDevice.layers);
 777        Registry.currentLayer = Registry.currentDevice.layers[0];
 778        Registry.currentTextLayer = Registry.currentDevice.textLayers[0]; 779
 780        //TODO: Need to replace the need for this function, right now without this, the active layer system gets broken
 781        Registry.viewManager.addDevice(Registry.currentDevice);
The members of 'Registry' are read-only
 774        }
 775        //Common Code for rendering stuff
 776        // console.log("Feature Layers", Registry.currentDevice.layers);
 777        Registry.currentLayer = Registry.currentDevice.layers[0]; 778        Registry.currentTextLayer = Registry.currentDevice.textLayers[0];
 779
 780        //TODO: Need to replace the need for this function, right now without this, the active layer system gets broken
The members of 'Registry' are read-only
 765                case 1.2:
 766                    this.loadCustomComponents(json);
 767                    device = Device.fromInterchangeV1_2(json);
 768                    Registry.currentDevice = device; 769                    this.__currentDevice = device;
 770                    break;
 771                default:
The members of 'Registry' are read-only
 759                case 1.1:
 760                    this.loadCustomComponents(json);
 761                    device = Device.fromInterchangeV1_1(json);
 762                    Registry.currentDevice = device; 763                    this.__currentDevice = device;
 764                    break;
 765                case 1.2:
The members of 'Registry' are read-only
 753                case 1:
 754                    this.loadCustomComponents(json);
 755                    device = Device.fromInterchangeV1(json);
 756                    Registry.currentDevice = device; 757                    this.__currentDevice = device;
 758                    break;
 759                case 1.1:
The members of 'Registry' are read-only
 745        if (null === version || undefined === version) {
 746            console.log("Loading Legacy Format...");
 747            device = Device.fromJSON(json);
 748            Registry.currentDevice = device; 749            this.__currentDevice = device;
 750        } else {
 751            console.log("Version Number: " + version);
The members of 'Registry' are read-only
  65        this.view = new PaperView("c", this);
  66
  67        this.__grid = new AdaptiveGrid(this);
  68        Registry.currentGrid = this.__grid;  69
  70        this.tools = {};
  71        this.rightMouseTool = new SelectTool();
The members of 'Registry' are read-only
 56        for (let i = 0; i < controlButtons.length; i++) {
 57            let controlButton = controlButtons[i];
 58            controlButton.onclick = function(event) {
 59                Registry.currentLayer = Registry.currentDevice.layers[controlButton.dataset.layerindex]; 60                ref.setActiveLayer(controlButton.dataset.layerindex);
 61                Registry.viewManager.updateActiveLayer();
 62            };
The members of 'Registry' are read-only
177
178        this.__generateUI();
179
180        Registry.currentLayer = Registry.currentDevice.layers[0];181        this.setActiveLayer("0");
182        Registry.viewManager.updateActiveLayer();
183    }
The members of 'Registry' are read-only
 47        for (let i = 0; i < flowButtons.length; i++) {
 48            let flowButton = flowButtons[i];
 49            flowButton.onclick = function(event) {
 50                Registry.currentLayer = Registry.currentDevice.layers[flowButton.dataset.layerindex]; 51                ref.setActiveLayer(flowButton.dataset.layerindex);
 52                Registry.viewManager.updateActiveLayer();
 53            };
The members of 'Registry' are read-only
17        let ref = this;
18        this.__acceptTextButton.onclick = function() {
19            Registry.viewManager.activateTool("InsertTextTool");
20            Registry.text = document.getElementById("inserttext_textinput").value;21            ref.__dialog.close();
22        };
23
The members of 'THREE' are read-only
  8 * @author mrdoob / http://mrdoob.com/
  9
 10 */
 11THREE.STLExporter = function() {}; 12
 13THREE.STLExporter.prototype = {
 14    constructor: THREE.STLExporter,
The members of 'Registry' are read-only
585        this.updateGrid();
586        this.updateDevice(Registry.currentDevice);
587        this.refresh(true);
588        Registry.currentLayer = Registry.currentDevice.layers[0];589        // this.layerToolBar.setActiveLayer("0");
590        Registry.viewManager.updateActiveLayer();
591    }
The members of 'Registry' are read-only
576        }
577        //Common Code for rendering stuff
578        Registry.currentLayer = Registry.currentDevice.layers[0];
579        Registry.currentTextLayer = Registry.currentDevice.textLa;580
581        //TODO: Need to replace the need for this function, right now without this, the active layer system gets broken
582        Registry.viewManager.addDevice(Registry.currentDevice);
The members of 'Registry' are read-only
575            }
576        }
577        //Common Code for rendering stuff
578        Registry.currentLayer = Registry.currentDevice.layers[0];579        Registry.currentTextLayer = Registry.currentDevice.textLa;
580
581        //TODO: Need to replace the need for this function, right now without this, the active layer system gets broken
The members of 'Registry' are read-only
566            switch (version) {
567            case 1:
568                device = Device.fromInterchangeV1(json);
569                Registry.currentDevice = device;570                this.__currentDevice = device;
571
572                break;
The members of 'Registry' are read-only
559        if (null === version || undefined === version) {
560            console.log("Loading Legacy Format...");
561            device = Device.fromJSON(json);
562            Registry.currentDevice = device;563            this.__currentDevice = device;
564        } else {
565            console.log("Version Number: " + version);
The members of 'Registry' are read-only
 25        this.view = new PaperView("c", this);
 26
 27        this.__grid = new AdaptiveGrid(this);
 28        Registry.currentGrid = this.__grid; 29
 30        // this.tools = {};
 31        // this.rightMouseTool = new SelectTool();
The members of 'Registry' are read-only
20        let set = sets[key];
21
22        let newSet = new FeatureSet(set.definitions, set.tools, set.render2D, set.render3D, name);
23        Registry.featureSet = newSet;24        registeredFeatureSets[key] = newSet;
25        Registry.featureDefaults[key] = newSet.getDefaults();
26    }
The members of 'Registry' are read-only
 56            viewManager = TrackJS.watchAll(viewManager);
 57        }
 58
 59        Registry.viewManager = viewManager; 60
 61        viewManager.loadDeviceFromJSON(JSON.parse(Examples.example2));
 62        viewManager.updateGrid();