Commit 9a724c55 authored by Amanda Ghassaei's avatar Amanda Ghassaei

keyboards shortcuts reference

parent 569ecf75
...@@ -405,6 +405,10 @@ label { ...@@ -405,6 +405,10 @@ label {
margin-right:10px; margin-right:10px;
} }
#navViewMenu {
width: 200px;
}
.CodeMirror { .CodeMirror {
opacity: 0.6; opacity: 0.6;
margin: 0 20px 0 -10px; margin: 0 20px 0 -10px;
......
...@@ -39,12 +39,32 @@ ...@@ -39,12 +39,32 @@
<li><a class="saveJSON" href="#">Save Assembly &nbsp&nbsp&nbsp&nbsp(CTRL/&#8984; + S)</a></li> <li><a class="saveJSON" href="#">Save Assembly &nbsp&nbsp&nbsp&nbsp(CTRL/&#8984; + S)</a></li>
<li><a data-toggle="modal" data-target="#saveAsModel" href="#">Save Assembly As... &nbsp&nbsp&nbsp&nbsp(CTRL/&#8984 + Shift + S)</a></li> <li><a data-toggle="modal" data-target="#saveAsModel" href="#">Save Assembly As... &nbsp&nbsp&nbsp&nbsp(CTRL/&#8984 + Shift + S)</a></li>
<li><a class="importJSON" href="#">Open Assembly... &nbsp&nbsp&nbsp&nbsp(CTRL/&#8984 + O)</a></li> <li><a class="importJSON" href="#">Open Assembly... &nbsp&nbsp&nbsp&nbsp(CTRL/&#8984 + O)</a></li>
<li class="divider"></li>
<li class="dropdown-submenu">
<a tabindex="-1">Keyboard Shortcuts<span class="pull-right fui-arrow-right"></span></a>
<ul class="dropdown-menu">
<li><a>Hold D &nbsp;&nbsp;- &nbsp;Delete Mode</a></li>
<li><a>Hold V &nbsp;&nbsp;- &nbsp;Voxel Mode</a></li>
<li><a>Hold H &nbsp;&nbsp;- &nbsp;Hierarchical Mode</a></li>
<li><a>Hold P &nbsp;&nbsp;- &nbsp;Part Mode</a></li>
<li><a>Hold O &nbsp;&nbsp;- &nbsp;Hide Assembly</a></li>
<li><a>CTRL/&#8984; + Shift + P &nbsp;&nbsp;- &nbsp;Save SVG Screenshot</a></li>
<li><a>CTRL/&#8984; + S &nbsp;&nbsp;- &nbsp;Save</a></li>
<li><a>CTRL/&#8984; + Shift + S &nbsp;&nbsp;- &nbsp;Save As</a></li>
<li><a>CTRL/&#8984; + O &nbsp;&nbsp;- &nbsp;Open</a></li>
<li><a>Q/W &nbsp;&nbsp;- &nbsp;Composite Cell Placement X Offset</a></li>
<li><a>A/S &nbsp;&nbsp;- &nbsp;Composite Cell Placement Y Offset</a></li>
<li><a>Z/X &nbsp;&nbsp;- &nbsp;Composite Cell Placement Z Offset</a></li>
<li><a>Spacebar &nbsp;&nbsp;- &nbsp;Play/Pause Simulation</a></li>
<li><a>1-9 &nbsp;&nbsp;- &nbsp;Lego Length</a></li>
</ul>
</li>
<li class="divider"></li>
<li class="dropdown-submenu"> <li class="dropdown-submenu">
<a tabindex="-1">Demo Files<span class="pull-right fui-arrow-right"></span></a> <a tabindex="-1">Demo Files<span class="pull-right fui-arrow-right"></span></a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
<li><a href="#">n/a</a></li> <li><a href="#">n/a</a></li>
</ul></li> </ul></li>
<li class="divider"></li>
<li class="dropdown-submenu"> <li class="dropdown-submenu">
<a tabindex="-1">Load User Data<span class="pull-right fui-arrow-right"></span></a> <a tabindex="-1">Load User Data<span class="pull-right fui-arrow-right"></span></a>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
...@@ -63,8 +83,6 @@ ...@@ -63,8 +83,6 @@
</li> </li>
</ul> </ul>
</li> </li>
<li class="divider"></li>
<li><a id="exportSTL" href="#">Export STL</a></li>
</ul> </ul>
</li> </li>
<li><a data-menu-id="navDesign" class="menuHoverControls" href="#">Design</a></li> <li><a data-menu-id="navDesign" class="menuHoverControls" href="#">Design</a></li>
......
...@@ -34,4 +34,3 @@ ...@@ -34,4 +34,3 @@
<% }); %> <% }); %>
</ul> </ul>
</li> </li>
<li><a class="" href="#">Keyboard Shortcuts</a></li>
\ No newline at end of file
...@@ -211,10 +211,17 @@ define(['underscore', 'backbone', 'threeModel', 'three', 'plist', 'globals'], fu ...@@ -211,10 +211,17 @@ define(['underscore', 'backbone', 'threeModel', 'three', 'plist', 'globals'], fu
case 68://d delete mode case 68://d delete mode
this.set("deleteMode", state); this.set("deleteMode", state);
break; break;
case 72://h hide mode case 86://cell (voxel) mode
if (state) { if (state) {
this.lastCellMode = this.get("cellMode"); this.lastCellMode = this.get("cellMode");
this.set("cellMode", "hide"); this.set("cellMode", "cell");
}
else this.set("cellMode", this.lastCellMode);
break;
case 72://h hierarchical mode
if (state) {
this.lastCellMode = this.get("cellMode");
this.set("cellMode", "supercell");
} }
else this.set("cellMode", this.lastCellMode); else this.set("cellMode", this.lastCellMode);
break; break;
...@@ -222,17 +229,19 @@ define(['underscore', 'backbone', 'threeModel', 'three', 'plist', 'globals'], fu ...@@ -222,17 +229,19 @@ define(['underscore', 'backbone', 'threeModel', 'three', 'plist', 'globals'], fu
// if (currentTab != "sketch") return; // if (currentTab != "sketch") return;
// this.set("extrudeMode", state); // this.set("extrudeMode", state);
break; break;
case 80://p part mode case 80://p
if (e.ctrlKey || e.metaKey){//command if (e.ctrlKey || e.metaKey){//command + shift + p = print svg screenshot
if (e.shiftKey){ if (e.shiftKey){
e.preventDefault(); e.preventDefault();
three.saveSVG(); three.saveSVG();
return; return;
} }
} }
var cellMode = this.get("cellMode"); if (state) {//p part mode
if (cellMode == "part") this.set("cellMode", "cell"); this.lastCellMode = this.get("cellMode");
else if (cellMode == "cell") this.set("cellMode", "part"); this.set("cellMode", "part");
}
else this.set("cellMode", this.lastCellMode);
break; break;
case 83://s save case 83://s save
if (e.ctrlKey || e.metaKey){//command if (e.ctrlKey || e.metaKey){//command
...@@ -251,7 +260,13 @@ define(['underscore', 'backbone', 'threeModel', 'three', 'plist', 'globals'], fu ...@@ -251,7 +260,13 @@ define(['underscore', 'backbone', 'threeModel', 'three', 'plist', 'globals'], fu
if (e.ctrlKey || e.metaKey){//command if (e.ctrlKey || e.metaKey){//command
e.preventDefault(); e.preventDefault();
$("#jsonInput").click(); $("#jsonInput").click();
return;
} }
if (state) {//hide mode
this.lastCellMode = this.get("cellMode");
this.set("cellMode", "hide");
}
else this.set("cellMode", this.lastCellMode);
break; break;
case 32://space bar (play/pause simulation) case 32://space bar (play/pause simulation)
e.preventDefault(); e.preventDefault();
......
...@@ -358,10 +358,10 @@ define(['three'], function(THREE){ ...@@ -358,10 +358,10 @@ define(['three'], function(THREE){
}, },
allCellModes:{//supercell, cell, part, node, beam allCellModes:{//supercell, cell, part, node, beam
supercell: "Hierarchical Mode", supercell: "Hierarchical Mode &nbsp;&nbsp;(H)",
cell: "Voxel Mode", cell: "Voxel Mode &nbsp;&nbsp;(V)",
part: "Part Mode", part: "Part Mode &nbsp;&nbsp;(P)",
hide: "Hide Cells" hide: "Hide Cells &nbsp;&nbsp;(O)"
}, },
......
import - offset, scale, rotation import stl fill - offset, scale, rotation
hierarchical hierarchical
- single layer gik throwing error on parse
- origin - origin
- rotation - rotation
- load composite materials
- change bounding box - change bounding box
- placement ui 3D - placement ui 3D
...@@ -13,8 +10,6 @@ material transformations -> change material of a cell, change in bulk ...@@ -13,8 +10,6 @@ material transformations -> change material of a cell, change in bulk
rendering callbacks rendering callbacks
highligher - check mode, do not add cells except in design/composite/material modes
part stl import and orientation - settings to json part stl import and orientation - settings to json
same for machine same for machine
\ No newline at end of file
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