MasatoMakino/threejs-drag-watcher

View on GitHub
demoSrc/demo_viewports.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function constructor has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  constructor(renderer, x, y, width, height, mesh, bgColor) {
    this.viewPort = new THREE.Vector4(x, y, width, height);
    this.mesh = mesh;

    this.scene = new THREE.Scene();
Severity: Minor
Found in demoSrc/demo_viewports.js - About 1 hr to fix

    Function onDomContentsLoaded has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const onDomContentsLoaded = () => {
      const canvas = document.getElementById("webgl-canvas");
      const renderOption = {
        canvas,
      };
    Severity: Minor
    Found in demoSrc/demo_viewports.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status