-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create a workspace for simulation (#2532)
* feat: add the simulation panel to general settings * feat: add 'simulation' workspace * chore(demo): add simulation example under Workspaces section * feat: change the dimmedSpectraOpacity in the simulation workspace to 0.5 * feat: upgrade nmr-load-save to version 0.14.0 close #2527
- Loading branch information
1 parent
21b1e1b
commit 1ca5910
Showing
12 changed files
with
98 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
import { InnerWorkspace } from 'nmr-load-save'; | ||
|
||
export const simulation: InnerWorkspace = { | ||
version: 1, | ||
label: 'Simulation', | ||
general: { | ||
dimmedSpectraOpacity: 0.5, | ||
verticalSplitterPosition: '440px', | ||
verticalSplitterCloseThreshold: 600, | ||
spectraRendering: 'auto', | ||
loggingLevel: 'info', | ||
}, | ||
display: { | ||
panels: { | ||
spectraPanel: { display: true }, | ||
simulationPanel: { display: true, open: true }, | ||
}, | ||
toolBarButtons: { | ||
exportAs: true, | ||
import: true, | ||
spectraCenterAlignments: true, | ||
spectraStackAlignments: true, | ||
zoomOut: true, | ||
zoom: true, | ||
}, | ||
}, | ||
formatting: { | ||
nuclei: {}, | ||
panels: { | ||
spectra: { | ||
nuclei: { | ||
'1H': { | ||
columns: [ | ||
{ | ||
name: 'visible', | ||
label: '', | ||
description: 'Show/Hide Spectrum', | ||
visible: true, | ||
}, | ||
{ | ||
name: 'name', | ||
label: 'Spectrum Name', | ||
description: 'Spectrum Name', | ||
jpath: ['info', 'name'], | ||
visible: true, | ||
}, | ||
{ | ||
label: 'Frequency', | ||
description: 'frequency', | ||
jpath: ['info', 'originFrequency'], | ||
visible: true, | ||
}, | ||
{ | ||
jpath: ['info', 'nucleus'], | ||
label: 'Experiment', | ||
visible: true, | ||
}, | ||
{ | ||
name: 'color', | ||
label: '', | ||
description: 'Spectrum Color', | ||
visible: true, | ||
}, | ||
], | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import View from './View'; | ||
|
||
export default function Simulation(props) { | ||
return <View {...props} workspace="simulation" />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters