Commit ae2a0557 authored by Alfakhori's avatar Alfakhori
Browse files

fix version 186

parent 499216b7
Pipeline #12485 passed with stage
in 26 seconds
...@@ -859,8 +859,8 @@ async function activateXR(sceneData = null) { ...@@ -859,8 +859,8 @@ async function activateXR(sceneData = null) {
navigator.geolocation.getCurrentPosition( navigator.geolocation.getCurrentPosition(
(position) => { (position) => {
geoLocation = { geoLocation = {
latitude: roundTo(position.coords.latitude, 5), latitude: window.roundTo(position.coords.latitude, 5),
longitude: roundTo(position.coords.longitude, 5), longitude: window.roundTo(position.coords.longitude, 5),
}; };
console.log("GeoLocation: " + JSON.stringify(geoLocation)); console.log("GeoLocation: " + JSON.stringify(geoLocation));
...@@ -1006,6 +1006,14 @@ function playButtonSound() { ...@@ -1006,6 +1006,14 @@ function playButtonSound() {
} }
} }
window.selectModel = selectModel;
window.updateRotation = updateRotation;
window.updateScale = updateScale;
window.updateMoveDelta = updateMoveDelta;
window.moveModelDynamic = moveModelDynamic;
window.closeDynamicMenu = closeDynamicMenu;
window.roundTo = window.roundTo;
/* ============================================================ /* ============================================================
GLOBAL API BRIDGE GLOBAL API BRIDGE
------------------------------------------------------------ ------------------------------------------------------------
......
...@@ -336,3 +336,4 @@ window.init_map = init_map; ...@@ -336,3 +336,4 @@ window.init_map = init_map;
window.centerOnPlan = centerOnPlan; window.centerOnPlan = centerOnPlan;
window.threeToLeaflet = threeToLeaflet; window.threeToLeaflet = threeToLeaflet;
window.leafletToThree = leafletToThree; window.leafletToThree = leafletToThree;
window.roundTo = roundTo;
...@@ -189,7 +189,7 @@ function showStartScreen() { ...@@ -189,7 +189,7 @@ function showStartScreen() {
predefinedButton2 = null; predefinedButton2 = null;
// Start AR // Start AR
window.activateXR(sceneData); window.window.activateXR(sceneData);
}; };
/* ========================================================== /* ==========================================================
...@@ -197,7 +197,7 @@ function showStartScreen() { ...@@ -197,7 +197,7 @@ function showStartScreen() {
========================================================== */ ========================================================== */
loadButton.onclick = () => { loadButton.onclick = () => {
window.loadSceneFromFile((data, fileName) => { window.window.loadSceneFromFile((data, fileName) => {
if (data && fileName) { if (data && fileName) {
sceneData = data; sceneData = data;
sceneFileName = fileName; sceneFileName = fileName;
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
STANDARDMENÜ STANDARDMENÜ
============================================================ --> ============================================================ -->
<div id="menu-bar"> <div id="menu-bar">
<div <div
...@@ -307,7 +306,7 @@ ...@@ -307,7 +306,7 @@
============================================================ --> ============================================================ -->
<div id="app-version"> <div id="app-version">
v0.1.186 v0.1.4
</div> </div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment