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

keyboards shortcuts reference

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