diff --git a/system/VRoutes/downloadScene.js b/system/VRoutes/downloadScene.js
index 942952e..671a184 100644
--- a/system/VRoutes/downloadScene.js
+++ b/system/VRoutes/downloadScene.js
@@ -2,10 +2,10 @@
let sceneHtml = `\n\n\n`;
// sceneObjectsを利用して各オブジェクトのHTMLを構築
-for (let id in sceneObjects) {
- let obj = sceneObjects[id];
- sceneHtml += ``;
-}
+ for (let id in sceneObjects) {
+ let obj = sceneObjects[id];
+ sceneHtml += ``;
+ }
sceneHtml += '\n';
@@ -40,14 +40,14 @@
function encodeImageFileAsURL(element) {
var file = element.files[0];
var reader = new FileReader();
- reader.onloadend = function() {
+ reader.onloadend = function () {
// エンコードされた画像データをグローバル変数に保存
window.encodedImage = reader.result;
}
reader.readAsDataURL(file);
}
-document.getElementById('backgroundInput').addEventListener('change', function() {
+document.getElementById('backgroundInput').addEventListener('change', function () {
encodeImageFileAsURL(this);
});
diff --git a/system/VRoutes/main.html b/system/VRoutes/main.html
index eb30172..3325974 100644
--- a/system/VRoutes/main.html
+++ b/system/VRoutes/main.html
@@ -1,5 +1,6 @@
+
VRoutes | WebVR作成システム
@@ -41,7 +42,7 @@
-
+
@@ -66,4 +67,5 @@
+
\ No newline at end of file
diff --git a/system/VRoutes/main.js b/system/VRoutes/main.js
index 499251a..de2cbab 100644
--- a/system/VRoutes/main.js
+++ b/system/VRoutes/main.js
@@ -49,7 +49,7 @@
objectEl.setAttribute('id', objectId);
sceneEl.appendChild(objectEl);
- originalPositions[objectId] = {...objectPosition};
+ originalPositions[objectId] = { ...objectPosition };
originalRotations[objectId] = { x: 0, y: 0, z: 0 };
initialPositions[objectId] = objectPosition;
@@ -120,10 +120,10 @@
});
document.getElementById(`color-${objectId}`).addEventListener('input', (e) => {
-const objectEl = document.getElementById(objectId);
-objectEl.setAttribute('material', 'color', e.target.value);
-sceneObjects[objectId].color = e.target.value; // 更新
-});
+ const objectEl = document.getElementById(objectId);
+ objectEl.setAttribute('material', 'color', e.target.value);
+ sceneObjects[objectId].color = e.target.value; // 更新
+ });
}
function moveObject(objectId, axis, value) {
@@ -163,8 +163,8 @@
document.getElementById(`rotate-z-${objectId}`).value = originalRotation.z;
// sceneObjectsにリセットされた位置と回転を反映
- sceneObjects[objectId].position = {...originalPosition};
- sceneObjects[objectId].rotation = {...originalRotation};
+ sceneObjects[objectId].position = { ...originalPosition };
+ sceneObjects[objectId].rotation = { ...originalRotation };
}