diff --git a/0000 b/0000 index 61d10a4..1df2cbf 100644 --- a/0000 +++ b/0000 @@ -1,5 +1,5 @@ Рисователь -0.7.4 +0.7.5 https://git.opengamestudio.org/PuCOBATEJlb/PuCOBATEJlb /base64js.min.js diff --git a/🎬.js b/🎬.js index 687b96b..0b140db 100644 --- a/🎬.js +++ b/🎬.js @@ -71,14 +71,10 @@ мир.рисователь.setSize(ширина, высота); var размер = мир.масштаб * 100; - -/* + мир.канва.style = ` position: absolute; left: 0; top: 0; -*/ - - мир.канва.style = ` max-width: ${размер}%; max-height: ${размер}%; width: ${размер}%; @@ -113,16 +109,7 @@ height: ${размер}%; мир.текстурщик = new THREE.TextureLoader(); мир.масштаб = 1; мир.канва = document.createElement("canvas"); - мир.родительКанвы = document.createElement("div"); - мир.родительКанвы.style = ` -left: 0; -right: 0; -top: 0; -bottom: 0; -overflow: auto; - `; - мир.родительКанвы.appendChild(мир.канва); - document.body.prepend(мир.родительКанвы); + document.body.prepend(мир.канва); мир.рисователь = new THREE.WebGLRenderer({canvas: мир.канва, antialias: true}); };