MasatoMakino/threejs-drag-watcher

View on GitHub

Showing 3 of 3 total issues

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

const onDomContentsLoaded = () => {
  // シーンを作成
  const scene = new THREE.Scene();
  const camera = new THREE.PerspectiveCamera(45, W / H, 1, 10000);
  camera.position.set(0, 0, 1000);
Severity: Minor
Found in demoSrc/demo_simple.js - About 1 hr to fix

    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
        Severity
        Category
        Status
        Source
        Language