Commit 6188329e authored by Rurik Bugdanov's avatar Rurik Bugdanov

x3dom_init.js

- remove backquotes incompatibles with minification
parent b6453ceb
...@@ -435,24 +435,24 @@ X3DOMObject.prototype.createMarker = function(x,y,z,id){ ...@@ -435,24 +435,24 @@ X3DOMObject.prototype.createMarker = function(x,y,z,id){
size = self.data.markers[index].size/2; size = self.data.markers[index].size/2;
} }
var html = ` var html = [
<group id='`+id+`' class='`+sph_class+`'> '<group id="'+id+'" class="'+sph_class+'">',
<switch whichChoice='0'> ' <switch whichChoice="0">',
<transform translation='`+x+` `+y+` `+z+`' rotation='0 0 0 0'> ' <transform translation="'+x+' '+y+' '+z+'" rotation="0 0 0 0">',
<shape class='shapemarker'> ' <shape class="shapemarker">',
<appearance> ' <appearance>',
<material diffuseColor='`+color+`' transparency='0.0' myColor='`+color+`'></material> ' <material diffuseColor="'+color+'" transparency="0.0" myColor="'+color+'"></material>',
</appearance> ' </appearance>',
<Sphere DEF="sphere" radius="`+size+`" /> ' <Sphere DEF="sphere" radius="'+size+'" />',
</shape> ' </shape>',
</transform> ' </transform>',
</switch> ' </switch>',
</group> '</group>'
`; ].join('\n');
var sphere_element = $(html); var sphere_element = $(html);
$(this.element).find("scene").append(sphere_element); $('scene',this.element).append(sphere_element);
//var shape = $(sphere_element).find("shape"); //var shape = $(sphere_element).find("shape");
//var id_prefix = $(sphere_element).attr("id").substr(0,7); //var id_prefix = $(sphere_element).attr("id").substr(0,7);
...@@ -1187,42 +1187,42 @@ X3DOMObject.displayViewInfo = function(e){ ...@@ -1187,42 +1187,42 @@ X3DOMObject.displayViewInfo = function(e){
//Map.marker.setAltitude(camera.y); //Map.marker.setAltitude(camera.y);
//Map.marker.setElevation(camera.e*Math.PI/180); //Map.marker.setElevation(camera.e*Math.PI/180);
var msg = ` var msg = [
<table> '<table>',
<tr> '<tr>',
<td></td> ' <td></td>',
<td colspan='3' align='center'>position, m</td> ' <td colspan="3" align="center">position, m</td>',
<td colspan='3' align='center'>orientation, &deg;</td> ' <td colspan="3" align="center">orientation, &deg;</td>',
</tr> '</tr>',
<tr> '<tr>',
<th></th> ' <th></th>',
<th style='width:60px;'>x</th> ' <th style="width:60px;">x</th>',
<th style='width:60px;'>y</th> ' <th style="width:60px;">y</th>',
<th style='width:60px;'>z</th> ' <th style="width:60px;">z</th>',
<th>azimuth</th> ' <th>azimuth</th>',
<th>elevation</th> ' <th>elevation</th>',
<th>skew</th> ' <th>skew</th>',
</tr> '</tr>',
<tr> '<tr>',
<td>mouse</td> ' <td>mouse</td>',
<td>`+mouse.x+`</td> ' <td>'+mouse.x+'</td>',
<td>`+mouse.y+`</td> ' <td>'+mouse.y+'</td>',
<td>`+mouse.z+`</td> ' <td>'+mouse.z+'</td>',
<td>`+mouse.a+`</td> ' <td>'+mouse.a+'</td>',
<td>`+mouse.e+`</td> ' <td>'+mouse.e+'</td>',
<td>`+mouse.s+`</td> ' <td>'+mouse.s+'</td>',
</tr> '</tr>',
<tr> '<tr>',
<td>camera</td> ' <td>camera</td>',
<td>`+camera.x+`</td> ' <td>'+camera.x+'</td>',
<td>`+camera.y+`</td> ' <td>'+camera.y+'</td>',
<td>`+camera.z+`</td> ' <td>'+camera.z+'</td>',
<td>`+camera.a+`</td> ' <td>'+camera.a+'</td>',
<td>`+camera.e+`</td> ' <td>'+camera.e+'</td>',
<td>`+camera.s+`</td> ' <td>'+camera.s+'</td>',
</tr> '</tr>',
</table> '</table>'
`; ].join('\n');
if (SETTINGS.viewinfo){ if (SETTINGS.viewinfo){
ui_showMessage("window-viewinfo",msg); ui_showMessage("window-viewinfo",msg);
...@@ -1287,4 +1287,3 @@ X3DOMObject.displayMarkInfo = function(index){ ...@@ -1287,4 +1287,3 @@ X3DOMObject.displayMarkInfo = function(index){
} }
} }
Markdown is supported
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