File tree Expand file tree Collapse file tree 5 files changed +1
-163
lines changed Expand file tree Collapse file tree 5 files changed +1
-163
lines changed Original file line number Diff line number Diff line change 9
9
ControlButton ,
10
10
Editor ,
11
11
Terminal ,
12
- DevTools ,
13
12
} from './pad' ;
14
13
import { ActionButton } from './pad/buttons' ;
15
14
import "./CustomEmbeddableRenderer.scss" ;
@@ -36,7 +35,7 @@ export const renderCustomEmbeddable = (
36
35
title = "HTML Editor" ;
37
36
break ;
38
37
case 'editor' :
39
- content = < Editor element = { element } appState = { appState } excalidrawAPI = { excalidrawAPI } /> ;
38
+ content = < Editor element = { element } excalidrawAPI = { excalidrawAPI } /> ;
40
39
title = "Code Editor" ;
41
40
break ;
42
41
case 'terminal' :
@@ -64,10 +63,6 @@ export const renderCustomEmbeddable = (
64
63
content = < Dashboard element = { element } appState = { appState } excalidrawAPI = { excalidrawAPI } /> ;
65
64
title = "Dashboard" ;
66
65
break ;
67
- case 'dev' :
68
- content = < DevTools element = { element } appState = { appState } excalidrawAPI = { excalidrawAPI } /> ;
69
- title = "Dev Tools" ;
70
- break ;
71
66
default :
72
67
title = "Untitled" ;
73
68
return null ;
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -5,11 +5,9 @@ export * from './Dashboard';
5
5
export * from './Terminal' ;
6
6
export * from './buttons' ;
7
7
export * from './editors' ;
8
- export * from './DevTools' ;
9
8
10
9
// Default exports
11
10
export { default as ControlButton } from './buttons/ControlButton' ;
12
11
export { default as StateIndicator } from './StateIndicator' ;
13
12
export { default as Dashboard } from './Dashboard' ;
14
13
export { default as Terminal } from './Terminal' ;
15
- export { default as DevTools } from './DevTools' ;
Original file line number Diff line number Diff line change @@ -67,22 +67,6 @@ export const MainMenuConfig: React.FC<MainMenuConfigProps> = ({
67
67
} ) ;
68
68
} ;
69
69
70
- const handleDevToolsClick = ( ) => {
71
- if ( ! excalidrawAPI ) return ;
72
-
73
- const devToolsElement = ExcalidrawElementFactory . createEmbeddableElement ( {
74
- link : "!dev" ,
75
- width : 800 ,
76
- height : 500
77
- } ) ;
78
-
79
- ExcalidrawElementFactory . placeInScene ( devToolsElement , excalidrawAPI , {
80
- mode : PlacementMode . NEAR_VIEWPORT_CENTER ,
81
- bufferPercentage : 10 ,
82
- scrollToView : true
83
- } ) ;
84
- } ;
85
-
86
70
const handleInsertButtonClick = ( ) => {
87
71
if ( ! excalidrawAPI ) return ;
88
72
@@ -262,12 +246,6 @@ export const MainMenuConfig: React.FC<MainMenuConfigProps> = ({
262
246
>
263
247
Action Button
264
248
</ MainMenu . Item >
265
- < MainMenu . Item
266
- icon = { < FlaskConical /> }
267
- onClick = { handleDevToolsClick }
268
- >
269
- Dev. Tools
270
- </ MainMenu . Item >
271
249
</ MainMenu . Group >
272
250
273
251
< MainMenu . Separator />
You can’t perform that action at this time.
0 commit comments