diff --git a/0000 b/0000 index 28d2ee2..32433d5 100644 --- a/0000 +++ b/0000 @@ -1,5 +1,5 @@ Рисователь -0.7.1 +0.7.2 https://git.opengamestudio.org/PuCOBATEJlb/PuCOBATEJlb /base64js.min.js diff --git a/🎬.js b/🎬.js index d9142a1..599ea1f 100644 --- a/🎬.js +++ b/🎬.js @@ -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}); };