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 99 ControlButton ,
1010 Editor ,
1111 Terminal ,
12- DevTools ,
1312} from './pad' ;
1413import { ActionButton } from './pad/buttons' ;
1514import "./CustomEmbeddableRenderer.scss" ;
@@ -36,7 +35,7 @@ export const renderCustomEmbeddable = (
3635 title = "HTML Editor" ;
3736 break ;
3837 case 'editor' :
39- content = < Editor element = { element } appState = { appState } excalidrawAPI = { excalidrawAPI } /> ;
38+ content = < Editor element = { element } excalidrawAPI = { excalidrawAPI } /> ;
4039 title = "Code Editor" ;
4140 break ;
4241 case 'terminal' :
@@ -64,10 +63,6 @@ export const renderCustomEmbeddable = (
6463 content = < Dashboard element = { element } appState = { appState } excalidrawAPI = { excalidrawAPI } /> ;
6564 title = "Dashboard" ;
6665 break ;
67- case 'dev' :
68- content = < DevTools element = { element } appState = { appState } excalidrawAPI = { excalidrawAPI } /> ;
69- title = "Dev Tools" ;
70- break ;
7166 default :
7267 title = "Untitled" ;
7368 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';
55export * from './Terminal' ;
66export * from './buttons' ;
77export * from './editors' ;
8- export * from './DevTools' ;
98
109// Default exports
1110export { default as ControlButton } from './buttons/ControlButton' ;
1211export { default as StateIndicator } from './StateIndicator' ;
1312export { default as Dashboard } from './Dashboard' ;
1413export { 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> = ({
6767 } ) ;
6868 } ;
6969
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-
8670 const handleInsertButtonClick = ( ) => {
8771 if ( ! excalidrawAPI ) return ;
8872
@@ -262,12 +246,6 @@ export const MainMenuConfig: React.FC<MainMenuConfigProps> = ({
262246 >
263247 Action Button
264248 </ MainMenu . Item >
265- < MainMenu . Item
266- icon = { < FlaskConical /> }
267- onClick = { handleDevToolsClick }
268- >
269- Dev. Tools
270- </ MainMenu . Item >
271249 </ MainMenu . Group >
272250
273251 < MainMenu . Separator />
You can’t perform that action at this time.
0 commit comments