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qFiM/nc7lcAAChUBgVFRV2cwLnzfPz8+Hh4T/ctWURs0eXSwAAAABJRU5ErkJggg=="; |
|
|
|
|
|
|
|
|
|
|
|
// // // // |
|
|
|
|
|
|
|
|
|
|
|
ПовернутьИзображение = мир => |
|
|
|
{ |
|
|
|
изо.style.transform = `rotateX(${мир.x}deg) rotateY(${мир.y}deg) rotateZ(${мир.z}deg)`; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
// // // // |
|
|
|
|
|
|
|
|
|
|
|
ВывестиУголПоворота = мир => |
|
|
|
{ |
|
|
|
console.debug("угол", мир.x, мир.y, мир.z); |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
// // // // |
|
|
|
|
|
|
|
|
|
|
|
ОтслеживатьИзменениеУгла = мир => |
|
|
|
{ |
|
|
|
var x = document.getElementById("x"); |
|
|
|
x.oninput = function() { |
|
|
|
мир.x = x.value; |
|
|
|
мир.уведомить("изменили угол"); |
|
|
|
} |
|
|
|
var y = document.getElementById("y"); |
|
|
|
y.oninput = function() { |
|
|
|
мир.y = y.value; |
|
|
|
мир.уведомить("изменили угол"); |
|
|
|
} |
|
|
|
var z = document.getElementById("z"); |
|
|
|
z.oninput = function() { |
|
|
|
мир.z = z.value; |
|
|
|
мир.уведомить("изменили угол"); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
// // // // |
|
|
|
|
|
|
|
|
|
|
|
ПодготовитьИнтерфейс = мир => |
|
|
|
{ |
|
|
@@ -12,6 +55,10 @@ const b64 = "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAABhWlDQ1BJQ0MgcHJvZml |
|
|
|
var стиль = document.createElement("style"); |
|
|
|
document.head.appendChild(стиль); |
|
|
|
стиль.innerHTML = вид; |
|
|
|
|
|
|
|
мир.x = 0; |
|
|
|
мир.y = 0; |
|
|
|
мир.z = 0; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|