Showing 3 of 3 total issues
Function onDomContentsLoaded
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const onDomContentsLoaded = () => {
// シーンを作成
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(45, W / H, 1, 10000);
camera.position.set(0, 0, 1000);
Function constructor
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
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();
Function onDomContentsLoaded
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const onDomContentsLoaded = () => {
const canvas = document.getElementById("webgl-canvas");
const renderOption = {
canvas,
};