Browse Source

Изменения от Главреда ГитЖС | Changes of GitJS Glavred

master
Главред | Glavred 3 years ago
parent
commit
98871e84de
2 changed files with 17 additions and 11 deletions
  1. +1
    -1
      0000
  2. +16
    -10
      🎬.js

+ 1
- 1
0000 View File

@@ -1,5 +1,5 @@
Рисователь
0.7.1
0.7.2
https://git.opengamestudio.org/PuCOBATEJlb/PuCOBATEJlb

/base64js.min.js


+ 16
- 10
🎬.js View File

@@ -76,14 +76,21 @@ left: 0;
top: 0;
*/
var размер = мир.масштаб * 100;
//var размер = мир.масштаб * 100;
/*
мир.канва.style = `

max-width: ${размер}%;
max-height: ${размер}%;
width: ${размер}%;
height: ${размер}%;
width: ${ширина};
height: ${высота};
`;
мир.родительКанвы.style = `
position: fixed;
left: 0;
right: 0;
top: 0;
bottom: 0;
overflow: auto;
`;
*/
};


@@ -113,10 +120,9 @@ height: ${размер}%;
мир.текстурщик = new THREE.TextureLoader();
мир.масштаб = 1;
мир.канва = document.createElement("canvas");
var родитель = document.createElement("div");
родитель.appendChild(мир.канва);
родитель.style = "overflow: auto; width: 100%; height: 100%; max-width: 100%; max-height: 100%;";
document.body.prepend(родитель);
мир.родительКанвы = document.createElement("div");
мир.родительКанвы.appendChild(мир.канва);
document.body.prepend(мир.родительКанвы);
мир.рисователь = new THREE.WebGLRenderer({canvas: мир.канва, antialias: true});
};



Loading…
Cancel
Save