Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
DMDesign
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Amanda Ghassaei
DMDesign
Commits
9a724c55
Commit
9a724c55
authored
Sep 19, 2015
by
Amanda Ghassaei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
keyboards shortcuts reference
parent
569ecf75
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
54 additions
and
23 deletions
+54
-23
css/main.css
css/main.css
+4
-0
index.html
index.html
+21
-3
js/menus/templates/NavViewMenu.html
js/menus/templates/NavViewMenu.html
+0
-1
js/models/AppState.js
js/models/AppState.js
+22
-7
js/plists/PList.js
js/plists/PList.js
+4
-4
todo
todo
+3
-8
No files found.
css/main.css
View file @
9a724c55
...
...
@@ -405,6 +405,10 @@ label {
margin-right
:
10px
;
}
#navViewMenu
{
width
:
200px
;
}
.CodeMirror
{
opacity
:
0.6
;
margin
:
0
20px
0
-10px
;
...
...
index.html
View file @
9a724c55
...
...
@@ -39,12 +39,32 @@
<li><a
class=
"saveJSON"
href=
"#"
>
Save Assembly
    (CTRL/⌘
+ 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
-
Delete Mode
</a></li>
<li><a>
Hold V
-
Voxel Mode
</a></li>
<li><a>
Hold H
-
Hierarchical Mode
</a></li>
<li><a>
Hold P
-
Part Mode
</a></li>
<li><a>
Hold O
-
Hide Assembly
</a></li>
<li><a>
CTRL/
⌘
+ Shift + P
-
Save SVG Screenshot
</a></li>
<li><a>
CTRL/
⌘
+ S
-
Save
</a></li>
<li><a>
CTRL/
⌘
+ Shift + S
-
Save As
</a></li>
<li><a>
CTRL/
⌘
+ O
-
Open
</a></li>
<li><a>
Q/W
-
Composite Cell Placement X Offset
</a></li>
<li><a>
A/S
-
Composite Cell Placement Y Offset
</a></li>
<li><a>
Z/X
-
Composite Cell Placement Z Offset
</a></li>
<li><a>
Spacebar
-
Play/Pause Simulation
</a></li>
<li><a>
1-9
-
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>
...
...
js/menus/templates/NavViewMenu.html
View file @
9a724c55
...
...
@@ -34,4 +34,3 @@
<
%
});
%
>
</ul>
</li>
<li><a
class=
""
href=
"#"
>
Keyboard Shortcuts
</a></li>
\ No newline at end of file
js/models/AppState.js
View file @
9a724c55
...
...
@@ -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
();
...
...
js/plists/PList.js
View file @
9a724c55
...
...
@@ -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
(H)
"
,
cell
:
"
Voxel Mode
(V)
"
,
part
:
"
Part Mode
(P)
"
,
hide
:
"
Hide Cells
(O)
"
},
...
...
todo
View file @
9a724c55
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
\ No newline at end of file
same for machine
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment