mirror of https://codeberg.org/pzp/zooboard.git
customize Excalidraw options
This commit is contained in:
parent
e46582f42b
commit
110df1fb55
4
main.js
4
main.js
|
@ -17,8 +17,8 @@ const URL = require('node:url')
|
||||||
|
|
||||||
function createWindow() {
|
function createWindow() {
|
||||||
const mainWindow = new BrowserWindow({
|
const mainWindow = new BrowserWindow({
|
||||||
width: 800,
|
width: 1200,
|
||||||
height: 600,
|
height: 800,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
preload: Path.join(__dirname, 'preload.js'),
|
preload: Path.join(__dirname, 'preload.js'),
|
||||||
},
|
},
|
||||||
|
|
|
@ -13,3 +13,11 @@
|
||||||
width: 80vw;
|
width: 80vw;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.excalidraw .dropdown-menu .dropdown-menu-item[data-testid="json-export-button"],
|
||||||
|
.excalidraw .dropdown-menu .dropdown-menu-group,
|
||||||
|
.excalidraw .dropdown-menu div:not([class]),
|
||||||
|
label[title="Library"]
|
||||||
|
{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
17
src/App.js
17
src/App.js
|
@ -6,7 +6,22 @@ function App() {
|
||||||
<div className="App">
|
<div className="App">
|
||||||
<div className="Sidebar"></div>
|
<div className="Sidebar"></div>
|
||||||
<div className="Main">
|
<div className="Main">
|
||||||
<Excalidraw />
|
<Excalidraw
|
||||||
|
UIOptions={{
|
||||||
|
canvasActions: {
|
||||||
|
changeViewBackgroundColor: false,
|
||||||
|
clearCanvas: false,
|
||||||
|
export: { saveFileToDisk: true },
|
||||||
|
loadScene: false,
|
||||||
|
saveToActiveFile: false,
|
||||||
|
toggleTheme: false,
|
||||||
|
saveAsImage: true,
|
||||||
|
},
|
||||||
|
tools: {
|
||||||
|
image: false,
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue