fix brep debugger

This commit is contained in:
Val Erastov 2018-01-26 21:46:48 -08:00
parent 76b7cdd7f6
commit 43605ce79c
5 changed files with 24 additions and 22 deletions

View file

@ -1,3 +1,24 @@
:global
#brep-debugger {
font-size: 1.2em;
position: absolute;
z-index: 998;
left:10px;
top:10px;
bottom: 20px;
overflow: auto;
background: #eee;
border: 5px solid rgb(49, 121, 255);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
color: #1a1a1a;
& .tool-caption {
padding: 0.3em;
background-color: rgb(238, 255, 246);
cursor: default;
user-select: none
}
}
:global
.brep-debugger {

View file

@ -303,8 +303,8 @@ const DebugActions = [
label: 'open BREP debugger',
info: 'open the BREP debugger in a window',
},
invoke: ({cadScene}) => {
invoke: ({services: {cadScene}}) => {
// require('../brep/debug/debugger/brepDebugger.less');
let debuggerWinDom = document.getElementById('brep-debugger');
if (!debuggerWinDom) {
//Temporary hack until win infrastructure is done for 3d

View file

@ -8,5 +8,5 @@ export default {
'menu.main': 'space',
'Save': 'ctrl+S',
'Info': 'F1',
'DebugOpenBrepDebugger': 'ctrl+B'
'DebugOpenBrepDebugger': 'ctrl+b'
};

View file

@ -1,5 +1,3 @@
@import 'brep-debugger.less';
@tab-border-color: #2c2c2c;
@menu-border-radius: 3px;
@suppressed-color: #888;

View file

@ -1,17 +0,0 @@
#brep-debugger {
font-size: 1.2em;
position: absolute;
left:10px;
top:10px;
bottom: 20px;
overflow: auto;
background: #eee;
border: 5px solid rgb(49, 121, 255);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
& .tool-caption {
padding: 0.3em;
background-color: rgb(238, 255, 246);
cursor: default;
user-select: none
}
}